You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.7 KiB
78 lines
1.7 KiB
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "hardware_google_pixel_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
// SPDX-license-identifier-BSD
|
|
default_applicable_licenses: ["hardware_google_pixel_license"],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.thermal@2.0-service.pixel",
|
|
defaults: [
|
|
"hidl_defaults",
|
|
],
|
|
vendor: true,
|
|
relative_install_path: "hw",
|
|
vintf_fragments: ["android.hardware.thermal@2.0-service.pixel.xml"],
|
|
init_rc: [
|
|
"android.hardware.thermal@2.0-service.pixel.rc",
|
|
],
|
|
srcs: [
|
|
"service.cpp",
|
|
"Thermal.cpp",
|
|
"thermal-helper.cpp",
|
|
"utils/config_parser.cpp",
|
|
"utils/thermal_files.cpp",
|
|
"utils/thermal_watcher.cpp",
|
|
"utils/power_files.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"libjsoncpp",
|
|
"libutils",
|
|
"libnl",
|
|
"libbinder_ndk",
|
|
"android.hardware.thermal@1.0",
|
|
"android.hardware.thermal@2.0",
|
|
"android.hardware.power-V1-ndk_platform",
|
|
"pixel-power-ext-V1-ndk_platform"
|
|
],
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-Wextra",
|
|
"-Wunused",
|
|
],
|
|
tidy: true,
|
|
tidy_checks: [
|
|
"android-*",
|
|
"cert-*",
|
|
"clang-analyzer-security*",
|
|
],
|
|
tidy_flags: [
|
|
"-warnings-as-errors=android-*,clang-analyzer-security*,cert-*"
|
|
],
|
|
}
|
|
|
|
sh_binary {
|
|
name: "thermal_logd",
|
|
src: "init.thermal.logging.sh",
|
|
vendor: true,
|
|
init_rc: [
|
|
"pixel-thermal-logd.rc",
|
|
],
|
|
}
|
|
|
|
sh_binary {
|
|
name: "thermal_symlinks",
|
|
src: "init.thermal.symlinks.sh",
|
|
vendor: true,
|
|
init_rc: [
|
|
"pixel-thermal-symlinks.rc",
|
|
],
|
|
}
|