platform_bionic/libc/system_properties/Android.bp
Aditya Choudhary 829c064ccc Merge "Migrate Test Targets to New Android Ownership Model" into main am: d7144fcdf0 am: 72f82334d5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2946528

Change-Id: Ib29cccd2cba3862f451518437b56421ff031c2d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-04 22:14:00 +00:00

84 lines
2 KiB
Text

package {
default_team: "trendy_team_native_tools_libraries",
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "bionic_libc_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-BSD
default_applicable_licenses: ["bionic_libc_license"],
}
cc_library_static {
name: "libsystemproperties",
defaults: [
"libc_defaults",
"large_system_property_node_defaults",
],
native_bridge_supported: true,
srcs: [
"context_node.cpp",
"contexts_split.cpp",
"contexts_serialized.cpp",
"prop_area.cpp",
"prop_info.cpp",
"system_properties.cpp",
],
whole_static_libs: [
"libpropertyinfoparser",
],
header_libs: [
"libasync_safe_headers",
],
include_dirs: [
"bionic/libc",
"bionic/libstdc++/include",
],
export_include_dirs: ["include"],
apex_available: [
"com.android.runtime",
],
}
cc_benchmark {
name: "property_context_lookup_benchmark",
srcs: [
"context_lookup_benchmark.cpp",
],
include_dirs: [
"bionic/libc",
],
shared_libs: ["libbase"],
static_libs: [
"libpropertyinfoserializer",
"libsystemproperties",
"libasync_safe",
],
}
soong_config_module_type {
name: "large_system_property_node_cc_defaults",
module_type: "cc_defaults",
config_namespace: "bionic",
bool_variables: [
"large_system_property_node",
],
properties: [
"cflags",
],
}
soong_config_bool_variable {
name: "large_system_property_node",
}
large_system_property_node_cc_defaults {
name: "large_system_property_node_defaults",
soong_config_variables: {
large_system_property_node: {
cflags: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"]
}
}
}