blob: c37864613dcd4be46407ebb40ce413ccf632029f [file] [log] [blame]
Elliott Hughes0b539f32018-04-10 14:48:21 -07001cc_defaults {
2 name: "logwrapper_defaults",
3 cflags: [
4 "-Werror",
5 ],
6}
Dan Willemsen45f05242016-07-12 22:10:56 -07007
8// ========================================================
9// Static and shared library
10// ========================================================
Elliott Hughes0b539f32018-04-10 14:48:21 -070011
Dan Willemsen45f05242016-07-12 22:10:56 -070012cc_library {
13 name: "liblogwrap",
Elliott Hughes0b539f32018-04-10 14:48:21 -070014 defaults: ["logwrapper_defaults"],
Jiyong Parka0e75042018-05-24 14:11:00 +090015 recovery_available: true,
Dan Willemsen45f05242016-07-12 22:10:56 -070016 srcs: ["logwrap.c"],
17 shared_libs: [
18 "libcutils",
19 "liblog",
20 ],
21 export_include_dirs: ["include"],
22 local_include_dirs: ["include"],
Dan Willemsen45f05242016-07-12 22:10:56 -070023}
24
25// ========================================================
26// Executable
27// ========================================================
Elliott Hughes0b539f32018-04-10 14:48:21 -070028
29cc_defaults {
30 name: "logwrapper_common",
31 defaults: ["logwrapper_defaults"],
32 local_include_dirs: ["include"],
33 srcs: [
34 "logwrap.c",
35 "logwrapper.c",
36 ],
37 shared_libs: ["libcutils", "liblog"],
38}
39
Dan Willemsen45f05242016-07-12 22:10:56 -070040cc_binary {
41 name: "logwrapper",
Elliott Hughes0b539f32018-04-10 14:48:21 -070042 defaults: ["logwrapper_common"],
43}
44
Elliott Hughes0b539f32018-04-10 14:48:21 -070045cc_binary {
46 name: "logwrapper_vendor",
Elliott Hughesa3664942018-04-23 21:50:43 -070047 defaults: ["logwrapper_common"],
Elliott Hughes0b539f32018-04-10 14:48:21 -070048 stem: "logwrapper",
49 vendor: true,
Dan Willemsen45f05242016-07-12 22:10:56 -070050}
Narayan Kamathf7041932017-03-22 11:24:03 +000051
52// ========================================================
53// Benchmark
54// ========================================================
Elliott Hughes0b539f32018-04-10 14:48:21 -070055
Narayan Kamathf7041932017-03-22 11:24:03 +000056cc_benchmark {
57 name: "android_fork_execvp_ext_benchmark",
Elliott Hughes0b539f32018-04-10 14:48:21 -070058 defaults: ["logwrapper_defaults"],
Narayan Kamathf7041932017-03-22 11:24:03 +000059 srcs: [
60 "android_fork_execvp_ext_benchmark.cpp",
61 ],
62 shared_libs: [
63 "libbase",
64 "libcutils",
65 "liblog",
66 "liblogwrap",
67 ],
Narayan Kamathf7041932017-03-22 11:24:03 +000068}