micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 1 | // Omni soong configs |
| 2 | soong_config_module_type { |
micky387 | 7cf172d | 2023-07-24 16:09:22 +0200 | [diff] [blame] | 3 | name: "omni_launcher3", |
| 4 | module_type: "java_defaults", |
| 5 | config_namespace: "omniGlobalVars", |
| 6 | bool_variables: [ |
| 7 | "launcher3Gapps", |
| 8 | "launcher3Mock", |
| 9 | ], |
| 10 | properties: ["static_libs"], |
| 11 | } |
| 12 | |
| 13 | omni_launcher3 { |
| 14 | name: "omni_launcher3_defaults", |
| 15 | soong_config_variables: { |
| 16 | launcher3Gapps: { |
| 17 | static_libs: ["Launcher3QuickStepLibGoogle"], |
| 18 | }, |
| 19 | launcher3Mock: { |
| 20 | static_libs: ["Launcher3QuickStepLibMock"], |
| 21 | }, |
| 22 | }, |
| 23 | } |
| 24 | |
| 25 | soong_config_module_type { |
micky387 | 48dced5 | 2023-11-15 22:07:14 +0100 | [diff] [blame^] | 26 | name: "omni_weekly_build", |
| 27 | module_type: "cc_defaults", |
| 28 | config_namespace: "omniGlobalVars", |
| 29 | bool_variables: [ |
| 30 | "useWeekly", |
| 31 | ], |
| 32 | properties: ["export_cflags"], |
| 33 | } |
| 34 | |
| 35 | omni_weekly_build { |
| 36 | name: "omni_weekly_build_defaults", |
| 37 | soong_config_variables: { |
| 38 | useWeekly: { |
| 39 | export_cflags: ["-DUSE_WEEKLY_BUILD"], |
| 40 | }, |
| 41 | }, |
| 42 | } |
| 43 | |
| 44 | soong_config_module_type { |
LuK1337 | 664bf64 | 2023-06-14 21:52:43 +0200 | [diff] [blame] | 45 | name: "aapt_version_code", |
| 46 | module_type: "java_defaults", |
| 47 | config_namespace: "omniGlobalVars", |
| 48 | value_variables: ["aapt_version_code"], |
| 49 | properties: ["aaptflags"], |
| 50 | } |
| 51 | |
| 52 | aapt_version_code { |
| 53 | name: "aapt_version_code_defaults", |
| 54 | soong_config_variables: { |
| 55 | aapt_version_code: { |
| 56 | aaptflags: [ |
| 57 | "--version-code", |
| 58 | "%s", |
| 59 | ], |
| 60 | }, |
| 61 | }, |
| 62 | } |
| 63 | |
| 64 | soong_config_module_type { |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 65 | name: "vendor_init", |
| 66 | module_type: "cc_defaults", |
| 67 | config_namespace: "omniGlobalVars", |
| 68 | value_variables: ["target_init_vendor_lib"], |
| 69 | bool_variables: ["target_create_device_symlinks"], |
| 70 | properties: [ |
| 71 | "cflags", |
| 72 | "whole_static_libs", |
| 73 | ], |
| 74 | } |
| 75 | |
| 76 | vendor_init { |
| 77 | name: "vendor_init_defaults", |
| 78 | soong_config_variables: { |
| 79 | target_init_vendor_lib: { |
| 80 | whole_static_libs: ["%s"], |
| 81 | }, |
| 82 | target_create_device_symlinks: { |
| 83 | cflags: ["-DTARGET_CREATE_DEVICE_SYMLINKS"], |
| 84 | }, |
| 85 | }, |
| 86 | } |
| 87 | |
| 88 | soong_config_module_type { |
| 89 | name: "surfaceflinger_udfps_lib", |
| 90 | module_type: "cc_defaults", |
| 91 | config_namespace: "omniGlobalVars", |
| 92 | value_variables: ["target_surfaceflinger_udfps_lib"], |
| 93 | properties: [ |
| 94 | "cppflags", |
| 95 | "whole_static_libs", |
| 96 | ], |
| 97 | } |
| 98 | |
| 99 | surfaceflinger_udfps_lib { |
| 100 | name: "surfaceflinger_udfps_lib_defaults", |
| 101 | soong_config_variables: { |
| 102 | target_surfaceflinger_udfps_lib: { |
| 103 | cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"], |
| 104 | whole_static_libs: ["%s"], |
| 105 | }, |
| 106 | }, |
| 107 | } |
| 108 | |
| 109 | soong_config_module_type { |
| 110 | name: "use_sdclang", |
| 111 | module_type: "cc_defaults", |
| 112 | config_namespace: "omniGlobalVars", |
| 113 | bool_variables: ["target_use_sdclang"], |
| 114 | properties: [ |
| 115 | "cppflags", |
| 116 | ], |
| 117 | } |
| 118 | |
| 119 | use_sdclang { |
| 120 | name: "use_sdclang_defaults", |
| 121 | soong_config_variables: { |
| 122 | target_use_sdclang: { |
| 123 | cppflags: ["-DTARGET_USE_SDCLANG"], |
| 124 | }, |
| 125 | }, |
| 126 | } |
| 127 | |
| 128 | soong_config_module_type { |
| 129 | name: "camera_client_info", |
| 130 | module_type: "cc_defaults", |
| 131 | config_namespace: "omniGlobalVars", |
| 132 | bool_variables: ["target_camera_needs_client_info"], |
| 133 | properties: [ |
| 134 | "cppflags", |
| 135 | ], |
| 136 | } |
| 137 | |
| 138 | camera_client_info { |
| 139 | name: "camera_client_info_defaults", |
| 140 | soong_config_variables: { |
| 141 | target_camera_needs_client_info: { |
| 142 | cppflags: ["-DTARGET_CAMERA_NEEDS_CLIENT_INFO"], |
| 143 | }, |
| 144 | }, |
| 145 | } |
| 146 | |
| 147 | soong_config_module_type { |
| 148 | name: "enforce_ab_ota_partition_list", |
| 149 | module_type: "cc_defaults", |
| 150 | config_namespace: "omniGlobalVars", |
| 151 | bool_variables: ["target_enforce_ab_ota_partition_list"], |
| 152 | properties: [ |
| 153 | "cppflags", |
| 154 | ], |
| 155 | } |
| 156 | |
| 157 | enforce_ab_ota_partition_list { |
| 158 | name: "enforce_ab_ota_partition_list_defaults", |
| 159 | soong_config_variables: { |
| 160 | target_enforce_ab_ota_partition_list: { |
| 161 | cppflags: ["-DTARGET_ENFORCE_AB_OTA_PARTITION_LIST"], |
| 162 | }, |
| 163 | }, |
| 164 | } |
| 165 | |
| 166 | soong_config_module_type { |
| 167 | name: "enable_op_fastchg", |
| 168 | module_type: "cc_defaults", |
| 169 | config_namespace: "omniGlobalVars", |
| 170 | bool_variables: ["healthd_enable_op_fastchg"], |
| 171 | properties: ["cflags"], |
| 172 | } |
| 173 | |
| 174 | enable_op_fastchg { |
| 175 | name: "enable_op_fastchg_defaults", |
| 176 | soong_config_variables: { |
| 177 | healthd_enable_op_fastchg: { |
| 178 | cflags: ["-DHEALTHD_ENABLE_OP_FASTCHG_CHECK"], |
| 179 | }, |
| 180 | }, |
| 181 | } |
| 182 | |
| 183 | soong_config_module_type { |
| 184 | name: "use_battery_info", |
| 185 | module_type: "cc_defaults", |
| 186 | config_namespace: "omniGlobalVars", |
| 187 | bool_variables: ["healthd_use_battery_info"], |
| 188 | properties: ["cflags"], |
| 189 | } |
| 190 | |
| 191 | use_battery_info { |
| 192 | name: "use_battery_info_defaults", |
| 193 | soong_config_variables: { |
| 194 | healthd_use_battery_info: { |
| 195 | cflags: ["-DHEALTHD_USE_BATTERY_INFO"], |
| 196 | }, |
| 197 | }, |
| 198 | } |
| 199 | |
| 200 | soong_config_module_type { |
| 201 | name: "needsHWCOnFirstRef", |
| 202 | module_type: "cc_defaults", |
| 203 | config_namespace: "omniGlobalVars", |
| 204 | bool_variables: ["targetNeedsHWCOnFirstRef"], |
| 205 | properties: ["cppflags"], |
| 206 | } |
| 207 | |
| 208 | needsHWCOnFirstRef { |
| 209 | name: "needsHWCOnFirstRef_defaults", |
| 210 | soong_config_variables: { |
| 211 | targetNeedsHWCOnFirstRef: { |
| 212 | cppflags: ["-DTARGET_NEEDS_HWC_ONFIRSTREF"], |
| 213 | }, |
| 214 | }, |
| 215 | } |
| 216 | |
| 217 | soong_config_module_type { |
| 218 | name: "gralloc_handle_reserved_size", |
| 219 | module_type: "cc_defaults", |
| 220 | config_namespace: "omniGlobalVars", |
| 221 | bool_variables: ["gralloc_handle_has_reserved_size"], |
| 222 | properties: ["export_cflags"], |
| 223 | } |
| 224 | |
| 225 | gralloc_handle_reserved_size { |
| 226 | name: "gralloc_handle_has_reserved_size_defaults", |
| 227 | soong_config_variables: { |
| 228 | gralloc_handle_has_reserved_size: { |
| 229 | export_cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"], |
| 230 | }, |
| 231 | }, |
| 232 | } |
| 233 | |
Kevin F. Haggerty | 70b290e | 2023-01-11 13:38:38 +0100 | [diff] [blame] | 234 | soong_config_module_type { |
Bruno Martins | 9ead146 | 2023-05-16 21:40:28 +0100 | [diff] [blame] | 235 | name: "gralloc_handle_custom_content_md_reserved_size", |
| 236 | module_type: "cc_defaults", |
| 237 | config_namespace: "omniGlobalVars", |
| 238 | bool_variables: ["gralloc_handle_has_custom_content_md_reserved_size"], |
| 239 | properties: ["export_cflags"], |
| 240 | } |
| 241 | |
| 242 | gralloc_handle_custom_content_md_reserved_size { |
| 243 | name: "gralloc_handle_has_custom_content_md_reserved_size_defaults", |
| 244 | soong_config_variables: { |
| 245 | gralloc_handle_has_custom_content_md_reserved_size: { |
| 246 | export_cflags: ["-DGRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE"], |
| 247 | }, |
| 248 | }, |
| 249 | } |
| 250 | |
| 251 | soong_config_module_type { |
Kevin F. Haggerty | 70b290e | 2023-01-11 13:38:38 +0100 | [diff] [blame] | 252 | name: "gralloc_10_usage_bits", |
| 253 | module_type: "cc_defaults", |
| 254 | config_namespace: "omniGlobalVars", |
| 255 | value_variables: ["additional_gralloc_10_usage_bits"], |
| 256 | properties: ["cppflags"], |
| 257 | } |
| 258 | |
| 259 | gralloc_10_usage_bits { |
| 260 | name: "gralloc_10_usage_bits_defaults", |
| 261 | soong_config_variables: { |
| 262 | additional_gralloc_10_usage_bits: { |
| 263 | cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"], |
| 264 | }, |
| 265 | }, |
| 266 | } |
| 267 | |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 268 | // QCOM specific config modules |
| 269 | soong_config_module_type { |
| 270 | name: "metadata_fde_key", |
| 271 | module_type: "cc_defaults", |
| 272 | config_namespace: "omniQcomVars", |
| 273 | bool_variables: ["uses_metadata_as_fde_key"], |
| 274 | properties: [ |
| 275 | "cppflags", |
| 276 | ], |
| 277 | } |
| 278 | |
| 279 | metadata_fde_key { |
| 280 | name: "metadata_fde_key_defaults", |
| 281 | soong_config_variables: { |
| 282 | uses_metadata_as_fde_key: { |
| 283 | cppflags: ["-DTARGET_USES_METADATA_AS_FDE_KEY"], |
| 284 | }, |
| 285 | }, |
| 286 | } |
| 287 | |
| 288 | soong_config_module_type { |
| 289 | name: "enable_tricolor_led", |
| 290 | module_type: "cc_defaults", |
| 291 | config_namespace: "omniQcomVars", |
| 292 | bool_variables: ["healthd_enable_tricolor_led"], |
| 293 | properties: ["cflags"], |
| 294 | } |
| 295 | |
| 296 | enable_tricolor_led { |
| 297 | name: "enable_tricolor_led_defaults", |
| 298 | soong_config_variables: { |
| 299 | healthd_enable_tricolor_led: { |
| 300 | cflags: ["-DHEALTHD_ENABLE_TRICOLOR_LED"], |
| 301 | }, |
| 302 | }, |
| 303 | } |
| 304 | |
| 305 | soong_config_module_type { |
micky387 | ad3c715 | 2023-05-17 00:31:53 +0200 | [diff] [blame] | 306 | name: "extended_compress_format", |
| 307 | module_type: "cc_defaults", |
| 308 | config_namespace: "omniQcomVars", |
| 309 | bool_variables: ["supports_extended_compress_format"], |
| 310 | properties: ["cflags"], |
| 311 | } |
| 312 | |
| 313 | extended_compress_format { |
| 314 | name: "extended_compress_format_defaults", |
| 315 | soong_config_variables: { |
| 316 | supports_extended_compress_format: { |
| 317 | cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"], |
| 318 | }, |
| 319 | }, |
| 320 | } |
| 321 | |
| 322 | soong_config_module_type { |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 323 | name: "vold_hw_fde", |
| 324 | module_type: "cc_defaults", |
| 325 | config_namespace: "omniQcomVars", |
| 326 | bool_variables: ["supports_hw_fde"], |
| 327 | properties: [ |
| 328 | "cflags", |
| 329 | "header_libs", |
| 330 | "shared_libs", |
| 331 | ], |
| 332 | } |
| 333 | |
| 334 | vold_hw_fde { |
| 335 | name: "vold_hw_fde_defaults", |
| 336 | soong_config_variables: { |
| 337 | supports_hw_fde: { |
| 338 | cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"], |
| 339 | header_libs: ["libcryptfs_hw_headers"], |
| 340 | shared_libs: ["libcryptfs_hw"], |
| 341 | }, |
| 342 | }, |
| 343 | } |
| 344 | |
| 345 | soong_config_module_type { |
| 346 | name: "vold_hw_fde_perf", |
| 347 | module_type: "cc_defaults", |
| 348 | config_namespace: "omniQcomVars", |
| 349 | bool_variables: ["supports_hw_fde_perf"], |
| 350 | properties: [ |
| 351 | "cflags", |
| 352 | "shared_libs", |
| 353 | ], |
| 354 | } |
| 355 | |
| 356 | vold_hw_fde_perf { |
| 357 | name: "vold_hw_fde_perf_defaults", |
| 358 | soong_config_variables: { |
| 359 | supports_hw_fde_perf: { |
| 360 | cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"], |
| 361 | shared_libs: ["libcryptfs_hw"], |
| 362 | }, |
| 363 | }, |
| 364 | } |