|  | package { | 
|  | // See: http://go/android-license-faq | 
|  | // A large-scale-change added 'default_applicable_licenses' to import | 
|  | // all of the 'license_kinds' from "frameworks_native_license" | 
|  | // to get the below license kinds: | 
|  | //   SPDX-license-identifier-Apache-2.0 | 
|  | default_applicable_licenses: ["frameworks_native_license"], | 
|  | } | 
|  |  | 
|  | cc_library_shared { | 
|  | name: "libpowermanager", | 
|  |  | 
|  | srcs: [ | 
|  | "IPowerManager.cpp", | 
|  | "Temperature.cpp", | 
|  | "CoolingDevice.cpp", | 
|  | ":libpowermanager_aidl", | 
|  | ], | 
|  |  | 
|  | aidl: { | 
|  | local_include_dirs: ["include"], | 
|  | include_dirs: [ | 
|  | "frameworks/base/core/java/android/os", | 
|  | ], | 
|  | export_aidl_headers: true | 
|  | }, | 
|  |  | 
|  | shared_libs: [ | 
|  | "libutils", | 
|  | "libbinder", | 
|  | "liblog" | 
|  | ], | 
|  |  | 
|  | cflags: [ | 
|  | "-Wall", | 
|  | "-Werror", | 
|  | "-Wunused", | 
|  | "-Wunreachable-code", | 
|  | ], | 
|  |  | 
|  | local_include_dirs: ["include"], | 
|  | export_include_dirs: [ | 
|  | "include", | 
|  | ], | 
|  | } | 
|  |  | 
|  | cc_test { | 
|  | name: "thermalmanager-test", | 
|  | srcs: ["IThermalManagerTest.cpp", | 
|  | ], | 
|  | cflags: [ | 
|  | "-Wall", | 
|  | "-Werror", | 
|  | "-Wextra", | 
|  | ], | 
|  | shared_libs: [ | 
|  | "libbase", | 
|  | "libhidlbase", | 
|  | "liblog", | 
|  | "libpowermanager", | 
|  | "libbinder", | 
|  | "libutils", | 
|  | ], | 
|  | } |