1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "hardware_google_pixel_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 // SPDX-license-identifier-BSD 8 default_applicable_licenses: ["hardware_google_pixel_license"], 9} 10 11cc_binary { 12 name: "android.hardware.thermal@2.0-service.pixel", 13 defaults: [ 14 "hidl_defaults", 15 ], 16 vendor: true, 17 relative_install_path: "hw", 18 vintf_fragments: ["android.hardware.thermal@2.0-service.pixel.xml"], 19 init_rc: [ 20 "android.hardware.thermal@2.0-service.pixel.rc", 21 ], 22 srcs: [ 23 "service.cpp", 24 "Thermal.cpp", 25 "thermal-helper.cpp", 26 "utils/config_parser.cpp", 27 "utils/thermal_files.cpp", 28 "utils/thermal_watcher.cpp", 29 "utils/power_files.cpp", 30 ], 31 shared_libs: [ 32 "libbase", 33 "libcutils", 34 "libhidlbase", 35 "libjsoncpp", 36 "libutils", 37 "libnl", 38 "libbinder_ndk", 39 "android.hardware.thermal@1.0", 40 "android.hardware.thermal@2.0", 41 "android.hardware.power-V1-ndk_platform", 42 "pixel-power-ext-V1-ndk_platform" 43 ], 44 cflags: [ 45 "-Wall", 46 "-Werror", 47 "-Wextra", 48 "-Wunused", 49 ], 50 tidy: true, 51 tidy_checks: [ 52 "android-*", 53 "cert-*", 54 "clang-analyzer-security*", 55 ], 56 tidy_flags: [ 57 "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*" 58 ], 59} 60 61sh_binary { 62 name: "thermal_logd", 63 src: "init.thermal.logging.sh", 64 vendor: true, 65 init_rc: [ 66 "pixel-thermal-logd.rc", 67 ], 68} 69 70sh_binary { 71 name: "thermal_symlinks", 72 src: "init.thermal.symlinks.sh", 73 vendor: true, 74 init_rc: [ 75 "pixel-thermal-symlinks.rc", 76 ], 77} 78