summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Venkatraman2017-01-05 12:22:52 -0600
committerVijay Venkatraman2017-01-22 21:45:38 -0600
commit3c6763ca21c1150d66daf8fde9b440b1c3219fe6 (patch)
tree7a8df02f4d5f95e86faa96886f77e21e61eba4e1 /liblog/Android.bp
parent41ee55a8754f12389394c0266c05d09123707f77 (diff)
downloadplatform-system-core-3c6763ca21c1150d66daf8fde9b440b1c3219fe6.tar.gz
platform-system-core-3c6763ca21c1150d66daf8fde9b440b1c3219fe6.tar.xz
platform-system-core-3c6763ca21c1150d66daf8fde9b440b1c3219fe6.zip
Exporting C headers from system/core
Moved headers from include/libcutils and include/liblog to libcutils/include and liblog/include respectively, so they can be exported via these libs. They needed to be moved since Soong does not allow export from external folder. Added symlink from old locations. They are needed since Soong includes system/core/include by default. Once all modules are cleaned up to explicitly add the required libs, the symlinks will be removed. Also added liblog_vndk_headers that exports a special log/log.h for VNDK. Moved headers of libcutils to libcutils_headers. They should be used by modules for header-only inlines. Added libcutils_headers as dependency of libcutils. Added libcutils_vndk_headers that exports a special cutils/log.h deprecating usage of the file. A later CL will deprecate the one in libcutils_headers Test: Add above libs to shared lib of local module Change-Id: I6e1f9c5f23d8b6eae13dc3b7e5dfe7fae93b8510
Diffstat (limited to 'liblog/Android.bp')
-rw-r--r--liblog/Android.bp7
1 files changed, 7 insertions, 0 deletions
diff --git a/liblog/Android.bp b/liblog/Android.bp
index bbe7d793e..dd0a77816 100644
--- a/liblog/Android.bp
+++ b/liblog/Android.bp
@@ -79,6 +79,8 @@ cc_library {
79 }, 79 },
80 }, 80 },
81 81
82 export_include_dirs: ["include"],
83
82 cflags: [ 84 cflags: [
83 "-Werror", 85 "-Werror",
84 "-fvisibility=hidden", 86 "-fvisibility=hidden",
@@ -111,6 +113,11 @@ ndk_headers {
111 license: "NOTICE", 113 license: "NOTICE",
112} 114}
113 115
116cc_library_headers {
117 name: "liblog_vndk_headers",
118 export_include_dirs: ["include_vndk"],
119}
120
114ndk_library { 121ndk_library {
115 name: "liblog.ndk", 122 name: "liblog.ndk",
116 symbol_file: "liblog.map.txt", 123 symbol_file: "liblog.map.txt",