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