a0e75045e6
adbd (and its dependencies) are marked as recovery_available:true so that recovery version of the binary is built separately from the one for system partition. This allows us to stop copying the system version to the recovery partition and also opens up the way to enable shared libraries in the recovery partition. Then we can also build adbd as a dynamic executable. Bug: 79146551 Test: m -j adbd.recovery Change-Id: Ib95614c7435f9d0afc02a0c7d5ae1a94e439e32a
68 lines
1.5 KiB
Text
68 lines
1.5 KiB
Text
cc_defaults {
|
|
name: "logwrapper_defaults",
|
|
cflags: [
|
|
"-Werror",
|
|
],
|
|
}
|
|
|
|
// ========================================================
|
|
// Static and shared library
|
|
// ========================================================
|
|
|
|
cc_library {
|
|
name: "liblogwrap",
|
|
defaults: ["logwrapper_defaults"],
|
|
recovery_available: true,
|
|
srcs: ["logwrap.c"],
|
|
shared_libs: [
|
|
"libcutils",
|
|
"liblog",
|
|
],
|
|
export_include_dirs: ["include"],
|
|
local_include_dirs: ["include"],
|
|
}
|
|
|
|
// ========================================================
|
|
// Executable
|
|
// ========================================================
|
|
|
|
cc_defaults {
|
|
name: "logwrapper_common",
|
|
defaults: ["logwrapper_defaults"],
|
|
local_include_dirs: ["include"],
|
|
srcs: [
|
|
"logwrap.c",
|
|
"logwrapper.c",
|
|
],
|
|
shared_libs: ["libcutils", "liblog"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "logwrapper",
|
|
defaults: ["logwrapper_common"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "logwrapper_vendor",
|
|
defaults: ["logwrapper_common"],
|
|
stem: "logwrapper",
|
|
vendor: true,
|
|
}
|
|
|
|
// ========================================================
|
|
// Benchmark
|
|
// ========================================================
|
|
|
|
cc_benchmark {
|
|
name: "android_fork_execvp_ext_benchmark",
|
|
defaults: ["logwrapper_defaults"],
|
|
srcs: [
|
|
"android_fork_execvp_ext_benchmark.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcutils",
|
|
"liblog",
|
|
"liblogwrap",
|
|
],
|
|
}
|