diff options
| author | 2022-10-25 00:50:08 +0000 | |
|---|---|---|
| committer | 2022-10-25 01:11:14 +0000 | |
| commit | 0bb757a589f12181235674f0b7d389709b9ae2ed (patch) | |
| tree | 427317b2252cd4841b8470ed871baf5aa0ec634f | |
| parent | 4e84148059c54ccbf64740c6841fdae46ce64b30 (diff) | |
Export libarect_headers to llndk api surface
Previously, we were exporting the transitive headers of libnativewindow
(libarect_headers) only to core and mainline api domains. This CL
explicitly exports these headers to vendor/product via
lldnk.exoprt_llndk_headers
Also, move the headers of libarect from `export_static_lib_headers` to
`export_header_lib_headers` for consistency.
Bug: 254136046
Test: TH
Test: Manual (detailed below)
$ cat << EOF > mytest.cpp
#include <android/hardware_buffer.h>
EOF
(Add two new Soong modules)
cc_library {
name: "mytest",
srcs: ["mytest.cpp"],
shared_libs: ["libnativewindow"],
}
cc_library {
name: "mytest_vendor",
srcs: ["mytest.cpp"],
shared_libs: ["libnativewindow"],
vendor: true
}
mytest would build ok before and after change
mytest_vendor builds ok only after change
Change-Id: If9d677545ac29f232c6b296312255a63d5ce850c
| -rw-r--r-- | libs/arect/Android.bp | 3 | ||||
| -rw-r--r-- | libs/nativewindow/Android.bp | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libs/arect/Android.bp b/libs/arect/Android.bp index 76e3e66749..5e539f24e1 100644 --- a/libs/arect/Android.bp +++ b/libs/arect/Android.bp @@ -49,6 +49,9 @@ cc_library_headers { "com.android.media", "com.android.media.swcodec", ], + llndk: { + llndk_headers: true, + }, } cc_library_static { diff --git a/libs/nativewindow/Android.bp b/libs/nativewindow/Android.bp index d7db6bd174..cedc522f3e 100644 --- a/libs/nativewindow/Android.bp +++ b/libs/nativewindow/Android.bp @@ -74,6 +74,9 @@ cc_library { override_export_include_dirs: [ "include", ], + export_llndk_headers: [ + "libarect_headers", + ], }, export_include_dirs: [ "include", @@ -108,16 +111,14 @@ cc_library { ], header_libs: [ + "libarect_headers", "libnativebase_headers", "libnativewindow_headers", ], // headers we include in our public headers - export_static_lib_headers: [ - "libarect", - ], - export_header_lib_headers: [ + "libarect_headers", "libnativebase_headers", ], |