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.
56 lines
1.3 KiB
56 lines
1.3 KiB
4 months ago
|
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: [
|
||
|
"BatterySaverPolicyConfig.cpp",
|
||
|
"CoolingDevice.cpp",
|
||
|
"ParcelDuration.cpp",
|
||
|
"PowerHalController.cpp",
|
||
|
"PowerHalLoader.cpp",
|
||
|
"PowerHalWrapper.cpp",
|
||
|
"PowerSaveState.cpp",
|
||
|
"Temperature.cpp",
|
||
|
"WorkSource.cpp",
|
||
|
":libpowermanager_aidl",
|
||
|
],
|
||
|
|
||
|
aidl: {
|
||
|
local_include_dirs: ["include"],
|
||
|
include_dirs: [
|
||
|
"frameworks/base/core/java/android/os",
|
||
|
],
|
||
|
export_aidl_headers: true
|
||
|
},
|
||
|
|
||
|
shared_libs: [
|
||
|
"libbinder",
|
||
|
"libhidlbase",
|
||
|
"liblog",
|
||
|
"libutils",
|
||
|
"android.hardware.power@1.0",
|
||
|
"android.hardware.power@1.1",
|
||
|
"android.hardware.power-V2-cpp",
|
||
|
],
|
||
|
|
||
|
cflags: [
|
||
|
"-Wall",
|
||
|
"-Werror",
|
||
|
"-Wunused",
|
||
|
"-Wunreachable-code",
|
||
|
],
|
||
|
|
||
|
local_include_dirs: ["include"],
|
||
|
export_include_dirs: [
|
||
|
"include",
|
||
|
],
|
||
|
}
|