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
|
bootstrap_go_package {
name: "soong-fluoride_qti",
pkgPath: "android/soong/fluoride_qti",
deps: [
"blueprint",
"blueprint-pathtools",
"soong",
"soong-android",
"soong-cc",
],
srcs: [
"fluoride_qti.go",
],
pluginFor: ["soong_build"],
}
fluoride_defaults_qti {
name: "libchrome_support_defaults_qti",
shared_libs: ["libchrome"],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
target: {
darwin: {
enabled: false,
},
},
}
fluoride_defaults_qti {
name: "fluoride_types_defaults_qti",
defaults: ["libchrome_support_defaults_qti"],
cflags: [
"-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))",
"-fvisibility=hidden",
// struct BT_HDR is defined as a variable-size header in a struct.
"-Wno-gnu-variable-sized-type-not-at-end",
// there are too many unused parameters in all the code.
"-Wno-unused-parameter",
"-DLOG_NDEBUG=1",
],
conlyflags: [
"-std=c99",
],
product_variables: {
debuggable: {
cflags: [
"-DBLUEDROID_DEBUG",
],
},
},
}
fluoride_defaults_qti {
name: "fluoride_defaults_qti",
defaults: ["fluoride_types_defaults_qti"],
header_libs: ["libbluetooth_headers"],
static_libs: [
"libbluetooth-types",
],
cpp_std: "c++17",
sanitize: {
misc_undefined: ["bounds"],
},
}
|