summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2017-07-12 15:29:20 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-07-12 15:29:20 +0000
commit67dec06c7cd21245f971a6d985789b39bd1841ef (patch)
tree40e08f0e8968b1637ae73015213301fafd1e6dc8 /liblog
parent01af80094e9472215e9a5672ffcf1dda9cc43df9 (diff)
parent42b485cc538217fa127996a340229f76b7c4031b (diff)
downloadsystem_core-67dec06c7cd21245f971a6d985789b39bd1841ef.tar.gz
system_core-67dec06c7cd21245f971a6d985789b39bd1841ef.tar.bz2
system_core-67dec06c7cd21245f971a6d985789b39bd1841ef.zip
Merge "Add vendor_available to liblog_headers."
Diffstat (limited to 'liblog')
-rw-r--r--liblog/Android.bp23
1 files changed, 21 insertions, 2 deletions
diff --git a/liblog/Android.bp b/liblog/Android.bp
index e74aa8283..b98d18ff6 100644
--- a/liblog/Android.bp
+++ b/liblog/Android.bp
@@ -42,6 +42,24 @@ liblog_target_sources = [
"logd_writer.c",
]
+cc_library_headers {
+ name: "liblog_headers",
+ host_supported: true,
+ vendor_available: true,
+ export_include_dirs: ["include"],
+ target: {
+ windows: {
+ enabled: true,
+ },
+ linux_bionic: {
+ enabled: true,
+ },
+ vendor: {
+ export_include_dirs: ["include_vndk"],
+ },
+ },
+}
+
// Shared and static library for host and device
// ========================================================
cc_library {
@@ -81,7 +99,8 @@ cc_library {
},
},
- export_include_dirs: ["include"],
+ header_libs: ["liblog_headers"],
+ export_header_lib_headers: ["liblog_headers"],
cflags: [
"-Werror",
@@ -100,7 +119,7 @@ cc_library {
}
ndk_headers {
- name: "liblog_headers",
+ name: "liblog_ndk_headers",
from: "include/android",
to: "android",
srcs: ["include/android/log.h"],