summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/audio_a2dp_hw/Android.bp2
-rw-r--r--system/audio_hearing_aid_hw/Android.bp2
-rw-r--r--system/build/Android.bp17
3 files changed, 19 insertions, 2 deletions
diff --git a/system/audio_a2dp_hw/Android.bp b/system/audio_a2dp_hw/Android.bp
index 3fc6b65f79..187d5eb998 100644
--- a/system/audio_a2dp_hw/Android.bp
+++ b/system/audio_a2dp_hw/Android.bp
@@ -9,7 +9,7 @@ package {
cc_defaults {
name: "audio_a2dp_hw_defaults",
- defaults: ["libchrome_support_defaults"],
+ defaults: ["libchrome_shared_support_defaults"],
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/audio_a2dp_hw/include",
diff --git a/system/audio_hearing_aid_hw/Android.bp b/system/audio_hearing_aid_hw/Android.bp
index 05b252dfa5..1409730a6a 100644
--- a/system/audio_hearing_aid_hw/Android.bp
+++ b/system/audio_hearing_aid_hw/Android.bp
@@ -9,7 +9,7 @@ package {
cc_defaults {
name: "audio_hearing_aid_hw_defaults",
- defaults: ["libchrome_support_defaults"],
+ defaults: ["libchrome_shared_support_defaults"],
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
diff --git a/system/build/Android.bp b/system/build/Android.bp
index 80ae324829..6a3a34f65f 100644
--- a/system/build/Android.bp
+++ b/system/build/Android.bp
@@ -51,6 +51,23 @@ fluoride_defaults {
},
}
+// default to be used only on platform libs that can rely on shared libchrome
+fluoride_defaults {
+ name: "libchrome_shared_support_defaults",
+ shared_libs: ["libchrome"],
+ cflags: [
+ "-Wall",
+ "-Wextra",
+ "-Werror",
+ ],
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
+}
+
+
// Fuzzable defaults are the subset of defaults that are used in fuzzing, which
// requires no shared libraries, and no explicit sanitization.
fluoride_defaults {