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 { |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 221 | name: "surfaceflinger_udfps_lib", |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 222 | module_type: "cc_defaults", |
| 223 | config_namespace: "blissGlobalVars", |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 224 | value_variables: ["target_surfaceflinger_udfps_lib"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 225 | properties: [ |
| 226 | "cppflags", |
| 227 | "whole_static_libs", |
| 228 | ], |
| 229 | } |
| 230 | |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 231 | surfaceflinger_udfps_lib { |
| 232 | name: "surfaceflinger_udfps_lib_defaults", |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 233 | soong_config_variables: { |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 234 | target_surfaceflinger_udfps_lib: { |
| 235 | cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 236 | whole_static_libs: ["%s"], |
| 237 | }, |
| 238 | }, |
| 239 | } |
| 240 | |
| 241 | soong_config_module_type { |
LuK1337 | bc866dd | 2022-03-23 20:39:30 +0100 | [diff] [blame] | 242 | name: "trust_usb_control", |
| 243 | module_type: "cc_defaults", |
| 244 | config_namespace: "blissGlobalVars", |
| 245 | value_variables: [ |
| 246 | "target_trust_usb_control_path", |
| 247 | "target_trust_usb_control_enable", |
| 248 | "target_trust_usb_control_disable", |
| 249 | ], |
| 250 | properties: ["cppflags"], |
| 251 | } |
| 252 | |
| 253 | trust_usb_control { |
| 254 | name: "trust_usb_control_defaults", |
| 255 | soong_config_variables: { |
| 256 | target_trust_usb_control_path: { |
| 257 | cppflags: ["-DUSB_CONTROL_PATH=\"%s\""], |
| 258 | }, |
| 259 | target_trust_usb_control_enable: { |
| 260 | cppflags: ["-DUSB_CONTROL_ENABLE=\"%s\""], |
| 261 | }, |
| 262 | target_trust_usb_control_disable: { |
| 263 | cppflags: ["-DUSB_CONTROL_DISABLE=\"%s\""], |
| 264 | }, |
| 265 | }, |
| 266 | } |
| 267 | |
| 268 | soong_config_module_type { |
Sebastiano Barezzi | d881fbd | 2023-06-25 17:05:50 -0500 | [diff] [blame] | 269 | name: "needs_camera_boottime", |
| 270 | module_type: "cc_defaults", |
| 271 | config_namespace: "blissGlobalVars", |
| 272 | bool_variables: ["needs_camera_boottime"], |
| 273 | properties: ["cppflags"], |
| 274 | } |
| 275 | |
| 276 | needs_camera_boottime { |
| 277 | name: "needs_camera_boottime_defaults", |
| 278 | soong_config_variables: { |
| 279 | needs_camera_boottime: { |
| 280 | cppflags: ["-DTARGET_CAMERA_BOOTTIME_TIMESTAMP"], |
| 281 | }, |
| 282 | }, |
| 283 | } |
| 284 | |
| 285 | soong_config_module_type { |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 286 | name: "camera_needs_client_info", |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 287 | module_type: "cc_defaults", |
| 288 | config_namespace: "blissGlobalVars", |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 289 | bool_variables: ["camera_needs_client_info"], |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 290 | properties: ["cppflags"], |
| 291 | } |
| 292 | |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 293 | camera_needs_client_info { |
| 294 | name: "camera_needs_client_info_defaults", |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 295 | soong_config_variables: { |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 296 | camera_needs_client_info: { |
| 297 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO"], |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 298 | }, |
| 299 | }, |
| 300 | } |
| 301 | |
| 302 | soong_config_module_type { |
Hikari-no-Tenshi | 1de1c91 | 2023-06-25 17:10:37 -0500 | [diff] [blame] | 303 | name: "camera_needs_client_info_lib", |
| 304 | module_type: "cc_defaults", |
| 305 | config_namespace: "blissGlobalVars", |
| 306 | bool_variables: ["camera_needs_client_info_lib"], |
| 307 | properties: [ |
| 308 | "cppflags", |
| 309 | "shared_libs", |
| 310 | ], |
| 311 | } |
| 312 | |
| 313 | camera_needs_client_info_lib { |
| 314 | name: "camera_needs_client_info_lib_defaults", |
| 315 | soong_config_variables: { |
| 316 | camera_needs_client_info_lib: { |
| 317 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB"], |
| 318 | shared_libs: ["//hardware/oneplus:vendor.oneplus.hardware.camera@1.0"], |
| 319 | }, |
| 320 | }, |
| 321 | } |
| 322 | |
| 323 | soong_config_module_type { |
ShevT | 8ad2744 | 2023-06-25 17:17:24 -0500 | [diff] [blame] | 324 | name: "camera_needs_client_info_lib_oplus", |
| 325 | module_type: "cc_defaults", |
| 326 | config_namespace: "blissGlobalVars", |
| 327 | bool_variables: ["camera_needs_client_info_lib_oplus"], |
| 328 | properties: [ |
| 329 | "cppflags", |
| 330 | "shared_libs", |
| 331 | ], |
| 332 | } |
| 333 | |
| 334 | camera_needs_client_info_lib_oplus { |
| 335 | name: "camera_needs_client_info_lib_oplus_defaults", |
| 336 | soong_config_variables: { |
| 337 | camera_needs_client_info_lib_oplus: { |
| 338 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB_OPLUS"], |
| 339 | shared_libs: ["vendor.oplus.hardware.cameraMDM@2.0"], |
| 340 | }, |
| 341 | }, |
| 342 | } |
| 343 | |
| 344 | soong_config_module_type { |
Nolen Johnson | fc326dd | 2023-03-18 00:31:32 -0400 | [diff] [blame] | 345 | name: "bootloader_message_offset", |
| 346 | module_type: "cc_defaults", |
| 347 | config_namespace: "blissGlobalVars", |
| 348 | value_variables: ["bootloader_message_offset"], |
| 349 | properties: [ |
| 350 | "cflags", |
| 351 | "export_cflags", |
| 352 | ], |
| 353 | } |
| 354 | |
| 355 | bootloader_message_offset { |
| 356 | name: "bootloader_message_offset_defaults", |
| 357 | soong_config_variables: { |
| 358 | bootloader_message_offset: { |
| 359 | cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
| 360 | export_cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
| 361 | }, |
| 362 | }, |
| 363 | } |
| 364 | |
| 365 | soong_config_module_type { |
Danny Trunk | bcd7220 | 2022-03-23 22:28:02 +0100 | [diff] [blame] | 366 | name: "egl_display_array", |
| 367 | module_type: "cc_defaults", |
| 368 | config_namespace: "blissGlobalVars", |
| 369 | bool_variables: ["uses_egl_display_array"], |
| 370 | properties: ["cflags"], |
| 371 | } |
| 372 | |
| 373 | egl_display_array { |
| 374 | name: "egl_display_array_defaults", |
| 375 | soong_config_variables: { |
| 376 | uses_egl_display_array: { |
| 377 | cflags: ["-DEGL_DISPLAY_ARRAY"], |
| 378 | }, |
| 379 | }, |
| 380 | } |
| 381 | |
Luofan Chen | ac764a4 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 382 | soong_config_module_type { |
cjh1249131356 | 24f3be3 | 2024-03-10 22:18:41 -0500 | [diff] [blame] | 383 | name: "uses_nothing_camera", |
| 384 | module_type: "cc_defaults", |
| 385 | config_namespace: "blissGlobalVars", |
| 386 | bool_variables: ["uses_nothing_camera"], |
| 387 | properties: ["cppflags"], |
| 388 | } |
| 389 | |
| 390 | uses_nothing_camera { |
| 391 | name: "uses_nothing_camera_defaults", |
| 392 | soong_config_variables: { |
| 393 | uses_nothing_camera: { |
| 394 | cppflags: ["-DUSES_NOTHING_CAMERA"], |
| 395 | }, |
| 396 | }, |
| 397 | } |
| 398 | |
| 399 | soong_config_module_type { |
| 400 | name: "uses_oplus_camera", |
| 401 | module_type: "cc_defaults", |
| 402 | config_namespace: "blissGlobalVars", |
| 403 | bool_variables: ["uses_oplus_camera"], |
| 404 | properties: ["cppflags"], |
| 405 | } |
| 406 | |
| 407 | uses_oplus_camera { |
| 408 | name: "uses_oplus_camera_defaults", |
| 409 | soong_config_variables: { |
| 410 | uses_oplus_camera: { |
| 411 | cppflags: ["-DUSES_OPLUS_CAMERA"], |
| 412 | }, |
| 413 | }, |
| 414 | } |
| 415 | |
| 416 | soong_config_module_type { |
| 417 | name: "uses_oppo_camera", |
| 418 | module_type: "cc_defaults", |
| 419 | config_namespace: "blissGlobalVars", |
| 420 | bool_variables: ["uses_oppo_camera"], |
| 421 | properties: ["cppflags"], |
| 422 | } |
| 423 | |
| 424 | uses_oppo_camera { |
| 425 | name: "uses_oppo_camera_defaults", |
| 426 | soong_config_variables: { |
| 427 | uses_oppo_camera: { |
| 428 | cppflags: ["-DUSES_OPPO_CAMERA"], |
| 429 | }, |
| 430 | }, |
| 431 | } |
| 432 | |
| 433 | soong_config_module_type { |
Adithya R | c0a47a6 | 2024-03-10 22:24:45 -0500 | [diff] [blame] | 434 | name: "uses_miui_camera", |
| 435 | module_type: "cc_defaults", |
| 436 | config_namespace: "blissGlobalVars", |
| 437 | bool_variables: ["uses_miui_camera"], |
| 438 | properties: ["cppflags"], |
| 439 | } |
| 440 | |
| 441 | uses_miui_camera { |
| 442 | name: "uses_miui_camera_defaults", |
| 443 | soong_config_variables: { |
| 444 | uses_miui_camera: { |
| 445 | cppflags: ["-DUSES_MIUI_CAMERA"], |
| 446 | }, |
| 447 | }, |
| 448 | } |
| 449 | |
| 450 | soong_config_module_type { |
Jake Weinstein | 48d1881 | 2024-04-27 14:39:45 -0500 | [diff] [blame^] | 451 | name: "target_camera_package_name", |
| 452 | module_type: "cc_defaults", |
| 453 | config_namespace: "blissGlobalVars", |
| 454 | value_variables: ["target_camera_package_name"], |
| 455 | properties: ["cppflags"], |
| 456 | } |
| 457 | |
| 458 | target_camera_package_name { |
| 459 | name: "camera_package_name_defaults", |
| 460 | soong_config_variables: { |
| 461 | target_camera_package_name: { |
| 462 | cppflags: ["-DCAMERA_PACKAGE_NAME=\"%s\""], |
| 463 | }, |
| 464 | }, |
| 465 | } |
| 466 | |
| 467 | soong_config_module_type { |
Luofan Chen | ac764a4 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 468 | name: "health_charging_control", |
| 469 | module_type: "cc_defaults", |
| 470 | config_namespace: "blissGlobalVars", |
| 471 | bool_variables: [ |
| 472 | "target_health_charging_control_supports_toggle", |
| 473 | "target_health_charging_control_supports_bypass", |
| 474 | "target_health_charging_control_supports_deadline", |
| 475 | ], |
| 476 | value_variables: [ |
| 477 | "target_health_charging_control_charging_path", |
| 478 | "target_health_charging_control_charging_enabled", |
| 479 | "target_health_charging_control_charging_disabled", |
| 480 | "target_health_charging_control_deadline_path", |
| 481 | ], |
| 482 | properties: ["cppflags"], |
| 483 | } |
| 484 | |
| 485 | health_charging_control { |
| 486 | name: "health_charging_control_defaults", |
| 487 | soong_config_variables: { |
| 488 | target_health_charging_control_supports_toggle: { |
| 489 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE"], |
| 490 | }, |
| 491 | target_health_charging_control_supports_bypass: { |
| 492 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS"], |
| 493 | }, |
| 494 | target_health_charging_control_supports_deadline: { |
| 495 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE"], |
| 496 | }, |
| 497 | target_health_charging_control_charging_path: { |
| 498 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_PATH=\"%s\""], |
| 499 | }, |
| 500 | target_health_charging_control_charging_enabled: { |
| 501 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_ENABLED=\"%s\""], |
| 502 | }, |
| 503 | target_health_charging_control_charging_disabled: { |
| 504 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_DISABLED=\"%s\""], |
| 505 | }, |
| 506 | target_health_charging_control_deadline_path: { |
| 507 | cppflags: ["-DHEALTH_CHARGING_CONTROL_DEADLINE_PATH=\"%s\""], |
| 508 | }, |
| 509 | }, |
| 510 | } |
| 511 | |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 512 | // NVIDIA specific config modules |
| 513 | soong_config_module_type { |
| 514 | name: "nvidia_enhancements", |
| 515 | module_type: "cc_defaults", |
| 516 | config_namespace: "blissNvidiaVars", |
| 517 | bool_variables: ["uses_nvidia_enhancements"], |
| 518 | properties: ["cppflags"], |
| 519 | } |
| 520 | |
| 521 | nvidia_enhancements { |
| 522 | name: "nvidia_enhancements_defaults", |
| 523 | soong_config_variables: { |
| 524 | uses_nvidia_enhancements: { |
| 525 | cppflags: ["-DNV_ANDROID_FRAMEWORK_ENHANCEMENTS"], |
| 526 | }, |
| 527 | }, |
| 528 | } |
| 529 | |
| 530 | // QCOM specific config modules |
| 531 | soong_config_module_type { |
| 532 | name: "librmnetctl_pre_uplink", |
| 533 | module_type: "cc_defaults", |
| 534 | config_namespace: "blissQcomVars", |
| 535 | bool_variables: ["uses_pre_uplink_features_netmgrd"], |
| 536 | properties: ["cflags"], |
| 537 | } |
| 538 | |
| 539 | librmnetctl_pre_uplink { |
| 540 | name: "librmnetctl_pre_uplink_defaults", |
| 541 | soong_config_variables: { |
| 542 | uses_pre_uplink_features_netmgrd: { |
| 543 | cflags: ["-DNO_UPLINK_FEATURES"], |
| 544 | }, |
| 545 | }, |
| 546 | } |
| 547 | |
| 548 | soong_config_module_type { |
| 549 | name: "qti_camera_device", |
| 550 | module_type: "cc_defaults", |
| 551 | config_namespace: "blissQcomVars", |
| 552 | bool_variables: ["uses_qti_camera_device"], |
| 553 | properties: [ |
| 554 | "cppflags", |
| 555 | "shared_libs", |
| 556 | ], |
| 557 | } |
| 558 | |
| 559 | qti_camera_device { |
| 560 | name: "qti_camera_device_defaults", |
| 561 | soong_config_variables: { |
| 562 | uses_qti_camera_device: { |
| 563 | cppflags: ["-DQTI_CAMERA_DEVICE"], |
| 564 | shared_libs: ["vendor.qti.hardware.camera.device@1.0"], |
| 565 | }, |
| 566 | }, |
| 567 | } |
| 568 | |
| 569 | soong_config_module_type { |
LuK1337 | e7aff48 | 2021-04-10 10:56:15 +0200 | [diff] [blame] | 570 | name: "qti_usb_hal_supported_modes", |
| 571 | module_type: "cc_defaults", |
| 572 | config_namespace: "blissQcomVars", |
| 573 | bool_variables: ["supports_audio_accessory", "supports_debug_accessory"], |
| 574 | properties: [ |
| 575 | "cppflags", |
| 576 | ], |
| 577 | } |
| 578 | |
| 579 | qti_usb_hal_supported_modes { |
| 580 | name: "qti_usb_hal_supported_modes_defaults", |
| 581 | soong_config_variables: { |
| 582 | supports_audio_accessory: { |
| 583 | cppflags: ["-DSUPPORTS_AUDIO_ACCESSORY"], |
| 584 | }, |
| 585 | supports_debug_accessory: { |
| 586 | cppflags: ["-DSUPPORTS_DEBUG_ACCESSORY"], |
| 587 | }, |
| 588 | }, |
| 589 | } |
| 590 | |
| 591 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 592 | name: "extended_compress_format", |
| 593 | module_type: "cc_defaults", |
| 594 | config_namespace: "blissQcomVars", |
| 595 | bool_variables: ["supports_extended_compress_format"], |
| 596 | properties: ["cflags"], |
| 597 | } |
| 598 | |
| 599 | extended_compress_format { |
| 600 | name: "extended_compress_format_defaults", |
| 601 | soong_config_variables: { |
| 602 | supports_extended_compress_format: { |
| 603 | cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"], |
| 604 | }, |
| 605 | }, |
| 606 | } |
| 607 | |
| 608 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 609 | name: "surfaceflinger_qcom_extensions", |
| 610 | module_type: "cc_defaults", |
| 611 | config_namespace: "blissQcomVars", |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 612 | value_variables: ["qcom_display_headers_namespace"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 613 | properties: [ |
| 614 | "cppflags", |
| 615 | "header_libs", |
| 616 | ], |
| 617 | } |
| 618 | |
| 619 | surfaceflinger_qcom_extensions { |
| 620 | name: "surfaceflinger_qcom_ext_defaults", |
| 621 | soong_config_variables: { |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 622 | qcom_display_headers_namespace: { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 623 | cppflags: ["-DQCOM_UM_FAMILY"], |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 624 | header_libs: ["//%s:display_intf_headers"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 625 | }, |
| 626 | }, |
| 627 | } |
| 628 | |
| 629 | soong_config_module_type { |
daniml3 | 25cc527 | 2021-01-21 16:56:41 +0100 | [diff] [blame] | 630 | name: "inputdispatcher_skip_event_key", |
| 631 | module_type: "cc_defaults", |
| 632 | config_namespace: "blissGlobalVars", |
| 633 | value_variables: ["target_inputdispatcher_skip_event_key"], |
| 634 | properties: ["cppflags"], |
| 635 | } |
| 636 | |
| 637 | inputdispatcher_skip_event_key { |
| 638 | name: "inputdispatcher_skip_event_key_defaults", |
| 639 | soong_config_variables: { |
| 640 | target_inputdispatcher_skip_event_key: { |
| 641 | cppflags: ["-DINPUTDISPATCHER_SKIP_EVENT_KEY=%s"], |
| 642 | }, |
| 643 | }, |
| 644 | } |
cjh1249131356 | 82ceb03 | 2023-03-26 14:34:28 -0500 | [diff] [blame] | 645 | |
| 646 | soong_config_module_type { |
Arian | 770e37e | 2023-11-04 10:49:49 +0100 | [diff] [blame] | 647 | name: "qti_vibrator_hal", |
| 648 | module_type: "cc_defaults", |
| 649 | config_namespace: "blissQcomVars", |
| 650 | bool_variables: ["qti_vibrator_use_effect_stream"], |
| 651 | value_variables: ["qti_vibrator_effect_lib"], |
| 652 | properties: [ |
| 653 | "cppflags", |
| 654 | "shared_libs", |
| 655 | ], |
| 656 | } |
| 657 | |
| 658 | qti_vibrator_hal { |
| 659 | name: "qti_vibrator_hal_defaults", |
| 660 | soong_config_variables: { |
| 661 | qti_vibrator_use_effect_stream: { |
| 662 | cppflags: ["-DUSE_EFFECT_STREAM"], |
| 663 | }, |
| 664 | qti_vibrator_effect_lib: { |
| 665 | shared_libs: ["%s"], |
| 666 | }, |
| 667 | }, |
| 668 | } |