blob: d7b6d69ade743bc80467758046751da82007e1f5 [file] [log] [blame]
Yi Jin0a3406f2017-06-22 19:23:11 -07001cc_defaults {
2 name: "incident_helper_defaults",
3
4 cflags: [
5 "-Wall",
6 "-Werror",
7 "-g",
8 "-O0"
9 ],
10
Yi Jin04625ad2017-10-17 18:29:33 -070011 local_include_dirs: [
12 "src/",
13 "src/parsers/",
Yi Jin0a3406f2017-06-22 19:23:11 -070014 ],
15
Yi Jin04625ad2017-10-17 18:29:33 -070016 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 Jin0a3406f2017-06-22 19:23:11 -070024 shared_libs: [
25 "libbase",
26 "liblog",
Yi Jin04625ad2017-10-17 18:29:33 -070027 "libprotoutil",
Yi Jin0a3406f2017-06-22 19:23:11 -070028 "libutils",
29 ],
Yi Jin0a3406f2017-06-22 19:23:11 -070030}
31
32cc_binary {
33 name: "incident_helper",
34 defaults: ["incident_helper_defaults"],
Yi Jin04625ad2017-10-17 18:29:33 -070035 srcs: ["src/main.cpp"],
Yi Jin0a3406f2017-06-22 19:23:11 -070036}
37
38
39cc_test {
40 name: "incident_helper_test",
Yi Jin5e4ce2c2017-11-13 21:06:26 -080041 test_suites: ["device-tests"],
Yi Jin0a3406f2017-06-22 19:23:11 -070042 defaults: ["incident_helper_defaults"],
Yi Jin04625ad2017-10-17 18:29:33 -070043 local_include_dirs: ["src/"],
Yi Jin0a3406f2017-06-22 19:23:11 -070044
45 srcs: [
Yi Jin04625ad2017-10-17 18:29:33 -070046 "tests/*.cpp",
Yi Jin0a3406f2017-06-22 19:23:11 -070047 ],
48
49 data: [
50 "testdata/*",
51 ],
52
53 static_libs: [
54 "libgmock",
Yi Jin04625ad2017-10-17 18:29:33 -070055 "libplatformprotos"
Yi Jin0a3406f2017-06-22 19:23:11 -070056 ],
Joe Onorato62c220b2017-11-18 20:32:56 -080057
58 shared_libs: [
59 "libprotobuf-cpp-full"
60 ],
61 proto: {
62 type: "full",
63 },
Yi Jin04625ad2017-10-17 18:29:33 -070064}