Bob Badour | aa7d835 | 2021-02-19 13:06:22 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "bionic_libc_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | // SPDX-license-identifier-BSD |
| 8 | default_applicable_licenses: ["bionic_libc_license"], |
| 9 | } |
| 10 | |
Tom Cherry | e275d6d | 2017-12-11 23:31:33 -0800 | [diff] [blame] | 11 | cc_library_static { |
| 12 | name: "libsystemproperties", |
Dennis Shen | 5951b41 | 2023-12-21 19:57:13 +0000 | [diff] [blame^] | 13 | defaults: [ |
| 14 | "libc_defaults", |
| 15 | "large_system_property_node_defaults", |
| 16 | ], |
dimitry | 7f04880 | 2019-05-03 15:57:34 +0200 | [diff] [blame] | 17 | native_bridge_supported: true, |
Tom Cherry | e275d6d | 2017-12-11 23:31:33 -0800 | [diff] [blame] | 18 | srcs: [ |
| 19 | "context_node.cpp", |
| 20 | "contexts_split.cpp", |
| 21 | "contexts_serialized.cpp", |
| 22 | "prop_area.cpp", |
| 23 | "prop_info.cpp", |
| 24 | "system_properties.cpp", |
| 25 | ], |
| 26 | whole_static_libs: [ |
| 27 | "libpropertyinfoparser", |
| 28 | ], |
Elliott Hughes | 3019d78 | 2019-02-13 12:39:07 -0800 | [diff] [blame] | 29 | header_libs: [ |
| 30 | "libasync_safe_headers", |
Tom Cherry | e275d6d | 2017-12-11 23:31:33 -0800 | [diff] [blame] | 31 | ], |
| 32 | |
| 33 | include_dirs: [ |
| 34 | "bionic/libc", |
| 35 | "bionic/libstdc++/include", |
| 36 | ], |
| 37 | export_include_dirs: ["include"], |
Spandan Das | 0a6cfe9 | 2024-01-04 18:06:50 +0000 | [diff] [blame] | 38 | apex_available: [ |
| 39 | "com.android.runtime", |
| 40 | ], |
Tom Cherry | e275d6d | 2017-12-11 23:31:33 -0800 | [diff] [blame] | 41 | } |
Tom Cherry | a5744e2 | 2020-09-01 22:35:56 +0000 | [diff] [blame] | 42 | |
| 43 | cc_benchmark { |
| 44 | name: "property_context_lookup_benchmark", |
| 45 | srcs: [ |
| 46 | "context_lookup_benchmark.cpp", |
| 47 | ], |
| 48 | include_dirs: [ |
| 49 | "bionic/libc", |
| 50 | ], |
| 51 | |
| 52 | shared_libs: ["libbase"], |
| 53 | static_libs: [ |
| 54 | "libpropertyinfoserializer", |
| 55 | "libsystemproperties", |
| 56 | "libasync_safe", |
| 57 | ], |
| 58 | } |
Dennis Shen | 5951b41 | 2023-12-21 19:57:13 +0000 | [diff] [blame^] | 59 | |
| 60 | soong_config_module_type { |
| 61 | name: "large_system_property_node_cc_defaults", |
| 62 | module_type: "cc_defaults", |
| 63 | config_namespace: "bionic", |
| 64 | bool_variables: [ |
| 65 | "large_system_property_node", |
| 66 | ], |
| 67 | properties: [ |
| 68 | "cflags", |
| 69 | ], |
| 70 | } |
| 71 | |
| 72 | soong_config_bool_variable { |
| 73 | name: "large_system_property_node", |
| 74 | } |
| 75 | |
| 76 | large_system_property_node_cc_defaults { |
| 77 | name: "large_system_property_node_defaults", |
| 78 | soong_config_variables: { |
| 79 | large_system_property_node: { |
| 80 | cflags: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"] |
| 81 | } |
| 82 | } |
| 83 | } |