Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "logwrapper_defaults", |
| 3 | cflags: [ |
| 4 | "-Werror", |
| 5 | ], |
| 6 | } |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 7 | |
| 8 | // ======================================================== |
| 9 | // Static and shared library |
| 10 | // ======================================================== |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 11 | |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 12 | cc_library { |
| 13 | name: "liblogwrap", |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 14 | defaults: ["logwrapper_defaults"], |
Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 15 | recovery_available: true, |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 16 | srcs: ["logwrap.c"], |
| 17 | shared_libs: [ |
| 18 | "libcutils", |
| 19 | "liblog", |
| 20 | ], |
| 21 | export_include_dirs: ["include"], |
| 22 | local_include_dirs: ["include"], |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | // ======================================================== |
| 26 | // Executable |
| 27 | // ======================================================== |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 28 | |
| 29 | cc_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 Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 40 | cc_binary { |
| 41 | name: "logwrapper", |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 42 | defaults: ["logwrapper_common"], |
| 43 | } |
| 44 | |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 45 | cc_binary { |
| 46 | name: "logwrapper_vendor", |
Elliott Hughes | a366494 | 2018-04-23 21:50:43 -0700 | [diff] [blame] | 47 | defaults: ["logwrapper_common"], |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 48 | stem: "logwrapper", |
| 49 | vendor: true, |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 50 | } |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 51 | |
| 52 | // ======================================================== |
| 53 | // Benchmark |
| 54 | // ======================================================== |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 55 | |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 56 | cc_benchmark { |
| 57 | name: "android_fork_execvp_ext_benchmark", |
Elliott Hughes | 0b539f3 | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 58 | defaults: ["logwrapper_defaults"], |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 59 | srcs: [ |
| 60 | "android_fork_execvp_ext_benchmark.cpp", |
| 61 | ], |
| 62 | shared_libs: [ |
| 63 | "libbase", |
| 64 | "libcutils", |
| 65 | "liblog", |
| 66 | "liblogwrap", |
| 67 | ], |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 68 | } |