micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 1 | // Omni soong configs |
| 2 | soong_config_module_type { |
micky387 | 7cf172d | 2023-07-24 16:09:22 +0200 | [diff] [blame] | 3 | name: "omni_launcher3", |
| 4 | module_type: "java_defaults", |
| 5 | config_namespace: "omniGlobalVars", |
| 6 | bool_variables: [ |
| 7 | "launcher3Gapps", |
| 8 | "launcher3Mock", |
| 9 | ], |
| 10 | properties: ["static_libs"], |
| 11 | } |
| 12 | |
| 13 | omni_launcher3 { |
| 14 | name: "omni_launcher3_defaults", |
| 15 | soong_config_variables: { |
| 16 | launcher3Gapps: { |
| 17 | static_libs: ["Launcher3QuickStepLibGoogle"], |
| 18 | }, |
| 19 | launcher3Mock: { |
| 20 | static_libs: ["Launcher3QuickStepLibMock"], |
| 21 | }, |
| 22 | }, |
| 23 | } |
| 24 | |
| 25 | soong_config_module_type { |
LuK1337 | 664bf64 | 2023-06-14 21:52:43 +0200 | [diff] [blame] | 26 | name: "aapt_version_code", |
| 27 | module_type: "java_defaults", |
| 28 | config_namespace: "omniGlobalVars", |
| 29 | value_variables: ["aapt_version_code"], |
| 30 | properties: ["aaptflags"], |
| 31 | } |
| 32 | |
| 33 | aapt_version_code { |
| 34 | name: "aapt_version_code_defaults", |
| 35 | soong_config_variables: { |
| 36 | aapt_version_code: { |
| 37 | aaptflags: [ |
| 38 | "--version-code", |
| 39 | "%s", |
| 40 | ], |
| 41 | }, |
| 42 | }, |
| 43 | } |
| 44 | |
| 45 | soong_config_module_type { |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 46 | name: "vendor_init", |
| 47 | module_type: "cc_defaults", |
| 48 | config_namespace: "omniGlobalVars", |
| 49 | value_variables: ["target_init_vendor_lib"], |
| 50 | bool_variables: ["target_create_device_symlinks"], |
| 51 | properties: [ |
| 52 | "cflags", |
| 53 | "whole_static_libs", |
| 54 | ], |
| 55 | } |
| 56 | |
| 57 | vendor_init { |
| 58 | name: "vendor_init_defaults", |
| 59 | soong_config_variables: { |
| 60 | target_init_vendor_lib: { |
| 61 | whole_static_libs: ["%s"], |
| 62 | }, |
| 63 | target_create_device_symlinks: { |
| 64 | cflags: ["-DTARGET_CREATE_DEVICE_SYMLINKS"], |
| 65 | }, |
| 66 | }, |
| 67 | } |
| 68 | |
| 69 | soong_config_module_type { |
| 70 | name: "surfaceflinger_udfps_lib", |
| 71 | module_type: "cc_defaults", |
| 72 | config_namespace: "omniGlobalVars", |
| 73 | value_variables: ["target_surfaceflinger_udfps_lib"], |
| 74 | properties: [ |
| 75 | "cppflags", |
| 76 | "whole_static_libs", |
| 77 | ], |
| 78 | } |
| 79 | |
| 80 | surfaceflinger_udfps_lib { |
| 81 | name: "surfaceflinger_udfps_lib_defaults", |
| 82 | soong_config_variables: { |
| 83 | target_surfaceflinger_udfps_lib: { |
| 84 | cppflags: ["-DTARGET_PROVIDES_UDFPS_LIB"], |
| 85 | whole_static_libs: ["%s"], |
| 86 | }, |
| 87 | }, |
| 88 | } |
| 89 | |
| 90 | soong_config_module_type { |
| 91 | name: "use_sdclang", |
| 92 | module_type: "cc_defaults", |
| 93 | config_namespace: "omniGlobalVars", |
| 94 | bool_variables: ["target_use_sdclang"], |
| 95 | properties: [ |
| 96 | "cppflags", |
| 97 | ], |
| 98 | } |
| 99 | |
| 100 | use_sdclang { |
| 101 | name: "use_sdclang_defaults", |
| 102 | soong_config_variables: { |
| 103 | target_use_sdclang: { |
| 104 | cppflags: ["-DTARGET_USE_SDCLANG"], |
| 105 | }, |
| 106 | }, |
| 107 | } |
| 108 | |
| 109 | soong_config_module_type { |
| 110 | name: "camera_client_info", |
| 111 | module_type: "cc_defaults", |
| 112 | config_namespace: "omniGlobalVars", |
| 113 | bool_variables: ["target_camera_needs_client_info"], |
| 114 | properties: [ |
| 115 | "cppflags", |
| 116 | ], |
| 117 | } |
| 118 | |
| 119 | camera_client_info { |
| 120 | name: "camera_client_info_defaults", |
| 121 | soong_config_variables: { |
| 122 | target_camera_needs_client_info: { |
| 123 | cppflags: ["-DTARGET_CAMERA_NEEDS_CLIENT_INFO"], |
| 124 | }, |
| 125 | }, |
| 126 | } |
| 127 | |
| 128 | soong_config_module_type { |
| 129 | name: "enforce_ab_ota_partition_list", |
| 130 | module_type: "cc_defaults", |
| 131 | config_namespace: "omniGlobalVars", |
| 132 | bool_variables: ["target_enforce_ab_ota_partition_list"], |
| 133 | properties: [ |
| 134 | "cppflags", |
| 135 | ], |
| 136 | } |
| 137 | |
| 138 | enforce_ab_ota_partition_list { |
| 139 | name: "enforce_ab_ota_partition_list_defaults", |
| 140 | soong_config_variables: { |
| 141 | target_enforce_ab_ota_partition_list: { |
| 142 | cppflags: ["-DTARGET_ENFORCE_AB_OTA_PARTITION_LIST"], |
| 143 | }, |
| 144 | }, |
| 145 | } |
| 146 | |
| 147 | soong_config_module_type { |
| 148 | name: "enable_op_fastchg", |
| 149 | module_type: "cc_defaults", |
| 150 | config_namespace: "omniGlobalVars", |
| 151 | bool_variables: ["healthd_enable_op_fastchg"], |
| 152 | properties: ["cflags"], |
| 153 | } |
| 154 | |
| 155 | enable_op_fastchg { |
| 156 | name: "enable_op_fastchg_defaults", |
| 157 | soong_config_variables: { |
| 158 | healthd_enable_op_fastchg: { |
| 159 | cflags: ["-DHEALTHD_ENABLE_OP_FASTCHG_CHECK"], |
| 160 | }, |
| 161 | }, |
| 162 | } |
| 163 | |
| 164 | soong_config_module_type { |
| 165 | name: "use_battery_info", |
| 166 | module_type: "cc_defaults", |
| 167 | config_namespace: "omniGlobalVars", |
| 168 | bool_variables: ["healthd_use_battery_info"], |
| 169 | properties: ["cflags"], |
| 170 | } |
| 171 | |
| 172 | use_battery_info { |
| 173 | name: "use_battery_info_defaults", |
| 174 | soong_config_variables: { |
| 175 | healthd_use_battery_info: { |
| 176 | cflags: ["-DHEALTHD_USE_BATTERY_INFO"], |
| 177 | }, |
| 178 | }, |
| 179 | } |
| 180 | |
| 181 | soong_config_module_type { |
| 182 | name: "needsHWCOnFirstRef", |
| 183 | module_type: "cc_defaults", |
| 184 | config_namespace: "omniGlobalVars", |
| 185 | bool_variables: ["targetNeedsHWCOnFirstRef"], |
| 186 | properties: ["cppflags"], |
| 187 | } |
| 188 | |
| 189 | needsHWCOnFirstRef { |
| 190 | name: "needsHWCOnFirstRef_defaults", |
| 191 | soong_config_variables: { |
| 192 | targetNeedsHWCOnFirstRef: { |
| 193 | cppflags: ["-DTARGET_NEEDS_HWC_ONFIRSTREF"], |
| 194 | }, |
| 195 | }, |
| 196 | } |
| 197 | |
| 198 | soong_config_module_type { |
| 199 | name: "gralloc_handle_reserved_size", |
| 200 | module_type: "cc_defaults", |
| 201 | config_namespace: "omniGlobalVars", |
| 202 | bool_variables: ["gralloc_handle_has_reserved_size"], |
| 203 | properties: ["export_cflags"], |
| 204 | } |
| 205 | |
| 206 | gralloc_handle_reserved_size { |
| 207 | name: "gralloc_handle_has_reserved_size_defaults", |
| 208 | soong_config_variables: { |
| 209 | gralloc_handle_has_reserved_size: { |
| 210 | export_cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"], |
| 211 | }, |
| 212 | }, |
| 213 | } |
| 214 | |
Kevin F. Haggerty | 70b290e | 2023-01-11 13:38:38 +0100 | [diff] [blame] | 215 | soong_config_module_type { |
| 216 | name: "gralloc_10_usage_bits", |
| 217 | module_type: "cc_defaults", |
| 218 | config_namespace: "omniGlobalVars", |
| 219 | value_variables: ["additional_gralloc_10_usage_bits"], |
| 220 | properties: ["cppflags"], |
| 221 | } |
| 222 | |
| 223 | gralloc_10_usage_bits { |
| 224 | name: "gralloc_10_usage_bits_defaults", |
| 225 | soong_config_variables: { |
| 226 | additional_gralloc_10_usage_bits: { |
| 227 | cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"], |
| 228 | }, |
| 229 | }, |
| 230 | } |
| 231 | |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 232 | // QCOM specific config modules |
| 233 | soong_config_module_type { |
| 234 | name: "metadata_fde_key", |
| 235 | module_type: "cc_defaults", |
| 236 | config_namespace: "omniQcomVars", |
| 237 | bool_variables: ["uses_metadata_as_fde_key"], |
| 238 | properties: [ |
| 239 | "cppflags", |
| 240 | ], |
| 241 | } |
| 242 | |
| 243 | metadata_fde_key { |
| 244 | name: "metadata_fde_key_defaults", |
| 245 | soong_config_variables: { |
| 246 | uses_metadata_as_fde_key: { |
| 247 | cppflags: ["-DTARGET_USES_METADATA_AS_FDE_KEY"], |
| 248 | }, |
| 249 | }, |
| 250 | } |
| 251 | |
| 252 | soong_config_module_type { |
| 253 | name: "enable_tricolor_led", |
| 254 | module_type: "cc_defaults", |
| 255 | config_namespace: "omniQcomVars", |
| 256 | bool_variables: ["healthd_enable_tricolor_led"], |
| 257 | properties: ["cflags"], |
| 258 | } |
| 259 | |
| 260 | enable_tricolor_led { |
| 261 | name: "enable_tricolor_led_defaults", |
| 262 | soong_config_variables: { |
| 263 | healthd_enable_tricolor_led: { |
| 264 | cflags: ["-DHEALTHD_ENABLE_TRICOLOR_LED"], |
| 265 | }, |
| 266 | }, |
| 267 | } |
| 268 | |
| 269 | soong_config_module_type { |
micky387 | ad3c715 | 2023-05-17 00:31:53 +0200 | [diff] [blame] | 270 | name: "extended_compress_format", |
| 271 | module_type: "cc_defaults", |
| 272 | config_namespace: "omniQcomVars", |
| 273 | bool_variables: ["supports_extended_compress_format"], |
| 274 | properties: ["cflags"], |
| 275 | } |
| 276 | |
| 277 | extended_compress_format { |
| 278 | name: "extended_compress_format_defaults", |
| 279 | soong_config_variables: { |
| 280 | supports_extended_compress_format: { |
| 281 | cflags: ["-DENABLE_EXTENDED_COMPRESS_FORMAT"], |
| 282 | }, |
| 283 | }, |
| 284 | } |
| 285 | |
| 286 | soong_config_module_type { |
micky387 | 98cdea4 | 2022-11-16 10:29:48 +0100 | [diff] [blame] | 287 | name: "vold_hw_fde", |
| 288 | module_type: "cc_defaults", |
| 289 | config_namespace: "omniQcomVars", |
| 290 | bool_variables: ["supports_hw_fde"], |
| 291 | properties: [ |
| 292 | "cflags", |
| 293 | "header_libs", |
| 294 | "shared_libs", |
| 295 | ], |
| 296 | } |
| 297 | |
| 298 | vold_hw_fde { |
| 299 | name: "vold_hw_fde_defaults", |
| 300 | soong_config_variables: { |
| 301 | supports_hw_fde: { |
| 302 | cflags: ["-DCONFIG_HW_DISK_ENCRYPTION"], |
| 303 | header_libs: ["libcryptfs_hw_headers"], |
| 304 | shared_libs: ["libcryptfs_hw"], |
| 305 | }, |
| 306 | }, |
| 307 | } |
| 308 | |
| 309 | soong_config_module_type { |
| 310 | name: "vold_hw_fde_perf", |
| 311 | module_type: "cc_defaults", |
| 312 | config_namespace: "omniQcomVars", |
| 313 | bool_variables: ["supports_hw_fde_perf"], |
| 314 | properties: [ |
| 315 | "cflags", |
| 316 | "shared_libs", |
| 317 | ], |
| 318 | } |
| 319 | |
| 320 | vold_hw_fde_perf { |
| 321 | name: "vold_hw_fde_perf_defaults", |
| 322 | soong_config_variables: { |
| 323 | supports_hw_fde_perf: { |
| 324 | cflags: ["-DCONFIG_HW_DISK_ENCRYPT_PERF"], |
| 325 | shared_libs: ["libcryptfs_hw"], |
| 326 | }, |
| 327 | }, |
| 328 | } |