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/include_vndk
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/include_vndk')
l---------liblog/include_vndk/android1
-rw-r--r--liblog/include_vndk/log/log.h22
2 files changed, 23 insertions, 0 deletions
diff --git a/liblog/include_vndk/android b/liblog/include_vndk/android
new file mode 120000
index 000000000..69fbc0947
--- /dev/null
+++ b/liblog/include_vndk/android
@@ -0,0 +1 @@
../../include/android/ \ No newline at end of file
diff --git a/liblog/include_vndk/log/log.h b/liblog/include_vndk/log/log.h
new file mode 100644
index 000000000..f3eb3fe14
--- /dev/null
+++ b/liblog/include_vndk/log/log.h
@@ -0,0 +1,22 @@
1/*Special log.h file for VNDK linking modules*/
2
3#ifndef _LIBS_LOG_LOG_H
4#define _LIBS_LOG_LOG_H
5
6#include <android/log.h>
7
8/*The following files will be included once they are available*/
9/*#include <log/log_id.h>*/
10/*#include <log/log_radio.h>*/
11
12/*
13 * LOG_TAG is the local tag used for the following simplified
14 * logging macros. You can change this preprocessor definition
15 * before using the other macros to change the tag.
16 */
17
18#ifndef LOG_TAG
19#define LOG_TAG NULL
20#endif
21
22#endif /*_LIBS_LOG_LOG_H*/