blob: 8851a47a458100f45e176afa8028e0ca24f830ee [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,
Tom Cherryff7d0672019-09-25 15:01:58 -070016 srcs: ["logwrap.cpp"],
Dan Willemsen45f05242016-07-12 22:10:56 -070017 shared_libs: [
18 "libcutils",
19 "liblog",
20 ],
Tom Cherryff7d0672019-09-25 15:01:58 -070021 header_libs: ["libbase_headers"],
Dan Willemsen45f05242016-07-12 22:10:56 -070022 export_include_dirs: ["include"],
23 local_include_dirs: ["include"],
Dan Willemsen45f05242016-07-12 22:10:56 -070024}
25
26// ========================================================
27// Executable
28// ========================================================
Elliott Hughes0b539f32018-04-10 14:48:21 -070029
30cc_defaults {
31 name: "logwrapper_common",
32 defaults: ["logwrapper_defaults"],
33 local_include_dirs: ["include"],
34 srcs: [
Tom Cherryff7d0672019-09-25 15:01:58 -070035 "logwrap.cpp",
36 "logwrapper.cpp",
Elliott Hughes0b539f32018-04-10 14:48:21 -070037 ],
Tom Cherryff7d0672019-09-25 15:01:58 -070038 header_libs: ["libbase_headers"],
Elliott Hughes0b539f32018-04-10 14:48:21 -070039 shared_libs: ["libcutils", "liblog"],
40}
41
Dan Willemsen45f05242016-07-12 22:10:56 -070042cc_binary {
43 name: "logwrapper",
Elliott Hughes0b539f32018-04-10 14:48:21 -070044 defaults: ["logwrapper_common"],
45}
46
Elliott Hughes0b539f32018-04-10 14:48:21 -070047cc_binary {
48 name: "logwrapper_vendor",
Elliott Hughesa3664942018-04-23 21:50:43 -070049 defaults: ["logwrapper_common"],
Elliott Hughes0b539f32018-04-10 14:48:21 -070050 stem: "logwrapper",
51 vendor: true,
Dan Willemsen45f05242016-07-12 22:10:56 -070052}
Narayan Kamathf7041932017-03-22 11:24:03 +000053
54// ========================================================
55// Benchmark
56// ========================================================
Elliott Hughes0b539f32018-04-10 14:48:21 -070057
Narayan Kamathf7041932017-03-22 11:24:03 +000058cc_benchmark {
Tom Cherrya0e4af62019-09-25 17:05:51 -070059 name: "logwrap_fork_execvp_benchmark",
Elliott Hughes0b539f32018-04-10 14:48:21 -070060 defaults: ["logwrapper_defaults"],
Narayan Kamathf7041932017-03-22 11:24:03 +000061 srcs: [
Tom Cherrya0e4af62019-09-25 17:05:51 -070062 "logwrap_fork_execvp_benchmark.cpp",
Narayan Kamathf7041932017-03-22 11:24:03 +000063 ],
64 shared_libs: [
65 "libbase",
66 "libcutils",
67 "liblog",
68 "liblogwrap",
69 ],
Narayan Kamathf7041932017-03-22 11:24:03 +000070}