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.
175 lines
4.1 KiB
175 lines
4.1 KiB
// Copyright (C) 2018 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
//----rk-code----
|
|
soong_config_module_type {
|
|
name: "rk_ebook_hardware_soong_cc_defaults",
|
|
module_type: "cc_defaults",
|
|
config_namespace: "rk_ebook_hardware",
|
|
bool_variables: ["rk_ebook_hardware_en"],
|
|
properties: ["cflags"],
|
|
}
|
|
|
|
rk_ebook_hardware_soong_cc_defaults {
|
|
name: "rk_ebook_hardware_cc_defaults",
|
|
|
|
soong_config_variables: {
|
|
rk_ebook_hardware_en: {
|
|
cflags: [
|
|
"-DRK_EBOOK",
|
|
],
|
|
},
|
|
},
|
|
}
|
|
//---------------
|
|
|
|
cc_defaults {
|
|
name: "system_suspend_defaults",
|
|
shared_libs: [
|
|
"libbase",
|
|
"libbinder",
|
|
"libbinder_ndk",
|
|
"libcutils",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-Wthread-safety",
|
|
],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "system_suspend_stats_defaults",
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
],
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.system.suspend-service",
|
|
relative_install_path: "hw",
|
|
defaults: [
|
|
"system_suspend_defaults",
|
|
"system_suspend_stats_defaults",
|
|
//----rk-code----
|
|
"rk_ebook_hardware_cc_defaults"
|
|
//---------------
|
|
],
|
|
init_rc: ["android.system.suspend-service.rc"],
|
|
vintf_fragments: ["android.system.suspend-service.xml"],
|
|
shared_libs: [
|
|
"android.system.suspend-V1-ndk",
|
|
"android.system.suspend.control-V1-cpp",
|
|
"android.system.suspend.control.internal-cpp",
|
|
"android.system.suspend@1.0",
|
|
"libSuspendProperties",
|
|
],
|
|
srcs: [
|
|
"main.cpp",
|
|
"SuspendControlService.cpp",
|
|
"SystemSuspend.cpp",
|
|
"SystemSuspendHidl.cpp",
|
|
"SystemSuspendAidl.cpp",
|
|
"WakeLockEntryList.cpp",
|
|
"WakeupList.cpp",
|
|
],
|
|
}
|
|
|
|
// Unit tests for ISystemSuspend implementation.
|
|
// Do *NOT* use for compliance with *TS.
|
|
cc_test {
|
|
name: "SystemSuspendV1_0UnitTest",
|
|
defaults: [
|
|
"system_suspend_defaults",
|
|
"system_suspend_stats_defaults",
|
|
],
|
|
static_libs: [
|
|
"android.system.suspend-V1-ndk",
|
|
"android.system.suspend.control-V1-cpp",
|
|
"android.system.suspend.control.internal-cpp",
|
|
"libgmock",
|
|
],
|
|
tidy_timeout_srcs: [
|
|
"SystemSuspendUnitTest.cpp",
|
|
],
|
|
srcs: [
|
|
"SuspendControlService.cpp",
|
|
"SystemSuspend.cpp",
|
|
"SystemSuspendAidl.cpp",
|
|
"SystemSuspendUnitTest.cpp",
|
|
"WakeLockEntryList.cpp",
|
|
"WakeupList.cpp",
|
|
],
|
|
test_suites: ["device-tests"],
|
|
require_root: true,
|
|
}
|
|
|
|
cc_test {
|
|
name: "SystemSuspendV1_0AidlTest",
|
|
srcs: [
|
|
"SystemSuspendAidlTest.cpp",
|
|
],
|
|
shared_libs: [
|
|
"libbinder",
|
|
"libutils",
|
|
],
|
|
static_libs: [
|
|
"android.system.suspend.control-V1-cpp",
|
|
],
|
|
test_suites: [
|
|
"device-tests",
|
|
"vts",
|
|
],
|
|
require_root: true,
|
|
}
|
|
|
|
sh_test {
|
|
name: "SuspendSepolicyTests",
|
|
src: "SuspendSepolicyTests.sh",
|
|
test_suites: [
|
|
"device-tests",
|
|
"vts",
|
|
],
|
|
test_config: "suspend-sepolicy-tests.xml",
|
|
}
|
|
|
|
cc_benchmark {
|
|
name: "SystemSuspendBenchmark",
|
|
defaults: [
|
|
"system_suspend_defaults",
|
|
],
|
|
shared_libs: [
|
|
"android.system.suspend.control-V1-cpp",
|
|
"android.system.suspend.control.internal-cpp",
|
|
"android.system.suspend-V1-ndk",
|
|
],
|
|
srcs: [
|
|
"SystemSuspendBenchmark.cpp",
|
|
],
|
|
}
|
|
|
|
sysprop_library {
|
|
name: "SuspendProperties",
|
|
srcs: ["SuspendProperties.sysprop"],
|
|
property_owner: "Platform",
|
|
}
|