| 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"] | |
| } | |
| } | |
| } |