01812020c1
Also remove the need to use bp2build_available on soong_config_module_types as we want to convert every single of them into the tree for a complete soong_injection soong_config_variables.bzl file. The variables are split into their bool, value and string types respectively, as they all need to be handled differently on the Bazel product_platform side, as well as for generating constraint values and settings. For example, value variables need to integrate with TemplateVariableInfo, and string variables need to include the string value itself into the select key/constraint value. Sample soong_config_variables.bzl file: https://gist.github.com/jin/cef700bfb20c8656a931306dd71d47e1 Test: CI Bug: 198556411 Change-Id: I8665dd1269a507edb37de62407ed3641564bea5c
56 lines
1.5 KiB
Text
56 lines
1.5 KiB
Text
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-bp2build",
|
|
pkgPath: "android/soong/bp2build",
|
|
srcs: [
|
|
"androidbp_to_build_templates.go",
|
|
"bp2build.go",
|
|
"build_conversion.go",
|
|
"bzl_conversion.go",
|
|
"configurability.go",
|
|
"constants.go",
|
|
"conversion.go",
|
|
"metrics.go",
|
|
"symlink_forest.go",
|
|
],
|
|
deps: [
|
|
"soong-android",
|
|
"soong-android-soongconfig",
|
|
"soong-apex",
|
|
"soong-bazel",
|
|
"soong-cc",
|
|
"soong-cc-config",
|
|
"soong-etc",
|
|
"soong-genrule",
|
|
"soong-python",
|
|
"soong-sh",
|
|
],
|
|
testSrcs: [
|
|
"android_app_certificate_conversion_test.go",
|
|
"apex_conversion_test.go",
|
|
"apex_key_conversion_test.go",
|
|
"build_conversion_test.go",
|
|
"bzl_conversion_test.go",
|
|
"cc_genrule_conversion_test.go",
|
|
"cc_library_conversion_test.go",
|
|
"cc_library_headers_conversion_test.go",
|
|
"cc_library_static_conversion_test.go",
|
|
"cc_library_shared_conversion_test.go",
|
|
"cc_object_conversion_test.go",
|
|
"conversion_test.go",
|
|
"filegroup_conversion_test.go",
|
|
"genrule_conversion_test.go",
|
|
"performance_test.go",
|
|
"prebuilt_etc_conversion_test.go",
|
|
"python_binary_conversion_test.go",
|
|
"python_library_conversion_test.go",
|
|
"sh_conversion_test.go",
|
|
"testing.go",
|
|
],
|
|
pluginFor: [
|
|
"soong_build",
|
|
],
|
|
}
|