Bob Badour | 3306e49 | 2021-02-25 15:35:37 -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: [ |
Chris Ye | 11857fb | 2020-02-28 21:47:22 -0800 | [diff] [blame] | 14 | "BatterySaverPolicyConfig.cpp", |
Chris Ye | 1a5a888 | 2020-01-15 10:51:47 -0800 | [diff] [blame] | 15 | "CoolingDevice.cpp", |
Kweku Adams | 5c324aa | 2020-05-15 13:05:24 -0700 | [diff] [blame] | 16 | "ParcelDuration.cpp", |
Lais Andrade | 3f7ecc5 | 2020-03-25 23:57:08 +0000 | [diff] [blame] | 17 | "PowerHalController.cpp", |
Lais Andrade | c86c1d2 | 2020-03-30 20:17:42 +0100 | [diff] [blame] | 18 | "PowerHalLoader.cpp", |
Lais Andrade | 4d51f6c | 2020-03-25 10:58:31 +0000 | [diff] [blame] | 19 | "PowerHalWrapper.cpp", |
Chris Ye | 11857fb | 2020-02-28 21:47:22 -0800 | [diff] [blame] | 20 | "PowerSaveState.cpp", |
| 21 | "Temperature.cpp", |
| 22 | "WorkSource.cpp", |
Chris Ye | 1a5a888 | 2020-01-15 10:51:47 -0800 | [diff] [blame] | 23 | ":libpowermanager_aidl", |
| 24 | ], |
| 25 | |
| 26 | aidl: { |
Chris Ye | 2d9b89d | 2020-03-05 15:14:21 -0800 | [diff] [blame] | 27 | local_include_dirs: ["include"], |
Chris Ye | 1a5a888 | 2020-01-15 10:51:47 -0800 | [diff] [blame] | 28 | include_dirs: [ |
| 29 | "frameworks/base/core/java/android/os", |
| 30 | ], |
| 31 | export_aidl_headers: true |
| 32 | }, |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 33 | |
| 34 | shared_libs: [ |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 35 | "libbinder", |
Lais Andrade | 4d51f6c | 2020-03-25 10:58:31 +0000 | [diff] [blame] | 36 | "libhidlbase", |
| 37 | "liblog", |
| 38 | "libutils", |
| 39 | "android.hardware.power@1.0", |
| 40 | "android.hardware.power@1.1", |
Jimmy Shiu | 0b264bb | 2021-03-03 00:30:50 +0800 | [diff] [blame] | 41 | "android.hardware.power-V2-cpp", |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 42 | ], |
| 43 | |
| 44 | cflags: [ |
| 45 | "-Wall", |
| 46 | "-Werror", |
| 47 | "-Wunused", |
| 48 | "-Wunreachable-code", |
| 49 | ], |
Chris Ye | 2d9b89d | 2020-03-05 15:14:21 -0800 | [diff] [blame] | 50 | |
| 51 | local_include_dirs: ["include"], |
| 52 | export_include_dirs: [ |
| 53 | "include", |
| 54 | ], |
Dan Willemsen | e05dc6d | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 55 | } |