Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 8c98262

Browse files
committed
Replace soong config module types with selects
select statements are a new syntax for conditionals in bp files that require less boilerplate and expose the opportunity for configuring the modules two different ways in a single build. See go/soong-selects for more information. Flag: EXEMPT refactor Bug: 342006386 Test: Presubmits Change-Id: Idb2fecd067139c904108cdae7e9ae3ad9dc75f91
1 parent 4530e56 commit 8c98262

File tree

1 file changed

+5
-22
lines changed

1 file changed

+5
-22
lines changed

libc/system_properties/Android.bp

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,10 @@ cc_benchmark {
5858
],
5959
}
6060

61-
soong_config_module_type {
62-
name: "large_system_property_node_cc_defaults",
63-
module_type: "cc_defaults",
64-
config_namespace: "bionic",
65-
bool_variables: [
66-
"large_system_property_node",
67-
],
68-
properties: [
69-
"cflags",
70-
],
71-
}
72-
73-
soong_config_bool_variable {
74-
name: "large_system_property_node",
75-
}
76-
77-
large_system_property_node_cc_defaults {
61+
cc_defaults {
7862
name: "large_system_property_node_defaults",
79-
soong_config_variables: {
80-
large_system_property_node: {
81-
cflags: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"]
82-
}
83-
}
63+
cflags: select(release_flag("RELEASE_LARGE_SYSTEM_PROPERTY_NODE"), {
64+
true: ["-DLARGE_SYSTEM_PROPERTY_NODE=1"],
65+
default: [],
66+
}),
8467
}

0 commit comments

Comments
 (0)