diff --git a/liblog/Android.bp b/liblog/Android.bp index 6584c952d..d5bb29ed0 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 { @@ -78,7 +96,8 @@ cc_library { }, }, - export_include_dirs: ["include"], + header_libs: ["liblog_headers"], + export_header_lib_headers: ["liblog_headers"], cflags: [ "-Werror", @@ -97,7 +116,7 @@ cc_library { } ndk_headers { - name: "liblog_headers", + name: "liblog_ndk_headers", from: "include/android", to: "android", srcs: ["include/android/log.h"], diff --git a/libutils/Android.bp b/libutils/Android.bp index 540c445d0..1bf5a64ff 100644 --- a/libutils/Android.bp +++ b/libutils/Android.bp @@ -18,10 +18,12 @@ cc_library_headers { host_supported: true, header_libs: [ + "liblog_headers", "libsystem_headers", "libcutils_headers" ], export_header_lib_headers: [ + "liblog_headers", "libsystem_headers", "libcutils_headers" ], @@ -85,9 +87,6 @@ cc_library { shared_libs: [ "liblog", ], - export_shared_lib_headers: [ - "liblog", - ], arch: { mips: {