Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 1 | // Bliss soong configs |
| 2 | |
Simon Shields | 4ed4605 | 2017-08-23 12:03:36 +1000 | [diff] [blame] | 3 | bootstrap_go_package { |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 4 | name: "soong-bliss-generator", |
| 5 | pkgPath: "bliss/soong/generator", |
Sam Mortimer | 80381b7 | 2018-09-18 15:56:14 -0700 | [diff] [blame] | 6 | deps: [ |
| 7 | "blueprint", |
| 8 | "blueprint-pathtools", |
| 9 | "soong", |
| 10 | "soong-android", |
| 11 | "soong-shared", |
| 12 | ], |
| 13 | srcs: [ |
| 14 | "generator/generator.go", |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 15 | "generator/variables.go", |
Sam Mortimer | 80381b7 | 2018-09-18 15:56:14 -0700 | [diff] [blame] | 16 | ], |
| 17 | pluginFor: ["soong_build"], |
| 18 | } |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 19 | |
Jackeagle | d6811aa | 2019-09-24 08:26:40 +0200 | [diff] [blame] | 20 | bliss_generator { |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 21 | name: "generated_kernel_includes", |
| 22 | |
| 23 | // The headers make command |
LuK1337 | 38e80da | 2024-03-07 10:31:13 +0100 | [diff] [blame] | 24 | cmd: "$(PATH_OVERRIDE_SOONG) $(KERNEL_MAKE_CMD) $(KERNEL_MAKE_FLAGS) -C $(TARGET_KERNEL_SOURCE) O=$(KERNEL_BUILD_OUT_PREFIX)$(genDir) ARCH=$(KERNEL_ARCH) $(KERNEL_CROSS_COMPILE) headers_install && vendor/bliss/tools/clean_headers.sh $(KERNEL_BUILD_OUT_PREFIX)$(genDir)", |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 25 | |
| 26 | // Directories that can be imported by a cc_* module generated_headers property |
dianlujitao | 9dfd5f7 | 2020-03-03 17:26:32 +0800 | [diff] [blame] | 27 | export_include_dirs: [ |
dianlujitao | 83d2fa4 | 2020-06-28 22:16:44 +0800 | [diff] [blame] | 28 | "usr/audio/include/uapi", |
dianlujitao | 9dfd5f7 | 2020-03-03 17:26:32 +0800 | [diff] [blame] | 29 | "usr/include", |
LuK1337 | b869d2f | 2023-09-02 22:08:20 -0500 | [diff] [blame] | 30 | "usr/include/audio", |
dianlujitao | 9dfd5f7 | 2020-03-03 17:26:32 +0800 | [diff] [blame] | 31 | "usr/include/audio/include/uapi", |
Pig | f6e0a85 | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 32 | "usr/techpack/audio/include", |
dianlujitao | 9dfd5f7 | 2020-03-03 17:26:32 +0800 | [diff] [blame] | 33 | ], |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 34 | |
| 35 | // Sources for dependency tracking |
| 36 | dep_root: "$(TARGET_KERNEL_SOURCE)", |
Pig | f6e0a85 | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 37 | dep_files: [ |
| 38 | "Makefile", |
| 39 | "include/**/*", |
| 40 | "arch/$(KERNEL_ARCH)/include/**/*", |
| 41 | "techpack/audio/include/**/*", |
| 42 | ], |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 43 | } |
| 44 | |
Michael Bestas | 89d3b90 | 2022-02-24 12:27:50 +0200 | [diff] [blame] | 45 | cc_defaults { |
| 46 | name: "generated_kernel_header_defaults", |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 47 | generated_headers: ["generated_kernel_includes"], |
| 48 | export_generated_headers: ["generated_kernel_includes"], |
| 49 | vendor_available: true, |
LuK1337 | 43442c2 | 2019-09-09 21:58:19 +0200 | [diff] [blame] | 50 | recovery_available: true, |
Rashed Abdel-Tawab | 9fa7e80 | 2018-09-18 21:53:24 -0700 | [diff] [blame] | 51 | } |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 52 | |
Michael Bestas | 89d3b90 | 2022-02-24 12:27:50 +0200 | [diff] [blame] | 53 | cc_library_headers { |
| 54 | name: "generated_kernel_headers", |
| 55 | defaults: ["generated_kernel_header_defaults"], |
| 56 | } |
| 57 | |
| 58 | cc_library_headers { |
| 59 | name: "qti_kernel_headers", |
| 60 | defaults: ["generated_kernel_header_defaults"], |
| 61 | } |
| 62 | |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 63 | // Target platform agnostic config modules |
| 64 | soong_config_module_type { |
LuK1337 | eb28eac | 2023-06-24 21:03:23 -0500 | [diff] [blame] | 65 | name: "aapt_version_code", |
| 66 | module_type: "java_defaults", |
| 67 | config_namespace: "blissGlobalVars", |
| 68 | value_variables: ["aapt_version_code"], |
| 69 | properties: ["aaptflags"], |
| 70 | } |
| 71 | |
| 72 | aapt_version_code { |
| 73 | name: "aapt_version_code_defaults", |
| 74 | soong_config_variables: { |
| 75 | aapt_version_code: { |
| 76 | aaptflags: [ |
| 77 | "--version-code", |
| 78 | "%s", |
| 79 | ], |
| 80 | }, |
| 81 | }, |
| 82 | } |
| 83 | |
| 84 | soong_config_module_type { |
Rohit Sekhar | af63211 | 2023-09-19 15:48:20 +0530 | [diff] [blame] | 85 | name: "camera_override_format_from_reserved", |
| 86 | module_type: "cc_defaults", |
Arian | 770e37e | 2023-11-04 10:49:49 +0100 | [diff] [blame] | 87 | config_namespace: "blissGlobalVars", |
Rohit Sekhar | af63211 | 2023-09-19 15:48:20 +0530 | [diff] [blame] | 88 | bool_variables: ["camera_override_format_from_reserved"], |
| 89 | properties: ["cppflags"], |
| 90 | } |
| 91 | |
| 92 | camera_override_format_from_reserved { |
| 93 | name: "camera_override_format_from_reserved_defaults", |
| 94 | soong_config_variables: { |
| 95 | camera_override_format_from_reserved: { |
| 96 | cppflags: ["-DTARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED"], |
| 97 | }, |
| 98 | }, |
| 99 | } |
| 100 | |
| 101 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 102 | name: "gralloc_10_usage_bits", |
| 103 | module_type: "cc_defaults", |
| 104 | config_namespace: "blissGlobalVars", |
| 105 | value_variables: ["additional_gralloc_10_usage_bits"], |
| 106 | properties: ["cppflags"], |
| 107 | } |
| 108 | |
| 109 | gralloc_10_usage_bits { |
| 110 | name: "gralloc_10_usage_bits_defaults", |
| 111 | soong_config_variables: { |
| 112 | additional_gralloc_10_usage_bits: { |
| 113 | cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"], |
| 114 | }, |
| 115 | }, |
| 116 | } |
| 117 | |
| 118 | soong_config_module_type { |
Bruno Martins | 21d1572 | 2023-05-16 21:40:28 +0100 | [diff] [blame] | 119 | name: "gralloc_handle_custom_content_md_reserved_size", |
| 120 | module_type: "cc_defaults", |
| 121 | config_namespace: "blissGlobalVars", |
| 122 | bool_variables: ["gralloc_handle_has_custom_content_md_reserved_size"], |
| 123 | properties: ["export_cflags"], |
| 124 | } |
| 125 | |
| 126 | gralloc_handle_custom_content_md_reserved_size { |
| 127 | name: "gralloc_handle_has_custom_content_md_reserved_size_defaults", |
| 128 | soong_config_variables: { |
| 129 | gralloc_handle_has_custom_content_md_reserved_size: { |
| 130 | export_cflags: ["-DGRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE"], |
| 131 | }, |
| 132 | }, |
| 133 | } |
| 134 | |
| 135 | soong_config_module_type { |
Luofan Chen | 506d14a | 2023-11-27 22:30:51 +0800 | [diff] [blame] | 136 | name: "sdmcore_has_is_display_hw_available", |
| 137 | module_type: "cc_defaults", |
| 138 | config_namespace: "blissGlobalVars", |
| 139 | bool_variables: ["sdmcore_has_is_display_hw_available_func"], |
| 140 | properties: ["cflags"], |
| 141 | } |
| 142 | |
| 143 | sdmcore_has_is_display_hw_available { |
| 144 | name: "sdmcore_has_is_display_hw_available_func_defaults", |
| 145 | soong_config_variables: { |
| 146 | sdmcore_has_is_display_hw_available_func: { |
| 147 | cflags: ["-DSDMCORE_HAS_IS_DISPLAY_HW_AVAILABLE_FUNC"], |
| 148 | }, |
| 149 | }, |
| 150 | } |
| 151 | |
| 152 | soong_config_module_type { |
Chirayu Desai | 981d210 | 2022-09-17 04:47:54 +0530 | [diff] [blame] | 153 | name: "gralloc_handle_reserved_size", |
| 154 | module_type: "cc_defaults", |
| 155 | config_namespace: "blissGlobalVars", |
| 156 | bool_variables: ["gralloc_handle_has_reserved_size"], |
| 157 | properties: ["export_cflags"], |
| 158 | } |
| 159 | |
| 160 | gralloc_handle_reserved_size { |
| 161 | name: "gralloc_handle_has_reserved_size_defaults", |
| 162 | soong_config_variables: { |
| 163 | gralloc_handle_has_reserved_size: { |
| 164 | export_cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"], |
| 165 | }, |
| 166 | }, |
| 167 | } |
| 168 | |
| 169 | soong_config_module_type { |
Michael Bestas | d65cc35 | 2023-10-20 01:47:13 +0300 | [diff] [blame] | 170 | name: "gralloc_handle_ubwcp_format", |
| 171 | module_type: "cc_defaults", |
| 172 | config_namespace: "blissGlobalVars", |
| 173 | bool_variables: ["gralloc_handle_has_ubwcp_format"], |
| 174 | properties: ["export_cflags"], |
| 175 | } |
| 176 | |
| 177 | gralloc_handle_ubwcp_format { |
| 178 | name: "gralloc_handle_has_ubwcp_format_defaults", |
| 179 | soong_config_variables: { |
| 180 | gralloc_handle_has_ubwcp_format: { |
| 181 | export_cflags: ["-DGRALLOC_HANDLE_HAS_UBWCP_FORMAT"], |
| 182 | }, |
| 183 | }, |
| 184 | } |
| 185 | |
| 186 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 187 | name: "target_shim_libs", |
| 188 | module_type: "cc_defaults", |
| 189 | config_namespace: "blissGlobalVars", |
| 190 | value_variables: ["target_ld_shim_libs"], |
| 191 | properties: ["cppflags"], |
| 192 | } |
| 193 | |
| 194 | target_shim_libs { |
| 195 | name: "shim_libs_defaults", |
| 196 | soong_config_variables: { |
| 197 | target_ld_shim_libs: { |
| 198 | cppflags: ["-DLD_SHIM_LIBS=\"%s\""], |
| 199 | }, |
| 200 | }, |
| 201 | } |
| 202 | |
| 203 | soong_config_module_type { |
| 204 | name: "vendor_init", |
| 205 | module_type: "cc_defaults", |
| 206 | config_namespace: "blissGlobalVars", |
| 207 | value_variables: ["target_init_vendor_lib"], |
| 208 | properties: ["whole_static_libs"], |
| 209 | } |
| 210 | |
| 211 | vendor_init { |
| 212 | name: "vendor_init_defaults", |
| 213 | soong_config_variables: { |
| 214 | target_init_vendor_lib: { |
| 215 | whole_static_libs: ["%s"], |
| 216 | }, |
| 217 | }, |
| 218 | } |
| 219 | |
| 220 | soong_config_module_type { |
Arian | 1446a6e | 2024-05-18 15:40:29 +0200 | [diff] [blame] | 221 | name: "power_libperfmgr", |
| 222 | module_type: "cc_defaults", |
| 223 | config_namespace: "blissGlobalVars", |
| 224 | value_variables: ["target_power_libperfmgr_mode_extension_lib"], |
| 225 | properties: [ |
| 226 | "whole_static_libs", |
| 227 | ], |
| 228 | } |
| 229 | |
| 230 | power_libperfmgr { |
| 231 | name: "power_libperfmgr_defaults", |
| 232 | soong_config_variables: { |
| 233 | target_power_libperfmgr_mode_extension_lib: { |
| 234 | whole_static_libs: ["%s"], |
| 235 | }, |
| 236 | }, |
| 237 | } |
| 238 | |
| 239 | soong_config_module_type { |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 240 | name: "surfaceflinger_udfps_lib", |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 241 | module_type: "cc_defaults", |
| 242 | config_namespace: "blissGlobalVars", |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 243 | value_variables: ["target_surfaceflinger_udfps_lib"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 244 | properties: [ |
| 245 | "cppflags", |
| 246 | "whole_static_libs", |
| 247 | ], |
| 248 | } |
| 249 | |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 250 | surfaceflinger_udfps_lib { |
| 251 | name: "surfaceflinger_udfps_lib_defaults", |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 252 | soong_config_variables: { |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 253 | target_surfaceflinger_udfps_lib: { |
| 254 | cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 255 | whole_static_libs: ["%s"], |
| 256 | }, |
| 257 | }, |
| 258 | } |
| 259 | |
| 260 | soong_config_module_type { |
LuK1337 | bc866dd | 2022-03-23 20:39:30 +0100 | [diff] [blame] | 261 | name: "trust_usb_control", |
| 262 | module_type: "cc_defaults", |
| 263 | config_namespace: "blissGlobalVars", |
| 264 | value_variables: [ |
| 265 | "target_trust_usb_control_path", |
| 266 | "target_trust_usb_control_enable", |
| 267 | "target_trust_usb_control_disable", |
| 268 | ], |
| 269 | properties: ["cppflags"], |
| 270 | } |
| 271 | |
| 272 | trust_usb_control { |
| 273 | name: "trust_usb_control_defaults", |
| 274 | soong_config_variables: { |
| 275 | target_trust_usb_control_path: { |
| 276 | cppflags: ["-DUSB_CONTROL_PATH=\"%s\""], |
| 277 | }, |
| 278 | target_trust_usb_control_enable: { |
| 279 | cppflags: ["-DUSB_CONTROL_ENABLE=\"%s\""], |
| 280 | }, |
| 281 | target_trust_usb_control_disable: { |
| 282 | cppflags: ["-DUSB_CONTROL_DISABLE=\"%s\""], |
| 283 | }, |
| 284 | }, |
| 285 | } |
| 286 | |
| 287 | soong_config_module_type { |
Sebastiano Barezzi | d881fbd | 2023-06-25 17:05:50 -0500 | [diff] [blame] | 288 | name: "needs_camera_boottime", |
| 289 | module_type: "cc_defaults", |
| 290 | config_namespace: "blissGlobalVars", |
| 291 | bool_variables: ["needs_camera_boottime"], |
| 292 | properties: ["cppflags"], |
| 293 | } |
| 294 | |
| 295 | needs_camera_boottime { |
| 296 | name: "needs_camera_boottime_defaults", |
| 297 | soong_config_variables: { |
| 298 | needs_camera_boottime: { |
| 299 | cppflags: ["-DTARGET_CAMERA_BOOTTIME_TIMESTAMP"], |
| 300 | }, |
| 301 | }, |
| 302 | } |
| 303 | |
| 304 | soong_config_module_type { |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 305 | name: "camera_needs_client_info", |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 306 | module_type: "cc_defaults", |
| 307 | config_namespace: "blissGlobalVars", |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 308 | bool_variables: ["camera_needs_client_info"], |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 309 | properties: ["cppflags"], |
| 310 | } |
| 311 | |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 312 | camera_needs_client_info { |
| 313 | name: "camera_needs_client_info_defaults", |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 314 | soong_config_variables: { |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 315 | camera_needs_client_info: { |
| 316 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO"], |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 317 | }, |
| 318 | }, |
| 319 | } |
| 320 | |
| 321 | soong_config_module_type { |
Hikari-no-Tenshi | 1de1c91 | 2023-06-25 17:10:37 -0500 | [diff] [blame] | 322 | name: "camera_needs_client_info_lib", |
| 323 | module_type: "cc_defaults", |
| 324 | config_namespace: "blissGlobalVars", |
| 325 | bool_variables: ["camera_needs_client_info_lib"], |
| 326 | properties: [ |
| 327 | "cppflags", |
| 328 | "shared_libs", |
| 329 | ], |
| 330 | } |
| 331 | |
| 332 | camera_needs_client_info_lib { |
| 333 | name: "camera_needs_client_info_lib_defaults", |
| 334 | soong_config_variables: { |
| 335 | camera_needs_client_info_lib: { |
| 336 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB"], |
| 337 | shared_libs: ["//hardware/oneplus:vendor.oneplus.hardware.camera@1.0"], |
| 338 | }, |
| 339 | }, |
| 340 | } |
| 341 | |
| 342 | soong_config_module_type { |
ShevT | 8ad2744 | 2023-06-25 17:17:24 -0500 | [diff] [blame] | 343 | name: "camera_needs_client_info_lib_oplus", |
| 344 | module_type: "cc_defaults", |
| 345 | config_namespace: "blissGlobalVars", |
| 346 | bool_variables: ["camera_needs_client_info_lib_oplus"], |
| 347 | properties: [ |
| 348 | "cppflags", |
| 349 | "shared_libs", |
| 350 | ], |
| 351 | } |
| 352 | |
| 353 | camera_needs_client_info_lib_oplus { |
| 354 | name: "camera_needs_client_info_lib_oplus_defaults", |
| 355 | soong_config_variables: { |
| 356 | camera_needs_client_info_lib_oplus: { |
| 357 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB_OPLUS"], |
| 358 | shared_libs: ["vendor.oplus.hardware.cameraMDM@2.0"], |
| 359 | }, |
| 360 | }, |
| 361 | } |
| 362 | |
| 363 | soong_config_module_type { |
Nolen Johnson | fc326dd | 2023-03-18 00:31:32 -0400 | [diff] [blame] | 364 | name: "bootloader_message_offset", |
| 365 | module_type: "cc_defaults", |
| 366 | config_namespace: "blissGlobalVars", |
| 367 | value_variables: ["bootloader_message_offset"], |
| 368 | properties: [ |
| 369 | "cflags", |
| 370 | "export_cflags", |
| 371 | ], |
| 372 | } |
| 373 | |
| 374 | bootloader_message_offset { |
| 375 | name: "bootloader_message_offset_defaults", |
| 376 | soong_config_variables: { |
| 377 | bootloader_message_offset: { |
| 378 | cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
| 379 | export_cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
| 380 | }, |
| 381 | }, |
| 382 | } |
| 383 | |
| 384 | soong_config_module_type { |
Danny Trunk | bcd7220 | 2022-03-23 22:28:02 +0100 | [diff] [blame] | 385 | name: "egl_display_array", |
| 386 | module_type: "cc_defaults", |
| 387 | config_namespace: "blissGlobalVars", |
| 388 | bool_variables: ["uses_egl_display_array"], |
| 389 | properties: ["cflags"], |
| 390 | } |
| 391 | |
| 392 | egl_display_array { |
| 393 | name: "egl_display_array_defaults", |
| 394 | soong_config_variables: { |
| 395 | uses_egl_display_array: { |
| 396 | cflags: ["-DEGL_DISPLAY_ARRAY"], |
| 397 | }, |
| 398 | }, |
| 399 | } |
| 400 | |
Luofan Chen | ac764a4 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 401 | soong_config_module_type { |
cjh1249131356 | 24f3be3 | 2024-03-10 22:18:41 -0500 | [diff] [blame] | 402 | name: "uses_nothing_camera", |
| 403 | module_type: "cc_defaults", |
| 404 | config_namespace: "blissGlobalVars", |
| 405 | bool_variables: ["uses_nothing_camera"], |
| 406 | properties: ["cppflags"], |
| 407 | } |
| 408 | |
| 409 | uses_nothing_camera { |
| 410 | name: "uses_nothing_camera_defaults", |
| 411 | soong_config_variables: { |
| 412 | uses_nothing_camera: { |
| 413 | cppflags: ["-DUSES_NOTHING_CAMERA"], |
| 414 | }, |
| 415 | }, |
| 416 | } |
| 417 | |
| 418 | soong_config_module_type { |
| 419 | name: "uses_oplus_camera", |
| 420 | module_type: "cc_defaults", |
| 421 | config_namespace: "blissGlobalVars", |
| 422 | bool_variables: ["uses_oplus_camera"], |
| 423 | properties: ["cppflags"], |
| 424 | } |
| 425 | |
| 426 | uses_oplus_camera { |
| 427 | name: "uses_oplus_camera_defaults", |
| 428 | soong_config_variables: { |
| 429 | uses_oplus_camera: { |
| 430 | cppflags: ["-DUSES_OPLUS_CAMERA"], |
| 431 | }, |
| 432 | }, |
| 433 | } |
| 434 | |
| 435 | soong_config_module_type { |
| 436 | name: "uses_oppo_camera", |
| 437 | module_type: "cc_defaults", |
| 438 | config_namespace: "blissGlobalVars", |
| 439 | bool_variables: ["uses_oppo_camera"], |
| 440 | properties: ["cppflags"], |
| 441 | } |
| 442 | |
| 443 | uses_oppo_camera { |
| 444 | name: "uses_oppo_camera_defaults", |
| 445 | soong_config_variables: { |
| 446 | uses_oppo_camera: { |
| 447 | cppflags: ["-DUSES_OPPO_CAMERA"], |
| 448 | }, |
| 449 | }, |
| 450 | } |
| 451 | |
johnmart19 | 3f6eb3a | 2024-04-27 14:57:16 -0500 | [diff] [blame] | 452 | |
| 453 | soong_config_module_type { |
| 454 | name: "include_miui_camera", |
| 455 | module_type: "cc_defaults", |
| 456 | config_namespace: "blissGlobalVars", |
| 457 | bool_variables: ["include_miui_camera"], |
| 458 | properties: ["cppflags"], |
| 459 | } |
| 460 | include_miui_camera { |
| 461 | name: "includes_miui_camera", |
| 462 | soong_config_variables: { |
| 463 | include_miui_camera: { |
| 464 | cppflags: ["-DINCLUDES_MIUI_CAMERA"], |
| 465 | }, |
| 466 | }, |
| 467 | } |
cjh1249131356 | 24f3be3 | 2024-03-10 22:18:41 -0500 | [diff] [blame] | 468 | soong_config_module_type { |
Adithya R | c0a47a6 | 2024-03-10 22:24:45 -0500 | [diff] [blame] | 469 | name: "uses_miui_camera", |
| 470 | module_type: "cc_defaults", |
| 471 | config_namespace: "blissGlobalVars", |
| 472 | bool_variables: ["uses_miui_camera"], |
| 473 | properties: ["cppflags"], |
| 474 | } |
| 475 | |
| 476 | uses_miui_camera { |
| 477 | name: "uses_miui_camera_defaults", |
| 478 | soong_config_variables: { |
| 479 | uses_miui_camera: { |
| 480 | cppflags: ["-DUSES_MIUI_CAMERA"], |
| 481 | }, |
| 482 | }, |
| 483 | } |
| 484 | |
| 485 | soong_config_module_type { |
Jake Weinstein | 48d1881 | 2024-04-27 14:39:45 -0500 | [diff] [blame] | 486 | name: "target_camera_package_name", |
| 487 | module_type: "cc_defaults", |
| 488 | config_namespace: "blissGlobalVars", |
| 489 | value_variables: ["target_camera_package_name"], |
| 490 | properties: ["cppflags"], |
| 491 | } |
| 492 | |
| 493 | target_camera_package_name { |
| 494 | name: "camera_package_name_defaults", |
| 495 | soong_config_variables: { |
| 496 | target_camera_package_name: { |
| 497 | cppflags: ["-DCAMERA_PACKAGE_NAME=\"%s\""], |
| 498 | }, |
| 499 | }, |
| 500 | } |
| 501 | |
| 502 | soong_config_module_type { |
Luofan Chen | ac764a4 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 503 | name: "health_charging_control", |
| 504 | module_type: "cc_defaults", |
| 505 | config_namespace: "blissGlobalVars", |
| 506 | bool_variables: [ |
| 507 | "target_health_charging_control_supports_toggle", |
| 508 | "target_health_charging_control_supports_bypass", |
| 509 | "target_health_charging_control_supports_deadline", |
| 510 | ], |
| 511 | value_variables: [ |
| 512 | "target_health_charging_control_charging_path", |
| 513 | "target_health_charging_control_charging_enabled", |
| 514 | "target_health_charging_control_charging_disabled", |
| 515 | "target_health_charging_control_deadline_path", |
| 516 | ], |
| 517 | properties: ["cppflags"], |
| 518 | } |
| 519 | |
| 520 | health_charging_control { |
| 521 | name: "health_charging_control_defaults", |
| 522 | soong_config_variables: { |
| 523 | target_health_charging_control_supports_toggle: { |
| 524 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE"], |
| 525 | }, |
| 526 | target_health_charging_control_supports_bypass: { |
| 527 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS"], |
| 528 | }, |
| 529 | target_health_charging_control_supports_deadline: { |
| 530 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE"], |
| 531 | }, |
| 532 | target_health_charging_control_charging_path: { |
| 533 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_PATH=\"%s\""], |
| 534 | }, |
| 535 | target_health_charging_control_charging_enabled: { |
| 536 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_ENABLED=\"%s\""], |
| 537 | }, |
| 538 | target_health_charging_control_charging_disabled: { |
| 539 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_DISABLED=\"%s\""], |
| 540 | }, |
| 541 | target_health_charging_control_deadline_path: { |
| 542 | cppflags: ["-DHEALTH_CHARGING_CONTROL_DEADLINE_PATH=\"%s\""], |
| 543 | }, |
| 544 | }, |
| 545 | } |
| 546 | |
Cosmin Tanislav | b608724 | 2024-08-22 13:25:31 +0300 | [diff] [blame^] | 547 | soong_config_module_type { |
| 548 | name: "powershare", |
| 549 | module_type: "cc_defaults", |
| 550 | config_namespace: "blissGlobalVars", |
| 551 | value_variables: [ |
| 552 | "target_powershare_path", |
| 553 | "target_powershare_enabled", |
| 554 | "target_powershare_disabled", |
| 555 | ], |
| 556 | properties: ["cppflags"], |
| 557 | } |
| 558 | |
| 559 | powershare { |
| 560 | name: "powershare_defaults", |
| 561 | soong_config_variables: { |
| 562 | target_powershare_path: { |
| 563 | cppflags: ["-DPOWERSHARE_PATH=\"%s\""], |
| 564 | }, |
| 565 | target_powershare_enabled: { |
| 566 | cppflags: ["-DPOWERSHARE_ENABLED=\"%s\""], |
| 567 | }, |
| 568 | target_powershare_disabled: { |
| 569 | cppflags: ["-DPOWERSHARE_DISABLED=\"%s\""], |
| 570 | }, |
| 571 | }, |
| 572 | } |
| 573 | |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 574 | // NVIDIA specific config modules |
| 575 | soong_config_module_type { |
| 576 | name: "nvidia_enhancements", |
| 577 | module_type: "cc_defaults", |
| 578 | config_namespace: "blissNvidiaVars", |
| 579 | bool_variables: ["uses_nvidia_enhancements"], |
| 580 | properties: ["cppflags"], |
| 581 | } |
| 582 | |
| 583 | nvidia_enhancements { |
| 584 | name: "nvidia_enhancements_defaults", |
| 585 | soong_config_variables: { |
| 586 | uses_nvidia_enhancements: { |
| 587 | cppflags: ["-DNV_ANDROID_FRAMEWORK_ENHANCEMENTS"], |
| 588 | }, |
| 589 | }, |
| 590 | } |
| 591 | |
| 592 | // QCOM specific config modules |
| 593 | soong_config_module_type { |
| 594 | name: "librmnetctl_pre_uplink", |
| 595 | module_type: "cc_defaults", |
| 596 | config_namespace: "blissQcomVars", |
| 597 | bool_variables: ["uses_pre_uplink_features_netmgrd"], |
| 598 | properties: ["cflags"], |
| 599 | } |
| 600 | |
| 601 | librmnetctl_pre_uplink { |
| 602 | name: "librmnetctl_pre_uplink_defaults", |
| 603 | soong_config_variables: { |
| 604 | uses_pre_uplink_features_netmgrd: { |
| 605 | cflags: ["-DNO_UPLINK_FEATURES"], |
| 606 | }, |
| 607 | }, |
| 608 | } |
| 609 | |
| 610 | soong_config_module_type { |
| 611 | name: "qti_camera_device", |
| 612 | module_type: "cc_defaults", |
| 613 | config_namespace: "blissQcomVars", |
| 614 | bool_variables: ["uses_qti_camera_device"], |
| 615 | properties: [ |
| 616 | "cppflags", |
| 617 | "shared_libs", |
| 618 | ], |
| 619 | } |
| 620 | |
| 621 | qti_camera_device { |
| 622 | name: "qti_camera_device_defaults", |
| 623 | soong_config_variables: { |
| 624 | uses_qti_camera_device: { |
| 625 | cppflags: ["-DQTI_CAMERA_DEVICE"], |
| 626 | shared_libs: ["vendor.qti.hardware.camera.device@1.0"], |
| 627 | }, |
| 628 | }, |
| 629 | } |
| 630 | |
| 631 | soong_config_module_type { |
LuK1337 | e7aff48 | 2021-04-10 10:56:15 +0200 | [diff] [blame] | 632 | name: "qti_usb_hal_supported_modes", |
| 633 | module_type: "cc_defaults", |
| 634 | config_namespace: "blissQcomVars", |
| 635 | bool_variables: ["supports_audio_accessory", "supports_debug_accessory"], |
| 636 | properties: [ |
| 637 | "cppflags", |
| 638 | ], |
| 639 | } |
| 640 | |
| 641 | qti_usb_hal_supported_modes { |
| 642 | name: "qti_usb_hal_supported_modes_defaults", |
| 643 | soong_config_variables: { |
| 644 | supports_audio_accessory: { |
| 645 | cppflags: ["-DSUPPORTS_AUDIO_ACCESSORY"], |
| 646 | }, |
| 647 | supports_debug_accessory: { |
| 648 | cppflags: ["-DSUPPORTS_DEBUG_ACCESSORY"], |
| 649 | }, |
| 650 | }, |
| 651 | } |
| 652 | |
| 653 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 654 | name: "extended_compress_format", |
| 655 | module_type: "cc_defaults", |
| 656 | config_namespace: "blissQcomVars", |
| 657 | bool_variables: ["supports_extended_compress_format"], |
| 658 | properties: ["cflags"], |
| 659 | } |
| 660 | |
| 661 | extended_compress_format { |
| 662 | name: "extended_compress_format_defaults", |
| 663 | soong_config_variables: { |
| 664 | supports_extended_compress_format: { |
| 665 | cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"], |
| 666 | }, |
| 667 | }, |
| 668 | } |
| 669 | |
| 670 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 671 | name: "surfaceflinger_qcom_extensions", |
| 672 | module_type: "cc_defaults", |
| 673 | config_namespace: "blissQcomVars", |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 674 | value_variables: ["qcom_display_headers_namespace"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 675 | properties: [ |
| 676 | "cppflags", |
| 677 | "header_libs", |
| 678 | ], |
| 679 | } |
| 680 | |
| 681 | surfaceflinger_qcom_extensions { |
| 682 | name: "surfaceflinger_qcom_ext_defaults", |
| 683 | soong_config_variables: { |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 684 | qcom_display_headers_namespace: { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 685 | cppflags: ["-DQCOM_UM_FAMILY"], |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 686 | header_libs: ["//%s:display_intf_headers"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 687 | }, |
| 688 | }, |
| 689 | } |
| 690 | |
| 691 | soong_config_module_type { |
daniml3 | 25cc527 | 2021-01-21 16:56:41 +0100 | [diff] [blame] | 692 | name: "inputdispatcher_skip_event_key", |
| 693 | module_type: "cc_defaults", |
| 694 | config_namespace: "blissGlobalVars", |
| 695 | value_variables: ["target_inputdispatcher_skip_event_key"], |
| 696 | properties: ["cppflags"], |
| 697 | } |
| 698 | |
| 699 | inputdispatcher_skip_event_key { |
| 700 | name: "inputdispatcher_skip_event_key_defaults", |
| 701 | soong_config_variables: { |
| 702 | target_inputdispatcher_skip_event_key: { |
| 703 | cppflags: ["-DINPUTDISPATCHER_SKIP_EVENT_KEY=%s"], |
| 704 | }, |
| 705 | }, |
| 706 | } |
cjh1249131356 | 82ceb03 | 2023-03-26 14:34:28 -0500 | [diff] [blame] | 707 | |
| 708 | soong_config_module_type { |
Arian | 770e37e | 2023-11-04 10:49:49 +0100 | [diff] [blame] | 709 | name: "qti_vibrator_hal", |
| 710 | module_type: "cc_defaults", |
| 711 | config_namespace: "blissQcomVars", |
| 712 | bool_variables: ["qti_vibrator_use_effect_stream"], |
| 713 | value_variables: ["qti_vibrator_effect_lib"], |
| 714 | properties: [ |
| 715 | "cppflags", |
| 716 | "shared_libs", |
| 717 | ], |
| 718 | } |
| 719 | |
| 720 | qti_vibrator_hal { |
| 721 | name: "qti_vibrator_hal_defaults", |
| 722 | soong_config_variables: { |
| 723 | qti_vibrator_use_effect_stream: { |
| 724 | cppflags: ["-DUSE_EFFECT_STREAM"], |
| 725 | }, |
| 726 | qti_vibrator_effect_lib: { |
| 727 | shared_libs: ["%s"], |
| 728 | }, |
| 729 | }, |
| 730 | } |
AnierinB | 03eb696 | 2024-07-19 18:09:00 +0000 | [diff] [blame] | 731 | |
| 732 | soong_config_module_type { |
| 733 | name: "spoof_first_api_level_32", |
| 734 | module_type: "cc_defaults", |
| 735 | config_namespace: "blissGlobalVars", |
| 736 | bool_variables: ["spoof_first_api_level_32"], |
| 737 | properties: ["cppflags"] |
| 738 | } |
| 739 | |
| 740 | spoof_first_api_level_32 { |
| 741 | name: "spoof_first_api_level_32_defaults", |
| 742 | soong_config_variables: { |
| 743 | spoof_first_api_level_32: { |
| 744 | cppflags: ["-DSPOOF_FIRST_API_LEVEL_32"], |
| 745 | }, |
| 746 | }, |
| 747 | } |