libbase: add libbase_headers

Test: can include headers in other soong modules
Bug: 33241851
(cherry picked from commit 8f56c1ecd7)
Merged-In: Ie3d11d1559f5aae46125695fd1f3a63da8e429ae
Change-Id: Ie3d11d1559f5aae46125695fd1f3a63da8e429ae
This commit is contained in:
Steven Moreland 2017-04-14 00:54:46 -07:00
parent 8b318d0c26
commit 3c71bbdde3
1 changed files with 23 additions and 2 deletions

View File

@ -20,6 +20,25 @@ libbase_cppflags = [
"-Werror",
]
cc_library_headers {
name: "libbase_headers",
vendor_available: true,
host_supported: true,
export_include_dirs: ["include"],
header_libs: ["libutils_headers"],
export_header_lib_headers: ["libutils_headers"],
target: {
linux_bionic: {
enabled: true,
},
windows: {
enabled: true,
},
},
}
cc_library {
name: "libbase",
clang: true,
@ -33,9 +52,11 @@ cc_library {
"strings.cpp",
"test_utils.cpp",
],
local_include_dirs: ["include"],
header_libs: ["libbase_headers"],
export_header_lib_headers: ["libbase_headers"],
cppflags: libbase_cppflags,
export_include_dirs: ["include"],
shared_libs: ["liblog"],
target: {
android: {