blob: 54506dce772e40319c9f5d65bee6355a5da0b9c0 [file] [log] [blame]
Elliott Hughes5a4c20b2018-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 Hughes5a4c20b2018-04-10 14:48:21 -070011
Dan Willemsen45f05242016-07-12 22:10:56 -070012cc_library {
13 name: "liblogwrap",
Elliott Hughes5a4c20b2018-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 Hughes5a4c20b2018-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 Hughes5a4c20b2018-04-10 14:48:21 -070041 defaults: ["logwrapper_common"],
42}
43
44// Build vendor logwrapper.
45// TODO: Add vendor_available to "logwrapper" module and remove "logwrapper_vendor" module
46// when vendor_available is fully supported.
47cc_binary {
48 name: "logwrapper_vendor",
49 stem: "logwrapper",
50 vendor: true,
51 defaults: ["logwrapper_common"],
Dan Willemsen45f05242016-07-12 22:10:56 -070052}
Narayan Kamathf7041932017-03-22 11:24:03 +000053
54// ========================================================
55// Benchmark
56// ========================================================
Elliott Hughes5a4c20b2018-04-10 14:48:21 -070057
Narayan Kamathf7041932017-03-22 11:24:03 +000058cc_benchmark {
59 name: "android_fork_execvp_ext_benchmark",
Elliott Hughes5a4c20b2018-04-10 14:48:21 -070060 defaults: ["logwrapper_defaults"],
Narayan Kamathf7041932017-03-22 11:24:03 +000061 srcs: [
62 "android_fork_execvp_ext_benchmark.cpp",
63 ],
64 shared_libs: [
65 "libbase",
66 "libcutils",
67 "liblog",
68 "liblogwrap",
69 ],
Narayan Kamathf7041932017-03-22 11:24:03 +000070}