platform_build_soong/bp2build
Spandan Das 474d43bda6 Check if soong_config_var propertystruct is zero before panicking
If we have a soong_config_module_type with target.android_<arch>.*
properties, we should only panic if a soong_config_var is used to select
on those properties. We already call `IsZero` in an upper function, but
we need to call it in `AddSoongConfigPropertiesFromTargetStruct` as well
because conditions_default gets its own struct.

Test: unit tests
Test: repro'd cmd in b/293206386#comment1, it passes now
Bug: 293206386
Change-Id: I23f14f83cc9be66487625e292e26b204dfea4f9a
2023-07-27 23:18:57 +00:00
..
aar_conversion_test.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
aidl_library_conversion_test.go Implement bp2build converter for aidl_library 2023-05-11 11:39:43 -04:00
Android.bp Create build settings for all product config variables 2023-07-25 11:47:20 -07:00
android_app_certificate_conversion_test.go export common bp2build testing functions 2022-08-01 14:49:31 -04:00
android_app_conversion_test.go Support target and max sdk version in app bp2build. 2023-07-10 11:50:00 -04:00
androidbp_to_build_templates.go Handle nameless modules during bp2build conversion. 2022-09-14 09:32:17 -07:00
apex_conversion_test.go add apex_available_name variant_version to bp2build unit tests 2023-06-06 15:47:30 -04:00
apex_key_conversion_test.go Introduce BazelStringOrLabelFromProp. 2022-10-20 14:57:37 +00:00
api_domain_conversion_test.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
bp2build.go Platform mapping-based product config 2023-07-17 16:27:08 -07:00
bp2build_product_config.go Create build settings for all product config variables 2023-07-25 11:47:20 -07:00
bp2build_product_config_test.go Create build settings for all product config variables 2023-07-25 11:47:20 -07:00
bpf_conversion_test.go Add bp2build converter for bpf 2022-09-28 14:18:45 -07:00
build_conversion.go Delete aliases to prebuilts 2023-07-14 00:43:57 +00:00
build_conversion_test.go Revert "Add unit test for parsing build files in bp2build" 2023-06-27 22:52:07 +00:00
bzl_conversion.go Replace SortedStringKeys with SortedKeys 2023-02-28 16:51:32 -08:00
bzl_conversion_test.go Add a function to create config_setting(s) 2023-04-28 19:43:43 +00:00
cc_binary_conversion_test.go Merge "Handle static binary repetition of system deps" into main 2023-07-19 14:16:52 +00:00
cc_library_conversion_test.go Update name of blocklist feature in bp2build 2023-07-12 13:45:10 +00:00
cc_library_headers_conversion_test.go Add variant_prepend support for all the properties in bp2build 2023-01-04 11:19:50 -08:00
cc_library_shared_conversion_test.go Update name of blocklist feature in bp2build 2023-07-12 13:45:10 +00:00
cc_library_static_conversion_test.go Update name of blocklist feature in bp2build 2023-07-12 13:45:10 +00:00
cc_object_conversion_test.go convert cc_object crt property in bp2build 2023-01-26 10:21:58 -05:00
cc_prebuilt_binary_conversion_test.go Support cc_prebuilt_binary building with Bazel 2022-10-06 19:39:09 +00:00
cc_prebuilt_library_conversion_test.go bp2build: migrate export_{,system_}include_dirs -> *includes for cc_prebuilt_library{,_static,_shared} 2023-04-11 18:56:41 +00:00
cc_prebuilt_library_shared_conversion_test.go bp2build: migrate export_{,system_}include_dirs -> *includes for cc_prebuilt_library{,_static,_shared} 2023-04-11 18:56:41 +00:00
cc_prebuilt_library_shared_test.go Rename prebuilt_library_* to cc_prebuilt_library_* 2022-10-20 14:51:55 +00:00
cc_prebuilt_library_static_conversion_test.go bp2build: migrate export_{,system_}include_dirs -> *includes for cc_prebuilt_library{,_static,_shared} 2023-04-11 18:56:41 +00:00
cc_prebuilt_library_static_test.go Revert "Revert "Produce _alwayslink sibling targets through bp2b..." 2023-03-10 22:14:29 +00:00
cc_prebuilt_object_conversion_test.go Add bp2build support for cc_prebuilt_object 2022-12-09 13:58:58 -08:00
cc_test_conversion_test.go Make libtest_* deps explicit in BUILD files 2023-07-21 23:04:32 +00:00
cc_yasm_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
configurability.go Print default val if all vals in axis match default val 2023-05-03 00:35:13 +00:00
constants.go Have bp2build generate BUILD.bazel instead of generating BUILD. 2021-05-18 09:01:36 -04:00
conversion.go Move bazel environment variable list to bzl files 2023-06-14 15:45:12 -07:00
conversion_test.go Move bazel environment variable list to bzl files 2023-06-14 15:45:12 -07:00
droidstubs_conversion_test.go Create (API) bp2build converters for droidstubs 2022-12-28 23:58:52 +00:00
filegroup_conversion_test.go Revert "Revert "Revert "Add aidl.deps prop to include aidl implicit deps explicitly in Android.bp""" 2023-06-14 12:24:17 +00:00
genrule_conversion_test.go Correct genrule path references 2023-06-02 19:09:35 -04:00
gensrcs_conversion_test.go bp2build data property -> data attr in gensrcs 2023-06-09 15:37:45 -04:00
go_conversion_test.go Respect package boundaries in bp2build conversion of go modules 2023-07-13 00:22:26 +00:00
java_binary_host_conversion_test.go Update runpath for jni libs 2023-06-06 00:07:40 +00:00
java_host_for_device_conversion_test.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
java_import_conversion_test.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
java_library_conversion_test.go Bp2build for errorprone modules that manually enabled/disabled it 2023-07-13 15:50:18 +00:00
java_library_host_conversion_test.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
java_plugin_conversion_test.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
java_proto_conversion_test.go Bp2build support for sdk_version and java_version. 2023-04-11 21:05:48 -04:00
java_sdk_library_conversion_test.go Add limited bp2build converter of java_sdk_library 2023-02-14 13:21:21 -08:00
java_test_host_conversion_test.go java_test macro needs srcs and deps to create .jar for tradefed_test_suite 2023-07-17 16:39:07 -07:00
license_conversion_test.go Implement bp2build for the license module 2022-09-14 13:49:18 -07:00
license_kind_conversion_test.go Implement bp2build for the license_kind module 2022-09-14 13:49:27 -07:00
linker_config_conversion_test.go Export RunBp2BuildTestCaseSimple() in testing.go 2022-09-01 18:57:01 +00:00
metrics.go Provide reason for unconverted bp2build modules 2023-06-16 13:45:17 +00:00
package_conversion_test.go Change bp2build converter of module "package". 2023-05-09 17:37:04 -07:00
performance_test.go Bp2build support for multiple product configs 2023-01-05 12:49:14 -08:00
platform_compat_config_conversion_test.go Create bp2build converter for platform_compat_config module type 2023-06-06 19:35:36 +00:00
prebuilt_etc_conversion_test.go product_variables srcs in prebuilt_etc 2022-09-09 20:52:09 +00:00
python_binary_conversion_test.go Fix some issues in bp2build converter for python_binary_host. 2022-10-12 17:43:20 -07:00
python_library_conversion_test.go Export RunBp2BuildTestCaseSimple() in testing.go 2022-09-01 18:57:01 +00:00
python_test_conversion_test.go bp2build support for python_test(_host) 2023-04-13 16:10:59 -07:00
sh_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
soong_config_module_type_conversion_test.go Check if soong_config_var propertystruct is zero before panicking 2023-07-27 23:18:57 +00:00
symlink_forest.go Clean old symlink forests 2023-04-05 11:44:49 -07:00
testing.go Revert "Add unit test for parsing build files in bp2build" 2023-06-27 22:52:07 +00:00