blob: ff478650fd764013f9abece7fb8adc08474acb33 [file] [log] [blame]
micky38798cdea42022-11-16 10:29:48 +01001// Omni soong configs
2soong_config_module_type {
3 name: "vendor_init",
4 module_type: "cc_defaults",
5 config_namespace: "omniGlobalVars",
6 value_variables: ["target_init_vendor_lib"],
7 bool_variables: ["target_create_device_symlinks"],
8 properties: [
9 "cflags",
10 "whole_static_libs",
11 ],
12}
13
14vendor_init {
15 name: "vendor_init_defaults",
16 soong_config_variables: {
17 target_init_vendor_lib: {
18 whole_static_libs: ["%s"],
19 },
20 target_create_device_symlinks: {
21 cflags: ["-DTARGET_CREATE_DEVICE_SYMLINKS"],
22 },
23 },
24}
25
26soong_config_module_type {
27 name: "surfaceflinger_udfps_lib",
28 module_type: "cc_defaults",
29 config_namespace: "omniGlobalVars",
30 value_variables: ["target_surfaceflinger_udfps_lib"],
31 properties: [
32 "cppflags",
33 "whole_static_libs",
34 ],
35}
36
37surfaceflinger_udfps_lib {
38 name: "surfaceflinger_udfps_lib_defaults",
39 soong_config_variables: {
40 target_surfaceflinger_udfps_lib: {
41 cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"],
42 whole_static_libs: ["%s"],
43 },
44 },
45}
46
47soong_config_module_type {
48 name: "use_sdclang",
49 module_type: "cc_defaults",
50 config_namespace: "omniGlobalVars",
51 bool_variables: ["target_use_sdclang"],
52 properties: [
53 "cppflags",
54 ],
55}
56
57use_sdclang {
58 name: "use_sdclang_defaults",
59 soong_config_variables: {
60 target_use_sdclang: {
61 cppflags: ["-DTARGET_USE_SDCLANG"],
62 },
63 },
64}
65
66soong_config_module_type {
67 name: "camera_client_info",
68 module_type: "cc_defaults",
69 config_namespace: "omniGlobalVars",
70 bool_variables: ["target_camera_needs_client_info"],
71 properties: [
72 "cppflags",
73 ],
74}
75
76camera_client_info {
77 name: "camera_client_info_defaults",
78 soong_config_variables: {
79 target_camera_needs_client_info: {
80 cppflags: ["-DTARGET_CAMERA_NEEDS_CLIENT_INFO"],
81 },
82 },
83}
84
85soong_config_module_type {
86 name: "enforce_ab_ota_partition_list",
87 module_type: "cc_defaults",
88 config_namespace: "omniGlobalVars",
89 bool_variables: ["target_enforce_ab_ota_partition_list"],
90 properties: [
91 "cppflags",
92 ],
93}
94
95enforce_ab_ota_partition_list {
96 name: "enforce_ab_ota_partition_list_defaults",
97 soong_config_variables: {
98 target_enforce_ab_ota_partition_list: {
99 cppflags: ["-DTARGET_ENFORCE_AB_OTA_PARTITION_LIST"],
100 },
101 },
102}
103
104soong_config_module_type {
105 name: "enable_op_fastchg",
106 module_type: "cc_defaults",
107 config_namespace: "omniGlobalVars",
108 bool_variables: ["healthd_enable_op_fastchg"],
109 properties: ["cflags"],
110}
111
112enable_op_fastchg {
113 name: "enable_op_fastchg_defaults",
114 soong_config_variables: {
115 healthd_enable_op_fastchg: {
116 cflags: ["-DHEALTHD_ENABLE_OP_FASTCHG_CHECK"],
117 },
118 },
119}
120
121soong_config_module_type {
122 name: "use_battery_info",
123 module_type: "cc_defaults",
124 config_namespace: "omniGlobalVars",
125 bool_variables: ["healthd_use_battery_info"],
126 properties: ["cflags"],
127}
128
129use_battery_info {
130 name: "use_battery_info_defaults",
131 soong_config_variables: {
132 healthd_use_battery_info: {
133 cflags: ["-DHEALTHD_USE_BATTERY_INFO"],
134 },
135 },
136}
137
138soong_config_module_type {
139 name: "needsHWCOnFirstRef",
140 module_type: "cc_defaults",
141 config_namespace: "omniGlobalVars",
142 bool_variables: ["targetNeedsHWCOnFirstRef"],
143 properties: ["cppflags"],
144}
145
146needsHWCOnFirstRef {
147 name: "needsHWCOnFirstRef_defaults",
148 soong_config_variables: {
149 targetNeedsHWCOnFirstRef: {
150 cppflags: ["-DTARGET_NEEDS_HWC_ONFIRSTREF"],
151 },
152 },
153}
154
155soong_config_module_type {
156 name: "gralloc_handle_reserved_size",
157 module_type: "cc_defaults",
158 config_namespace: "omniGlobalVars",
159 bool_variables: ["gralloc_handle_has_reserved_size"],
160 properties: ["export_cflags"],
161}
162
163gralloc_handle_reserved_size {
164 name: "gralloc_handle_has_reserved_size_defaults",
165 soong_config_variables: {
166 gralloc_handle_has_reserved_size: {
167 export_cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"],
168 },
169 },
170}
171
172// QCOM specific config modules
173soong_config_module_type {
174 name: "metadata_fde_key",
175 module_type: "cc_defaults",
176 config_namespace: "omniQcomVars",
177 bool_variables: ["uses_metadata_as_fde_key"],
178 properties: [
179 "cppflags",
180 ],
181}
182
183metadata_fde_key {
184 name: "metadata_fde_key_defaults",
185 soong_config_variables: {
186 uses_metadata_as_fde_key: {
187 cppflags: ["-DTARGET_USES_METADATA_AS_FDE_KEY"],
188 },
189 },
190}
191
192soong_config_module_type {
193 name: "enable_tricolor_led",
194 module_type: "cc_defaults",
195 config_namespace: "omniQcomVars",
196 bool_variables: ["healthd_enable_tricolor_led"],
197 properties: ["cflags"],
198}
199
200enable_tricolor_led {
201 name: "enable_tricolor_led_defaults",
202 soong_config_variables: {
203 healthd_enable_tricolor_led: {
204 cflags: ["-DHEALTHD_ENABLE_TRICOLOR_LED"],
205 },
206 },
207}
208
209soong_config_module_type {
210 name: "vold_hw_fde",
211 module_type: "cc_defaults",
212 config_namespace: "omniQcomVars",
213 bool_variables: ["supports_hw_fde"],
214 properties: [
215 "cflags",
216 "header_libs",
217 "shared_libs",
218 ],
219}
220
221vold_hw_fde {
222 name: "vold_hw_fde_defaults",
223 soong_config_variables: {
224 supports_hw_fde: {
225 cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"],
226 header_libs: ["libcryptfs_hw_headers"],
227 shared_libs: ["libcryptfs_hw"],
228 },
229 },
230}
231
232soong_config_module_type {
233 name: "vold_hw_fde_perf",
234 module_type: "cc_defaults",
235 config_namespace: "omniQcomVars",
236 bool_variables: ["supports_hw_fde_perf"],
237 properties: [
238 "cflags",
239 "shared_libs",
240 ],
241}
242
243vold_hw_fde_perf {
244 name: "vold_hw_fde_perf_defaults",
245 soong_config_variables: {
246 supports_hw_fde_perf: {
247 cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"],
248 shared_libs: ["libcryptfs_hw"],
249 },
250 },
251}