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