2020-01-09 11:25:47 -08:00
|
|
|
// Copyright (C) 2017 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2021-02-12 17:07:05 -08:00
|
|
|
package {
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
// all of the 'license_kinds' from "frameworks_base_license"
|
|
|
|
// to get the below license kinds:
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
default_applicable_licenses: ["frameworks_base_license"],
|
|
|
|
}
|
|
|
|
|
2020-01-09 11:25:47 -08:00
|
|
|
java_binary {
|
|
|
|
name: "incident-helper-cmd",
|
|
|
|
wrapper: "incident_helper_cmd",
|
|
|
|
srcs: [
|
|
|
|
"java/**/*.java",
|
|
|
|
],
|
|
|
|
proto: {
|
|
|
|
plugin: "javastream",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2017-06-22 19:23:11 -07:00
|
|
|
cc_defaults {
|
|
|
|
name: "incident_helper_defaults",
|
|
|
|
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-g",
|
|
|
|
"-O0"
|
|
|
|
],
|
|
|
|
|
2017-10-17 18:29:33 -07:00
|
|
|
local_include_dirs: [
|
|
|
|
"src/",
|
|
|
|
"src/parsers/",
|
|
|
|
],
|
|
|
|
|
2017-06-22 19:23:11 -07:00
|
|
|
srcs: [
|
2017-10-17 18:29:33 -07:00
|
|
|
"src/parsers/*.cpp",
|
|
|
|
"src/TextParserBase.cpp",
|
|
|
|
"src/ih_util.cpp",
|
2017-06-22 19:23:11 -07:00
|
|
|
],
|
|
|
|
|
2020-01-28 22:04:20 -08:00
|
|
|
generated_headers: ["framework-cppstream-protos"],
|
2017-10-17 18:29:33 -07:00
|
|
|
|
2017-06-22 19:23:11 -07:00
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"liblog",
|
2017-10-17 18:29:33 -07:00
|
|
|
"libprotoutil",
|
2017-06-22 19:23:11 -07:00
|
|
|
"libutils",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "incident_helper",
|
|
|
|
defaults: ["incident_helper_defaults"],
|
2017-10-17 18:29:33 -07:00
|
|
|
srcs: ["src/main.cpp"],
|
2017-06-22 19:23:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cc_test {
|
|
|
|
name: "incident_helper_test",
|
2017-11-13 21:06:26 -08:00
|
|
|
test_suites: ["device-tests"],
|
2017-06-22 19:23:11 -07:00
|
|
|
defaults: ["incident_helper_defaults"],
|
2017-10-17 18:29:33 -07:00
|
|
|
local_include_dirs: ["src/"],
|
2017-06-22 19:23:11 -07:00
|
|
|
|
|
|
|
srcs: [
|
2017-10-17 18:29:33 -07:00
|
|
|
"tests/*.cpp",
|
2017-06-22 19:23:11 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
data: [
|
|
|
|
"testdata/*",
|
|
|
|
],
|
|
|
|
|
|
|
|
static_libs: [
|
|
|
|
"libgmock",
|
2017-10-17 18:29:33 -07:00
|
|
|
"libplatformprotos"
|
2017-06-22 19:23:11 -07:00
|
|
|
],
|
2017-11-18 20:32:56 -08:00
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libprotobuf-cpp-full"
|
|
|
|
],
|
|
|
|
proto: {
|
|
|
|
type: "full",
|
|
|
|
},
|
2017-10-17 18:29:33 -07:00
|
|
|
}
|