diff options
Diffstat (limited to 'build/Android.bp')
-rw-r--r-- | build/Android.bp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/build/Android.bp b/build/Android.bp index c5ee79f53..32c0f31c0 100644 --- a/build/Android.bp +++ b/build/Android.bp @@ -29,9 +29,10 @@ fluoride_defaults { }, } +// Fuzzable defaults are the subset of defaults that are used in fuzzing, which +// requires no shared libraries, and no explicit sanitization. fluoride_defaults { - name: "fluoride_types_defaults", - defaults: ["libchrome_support_defaults"], + name: "fluoride_types_defaults_fuzzable", cflags: [ "-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))", "-fvisibility=hidden", @@ -54,15 +55,22 @@ fluoride_defaults { } fluoride_defaults { - name: "fluoride_defaults", + name: "fluoride_types_defaults", + defaults: [ + "fluoride_types_defaults_fuzzable", + "libchrome_support_defaults" + ], +} + +fluoride_defaults { + name: "fluoride_defaults_fuzzable", target: { android: { test_config_template: ":BluetoothTestConfigTemplate", }, }, - defaults: ["fluoride_types_defaults"], + defaults: ["fluoride_types_defaults_fuzzable"], header_libs: ["libbluetooth_headers"], - shared_libs: ["libstatslog"], static_libs: [ "libbluetooth-types", "libbt-platform-protos-lite", @@ -73,6 +81,15 @@ fluoride_defaults { }, } +fluoride_defaults { + name: "fluoride_defaults", + defaults: ["fluoride_defaults_fuzzable", "fluoride_types_defaults"], + shared_libs: ["libstatslog"], + sanitize: { + misc_undefined: ["bounds"], + }, +} + // Enables code coverage for a set of source files. Must be combined with // "clang_coverage_bin" in order to work. See //test/gen_coverage.py for more information // on generating code coverage. |