| package { | |
| 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: [ | |
| "//apex_available:platform", | |
| "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", | |
| ], | |
| } | |
| cc_defaults { | |
| name: "large_system_property_node_defaults", | |
| cflags: select(release_flag("RELEASE_LARGE_SYSTEM_PROPERTY_NODE"), { | |
| true: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"], | |
| default: [], | |
| }), | |
| } |