Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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: "fluoride_defaults", |
| 19 | cflags: [ |
| 20 | "-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))", |
| 21 | "-fvisibility=hidden", |
| 22 | "-Wall", |
| 23 | "-Wextra", |
| 24 | "-Werror", |
| 25 | // struct BT_HDR is defined as a variable-size header in a struct. |
| 26 | "-Wno-gnu-variable-sized-type-not-at-end", |
| 27 | // needed because of the way the struct typedef is done in osi/include |
| 28 | // header files. This issue can be obsoleted by switching to C11 or C++. |
| 29 | "-Wno-typedef-redefinition", |
| 30 | // there are too many unused parameters in all the code. |
| 31 | "-Wno-unused-parameter", |
| 32 | "-DLOG_NDEBUG=1", |
| 33 | ], |
| 34 | conlyflags: [ |
| 35 | "-std=c99", |
| 36 | ], |
| 37 | product_variables: { |
| 38 | debuggable: { |
Jakub Pawlowski | ba993e9 | 2017-02-09 16:46:45 -0800 | [diff] [blame] | 39 | cflags: [ |
| 40 | "-DBLUEDROID_DEBUG", |
| 41 | "-DDCHECK_ALWAYS_ON" |
| 42 | ], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 43 | }, |
| 44 | }, |
| 45 | shared_libs: [ "libchrome" ] |
| 46 | // Setup Bluetooth local make variables for handling configuration |
| 47 | } |