summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-01-14 17:40:45 -0800
committerSteven Moreland <smoreland@google.com>2023-06-02 23:01:54 +0000
commitd783cabd4d9bddb4b83f2dd38300b7598bb58b24 (patch)
treee617c7513aeccb0afad28247165fe24f684ab543 /Android.bp
parentc0a81b9dc69af81dff4b2c4b338c1a477c1d412d (diff)
downloadlibhardware-d783cabd4d9bddb4b83f2dd38300b7598bb58b24.tar.gz
Split up headers.
This splits headers into three locations: include - for backwards compatibility, the global include include_all - for things system/vendor both use include_vendor - for things that only vendors use The goal is to gradually have system things stop referencing (at least most) of these headers. Bug: 37280010 Test: build (CL on top adds back in symlinks) Change-Id: Ibf194276b7faa857e1e7605d7719f4e7d873ecba
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp20
1 files changed, 19 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 6baab685..70d76fa2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -32,6 +32,7 @@ license {
cc_library_headers {
name: "libhardware_headers",
+
header_libs: [
"libaudio_system_headers",
"libsystem_headers",
@@ -45,11 +46,22 @@ cc_library_headers {
"libbluetooth-types-header",
],
- export_include_dirs: ["include"],
recovery_available: true,
vendor_available: true,
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
+
+ // There are three include directories currently:
+ // - include: this directory is the original location of libhardware headers. It is globally
+ // available (even if you do not depend on libhardware). Many locations also use
+ // LOCAL_C_INCLUDES or include_dirs to access these from a global namespace. These processes
+ // should replace this dependency with a direct dependency on libhardware(_headers)?.
+ // - include_all: this directory is for system and vendor include files. Gradually, the number of
+ // files here should be reduced to 0 by moving them to vendor as old code is phased out.
+ // - include_vendor: this directory is the current designated resting place for these headers.
+ // They are kept around to try to help insure existing codebases can function.
+ export_include_dirs: ["include_all"],
+
target: {
recovery: {
exclude_header_libs: [
@@ -60,6 +72,12 @@ cc_library_headers {
windows: {
enabled: true,
},
+ vendor: {
+ override_export_include_dirs: [
+ "include_all",
+ "include_vendor",
+ ],
+ },
},
apex_available: [
"//apex_available:platform",