| Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 1 | package { |
| 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 "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
| Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 10 | cc_library_shared { |
| 11 | name: "libpowermanager", |
| 12 | |
| Chris Ye | 1a5a888 | 2020-01-15 10:51:47 -0800 | [diff] [blame] | 13 | srcs: [ |
| 14 | "IPowerManager.cpp", |
| 15 | "Temperature.cpp", |
| 16 | "CoolingDevice.cpp", |
| 17 | ":libpowermanager_aidl", |
| 18 | ], |
| 19 | |
| 20 | aidl: { |
| Chris Ye | 80826e0 | 2020-03-05 15:14:21 -0800 | [diff] [blame] | 21 | local_include_dirs: ["include"], |
| Chris Ye | 1a5a888 | 2020-01-15 10:51:47 -0800 | [diff] [blame] | 22 | include_dirs: [ |
| 23 | "frameworks/base/core/java/android/os", |
| 24 | ], |
| 25 | export_aidl_headers: true |
| 26 | }, |
| Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 27 | |
| 28 | shared_libs: [ |
| 29 | "libutils", |
| 30 | "libbinder", |
| Chris Ye | 1a5a888 | 2020-01-15 10:51:47 -0800 | [diff] [blame] | 31 | "liblog" |
| Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 32 | ], |
| 33 | |
| 34 | cflags: [ |
| 35 | "-Wall", |
| 36 | "-Werror", |
| 37 | "-Wunused", |
| 38 | "-Wunreachable-code", |
| 39 | ], |
| Chris Ye | 80826e0 | 2020-03-05 15:14:21 -0800 | [diff] [blame] | 40 | |
| 41 | local_include_dirs: ["include"], |
| 42 | export_include_dirs: [ |
| 43 | "include", |
| 44 | ], |
| Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 45 | } |
| Chris Ye | 1a5a888 | 2020-01-15 10:51:47 -0800 | [diff] [blame] | 46 | |
| 47 | cc_test { |
| 48 | name: "thermalmanager-test", |
| 49 | srcs: ["IThermalManagerTest.cpp", |
| 50 | ], |
| 51 | cflags: [ |
| 52 | "-Wall", |
| 53 | "-Werror", |
| 54 | "-Wextra", |
| 55 | ], |
| 56 | shared_libs: [ |
| 57 | "libbase", |
| 58 | "libhidlbase", |
| 59 | "liblog", |
| 60 | "libpowermanager", |
| 61 | "libbinder", |
| 62 | "libutils", |
| 63 | ], |
| 64 | } |