Elliott Hughes | 5a4c20b | 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 | 5a4c20b | 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 | 5a4c20b | 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 | 5a4c20b | 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 | 5a4c20b | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 41 | 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. |
| 47 | cc_binary { |
| 48 | name: "logwrapper_vendor", |
| 49 | stem: "logwrapper", |
| 50 | vendor: true, |
| 51 | defaults: ["logwrapper_common"], |
Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 52 | } |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 53 | |
| 54 | // ======================================================== |
| 55 | // Benchmark |
| 56 | // ======================================================== |
Elliott Hughes | 5a4c20b | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 57 | |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 58 | cc_benchmark { |
| 59 | name: "android_fork_execvp_ext_benchmark", |
Elliott Hughes | 5a4c20b | 2018-04-10 14:48:21 -0700 | [diff] [blame] | 60 | defaults: ["logwrapper_defaults"], |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 61 | srcs: [ |
| 62 | "android_fork_execvp_ext_benchmark.cpp", |
| 63 | ], |
| 64 | shared_libs: [ |
| 65 | "libbase", |
| 66 | "libcutils", |
| 67 | "liblog", |
| 68 | "liblogwrap", |
| 69 | ], |
Narayan Kamath | f704193 | 2017-03-22 11:24:03 +0000 | [diff] [blame] | 70 | } |