blob: d4ba4f47f88794c6acf1e1b41062cc44066af816 [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"],
Dan Willemsen45f05242016-07-12 22:10:56 -070015 srcs: ["logwrap.c"],
16 shared_libs: [
17 "libcutils",
18 "liblog",
19 ],
20 export_include_dirs: ["include"],
21 local_include_dirs: ["include"],
Dan Willemsen45f05242016-07-12 22:10:56 -070022}
23
24// ========================================================
25// Executable
26// ========================================================
Elliott Hughes0b539f32018-04-10 14:48:21 -070027
28cc_defaults {
29 name: "logwrapper_common",
30 defaults: ["logwrapper_defaults"],
31 local_include_dirs: ["include"],
32 srcs: [
33 "logwrap.c",
34 "logwrapper.c",
35 ],
36 shared_libs: ["libcutils", "liblog"],
37}
38
Dan Willemsen45f05242016-07-12 22:10:56 -070039cc_binary {
40 name: "logwrapper",
Elliott Hughes0b539f32018-04-10 14:48:21 -070041 defaults: ["logwrapper_common"],
42}
43
Elliott Hughes0b539f32018-04-10 14:48:21 -070044cc_binary {
45 name: "logwrapper_vendor",
Elliott Hughesa3664942018-04-23 21:50:43 -070046 defaults: ["logwrapper_common"],
Elliott Hughes0b539f32018-04-10 14:48:21 -070047 stem: "logwrapper",
48 vendor: true,
Dan Willemsen45f05242016-07-12 22:10:56 -070049}
Narayan Kamathf7041932017-03-22 11:24:03 +000050
51// ========================================================
52// Benchmark
53// ========================================================
Elliott Hughes0b539f32018-04-10 14:48:21 -070054
Narayan Kamathf7041932017-03-22 11:24:03 +000055cc_benchmark {
56 name: "android_fork_execvp_ext_benchmark",
Elliott Hughes0b539f32018-04-10 14:48:21 -070057 defaults: ["logwrapper_defaults"],
Narayan Kamathf7041932017-03-22 11:24:03 +000058 srcs: [
59 "android_fork_execvp_ext_benchmark.cpp",
60 ],
61 shared_libs: [
62 "libbase",
63 "libcutils",
64 "liblog",
65 "liblogwrap",
66 ],
Narayan Kamathf7041932017-03-22 11:24:03 +000067}