Merge changes from topic "fix-omx-dependencies"

* changes:
  Add vendor_available to liblog_headers.
  Add sys/cdefs.h to log/log_main.h.
This commit is contained in:
Treehugger Robot 2017-09-11 20:42:27 +00:00 committed by Gerrit Code Review
commit 2dac833ea8
3 changed files with 26 additions and 8 deletions

View file

@ -42,6 +42,24 @@ liblog_target_sources = [
"logd_writer.c", "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 // Shared and static library for host and device
// ======================================================== // ========================================================
cc_library { cc_library {
@ -81,7 +99,8 @@ cc_library {
}, },
}, },
export_include_dirs: ["include"], header_libs: ["liblog_headers"],
export_header_lib_headers: ["liblog_headers"],
cflags: [ cflags: [
"-Werror", "-Werror",
@ -100,7 +119,7 @@ cc_library {
} }
ndk_headers { ndk_headers {
name: "liblog_headers", name: "liblog_ndk_headers",
from: "include/android", from: "include/android",
to: "android", to: "android",
srcs: ["include/android/log.h"], srcs: ["include/android/log.h"],

View file

@ -18,10 +18,9 @@
#define _LIBS_LOG_LOG_MAIN_H #define _LIBS_LOG_LOG_MAIN_H
#include <android/log.h> #include <android/log.h>
#include <sys/cdefs.h>
#ifdef __cplusplus __BEGIN_DECLS
extern "C" {
#endif
/* /*
* Normally we strip the effects of ALOGV (VERBOSE messages), * Normally we strip the effects of ALOGV (VERBOSE messages),
@ -385,8 +384,6 @@ int __android_log_is_loggable_len(int prio, const char* tag, size_t len,
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
#ifdef __cplusplus __END_DECLS
}
#endif
#endif /* _LIBS_LOG_LOG_MAIN_H */ #endif /* _LIBS_LOG_LOG_MAIN_H */

View file

@ -18,10 +18,12 @@ cc_library_headers {
host_supported: true, host_supported: true,
header_libs: [ header_libs: [
"liblog_headers",
"libsystem_headers", "libsystem_headers",
"libcutils_headers" "libcutils_headers"
], ],
export_header_lib_headers: [ export_header_lib_headers: [
"liblog_headers",
"libsystem_headers", "libsystem_headers",
"libcutils_headers" "libcutils_headers"
], ],