Dan Willemsen | 45f0524 | 2016-07-12 22:10:56 -0700 | [diff] [blame] | 1 | |
| 2 | |
| 3 | // ======================================================== |
| 4 | // Static and shared library |
| 5 | // ======================================================== |
| 6 | cc_library { |
| 7 | name: "liblogwrap", |
| 8 | srcs: ["logwrap.c"], |
| 9 | shared_libs: [ |
| 10 | "libcutils", |
| 11 | "liblog", |
| 12 | ], |
| 13 | export_include_dirs: ["include"], |
| 14 | local_include_dirs: ["include"], |
| 15 | cflags: [ |
| 16 | "-Werror", |
| 17 | "-std=gnu99", |
| 18 | ], |
| 19 | } |
| 20 | |
| 21 | // ======================================================== |
| 22 | // Executable |
| 23 | // ======================================================== |
| 24 | cc_binary { |
| 25 | name: "logwrapper", |
| 26 | srcs: ["logwrapper.c"], |
| 27 | static_libs: [ |
| 28 | "liblog", |
| 29 | "liblogwrap", |
| 30 | "libcutils", |
| 31 | ], |
| 32 | cflags: [ |
| 33 | "-Werror", |
| 34 | "-std=gnu99", |
| 35 | ], |
| 36 | } |