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: [ |
micky387 | 234a064 | 2025-02-20 15:27:53 -0500 | [diff] [blame] | 30 | "useWeeklyBuild", |
micky387 | 48dced5 | 2023-11-15 22:07:14 +0100 | [diff] [blame] | 31 | ], |
| 32 | properties: ["export_cflags"], |
| 33 | } |
| 34 | |
| 35 | omni_weekly_build { |
| 36 | name: "omni_weekly_build_defaults", |
| 37 | soong_config_variables: { |
micky387 | 234a064 | 2025-02-20 15:27:53 -0500 | [diff] [blame] | 38 | useWeeklyBuild: { |
micky387 | 48dced5 | 2023-11-15 22:07:14 +0100 | [diff] [blame] | 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 { |
Luofan Chen | 5a7db96 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 65 | name: "health_charging_control", |
| 66 | module_type: "cc_defaults", |
| 67 | config_namespace: "omniGlobalVars", |
| 68 | bool_variables: [ |
| 69 | "target_health_charging_control_supports_toggle", |
| 70 | "target_health_charging_control_supports_bypass", |
| 71 | "target_health_charging_control_supports_deadline", |
Oliver Scott | dd19316 | 2025-02-20 12:38:45 -0500 | [diff] [blame] | 72 | "target_health_charging_control_supports_limit", |
Luofan Chen | 5a7db96 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 73 | ], |
| 74 | value_variables: [ |
| 75 | "target_health_charging_control_charging_path", |
| 76 | "target_health_charging_control_charging_enabled", |
| 77 | "target_health_charging_control_charging_disabled", |
| 78 | "target_health_charging_control_deadline_path", |
| 79 | ], |
| 80 | properties: ["cppflags"], |
| 81 | } |
| 82 | health_charging_control { |
| 83 | name: "health_charging_control_defaults", |
| 84 | soong_config_variables: { |
| 85 | target_health_charging_control_supports_toggle: { |
| 86 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE"], |
| 87 | }, |
| 88 | target_health_charging_control_supports_bypass: { |
| 89 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS"], |
| 90 | }, |
| 91 | target_health_charging_control_supports_deadline: { |
| 92 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE"], |
| 93 | }, |
Oliver Scott | dd19316 | 2025-02-20 12:38:45 -0500 | [diff] [blame] | 94 | target_health_charging_control_supports_limit: { |
| 95 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_LIMIT"], |
| 96 | }, |
Luofan Chen | 5a7db96 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 97 | target_health_charging_control_charging_path: { |
| 98 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_PATH=\"%s\""], |
| 99 | }, |
| 100 | target_health_charging_control_charging_enabled: { |
| 101 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_ENABLED=\"%s\""], |
| 102 | }, |
| 103 | target_health_charging_control_charging_disabled: { |
| 104 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_DISABLED=\"%s\""], |
| 105 | }, |
| 106 | target_health_charging_control_deadline_path: { |
| 107 | cppflags: ["-DHEALTH_CHARGING_CONTROL_DEADLINE_PATH=\"%s\""], |
| 108 | }, |
| 109 | }, |
| 110 | } |
| 111 | |
| 112 | soong_config_module_type { |
Arian | 7e3f3f0 | 2024-05-18 15:40:29 +0200 | [diff] [blame] | 113 | name: "power_libperfmgr", |
| 114 | module_type: "cc_defaults", |
| 115 | config_namespace: "omniGlobalVars", |
| 116 | value_variables: ["target_power_libperfmgr_mode_extension_lib"], |
| 117 | properties: [ |
| 118 | "whole_static_libs", |
| 119 | ], |
| 120 | } |
| 121 | |
| 122 | power_libperfmgr { |
| 123 | name: "power_libperfmgr_defaults", |
| 124 | soong_config_variables: { |
| 125 | target_power_libperfmgr_mode_extension_lib: { |
| 126 | whole_static_libs: ["%s"], |
| 127 | }, |
| 128 | }, |
| 129 | } |
| 130 | |
| 131 | soong_config_module_type { |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 132 | name: "vendor_init", |
| 133 | module_type: "cc_defaults", |
| 134 | config_namespace: "omniGlobalVars", |
| 135 | value_variables: ["target_init_vendor_lib"], |
| 136 | bool_variables: ["target_create_device_symlinks"], |
| 137 | properties: [ |
| 138 | "cflags", |
| 139 | "whole_static_libs", |
| 140 | ], |
| 141 | } |
| 142 | |
| 143 | vendor_init { |
| 144 | name: "vendor_init_defaults", |
| 145 | soong_config_variables: { |
| 146 | target_init_vendor_lib: { |
| 147 | whole_static_libs: ["%s"], |
| 148 | }, |
| 149 | target_create_device_symlinks: { |
| 150 | cflags: ["-DTARGET_CREATE_DEVICE_SYMLINKS"], |
| 151 | }, |
| 152 | }, |
| 153 | } |
| 154 | |
| 155 | soong_config_module_type { |
| 156 | name: "surfaceflinger_udfps_lib", |
| 157 | module_type: "cc_defaults", |
| 158 | config_namespace: "omniGlobalVars", |
| 159 | value_variables: ["target_surfaceflinger_udfps_lib"], |
| 160 | properties: [ |
| 161 | "cppflags", |
| 162 | "whole_static_libs", |
| 163 | ], |
| 164 | } |
| 165 | |
| 166 | surfaceflinger_udfps_lib { |
| 167 | name: "surfaceflinger_udfps_lib_defaults", |
| 168 | soong_config_variables: { |
| 169 | target_surfaceflinger_udfps_lib: { |
| 170 | cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"], |
| 171 | whole_static_libs: ["%s"], |
| 172 | }, |
| 173 | }, |
| 174 | } |
| 175 | |
| 176 | soong_config_module_type { |
| 177 | name: "use_sdclang", |
| 178 | module_type: "cc_defaults", |
| 179 | config_namespace: "omniGlobalVars", |
| 180 | bool_variables: ["target_use_sdclang"], |
| 181 | properties: [ |
| 182 | "cppflags", |
| 183 | ], |
| 184 | } |
| 185 | |
| 186 | use_sdclang { |
| 187 | name: "use_sdclang_defaults", |
| 188 | soong_config_variables: { |
| 189 | target_use_sdclang: { |
| 190 | cppflags: ["-DTARGET_USE_SDCLANG"], |
| 191 | }, |
| 192 | }, |
| 193 | } |
| 194 | |
| 195 | soong_config_module_type { |
| 196 | name: "camera_client_info", |
| 197 | module_type: "cc_defaults", |
| 198 | config_namespace: "omniGlobalVars", |
| 199 | bool_variables: ["target_camera_needs_client_info"], |
| 200 | properties: [ |
| 201 | "cppflags", |
| 202 | ], |
| 203 | } |
| 204 | |
| 205 | camera_client_info { |
| 206 | name: "camera_client_info_defaults", |
| 207 | soong_config_variables: { |
| 208 | target_camera_needs_client_info: { |
| 209 | cppflags: ["-DTARGET_CAMERA_NEEDS_CLIENT_INFO"], |
| 210 | }, |
| 211 | }, |
| 212 | } |
| 213 | |
| 214 | soong_config_module_type { |
| 215 | name: "enforce_ab_ota_partition_list", |
| 216 | module_type: "cc_defaults", |
| 217 | config_namespace: "omniGlobalVars", |
| 218 | bool_variables: ["target_enforce_ab_ota_partition_list"], |
| 219 | properties: [ |
| 220 | "cppflags", |
| 221 | ], |
| 222 | } |
| 223 | |
| 224 | enforce_ab_ota_partition_list { |
| 225 | name: "enforce_ab_ota_partition_list_defaults", |
| 226 | soong_config_variables: { |
| 227 | target_enforce_ab_ota_partition_list: { |
| 228 | cppflags: ["-DTARGET_ENFORCE_AB_OTA_PARTITION_LIST"], |
| 229 | }, |
| 230 | }, |
| 231 | } |
| 232 | |
| 233 | soong_config_module_type { |
| 234 | name: "enable_op_fastchg", |
| 235 | module_type: "cc_defaults", |
| 236 | config_namespace: "omniGlobalVars", |
| 237 | bool_variables: ["healthd_enable_op_fastchg"], |
| 238 | properties: ["cflags"], |
| 239 | } |
| 240 | |
| 241 | enable_op_fastchg { |
| 242 | name: "enable_op_fastchg_defaults", |
| 243 | soong_config_variables: { |
| 244 | healthd_enable_op_fastchg: { |
| 245 | cflags: ["-DHEALTHD_ENABLE_OP_FASTCHG_CHECK"], |
| 246 | }, |
| 247 | }, |
| 248 | } |
| 249 | |
| 250 | soong_config_module_type { |
| 251 | name: "use_battery_info", |
| 252 | module_type: "cc_defaults", |
| 253 | config_namespace: "omniGlobalVars", |
| 254 | bool_variables: ["healthd_use_battery_info"], |
| 255 | properties: ["cflags"], |
| 256 | } |
| 257 | |
| 258 | use_battery_info { |
| 259 | name: "use_battery_info_defaults", |
| 260 | soong_config_variables: { |
| 261 | healthd_use_battery_info: { |
| 262 | cflags: ["-DHEALTHD_USE_BATTERY_INFO"], |
| 263 | }, |
| 264 | }, |
| 265 | } |
| 266 | |
| 267 | soong_config_module_type { |
| 268 | name: "needsHWCOnFirstRef", |
| 269 | module_type: "cc_defaults", |
| 270 | config_namespace: "omniGlobalVars", |
| 271 | bool_variables: ["targetNeedsHWCOnFirstRef"], |
| 272 | properties: ["cppflags"], |
| 273 | } |
| 274 | |
| 275 | needsHWCOnFirstRef { |
| 276 | name: "needsHWCOnFirstRef_defaults", |
| 277 | soong_config_variables: { |
| 278 | targetNeedsHWCOnFirstRef: { |
| 279 | cppflags: ["-DTARGET_NEEDS_HWC_ONFIRSTREF"], |
| 280 | }, |
| 281 | }, |
| 282 | } |
| 283 | |
| 284 | soong_config_module_type { |
Rohit Sekhar | 56d5db8 | 2023-09-19 15:48:20 +0530 | [diff] [blame] | 285 | name: "camera_override_format_from_reserved", |
| 286 | module_type: "cc_defaults", |
| 287 | config_namespace: "omniGlobalVars", |
| 288 | bool_variables: ["camera_override_format_from_reserved"], |
| 289 | properties: ["cppflags"], |
| 290 | } |
| 291 | |
| 292 | camera_override_format_from_reserved { |
| 293 | name: "camera_override_format_from_reserved_defaults", |
| 294 | soong_config_variables: { |
| 295 | camera_override_format_from_reserved: { |
| 296 | cppflags: ["-DTARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED"], |
| 297 | }, |
| 298 | }, |
| 299 | } |
| 300 | |
| 301 | soong_config_module_type { |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 302 | name: "gralloc_handle_reserved_size", |
| 303 | module_type: "cc_defaults", |
| 304 | config_namespace: "omniGlobalVars", |
| 305 | bool_variables: ["gralloc_handle_has_reserved_size"], |
| 306 | properties: ["export_cflags"], |
| 307 | } |
| 308 | |
| 309 | gralloc_handle_reserved_size { |
| 310 | name: "gralloc_handle_has_reserved_size_defaults", |
| 311 | soong_config_variables: { |
| 312 | gralloc_handle_has_reserved_size: { |
| 313 | export_cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"], |
| 314 | }, |
| 315 | }, |
| 316 | } |
| 317 | |
Kevin F. Haggerty | 70b290e | 2023-01-11 13:38:38 +0100 | [diff] [blame] | 318 | soong_config_module_type { |
Bruno Martins | 9ead146 | 2023-05-16 21:40:28 +0100 | [diff] [blame] | 319 | name: "gralloc_handle_custom_content_md_reserved_size", |
| 320 | module_type: "cc_defaults", |
| 321 | config_namespace: "omniGlobalVars", |
| 322 | bool_variables: ["gralloc_handle_has_custom_content_md_reserved_size"], |
| 323 | properties: ["export_cflags"], |
| 324 | } |
| 325 | |
| 326 | gralloc_handle_custom_content_md_reserved_size { |
| 327 | name: "gralloc_handle_has_custom_content_md_reserved_size_defaults", |
| 328 | soong_config_variables: { |
| 329 | gralloc_handle_has_custom_content_md_reserved_size: { |
| 330 | export_cflags: ["-DGRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE"], |
| 331 | }, |
| 332 | }, |
| 333 | } |
| 334 | |
| 335 | soong_config_module_type { |
Michael Bestas | 99cc97b | 2023-10-20 01:47:13 +0300 | [diff] [blame] | 336 | name: "gralloc_handle_ubwcp_format", |
| 337 | module_type: "cc_defaults", |
| 338 | config_namespace: "omniGlobalVars", |
| 339 | bool_variables: ["gralloc_handle_has_ubwcp_format"], |
| 340 | properties: ["export_cflags"], |
| 341 | } |
| 342 | gralloc_handle_ubwcp_format { |
| 343 | name: "gralloc_handle_has_ubwcp_format_defaults", |
| 344 | soong_config_variables: { |
| 345 | gralloc_handle_has_ubwcp_format: { |
| 346 | export_cflags: ["-DGRALLOC_HANDLE_HAS_UBWCP_FORMAT"], |
| 347 | }, |
| 348 | }, |
| 349 | } |
| 350 | |
| 351 | soong_config_module_type { |
Kevin F. Haggerty | 70b290e | 2023-01-11 13:38:38 +0100 | [diff] [blame] | 352 | name: "gralloc_10_usage_bits", |
| 353 | module_type: "cc_defaults", |
| 354 | config_namespace: "omniGlobalVars", |
| 355 | value_variables: ["additional_gralloc_10_usage_bits"], |
| 356 | properties: ["cppflags"], |
| 357 | } |
| 358 | |
| 359 | gralloc_10_usage_bits { |
| 360 | name: "gralloc_10_usage_bits_defaults", |
| 361 | soong_config_variables: { |
| 362 | additional_gralloc_10_usage_bits: { |
| 363 | cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"], |
| 364 | }, |
| 365 | }, |
| 366 | } |
| 367 | |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 368 | // QCOM specific config modules |
| 369 | soong_config_module_type { |
| 370 | name: "metadata_fde_key", |
| 371 | module_type: "cc_defaults", |
| 372 | config_namespace: "omniQcomVars", |
| 373 | bool_variables: ["uses_metadata_as_fde_key"], |
| 374 | properties: [ |
| 375 | "cppflags", |
| 376 | ], |
| 377 | } |
| 378 | |
| 379 | metadata_fde_key { |
| 380 | name: "metadata_fde_key_defaults", |
| 381 | soong_config_variables: { |
| 382 | uses_metadata_as_fde_key: { |
| 383 | cppflags: ["-DTARGET_USES_METADATA_AS_FDE_KEY"], |
| 384 | }, |
| 385 | }, |
| 386 | } |
| 387 | |
| 388 | soong_config_module_type { |
| 389 | name: "enable_tricolor_led", |
| 390 | module_type: "cc_defaults", |
| 391 | config_namespace: "omniQcomVars", |
| 392 | bool_variables: ["healthd_enable_tricolor_led"], |
| 393 | properties: ["cflags"], |
| 394 | } |
| 395 | |
| 396 | enable_tricolor_led { |
| 397 | name: "enable_tricolor_led_defaults", |
| 398 | soong_config_variables: { |
| 399 | healthd_enable_tricolor_led: { |
| 400 | cflags: ["-DHEALTHD_ENABLE_TRICOLOR_LED"], |
| 401 | }, |
| 402 | }, |
| 403 | } |
| 404 | |
| 405 | soong_config_module_type { |
micky387 | ad3c715 | 2023-05-17 00:31:53 +0200 | [diff] [blame] | 406 | name: "extended_compress_format", |
| 407 | module_type: "cc_defaults", |
| 408 | config_namespace: "omniQcomVars", |
| 409 | bool_variables: ["supports_extended_compress_format"], |
| 410 | properties: ["cflags"], |
| 411 | } |
| 412 | |
| 413 | extended_compress_format { |
| 414 | name: "extended_compress_format_defaults", |
| 415 | soong_config_variables: { |
| 416 | supports_extended_compress_format: { |
| 417 | cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"], |
| 418 | }, |
| 419 | }, |
| 420 | } |
| 421 | |
| 422 | soong_config_module_type { |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 423 | name: "vold_hw_fde", |
| 424 | module_type: "cc_defaults", |
| 425 | config_namespace: "omniQcomVars", |
| 426 | bool_variables: ["supports_hw_fde"], |
| 427 | properties: [ |
| 428 | "cflags", |
| 429 | "header_libs", |
| 430 | "shared_libs", |
| 431 | ], |
| 432 | } |
| 433 | |
| 434 | vold_hw_fde { |
| 435 | name: "vold_hw_fde_defaults", |
| 436 | soong_config_variables: { |
| 437 | supports_hw_fde: { |
| 438 | cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"], |
| 439 | header_libs: ["libcryptfs_hw_headers"], |
| 440 | shared_libs: ["libcryptfs_hw"], |
| 441 | }, |
| 442 | }, |
| 443 | } |
| 444 | |
| 445 | soong_config_module_type { |
| 446 | name: "vold_hw_fde_perf", |
| 447 | module_type: "cc_defaults", |
| 448 | config_namespace: "omniQcomVars", |
| 449 | bool_variables: ["supports_hw_fde_perf"], |
| 450 | properties: [ |
| 451 | "cflags", |
| 452 | "shared_libs", |
| 453 | ], |
| 454 | } |
| 455 | |
| 456 | vold_hw_fde_perf { |
| 457 | name: "vold_hw_fde_perf_defaults", |
| 458 | soong_config_variables: { |
| 459 | supports_hw_fde_perf: { |
| 460 | cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"], |
| 461 | shared_libs: ["libcryptfs_hw"], |
| 462 | }, |
| 463 | }, |
| 464 | } |
micky387 | 7d9cbe8 | 2024-05-16 21:10:11 -0400 | [diff] [blame] | 465 | |
| 466 | soong_config_module_type { |
| 467 | name: "surfaceflinger_qcom_extensions", |
| 468 | module_type: "cc_defaults", |
| 469 | config_namespace: "omniQcomVars", |
| 470 | value_variables: ["qcom_display_headers_namespace"], |
| 471 | properties: [ |
| 472 | "cppflags", |
| 473 | "header_libs", |
| 474 | ], |
| 475 | } |
| 476 | |
| 477 | surfaceflinger_qcom_extensions { |
| 478 | name: "surfaceflinger_qcom_ext_defaults", |
| 479 | soong_config_variables: { |
| 480 | qcom_display_headers_namespace: { |
| 481 | cppflags: ["-DQCOM_UM_FAMILY"], |
| 482 | header_libs: ["//%s:display_intf_headers"], |
| 483 | }, |
| 484 | }, |
| 485 | } |