blob: e2fce34b9515bd7d7e6da04467a989c7a168d093 [file] [log] [blame]
Bob Badouraa7d8352021-02-19 13:06:22 -08001package {
Aditya Choudharyd9d37c02024-02-02 13:57:12 +00002 default_team: "trendy_team_native_tools_libraries",
Bob Badouraa7d8352021-02-19 13:06:22 -08003 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "bionic_libc_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 // SPDX-license-identifier-BSD
9 default_applicable_licenses: ["bionic_libc_license"],
10}
11
Tom Cherrye275d6d2017-12-11 23:31:33 -080012cc_library_static {
13 name: "libsystemproperties",
Dennis Shen5951b412023-12-21 19:57:13 +000014 defaults: [
15 "libc_defaults",
16 "large_system_property_node_defaults",
17 ],
dimitry7f048802019-05-03 15:57:34 +020018 native_bridge_supported: true,
Tom Cherrye275d6d2017-12-11 23:31:33 -080019 srcs: [
20 "context_node.cpp",
21 "contexts_split.cpp",
22 "contexts_serialized.cpp",
23 "prop_area.cpp",
24 "prop_info.cpp",
25 "system_properties.cpp",
26 ],
27 whole_static_libs: [
28 "libpropertyinfoparser",
29 ],
Elliott Hughes3019d782019-02-13 12:39:07 -080030 header_libs: [
31 "libasync_safe_headers",
Tom Cherrye275d6d2017-12-11 23:31:33 -080032 ],
33
34 include_dirs: [
35 "bionic/libc",
36 "bionic/libstdc++/include",
37 ],
38 export_include_dirs: ["include"],
Spandan Das0a6cfe92024-01-04 18:06:50 +000039 apex_available: [
40 "com.android.runtime",
41 ],
Tom Cherrye275d6d2017-12-11 23:31:33 -080042}
Tom Cherrya5744e22020-09-01 22:35:56 +000043
44cc_benchmark {
45 name: "property_context_lookup_benchmark",
46 srcs: [
47 "context_lookup_benchmark.cpp",
48 ],
49 include_dirs: [
50 "bionic/libc",
51 ],
52
53 shared_libs: ["libbase"],
54 static_libs: [
55 "libpropertyinfoserializer",
56 "libsystemproperties",
57 "libasync_safe",
58 ],
59}
Dennis Shen5951b412023-12-21 19:57:13 +000060
Cole Faust8c982622024-08-19 12:45:37 -070061cc_defaults {
Dennis Shen5951b412023-12-21 19:57:13 +000062 name: "large_system_property_node_defaults",
Cole Faust8c982622024-08-19 12:45:37 -070063 cflags: select(release_flag("RELEASE_LARGE_SYSTEM_PROPERTY_NODE"), {
64 true: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"],
65 default: [],
66 }),
Dennis Shen5951b412023-12-21 19:57:13 +000067}