10bbb01823
For convenience, builds against musl libc currently use the linux_glibc properties because they are almost always linux-specific and not glibc-specific. In preparation for removing this hack, tweak the linux_glibc properties by either moving them to host_linux, which will apply to linux_glibc, linux_musl and linux_bionic, or by setting appropriate musl or linux_musl properties. Properties that must not be repeated while musl uses linux_musl and also still uses the linux_glibc properties are moved to glibc properties, which don't apply to musl. Whether these stay as glibc properties or get moved back to linux_glibc later once the musl hack is removed is TBD. Bug: 223257095 Test: m checkbuild Test: m USE_HOST_MUSL=true host-native Change-Id: I076fa026d7dddfccfa5cc395dd06bdc979eee1d8
36 lines
651 B
Text
36 lines
651 B
Text
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
cc_library {
|
|
name: "libdiskconfig",
|
|
vendor_available: true,
|
|
vndk: {
|
|
enabled: true,
|
|
},
|
|
srcs: [
|
|
"diskconfig.c",
|
|
"diskutils.c",
|
|
"write_lst.c",
|
|
"config_mbr.c",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libcutils",
|
|
"liblog",
|
|
],
|
|
cflags: ["-Werror"],
|
|
export_include_dirs: ["include"],
|
|
local_include_dirs: ["include"],
|
|
|
|
target: {
|
|
darwin: {
|
|
enabled: false,
|
|
},
|
|
host_linux: {
|
|
cflags: [
|
|
"-D_LARGEFILE64_SOURCE",
|
|
],
|
|
},
|
|
},
|
|
}
|