This CL adds a simple python_binary_host to native py_binary converter for standalone modules that don't depend on libs. It also adds support for the conditional py2/py3 build target based on the version prop. Test: milestone-2/demo.sh full Test: bazel query 'kind("py_binary rule", //bionic/...)' Test: bazel run //bionic/libc/tools:genfunctosyscallnrs Test: bazel run //bionic/libc/tools:genseccomp Test: go tests Fixes: 182236395 Change-Id: Ibe5ec6cd0dc12a61b3a449a8c723d80b891fae42
39 lines
898 B
Plaintext
39 lines
898 B
Plaintext
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",
|
|
"conversion.go",
|
|
"metrics.go",
|
|
],
|
|
deps: [
|
|
"soong-android",
|
|
"soong-bazel",
|
|
"soong-cc",
|
|
"soong-genrule",
|
|
"soong-python",
|
|
"soong-sh",
|
|
],
|
|
testSrcs: [
|
|
"build_conversion_test.go",
|
|
"bzl_conversion_test.go",
|
|
"cc_library_headers_conversion_test.go",
|
|
"cc_object_conversion_test.go",
|
|
"conversion_test.go",
|
|
"python_binary_conversion_test.go",
|
|
"sh_conversion_test.go",
|
|
"testing.go",
|
|
],
|
|
pluginFor: [
|
|
"soong_build",
|
|
],
|
|
}
|