Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "incident_helper_defaults", |
| 3 | |
| 4 | cflags: [ |
| 5 | "-Wall", |
| 6 | "-Werror", |
| 7 | "-g", |
| 8 | "-O0" |
| 9 | ], |
| 10 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 11 | local_include_dirs: [ |
| 12 | "src/", |
| 13 | "src/parsers/", |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 14 | ], |
| 15 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 16 | srcs: [ |
| 17 | "src/parsers/*.cpp", |
| 18 | "src/TextParserBase.cpp", |
| 19 | "src/ih_util.cpp", |
| 20 | ], |
| 21 | |
| 22 | generated_headers: ["gen-platform-proto-constants"], |
| 23 | |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 24 | shared_libs: [ |
| 25 | "libbase", |
| 26 | "liblog", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 27 | "libprotoutil", |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 28 | "libutils", |
| 29 | ], |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | cc_binary { |
| 33 | name: "incident_helper", |
| 34 | defaults: ["incident_helper_defaults"], |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 35 | srcs: ["src/main.cpp"], |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | |
| 39 | cc_test { |
| 40 | name: "incident_helper_test", |
Yi Jin | 5e4ce2c | 2017-11-13 21:06:26 -0800 | [diff] [blame] | 41 | test_suites: ["device-tests"], |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 42 | defaults: ["incident_helper_defaults"], |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 43 | local_include_dirs: ["src/"], |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 44 | |
| 45 | srcs: [ |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 46 | "tests/*.cpp", |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 47 | ], |
| 48 | |
| 49 | data: [ |
| 50 | "testdata/*", |
| 51 | ], |
| 52 | |
| 53 | static_libs: [ |
| 54 | "libgmock", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 55 | "libplatformprotos" |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 56 | ], |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 57 | |
| 58 | shared_libs: [ |
| 59 | "libprotobuf-cpp-full" |
| 60 | ], |
| 61 | proto: { |
| 62 | type: "full", |
| 63 | }, |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 64 | } |