blob: 5b456ac5aadb968a180325e78d357cc7fb86c54b [file] [log] [blame]
Bob Badour7ca20c12021-02-03 18:29:06 -08001package {
2 default_applicable_licenses: ["system_logging_logwrapper_license"],
3}
4
5// Added automatically by a large-scale-change
6license {
7 name: "system_logging_logwrapper_license",
8 visibility: [":__subpackages__"],
9 license_kinds: [
10 "SPDX-license-identifier-Apache-2.0",
11 ],
12 license_text: [
13 "NOTICE",
14 ],
15}
16
Elliott Hughes87812672018-04-10 14:48:21 -070017cc_defaults {
18 name: "logwrapper_defaults",
19 cflags: [
20 "-Werror",
21 ],
22}
Dan Willemsen33090542016-07-12 22:10:56 -070023
24// ========================================================
25// Static and shared library
26// ========================================================
Elliott Hughes87812672018-04-10 14:48:21 -070027
Dan Willemsen33090542016-07-12 22:10:56 -070028cc_library {
29 name: "liblogwrap",
Elliott Hughes87812672018-04-10 14:48:21 -070030 defaults: ["logwrapper_defaults"],
Inseob Kim69cd82e2021-06-14 11:55:33 +090031 ramdisk_available: true,
David Anderson203def72021-07-23 17:00:19 -070032 vendor_ramdisk_available: true,
Jiyong Parkc0bad522018-05-24 14:11:00 +090033 recovery_available: true,
Tom Cherry3c11ee32019-09-25 15:01:58 -070034 srcs: ["logwrap.cpp"],
Dan Willemsen33090542016-07-12 22:10:56 -070035 shared_libs: [
36 "libcutils",
37 "liblog",
38 ],
Tom Cherry3c11ee32019-09-25 15:01:58 -070039 header_libs: ["libbase_headers"],
Dan Willemsen33090542016-07-12 22:10:56 -070040 export_include_dirs: ["include"],
41 local_include_dirs: ["include"],
Dan Willemsen33090542016-07-12 22:10:56 -070042}
43
44// ========================================================
45// Executable
46// ========================================================
Elliott Hughes87812672018-04-10 14:48:21 -070047
48cc_defaults {
49 name: "logwrapper_common",
50 defaults: ["logwrapper_defaults"],
51 local_include_dirs: ["include"],
52 srcs: [
Tom Cherry3c11ee32019-09-25 15:01:58 -070053 "logwrap.cpp",
54 "logwrapper.cpp",
Elliott Hughes87812672018-04-10 14:48:21 -070055 ],
Tom Cherry3c11ee32019-09-25 15:01:58 -070056 header_libs: ["libbase_headers"],
Elliott Hughes87812672018-04-10 14:48:21 -070057 shared_libs: ["libcutils", "liblog"],
58}
59
Dan Willemsen33090542016-07-12 22:10:56 -070060cc_binary {
61 name: "logwrapper",
Elliott Hughes87812672018-04-10 14:48:21 -070062 defaults: ["logwrapper_common"],
63}
64
Elliott Hughes87812672018-04-10 14:48:21 -070065cc_binary {
66 name: "logwrapper_vendor",
Elliott Hughese5edc6e2018-04-23 21:50:43 -070067 defaults: ["logwrapper_common"],
Elliott Hughes87812672018-04-10 14:48:21 -070068 stem: "logwrapper",
69 vendor: true,
Dan Willemsen33090542016-07-12 22:10:56 -070070}
Narayan Kamathe783b932017-03-22 11:24:03 +000071
72// ========================================================
73// Benchmark
74// ========================================================
Elliott Hughes87812672018-04-10 14:48:21 -070075
Narayan Kamathe783b932017-03-22 11:24:03 +000076cc_benchmark {
Tom Cherryf392c902019-09-25 17:05:51 -070077 name: "logwrap_fork_execvp_benchmark",
Elliott Hughes87812672018-04-10 14:48:21 -070078 defaults: ["logwrapper_defaults"],
Narayan Kamathe783b932017-03-22 11:24:03 +000079 srcs: [
Tom Cherryf392c902019-09-25 17:05:51 -070080 "logwrap_fork_execvp_benchmark.cpp",
Narayan Kamathe783b932017-03-22 11:24:03 +000081 ],
82 shared_libs: [
83 "libbase",
84 "libcutils",
85 "liblog",
86 "liblogwrap",
87 ],
Narayan Kamathe783b932017-03-22 11:24:03 +000088}