platform_hardware_libhardwa.../Android.bp
Aditya Choudhary 24a71ace30 Migrate Test Targets to New Android Ownership Model
This CL is created as a best effort to migrate test targets to the new Android ownership model.
It is based on historical data from repository history and insights from git blame.
Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary
attribution in this CL, please create a new CL to fix that.

For detailed guidelines and further information on the migration please refer to the link below,
go/new-android-ownership-model

Bug: 304529413
Test: N/A
Change-Id: I6252960a39589b5e400acecea6745d847813b129
2024-02-02 13:57:59 +00:00

113 lines
2.5 KiB
Text

// Copyright 2006 The Android Open Source Project
package {
default_team: "trendy_team_android_kernel",
default_applicable_licenses: ["hardware_libhardware_legacy_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "hardware_libhardware_legacy_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_library_headers {
name: "libhardware_legacy_headers",
vendor_available: true,
export_include_dirs: ["include"],
header_libs: ["libcutils_headers"],
export_header_lib_headers: ["libcutils_headers"],
}
cc_defaults {
name: "libpower_defaults",
defaults: ["system_suspend_defaults"],
// system_suspend_defaults adds libbinder, but libbpower doesn't need it
// because libpower now uses libbinder_ndk.
exclude_shared_libs: ["libbinder"],
cflags: [
"-Wexit-time-destructors",
"-fno-c++-static-destructors",
],
}
cc_library {
name: "libpower",
defaults: ["libpower_defaults"],
srcs: ["power.cpp"],
export_include_dirs: ["include"],
shared_libs: ["android.system.suspend-V1-ndk"],
vendor_available: true,
vndk: {
enabled: true,
},
apex_available: [
"//apex_available:platform",
"com.android.uwb",
],
min_sdk_version: "Tiramisu",
}
cc_test {
name: "libpower_test",
defaults: ["libpower_defaults"],
srcs: ["power_test.cpp"],
static_libs: [
"libpower",
"android.system.suspend.control.internal-ndk",
"android.system.suspend-V1-ndk",
],
test_suites: ["device-tests"],
require_root: true,
}
cc_library_shared {
name: "libhardware_legacy",
defaults: ["libpower_defaults"],
vendor_available: true,
vndk: {
enabled: true,
},
shared_libs: [
"android.system.suspend-V1-ndk",
"libdl",
],
header_libs: [
"libhardware_legacy_headers",
],
export_header_lib_headers: ["libhardware_legacy_headers"],
export_include_dirs: ["include"],
cflags: [
"-DQEMU_HARDWARE",
"-Wall",
"-Werror",
],
srcs: [
"power.cpp",
"uevent.c",
],
}
cc_test {
name: "block_suspend",
defaults: ["libpower_defaults"],
srcs: ["block_suspend.cpp"],
static_libs: ["libpower"],
shared_libs: [
"android.system.suspend-V1-ndk",
],
gtest: false,
}