1cc_defaults {
2    name: "incident_helper_defaults",
3
4    cflags: [
5        "-Wall",
6        "-Werror",
7        "-g",
8        "-O0"
9    ],
10
11    local_include_dirs: [
12        "src/",
13        "src/parsers/",
14    ],
15
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
24    shared_libs: [
25        "libbase",
26        "liblog",
27        "libprotoutil",
28        "libutils",
29    ],
30}
31
32cc_binary {
33    name: "incident_helper",
34    defaults: ["incident_helper_defaults"],
35    srcs: ["src/main.cpp"],
36}
37
38
39cc_test {
40    name: "incident_helper_test",
41    test_suites: ["device-tests"],
42    defaults: ["incident_helper_defaults"],
43    local_include_dirs: ["src/"],
44
45    srcs: [
46        "tests/*.cpp",
47    ],
48
49    data: [
50        "testdata/*",
51    ],
52
53    static_libs: [
54        "libgmock",
55        "libplatformprotos"
56    ],
57
58    shared_libs: [
59        "libprotobuf-cpp-full"
60    ],
61    proto: {
62        type: "full",
63    },
64}
65