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 | |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 20 | // Target platform agnostic config modules |
| 21 | soong_config_module_type { |
| 22 | name: "gralloc_10_usage_bits", |
| 23 | module_type: "cc_defaults", |
| 24 | config_namespace: "blissGlobalVars", |
| 25 | value_variables: ["additional_gralloc_10_usage_bits"], |
| 26 | properties: ["cppflags"], |
| 27 | } |
| 28 | |
| 29 | gralloc_10_usage_bits { |
| 30 | name: "gralloc_10_usage_bits_defaults", |
| 31 | soong_config_variables: { |
| 32 | additional_gralloc_10_usage_bits: { |
| 33 | cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"], |
| 34 | }, |
| 35 | }, |
| 36 | } |
| 37 | |
| 38 | soong_config_module_type { |
| 39 | name: "target_process_sdk_version_overrides", |
| 40 | module_type: "cc_defaults", |
| 41 | config_namespace: "blissGlobalVars", |
| 42 | value_variables: ["target_process_sdk_version_override"], |
| 43 | properties: ["cppflags"], |
| 44 | } |
| 45 | |
| 46 | target_process_sdk_version_overrides { |
| 47 | name: "process_sdk_version_overrides_defaults", |
| 48 | soong_config_variables: { |
| 49 | target_process_sdk_version_override: { |
| 50 | cppflags: ["-DSDK_VERSION_OVERRIDES=\"%s\""], |
| 51 | }, |
| 52 | }, |
| 53 | } |
| 54 | |
| 55 | soong_config_module_type { |
| 56 | name: "target_shim_libs", |
| 57 | module_type: "cc_defaults", |
| 58 | config_namespace: "blissGlobalVars", |
| 59 | value_variables: ["target_ld_shim_libs"], |
| 60 | properties: ["cppflags"], |
| 61 | } |
| 62 | |
| 63 | target_shim_libs { |
| 64 | name: "shim_libs_defaults", |
| 65 | soong_config_variables: { |
| 66 | target_ld_shim_libs: { |
| 67 | cppflags: ["-DLD_SHIM_LIBS=\"%s\""], |
| 68 | }, |
| 69 | }, |
| 70 | } |
| 71 | |
| 72 | soong_config_module_type { |
| 73 | name: "vendor_init", |
| 74 | module_type: "cc_defaults", |
| 75 | config_namespace: "blissGlobalVars", |
| 76 | value_variables: ["target_init_vendor_lib"], |
| 77 | properties: ["whole_static_libs"], |
| 78 | } |
| 79 | |
| 80 | vendor_init { |
| 81 | name: "vendor_init_defaults", |
| 82 | soong_config_variables: { |
| 83 | target_init_vendor_lib: { |
| 84 | whole_static_libs: ["%s"], |
| 85 | }, |
| 86 | }, |
| 87 | } |
| 88 | |
| 89 | soong_config_module_type { |
| 90 | name: "surfaceflinger_fod_lib", |
| 91 | module_type: "cc_defaults", |
| 92 | config_namespace: "blissGlobalVars", |
| 93 | value_variables: ["target_surfaceflinger_fod_lib"], |
| 94 | properties: [ |
| 95 | "cppflags", |
| 96 | "whole_static_libs", |
| 97 | ], |
| 98 | } |
| 99 | |
| 100 | surfaceflinger_fod_lib { |
| 101 | name: "surfaceflinger_fod_lib_defaults", |
| 102 | soong_config_variables: { |
| 103 | target_surfaceflinger_fod_lib: { |
| 104 | cppflags: ["-DTARGET_PROVIDES_FOD_LIB"], |
| 105 | whole_static_libs: ["%s"], |
| 106 | }, |
| 107 | }, |
| 108 | } |
| 109 | |
| 110 | soong_config_module_type { |
| 111 | name: "ignores_ftp_pptp_conntrack_failure_defaults", |
| 112 | module_type: "cc_defaults", |
| 113 | config_namespace: "blissGlobalVars", |
| 114 | bool_variables: ["ignores_ftp_pptp_conntrack_failure"], |
| 115 | properties: ["cppflags"], |
| 116 | } |
| 117 | |
| 118 | ignores_ftp_pptp_conntrack_failure_defaults { |
| 119 | name: "ignores_ftp_pptp_conntrack_failure", |
| 120 | soong_config_variables: { |
| 121 | ignores_ftp_pptp_conntrack_failure: { |
Aayush Gupta | 3f8f66c | 2020-10-21 16:29:53 +0530 | [diff] [blame] | 122 | cppflags: ["-DIGNORES_FTP_PPTP_CONNTRACK_FAILURE"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 123 | }, |
| 124 | }, |
| 125 | } |
| 126 | |
| 127 | soong_config_module_type { |
| 128 | name: "needs_netd_direct_connect_rule", |
| 129 | module_type: "cc_defaults", |
| 130 | config_namespace: "blissGlobalVars", |
| 131 | bool_variables: ["needs_netd_direct_connect_rule"], |
| 132 | properties: ["cppflags"], |
| 133 | } |
| 134 | |
| 135 | needs_netd_direct_connect_rule { |
| 136 | name: "needs_netd_direct_connect_rule_defaults", |
| 137 | soong_config_variables: { |
| 138 | needs_netd_direct_connect_rule: { |
| 139 | cppflags: ["-DNEEDS_NETD_DIRECT_CONNECT_RULE"], |
| 140 | }, |
| 141 | }, |
| 142 | } |
| 143 | |
| 144 | soong_config_module_type { |
| 145 | name: "no_cameraserver", |
| 146 | module_type: "cc_defaults", |
| 147 | config_namespace: "blissGlobalVars", |
| 148 | bool_variables: ["has_legacy_camera_hal1"], |
| 149 | properties: [ |
| 150 | "cppflags", |
| 151 | ], |
| 152 | } |
| 153 | |
| 154 | no_cameraserver { |
| 155 | name: "no_cameraserver_defaults", |
| 156 | soong_config_variables: { |
| 157 | has_legacy_camera_hal1: { |
| 158 | cppflags: [ |
| 159 | "-DNO_CAMERA_SERVER", |
| 160 | "-Wno-overloaded-virtual", |
| 161 | ], |
| 162 | }, |
| 163 | }, |
| 164 | } |
| 165 | |
| 166 | soong_config_module_type { |
| 167 | name: "camera_in_mediaserver", |
| 168 | module_type: "cc_defaults", |
| 169 | config_namespace: "blissGlobalVars", |
| 170 | bool_variables: ["has_legacy_camera_hal1"], |
| 171 | properties: [ |
| 172 | "overrides", |
| 173 | "shared_libs", |
| 174 | ], |
| 175 | } |
| 176 | |
| 177 | camera_in_mediaserver { |
| 178 | name: "camera_in_mediaserver_defaults", |
| 179 | defaults: ["no_cameraserver_defaults"], |
| 180 | soong_config_variables: { |
| 181 | has_legacy_camera_hal1: { |
| 182 | overrides: ["cameraserver"], |
| 183 | shared_libs: [ |
| 184 | "android.hardware.camera.common@1.0", |
| 185 | "android.hardware.camera.device@3.4", |
| 186 | "android.hardware.camera.provider@2.6", |
| 187 | "libcameraservice", |
| 188 | "libgui", |
| 189 | ], |
| 190 | }, |
| 191 | }, |
| 192 | } |
| 193 | |
| 194 | soong_config_module_type { |
| 195 | name: "bootloader_message_offset", |
| 196 | module_type: "cc_defaults", |
| 197 | config_namespace: "blissGlobalVars", |
| 198 | value_variables: ["bootloader_message_offset"], |
Alessandro Astone | be38c0a | 2020-10-01 13:01:36 +0200 | [diff] [blame] | 199 | properties: [ |
| 200 | "cflags", |
| 201 | "export_cflags", |
| 202 | ], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 203 | } |
| 204 | |
| 205 | bootloader_message_offset { |
| 206 | name: "bootloader_message_offset_defaults", |
| 207 | soong_config_variables: { |
| 208 | bootloader_message_offset: { |
| 209 | cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
Alessandro Astone | be38c0a | 2020-10-01 13:01:36 +0200 | [diff] [blame] | 210 | export_cflags: ["-DBOARD_RECOVERY_BLDRMSG_OFFSET=%s"], |
Pig | 02f678a | 2020-10-15 02:58:37 +0800 | [diff] [blame] | 211 | }, |
| 212 | }, |
| 213 | } |
| 214 | |
| 215 | soong_config_module_type { |
| 216 | name: "camera_parameter_library", |
| 217 | module_type: "cc_defaults", |
| 218 | config_namespace: "blissGlobalVars", |
| 219 | value_variables: ["uses_camera_parameter_lib"], |
| 220 | properties: ["whole_static_libs"], |
| 221 | } |
| 222 | |
| 223 | camera_parameter_library { |
| 224 | name: "camera_parameter_library_defaults", |
| 225 | soong_config_variables: { |
| 226 | uses_camera_parameter_lib: { |
| 227 | whole_static_libs: ["%s"], |
| 228 | }, |
| 229 | }, |
| 230 | } |
| 231 | |
| 232 | // NVIDIA specific config modules |
| 233 | soong_config_module_type { |
| 234 | name: "nvidia_enhancements", |
| 235 | module_type: "cc_defaults", |
| 236 | config_namespace: "blissNvidiaVars", |
| 237 | bool_variables: ["uses_nvidia_enhancements"], |
| 238 | properties: ["cppflags"], |
| 239 | } |
| 240 | |
| 241 | nvidia_enhancements { |
| 242 | name: "nvidia_enhancements_defaults", |
| 243 | soong_config_variables: { |
| 244 | uses_nvidia_enhancements: { |
| 245 | cppflags: ["-DNV_ANDROID_FRAMEWORK_ENHANCEMENTS"], |
| 246 | }, |
| 247 | }, |
| 248 | } |
| 249 | |
| 250 | // QCOM specific config modules |
| 251 | soong_config_module_type { |
| 252 | name: "librmnetctl_pre_uplink", |
| 253 | module_type: "cc_defaults", |
| 254 | config_namespace: "blissQcomVars", |
| 255 | bool_variables: ["uses_pre_uplink_features_netmgrd"], |
| 256 | properties: ["cflags"], |
| 257 | } |
| 258 | |
| 259 | librmnetctl_pre_uplink { |
| 260 | name: "librmnetctl_pre_uplink_defaults", |
| 261 | soong_config_variables: { |
| 262 | uses_pre_uplink_features_netmgrd: { |
| 263 | cflags: ["-DNO_UPLINK_FEATURES"], |
| 264 | }, |
| 265 | }, |
| 266 | } |
| 267 | |
| 268 | soong_config_module_type { |
| 269 | name: "qti_camera_device", |
| 270 | module_type: "cc_defaults", |
| 271 | config_namespace: "blissQcomVars", |
| 272 | bool_variables: ["uses_qti_camera_device"], |
| 273 | properties: [ |
| 274 | "cppflags", |
| 275 | "shared_libs", |
| 276 | ], |
| 277 | } |
| 278 | |
| 279 | qti_camera_device { |
| 280 | name: "qti_camera_device_defaults", |
| 281 | soong_config_variables: { |
| 282 | uses_qti_camera_device: { |
| 283 | cppflags: ["-DQTI_CAMERA_DEVICE"], |
| 284 | shared_libs: ["vendor.qti.hardware.camera.device@1.0"], |
| 285 | }, |
| 286 | }, |
| 287 | } |
| 288 | |
| 289 | soong_config_module_type { |
| 290 | name: "extended_compress_format", |
| 291 | module_type: "cc_defaults", |
| 292 | config_namespace: "blissQcomVars", |
| 293 | bool_variables: ["supports_extended_compress_format"], |
| 294 | properties: ["cflags"], |
| 295 | } |
| 296 | |
| 297 | extended_compress_format { |
| 298 | name: "extended_compress_format_defaults", |
| 299 | soong_config_variables: { |
| 300 | supports_extended_compress_format: { |
| 301 | cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"], |
| 302 | }, |
| 303 | }, |
| 304 | } |
| 305 | |
| 306 | soong_config_module_type { |
| 307 | name: "vold_hw_fde", |
| 308 | module_type: "cc_defaults", |
| 309 | config_namespace: "blissQcomVars", |
| 310 | bool_variables: ["supports_hw_fde"], |
| 311 | properties: [ |
| 312 | "cflags", |
| 313 | "header_libs", |
| 314 | "shared_libs", |
| 315 | ], |
| 316 | } |
| 317 | |
| 318 | vold_hw_fde { |
| 319 | name: "vold_hw_fde_defaults", |
| 320 | soong_config_variables: { |
| 321 | supports_hw_fde: { |
| 322 | cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"], |
| 323 | header_libs: ["libcryptfs_hw_headers"], |
| 324 | shared_libs: ["libcryptfs_hw"], |
| 325 | }, |
| 326 | }, |
| 327 | } |
| 328 | |
| 329 | soong_config_module_type { |
| 330 | name: "vold_hw_fde_perf", |
| 331 | module_type: "cc_defaults", |
| 332 | config_namespace: "blissQcomVars", |
| 333 | bool_variables: ["supports_hw_fde_perf"], |
| 334 | properties: [ |
| 335 | "cflags", |
| 336 | "shared_libs", |
| 337 | ], |
| 338 | } |
| 339 | |
| 340 | vold_hw_fde_perf { |
| 341 | name: "vold_hw_fde_perf_defaults", |
| 342 | soong_config_variables: { |
| 343 | supports_hw_fde_perf: { |
| 344 | cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"], |
| 345 | shared_libs: ["libcryptfs_hw"], |
| 346 | }, |
| 347 | }, |
| 348 | } |
| 349 | |
| 350 | soong_config_module_type { |
| 351 | name: "qti_cryptfshw_qsee", |
| 352 | module_type: "cc_defaults", |
| 353 | config_namespace: "blissQcomVars", |
| 354 | bool_variables: ["should_wait_for_qsee"], |
| 355 | properties: ["cflags"], |
| 356 | } |
| 357 | |
| 358 | qti_cryptfshw_qsee { |
| 359 | name: "qti_cryptfshw_qsee_defaults", |
| 360 | soong_config_variables: { |
| 361 | should_wait_for_qsee: { |
| 362 | cflags: ["-DWAIT_FOR_QSEE"], |
| 363 | }, |
| 364 | }, |
| 365 | } |
| 366 | |
| 367 | soong_config_module_type { |
| 368 | name: "surfaceflinger_qcom_extensions", |
| 369 | module_type: "cc_defaults", |
| 370 | config_namespace: "blissQcomVars", |
| 371 | value_variables: ["qcom_soong_namespace"], |
| 372 | properties: [ |
| 373 | "cppflags", |
| 374 | "header_libs", |
| 375 | ], |
| 376 | } |
| 377 | |
| 378 | surfaceflinger_qcom_extensions { |
| 379 | name: "surfaceflinger_qcom_ext_defaults", |
| 380 | soong_config_variables: { |
| 381 | qcom_soong_namespace: { |
| 382 | cppflags: ["-DQCOM_UM_FAMILY"], |
| 383 | header_libs: ["//%s/display:display_intf_headers"], |
| 384 | }, |
| 385 | }, |
| 386 | } |
| 387 | |
| 388 | soong_config_module_type { |
| 389 | name: "stagefright_qcom_legacy", |
| 390 | module_type: "cc_defaults", |
| 391 | config_namespace: "blissQcomVars", |
| 392 | bool_variables: ["uses_qcom_bsp_legacy"], |
| 393 | properties: ["cppflags"], |
| 394 | } |
| 395 | |
| 396 | stagefright_qcom_legacy { |
| 397 | name: "stagefright_qcom_legacy_defaults", |
| 398 | soong_config_variables: { |
| 399 | uses_qcom_bsp_legacy: { |
| 400 | cppflags: ["-DQCOM_BSP_LEGACY"], |
| 401 | }, |
| 402 | }, |
| 403 | } |