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