Use libcutils_headers for android_filesystem_config.h

android_filesystem_config.h is found since system/core/include is on
the include path for all projects and contains a symlink to the real
android_filesystem_config.h.  This is fragile and the below bug seeks
to remove this symlink and have users correctly depend on
libcutils_headers.

Bug: 165825252
Test: build
Change-Id: I1aad6a2e8fbe87635e97b0ac1be3414403353382
This commit is contained in:
Tom Cherry 2020-09-17 09:38:42 -07:00
parent 4fd78ec4b3
commit a5edc0fbbc
5 changed files with 8 additions and 1 deletions

View File

@ -28,6 +28,7 @@ cc_library_headers {
name: "libcutils_headers",
vendor_available: true,
recovery_available: true,
ramdisk_available: true,
host_supported: true,
apex_available: [
"//apex_available:platform",

View File

@ -97,6 +97,7 @@ cc_library {
header_libs: [
"libbase_headers",
"libcutils_headers",
"liblog_headers",
],
export_header_lib_headers: ["liblog_headers"],

View File

@ -32,7 +32,10 @@ cc_defaults {
"-DWRITE_TO_STATSD=1",
"-DWRITE_TO_LOGD=0",
],
header_libs: ["libstatssocket_headers"],
header_libs: [
"libcutils_headers",
"libstatssocket_headers",
],
static_libs: [
"libbase",
],

View File

@ -36,6 +36,7 @@ cc_defaults {
"libz",
],
static_libs: ["libzstd"],
header_libs: ["libcutils_headers"],
cflags: [
"-Wextra",
"-Wthread-safety",

View File

@ -25,4 +25,5 @@ cc_binary {
"libpackagelistparser",
"libminijail",
],
header_libs: ["libcutils_headers"],
}