Inherit art_defaults in cc_library_headers as well.
To take art_defaults closer to a true global defaults used by
everything in the ART module. It has mostly compiler flags which aren't
applicable for header modules, but it may have other things as well,
notably min_sdk_version.
#codehealth
Test: Run-tests, gtests, libcore tests and libjdwp tests for host and
device on master-art
Bug: 204364566
Change-Id: Iba53785a992894fe7e8209a520e7ad9ec32636a2
diff --git a/libdexfile/Android.bp b/libdexfile/Android.bp
index 47f2e29..3767696 100644
--- a/libdexfile/Android.bp
+++ b/libdexfile/Android.bp
@@ -314,6 +314,7 @@
cc_library_headers {
name: "libdexfile_external_headers",
+ defaults: ["art_defaults"],
visibility: ["//visibility:public"],
host_supported: true,
header_libs: ["libbase_headers"],
@@ -333,12 +334,12 @@
"com.android.media",
"com.android.runtime",
],
- min_sdk_version: "S",
}
// Make dex_instruction_list.h available for tools/jvmti-agents/titrace
cc_library_headers {
name: "libdexfile_all_headers",
+ defaults: ["art_defaults"],
visibility: ["//art:__subpackages__"],
host_supported: true,
export_include_dirs: ["."],
@@ -347,7 +348,6 @@
"com.android.art",
"com.android.art.debug",
],
- min_sdk_version: "S",
}
art_cc_test {