File: Android.bp

package info (click to toggle)
android-platform-tools 35.0.2-1~exp6
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 211,716 kB
  • sloc: cpp: 995,749; java: 290,495; ansic: 145,647; xml: 58,531; python: 39,608; sh: 14,500; javascript: 5,198; asm: 4,866; makefile: 3,115; yacc: 769; awk: 368; ruby: 183; sql: 140; perl: 88; lex: 67
file content (157 lines) | stat: -rw-r--r-- 3,221 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
package {
    default_applicable_licenses: ["system_core_libutils_license"],
}

cc_defaults {
    name: "libutils_binder_impl_defaults_nodeps",
    defaults: [
        "libutils_defaults_nodeps",
        "apex-lowest-min-sdk-version",
    ],
    native_bridge_supported: true,

    export_include_dirs: ["include"],
    srcs: [
        "Errors.cpp",
        "RefBase.cpp",
        "SharedBuffer.cpp",
        "String16.cpp",
        "String8.cpp",
        "StrongPointer.cpp",
        "Unicode.cpp",
        "VectorImpl.cpp",
    ],

    cflags: [
        "-Winvalid-offsetof",
        "-Wsequence-point",
        "-Wzero-as-null-pointer-constant",
    ],

    apex_available: [
        "//apex_available:anyapex",
        "//apex_available:platform",
    ],

    afdo: true,
}

cc_defaults {
    name: "libutils_binder_impl_defaults",
    defaults: [
        "libutils_defaults",
        "libutils_binder_impl_defaults_nodeps",
    ],
}

cc_library {
    name: "libutils_binder",
    defaults: ["libutils_binder_impl_defaults"],
    cmake_snapshot_supported: false,
}

cc_library_shared {
    name: "libutils_binder_sdk",
    defaults: ["libutils_binder_impl_defaults_nodeps"],
    cmake_snapshot_supported: true,

    header_libs: [
        "liblog_stub",
    ],

    cflags: [
        "-DANDROID_LOG_STUB_WEAK_PRINT",
        "-DANDROID_UTILS_CALLSTACK_ENABLED=0",
    ],
}

cc_library {
    name: "libutils_binder_test_compile",
    defaults: ["libutils_binder_impl_defaults"],

    cflags: [
        "-DDEBUG_REFS=1",
    ],

    visibility: [":__subpackages__"],
}

cc_fuzz {
    name: "libutils_fuzz_string8",
    defaults: ["libutils_fuzz_defaults"],
    srcs: ["String8_fuzz.cpp"],
}

cc_fuzz {
    name: "libutils_fuzz_string16",
    defaults: ["libutils_fuzz_defaults"],
    srcs: ["String16_fuzz.cpp"],
}

cc_fuzz {
    name: "libutils_fuzz_vector",
    defaults: ["libutils_fuzz_defaults"],
    srcs: ["Vector_fuzz.cpp"],
}

cc_fuzz {
    name: "libutils_fuzz_refbase",
    defaults: ["libutils_fuzz_defaults"],
    srcs: ["RefBase_fuzz.cpp"],
}

cc_test {
    name: "libutils_binder_test",
    host_supported: true,

    srcs: [
        "Errors_test.cpp",
        "SharedBuffer_test.cpp",
        "String16_test.cpp",
        "String8_test.cpp",
        "StrongPointer_test.cpp",
        "Unicode_test.cpp",
        "Vector_test.cpp",
    ],

    target: {
        android: {
            shared_libs: [
                "libbase",
                "libcutils",
                "liblog",
                "liblzma",
                "libutils", // which includes libutils_binder
                "libz",
            ],
        },
        linux: {
            srcs: [
                "RefBase_test.cpp",
            ],
        },
        host: {
            static_libs: [
                "libbase",
                "liblog",
                "liblzma",
                "libutils", // which includes libutils_binder
            ],
        },
    },

    cflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
        "-Wthread-safety",
    ],

    test_suites: ["device-tests"],
}

cc_benchmark {
    name: "libutils_binder_benchmark",
    srcs: ["Vector_benchmark.cpp"],
    shared_libs: ["libutils"],
}