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 |
Rashed Abdel-Tawab | ba5ea35 | 2019-09-07 17:01:13 -0700 | [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", |
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 | |
| 45 | cc_library_headers { |
| 46 | name: "generated_kernel_headers", |
| 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 | |
| 53 | // Target platform agnostic config modules |
| 54 | soong_config_module_type { |
LuK1337 | eb28eac | 2023-06-24 21:03:23 -0500 | [diff] [blame] | 55 | name: "aapt_version_code", |
| 56 | module_type: "java_defaults", |
| 57 | config_namespace: "blissGlobalVars", |
| 58 | value_variables: ["aapt_version_code"], |
| 59 | properties: ["aaptflags"], |
| 60 | } |
| 61 | |
| 62 | aapt_version_code { |
| 63 | name: "aapt_version_code_defaults", |
| 64 | soong_config_variables: { |
| 65 | aapt_version_code: { |
| 66 | aaptflags: [ |
| 67 | "--version-code", |
| 68 | "%s", |
| 69 | ], |
| 70 | }, |
| 71 | }, |
| 72 | } |
| 73 | |
| 74 | soong_config_module_type { |
Rohit Sekhar | af63211 | 2023-09-19 15:48:20 +0530 | [diff] [blame] | 75 | name: "camera_override_format_from_reserved", |
| 76 | module_type: "cc_defaults", |
Arian | 770e37e | 2023-11-04 10:49:49 +0100 | [diff] [blame] | 77 | config_namespace: "blissGlobalVars", |
Rohit Sekhar | af63211 | 2023-09-19 15:48:20 +0530 | [diff] [blame] | 78 | bool_variables: ["camera_override_format_from_reserved"], |
| 79 | properties: ["cppflags"], |
| 80 | } |
| 81 | |
| 82 | camera_override_format_from_reserved { |
| 83 | name: "camera_override_format_from_reserved_defaults", |
| 84 | soong_config_variables: { |
| 85 | camera_override_format_from_reserved: { |
| 86 | cppflags: ["-DTARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED"], |
| 87 | }, |
| 88 | }, |
| 89 | } |
| 90 | |
| 91 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 92 | name: "gralloc_10_usage_bits", |
| 93 | module_type: "cc_defaults", |
| 94 | config_namespace: "blissGlobalVars", |
| 95 | value_variables: ["additional_gralloc_10_usage_bits"], |
| 96 | properties: ["cppflags"], |
| 97 | } |
| 98 | |
| 99 | gralloc_10_usage_bits { |
| 100 | name: "gralloc_10_usage_bits_defaults", |
| 101 | soong_config_variables: { |
| 102 | additional_gralloc_10_usage_bits: { |
| 103 | cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"], |
| 104 | }, |
| 105 | }, |
| 106 | } |
| 107 | |
| 108 | soong_config_module_type { |
Bruno Martins | 21d1572 | 2023-05-16 21:40:28 +0100 | [diff] [blame] | 109 | name: "gralloc_handle_custom_content_md_reserved_size", |
| 110 | module_type: "cc_defaults", |
| 111 | config_namespace: "blissGlobalVars", |
| 112 | bool_variables: ["gralloc_handle_has_custom_content_md_reserved_size"], |
| 113 | properties: ["export_cflags"], |
| 114 | } |
| 115 | |
| 116 | gralloc_handle_custom_content_md_reserved_size { |
| 117 | name: "gralloc_handle_has_custom_content_md_reserved_size_defaults", |
| 118 | soong_config_variables: { |
| 119 | gralloc_handle_has_custom_content_md_reserved_size: { |
| 120 | export_cflags: ["-DGRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE"], |
| 121 | }, |
| 122 | }, |
| 123 | } |
| 124 | |
| 125 | soong_config_module_type { |
Luofan Chen | 506d14a | 2023-11-27 22:30:51 +0800 | [diff] [blame] | 126 | name: "sdmcore_has_is_display_hw_available", |
| 127 | module_type: "cc_defaults", |
| 128 | config_namespace: "blissGlobalVars", |
| 129 | bool_variables: ["sdmcore_has_is_display_hw_available_func"], |
| 130 | properties: ["cflags"], |
| 131 | } |
| 132 | |
| 133 | sdmcore_has_is_display_hw_available { |
| 134 | name: "sdmcore_has_is_display_hw_available_func_defaults", |
| 135 | soong_config_variables: { |
| 136 | sdmcore_has_is_display_hw_available_func: { |
| 137 | cflags: ["-DSDMCORE_HAS_IS_DISPLAY_HW_AVAILABLE_FUNC"], |
| 138 | }, |
| 139 | }, |
| 140 | } |
| 141 | |
| 142 | soong_config_module_type { |
Chirayu Desai | 981d210 | 2022-09-17 04:47:54 +0530 | [diff] [blame] | 143 | name: "gralloc_handle_reserved_size", |
| 144 | module_type: "cc_defaults", |
| 145 | config_namespace: "blissGlobalVars", |
| 146 | bool_variables: ["gralloc_handle_has_reserved_size"], |
| 147 | properties: ["export_cflags"], |
| 148 | } |
| 149 | |
| 150 | gralloc_handle_reserved_size { |
| 151 | name: "gralloc_handle_has_reserved_size_defaults", |
| 152 | soong_config_variables: { |
| 153 | gralloc_handle_has_reserved_size: { |
| 154 | export_cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"], |
| 155 | }, |
| 156 | }, |
| 157 | } |
| 158 | |
| 159 | soong_config_module_type { |
Michael Bestas | d65cc35 | 2023-10-20 01:47:13 +0300 | [diff] [blame] | 160 | name: "gralloc_handle_ubwcp_format", |
| 161 | module_type: "cc_defaults", |
| 162 | config_namespace: "blissGlobalVars", |
| 163 | bool_variables: ["gralloc_handle_has_ubwcp_format"], |
| 164 | properties: ["export_cflags"], |
| 165 | } |
| 166 | |
| 167 | gralloc_handle_ubwcp_format { |
| 168 | name: "gralloc_handle_has_ubwcp_format_defaults", |
| 169 | soong_config_variables: { |
| 170 | gralloc_handle_has_ubwcp_format: { |
| 171 | export_cflags: ["-DGRALLOC_HANDLE_HAS_UBWCP_FORMAT"], |
| 172 | }, |
| 173 | }, |
| 174 | } |
| 175 | |
| 176 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 177 | name: "target_shim_libs", |
| 178 | module_type: "cc_defaults", |
| 179 | config_namespace: "blissGlobalVars", |
| 180 | value_variables: ["target_ld_shim_libs"], |
| 181 | properties: ["cppflags"], |
| 182 | } |
| 183 | |
| 184 | target_shim_libs { |
| 185 | name: "shim_libs_defaults", |
| 186 | soong_config_variables: { |
| 187 | target_ld_shim_libs: { |
| 188 | cppflags: ["-DLD_SHIM_LIBS=\"%s\""], |
| 189 | }, |
| 190 | }, |
| 191 | } |
| 192 | |
| 193 | soong_config_module_type { |
| 194 | name: "vendor_init", |
| 195 | module_type: "cc_defaults", |
| 196 | config_namespace: "blissGlobalVars", |
| 197 | value_variables: ["target_init_vendor_lib"], |
| 198 | properties: ["whole_static_libs"], |
| 199 | } |
| 200 | |
| 201 | vendor_init { |
| 202 | name: "vendor_init_defaults", |
| 203 | soong_config_variables: { |
| 204 | target_init_vendor_lib: { |
| 205 | whole_static_libs: ["%s"], |
| 206 | }, |
| 207 | }, |
| 208 | } |
| 209 | |
| 210 | soong_config_module_type { |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 211 | name: "surfaceflinger_udfps_lib", |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 212 | module_type: "cc_defaults", |
| 213 | config_namespace: "blissGlobalVars", |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 214 | value_variables: ["target_surfaceflinger_udfps_lib"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 215 | properties: [ |
| 216 | "cppflags", |
| 217 | "whole_static_libs", |
| 218 | ], |
| 219 | } |
| 220 | |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 221 | surfaceflinger_udfps_lib { |
| 222 | name: "surfaceflinger_udfps_lib_defaults", |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 223 | soong_config_variables: { |
TheScarastic | 8541a94 | 2021-10-19 08:07:54 +0000 | [diff] [blame] | 224 | target_surfaceflinger_udfps_lib: { |
| 225 | cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 226 | whole_static_libs: ["%s"], |
| 227 | }, |
| 228 | }, |
| 229 | } |
| 230 | |
| 231 | soong_config_module_type { |
LuK1337 | bc866dd | 2022-03-23 20:39:30 +0100 | [diff] [blame] | 232 | name: "trust_usb_control", |
| 233 | module_type: "cc_defaults", |
| 234 | config_namespace: "blissGlobalVars", |
| 235 | value_variables: [ |
| 236 | "target_trust_usb_control_path", |
| 237 | "target_trust_usb_control_enable", |
| 238 | "target_trust_usb_control_disable", |
| 239 | ], |
| 240 | properties: ["cppflags"], |
| 241 | } |
| 242 | |
| 243 | trust_usb_control { |
| 244 | name: "trust_usb_control_defaults", |
| 245 | soong_config_variables: { |
| 246 | target_trust_usb_control_path: { |
| 247 | cppflags: ["-DUSB_CONTROL_PATH=\"%s\""], |
| 248 | }, |
| 249 | target_trust_usb_control_enable: { |
| 250 | cppflags: ["-DUSB_CONTROL_ENABLE=\"%s\""], |
| 251 | }, |
| 252 | target_trust_usb_control_disable: { |
| 253 | cppflags: ["-DUSB_CONTROL_DISABLE=\"%s\""], |
| 254 | }, |
| 255 | }, |
| 256 | } |
| 257 | |
| 258 | soong_config_module_type { |
Sebastiano Barezzi | d881fbd | 2023-06-25 17:05:50 -0500 | [diff] [blame] | 259 | name: "needs_camera_boottime", |
| 260 | module_type: "cc_defaults", |
| 261 | config_namespace: "blissGlobalVars", |
| 262 | bool_variables: ["needs_camera_boottime"], |
| 263 | properties: ["cppflags"], |
| 264 | } |
| 265 | |
| 266 | needs_camera_boottime { |
| 267 | name: "needs_camera_boottime_defaults", |
| 268 | soong_config_variables: { |
| 269 | needs_camera_boottime: { |
| 270 | cppflags: ["-DTARGET_CAMERA_BOOTTIME_TIMESTAMP"], |
| 271 | }, |
| 272 | }, |
| 273 | } |
| 274 | |
| 275 | soong_config_module_type { |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 276 | name: "camera_needs_client_info", |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 277 | module_type: "cc_defaults", |
| 278 | config_namespace: "blissGlobalVars", |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 279 | bool_variables: ["camera_needs_client_info"], |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 280 | properties: ["cppflags"], |
| 281 | } |
| 282 | |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 283 | camera_needs_client_info { |
| 284 | name: "camera_needs_client_info_defaults", |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 285 | soong_config_variables: { |
Lup Gabriel | 09fc685 | 2021-06-06 18:24:41 +0900 | [diff] [blame] | 286 | camera_needs_client_info: { |
| 287 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO"], |
Marko Man | 25a4ca4 | 2021-08-06 22:26:43 -0500 | [diff] [blame] | 288 | }, |
| 289 | }, |
| 290 | } |
| 291 | |
| 292 | soong_config_module_type { |
Hikari-no-Tenshi | 1de1c91 | 2023-06-25 17:10:37 -0500 | [diff] [blame] | 293 | name: "camera_needs_client_info_lib", |
| 294 | module_type: "cc_defaults", |
| 295 | config_namespace: "blissGlobalVars", |
| 296 | bool_variables: ["camera_needs_client_info_lib"], |
| 297 | properties: [ |
| 298 | "cppflags", |
| 299 | "shared_libs", |
| 300 | ], |
| 301 | } |
| 302 | |
| 303 | camera_needs_client_info_lib { |
| 304 | name: "camera_needs_client_info_lib_defaults", |
| 305 | soong_config_variables: { |
| 306 | camera_needs_client_info_lib: { |
| 307 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB"], |
| 308 | shared_libs: ["//hardware/oneplus:vendor.oneplus.hardware.camera@1.0"], |
| 309 | }, |
| 310 | }, |
| 311 | } |
| 312 | |
| 313 | soong_config_module_type { |
ShevT | 8ad2744 | 2023-06-25 17:17:24 -0500 | [diff] [blame] | 314 | name: "camera_needs_client_info_lib_oplus", |
| 315 | module_type: "cc_defaults", |
| 316 | config_namespace: "blissGlobalVars", |
| 317 | bool_variables: ["camera_needs_client_info_lib_oplus"], |
| 318 | properties: [ |
| 319 | "cppflags", |
| 320 | "shared_libs", |
| 321 | ], |
| 322 | } |
| 323 | |
| 324 | camera_needs_client_info_lib_oplus { |
| 325 | name: "camera_needs_client_info_lib_oplus_defaults", |
| 326 | soong_config_variables: { |
| 327 | camera_needs_client_info_lib_oplus: { |
| 328 | cppflags: ["-DCAMERA_NEEDS_CLIENT_INFO_LIB_OPLUS"], |
| 329 | shared_libs: ["vendor.oplus.hardware.cameraMDM@2.0"], |
| 330 | }, |
| 331 | }, |
| 332 | } |
| 333 | |
| 334 | soong_config_module_type { |
Nolen Johnson | fc326dd | 2023-03-18 00:31:32 -0400 | [diff] [blame] | 335 | name: "bootloader_message_offset", |
| 336 | module_type: "cc_defaults", |
| 337 | config_namespace: "blissGlobalVars", |
| 338 | value_variables: ["bootloader_message_offset"], |
| 339 | properties: [ |
| 340 | "cflags", |
| 341 | "export_cflags", |
| 342 | ], |
| 343 | } |
| 344 | |
| 345 | bootloader_message_offset { |
| 346 | name: "bootloader_message_offset_defaults", |
| 347 | soong_config_variables: { |
| 348 | bootloader_message_offset: { |
| 349 | cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
| 350 | export_cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
| 351 | }, |
| 352 | }, |
| 353 | } |
| 354 | |
| 355 | soong_config_module_type { |
Danny Trunk | bcd7220 | 2022-03-23 22:28:02 +0100 | [diff] [blame] | 356 | name: "egl_display_array", |
| 357 | module_type: "cc_defaults", |
| 358 | config_namespace: "blissGlobalVars", |
| 359 | bool_variables: ["uses_egl_display_array"], |
| 360 | properties: ["cflags"], |
| 361 | } |
| 362 | |
| 363 | egl_display_array { |
| 364 | name: "egl_display_array_defaults", |
| 365 | soong_config_variables: { |
| 366 | uses_egl_display_array: { |
| 367 | cflags: ["-DEGL_DISPLAY_ARRAY"], |
| 368 | }, |
| 369 | }, |
| 370 | } |
| 371 | |
Luofan Chen | ac764a4 | 2023-05-05 10:54:14 +0800 | [diff] [blame] | 372 | soong_config_module_type { |
| 373 | name: "health_charging_control", |
| 374 | module_type: "cc_defaults", |
| 375 | config_namespace: "blissGlobalVars", |
| 376 | bool_variables: [ |
| 377 | "target_health_charging_control_supports_toggle", |
| 378 | "target_health_charging_control_supports_bypass", |
| 379 | "target_health_charging_control_supports_deadline", |
| 380 | ], |
| 381 | value_variables: [ |
| 382 | "target_health_charging_control_charging_path", |
| 383 | "target_health_charging_control_charging_enabled", |
| 384 | "target_health_charging_control_charging_disabled", |
| 385 | "target_health_charging_control_deadline_path", |
| 386 | ], |
| 387 | properties: ["cppflags"], |
| 388 | } |
| 389 | |
| 390 | health_charging_control { |
| 391 | name: "health_charging_control_defaults", |
| 392 | soong_config_variables: { |
| 393 | target_health_charging_control_supports_toggle: { |
| 394 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE"], |
| 395 | }, |
| 396 | target_health_charging_control_supports_bypass: { |
| 397 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS"], |
| 398 | }, |
| 399 | target_health_charging_control_supports_deadline: { |
| 400 | cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE"], |
| 401 | }, |
| 402 | target_health_charging_control_charging_path: { |
| 403 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_PATH=\"%s\""], |
| 404 | }, |
| 405 | target_health_charging_control_charging_enabled: { |
| 406 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_ENABLED=\"%s\""], |
| 407 | }, |
| 408 | target_health_charging_control_charging_disabled: { |
| 409 | cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_DISABLED=\"%s\""], |
| 410 | }, |
| 411 | target_health_charging_control_deadline_path: { |
| 412 | cppflags: ["-DHEALTH_CHARGING_CONTROL_DEADLINE_PATH=\"%s\""], |
| 413 | }, |
| 414 | }, |
| 415 | } |
| 416 | |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 417 | // NVIDIA specific config modules |
| 418 | soong_config_module_type { |
| 419 | name: "nvidia_enhancements", |
| 420 | module_type: "cc_defaults", |
| 421 | config_namespace: "blissNvidiaVars", |
| 422 | bool_variables: ["uses_nvidia_enhancements"], |
| 423 | properties: ["cppflags"], |
| 424 | } |
| 425 | |
| 426 | nvidia_enhancements { |
| 427 | name: "nvidia_enhancements_defaults", |
| 428 | soong_config_variables: { |
| 429 | uses_nvidia_enhancements: { |
| 430 | cppflags: ["-DNV_ANDROID_FRAMEWORK_ENHANCEMENTS"], |
| 431 | }, |
| 432 | }, |
| 433 | } |
| 434 | |
| 435 | // QCOM specific config modules |
| 436 | soong_config_module_type { |
| 437 | name: "librmnetctl_pre_uplink", |
| 438 | module_type: "cc_defaults", |
| 439 | config_namespace: "blissQcomVars", |
| 440 | bool_variables: ["uses_pre_uplink_features_netmgrd"], |
| 441 | properties: ["cflags"], |
| 442 | } |
| 443 | |
| 444 | librmnetctl_pre_uplink { |
| 445 | name: "librmnetctl_pre_uplink_defaults", |
| 446 | soong_config_variables: { |
| 447 | uses_pre_uplink_features_netmgrd: { |
| 448 | cflags: ["-DNO_UPLINK_FEATURES"], |
| 449 | }, |
| 450 | }, |
| 451 | } |
| 452 | |
| 453 | soong_config_module_type { |
| 454 | name: "qti_camera_device", |
| 455 | module_type: "cc_defaults", |
| 456 | config_namespace: "blissQcomVars", |
| 457 | bool_variables: ["uses_qti_camera_device"], |
| 458 | properties: [ |
| 459 | "cppflags", |
| 460 | "shared_libs", |
| 461 | ], |
| 462 | } |
| 463 | |
| 464 | qti_camera_device { |
| 465 | name: "qti_camera_device_defaults", |
| 466 | soong_config_variables: { |
| 467 | uses_qti_camera_device: { |
| 468 | cppflags: ["-DQTI_CAMERA_DEVICE"], |
| 469 | shared_libs: ["vendor.qti.hardware.camera.device@1.0"], |
| 470 | }, |
| 471 | }, |
| 472 | } |
| 473 | |
| 474 | soong_config_module_type { |
LuK1337 | e7aff48 | 2021-04-10 10:56:15 +0200 | [diff] [blame] | 475 | name: "qti_usb_hal_supported_modes", |
| 476 | module_type: "cc_defaults", |
| 477 | config_namespace: "blissQcomVars", |
| 478 | bool_variables: ["supports_audio_accessory", "supports_debug_accessory"], |
| 479 | properties: [ |
| 480 | "cppflags", |
| 481 | ], |
| 482 | } |
| 483 | |
| 484 | qti_usb_hal_supported_modes { |
| 485 | name: "qti_usb_hal_supported_modes_defaults", |
| 486 | soong_config_variables: { |
| 487 | supports_audio_accessory: { |
| 488 | cppflags: ["-DSUPPORTS_AUDIO_ACCESSORY"], |
| 489 | }, |
| 490 | supports_debug_accessory: { |
| 491 | cppflags: ["-DSUPPORTS_DEBUG_ACCESSORY"], |
| 492 | }, |
| 493 | }, |
| 494 | } |
| 495 | |
| 496 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 497 | name: "extended_compress_format", |
| 498 | module_type: "cc_defaults", |
| 499 | config_namespace: "blissQcomVars", |
| 500 | bool_variables: ["supports_extended_compress_format"], |
| 501 | properties: ["cflags"], |
| 502 | } |
| 503 | |
| 504 | extended_compress_format { |
| 505 | name: "extended_compress_format_defaults", |
| 506 | soong_config_variables: { |
| 507 | supports_extended_compress_format: { |
| 508 | cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"], |
| 509 | }, |
| 510 | }, |
| 511 | } |
| 512 | |
| 513 | soong_config_module_type { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 514 | name: "surfaceflinger_qcom_extensions", |
| 515 | module_type: "cc_defaults", |
| 516 | config_namespace: "blissQcomVars", |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 517 | value_variables: ["qcom_display_headers_namespace"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 518 | properties: [ |
| 519 | "cppflags", |
| 520 | "header_libs", |
| 521 | ], |
| 522 | } |
| 523 | |
| 524 | surfaceflinger_qcom_extensions { |
| 525 | name: "surfaceflinger_qcom_ext_defaults", |
| 526 | soong_config_variables: { |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 527 | qcom_display_headers_namespace: { |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 528 | cppflags: ["-DQCOM_UM_FAMILY"], |
Alessandro Astone | 3fc779e | 2021-01-05 18:04:14 +0100 | [diff] [blame] | 529 | header_libs: ["//%s:display_intf_headers"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 530 | }, |
| 531 | }, |
| 532 | } |
| 533 | |
| 534 | soong_config_module_type { |
daniml3 | 25cc527 | 2021-01-21 16:56:41 +0100 | [diff] [blame] | 535 | name: "inputdispatcher_skip_event_key", |
| 536 | module_type: "cc_defaults", |
| 537 | config_namespace: "blissGlobalVars", |
| 538 | value_variables: ["target_inputdispatcher_skip_event_key"], |
| 539 | properties: ["cppflags"], |
| 540 | } |
| 541 | |
| 542 | inputdispatcher_skip_event_key { |
| 543 | name: "inputdispatcher_skip_event_key_defaults", |
| 544 | soong_config_variables: { |
| 545 | target_inputdispatcher_skip_event_key: { |
| 546 | cppflags: ["-DINPUTDISPATCHER_SKIP_EVENT_KEY=%s"], |
| 547 | }, |
| 548 | }, |
| 549 | } |
cjh1249131356 | 82ceb03 | 2023-03-26 14:34:28 -0500 | [diff] [blame] | 550 | |
| 551 | soong_config_module_type { |
| 552 | name: "uses_oplus_camera", |
| 553 | module_type: "cc_defaults", |
| 554 | config_namespace: "blissGlobalVars", |
| 555 | bool_variables: ["uses_oplus_camera"], |
| 556 | properties: ["cppflags"], |
| 557 | } |
| 558 | |
| 559 | uses_oplus_camera { |
| 560 | name: "uses_oplus_camera_defaults", |
| 561 | soong_config_variables: { |
| 562 | uses_oplus_camera: { |
| 563 | cppflags: ["-DUSES_OPLUS_CAMERA"], |
| 564 | }, |
| 565 | }, |
| 566 | } |
cjh1249131356 | 5a49002 | 2023-03-26 15:01:07 -0500 | [diff] [blame] | 567 | |
| 568 | soong_config_module_type { |
| 569 | name: "uses_nothing_camera", |
| 570 | module_type: "cc_defaults", |
| 571 | config_namespace: "blissGlobalVars", |
| 572 | bool_variables: ["uses_nothing_camera"], |
| 573 | properties: ["cppflags"], |
| 574 | } |
| 575 | |
| 576 | uses_nothing_camera { |
| 577 | name: "uses_nothing_camera_defaults", |
| 578 | soong_config_variables: { |
| 579 | uses_nothing_camera: { |
| 580 | cppflags: ["-DUSES_NOTHING_CAMERA"], |
| 581 | }, |
| 582 | }, |
| 583 | } |
Arian | 770e37e | 2023-11-04 10:49:49 +0100 | [diff] [blame] | 584 | |
| 585 | soong_config_module_type { |
| 586 | name: "qti_vibrator_hal", |
| 587 | module_type: "cc_defaults", |
| 588 | config_namespace: "blissQcomVars", |
| 589 | bool_variables: ["qti_vibrator_use_effect_stream"], |
| 590 | value_variables: ["qti_vibrator_effect_lib"], |
| 591 | properties: [ |
| 592 | "cppflags", |
| 593 | "shared_libs", |
| 594 | ], |
| 595 | } |
| 596 | |
| 597 | qti_vibrator_hal { |
| 598 | name: "qti_vibrator_hal_defaults", |
| 599 | soong_config_variables: { |
| 600 | qti_vibrator_use_effect_stream: { |
| 601 | cppflags: ["-DUSE_EFFECT_STREAM"], |
| 602 | }, |
| 603 | qti_vibrator_effect_lib: { |
| 604 | shared_libs: ["%s"], |
| 605 | }, |
| 606 | }, |
| 607 | } |