blob: 8a8d23c8c6e9bc60c85d68caee6b26cc0f5cb798 [file] [log] [blame]
Bob Badouraa7d8352021-02-19 13:06:22 -08001package {
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 Cherrye275d6d2017-12-11 23:31:33 -080011cc_library_static {
12 name: "libsystemproperties",
Dennis Shen5951b412023-12-21 19:57:13 +000013 defaults: [
14 "libc_defaults",
15 "large_system_property_node_defaults",
16 ],
dimitry7f048802019-05-03 15:57:34 +020017 native_bridge_supported: true,
Tom Cherrye275d6d2017-12-11 23:31:33 -080018 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 Hughes3019d782019-02-13 12:39:07 -080029 header_libs: [
30 "libasync_safe_headers",
Tom Cherrye275d6d2017-12-11 23:31:33 -080031 ],
32
33 include_dirs: [
34 "bionic/libc",
35 "bionic/libstdc++/include",
36 ],
37 export_include_dirs: ["include"],
Spandan Das0a6cfe92024-01-04 18:06:50 +000038 apex_available: [
39 "com.android.runtime",
40 ],
Tom Cherrye275d6d2017-12-11 23:31:33 -080041}
Tom Cherrya5744e22020-09-01 22:35:56 +000042
43cc_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 Shen5951b412023-12-21 19:57:13 +000059
60soong_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
72soong_config_bool_variable {
73 name: "large_system_property_node",
74}
75
76large_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}