62c220b20b
This lets us include frameworks protos, and use the constants and messages from them. Change-Id: I609d6e524f780e6a5beea543a68561bede47813e Test: make
65 lines
1.0 KiB
Plaintext
65 lines
1.0 KiB
Plaintext
cc_defaults {
|
|
name: "incident_helper_defaults",
|
|
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-g",
|
|
"-O0"
|
|
],
|
|
|
|
local_include_dirs: [
|
|
"src/",
|
|
"src/parsers/",
|
|
],
|
|
|
|
srcs: [
|
|
"src/parsers/*.cpp",
|
|
"src/TextParserBase.cpp",
|
|
"src/ih_util.cpp",
|
|
],
|
|
|
|
generated_headers: ["gen-platform-proto-constants"],
|
|
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
"libprotoutil",
|
|
"libutils",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "incident_helper",
|
|
defaults: ["incident_helper_defaults"],
|
|
srcs: ["src/main.cpp"],
|
|
}
|
|
|
|
|
|
cc_test {
|
|
name: "incident_helper_test",
|
|
test_suites: ["device-tests"],
|
|
defaults: ["incident_helper_defaults"],
|
|
local_include_dirs: ["src/"],
|
|
|
|
srcs: [
|
|
"tests/*.cpp",
|
|
],
|
|
|
|
data: [
|
|
"testdata/*",
|
|
],
|
|
|
|
static_libs: [
|
|
"libgmock",
|
|
"libplatformprotos"
|
|
],
|
|
|
|
shared_libs: [
|
|
"libprotobuf-cpp-full"
|
|
],
|
|
proto: {
|
|
type: "full",
|
|
},
|
|
}
|