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