libbase: add libbase_headers am: 3c71bbdde3
am: 10a28989b8
Change-Id: I4da1fc892b2d470a28bea560dec1c552968035c9
diff --git a/base/Android.bp b/base/Android.bp
index 3af7686..fb55275 100644
--- a/base/Android.bp
+++ b/base/Android.bp
@@ -20,6 +20,25 @@
"-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 @@
"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: {