OSDN Git Service

[automerger skipped] resolve merge conflicts of 098e2972201b454de0f95a72636ecd9009dc3...
[android-x86/system-bt.git] / build / Android.bp
1 bootstrap_go_package {
2     name: "soong-fluoride",
3     pkgPath: "android/soong/fluoride",
4     deps: [
5         "blueprint",
6         "blueprint-pathtools",
7         "soong",
8         "soong-android",
9         "soong-cc",
10     ],
11     srcs: [
12         "fluoride.go",
13     ],
14     pluginFor: ["soong_build"],
15 }
16
17 fluoride_defaults {
18     name: "libchrome_support_defaults",
19     shared_libs: ["libchrome"],
20     cflags: [
21         "-Wall",
22         "-Wextra",
23         "-Werror",
24     ],
25     target: {
26         darwin: {
27             enabled: false,
28         },
29     },
30 }
31
32 fluoride_defaults {
33     name: "fluoride_types_defaults",
34     defaults: ["libchrome_support_defaults"],
35     cflags: [
36         "-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))",
37         "-fvisibility=hidden",
38         // struct BT_HDR is defined as a variable-size header in a struct.
39         "-Wno-gnu-variable-sized-type-not-at-end",
40         // there are too many unused parameters in all the code.
41         "-Wno-unused-parameter",
42         "-DLOG_NDEBUG=1",
43     ],
44     conlyflags: [
45         "-std=c99",
46     ],
47     product_variables: {
48         debuggable: {
49             cflags: [
50                 "-DBLUEDROID_DEBUG",
51             ],
52         },
53     },
54 }
55
56 fluoride_defaults {
57     name: "fluoride_defaults",
58     defaults: ["fluoride_types_defaults"],
59     header_libs: ["libbluetooth_headers"],
60     static_libs: [
61         "libbluetooth-types",
62     ],
63 }