Add static and shared musl python3 launchers
Bug: 179809553
Test: m USE_HOST_MUSL=true apexer deapexer
Test: m USE_HOST_MUSL=true BUILD_HOST_STATIC=1 apexer deapexer
Change-Id: Iad2d6bb91038cca2e6fbff84fe9a9c9e7d3090af
diff --git a/Android.bp b/Android.bp
index e161310..ba028aa 100644
--- a/Android.bp
+++ b/Android.bp
@@ -122,9 +122,12 @@
stl: "none",
notice: "common/py3-stdlib/NOTICE",
target: {
- linux_glibc_x86_64: {
+ glibc_x86_64: {
srcs: ["linux-x86/bin/py3-launcher64"]
},
+ musl_x86_64: {
+ srcs: ["linux_musl-x86/bin/py3-launcher64"]
+ },
darwin_x86_64: {
srcs: ["darwin-x86/bin/py3-launcher64"],
},
@@ -140,6 +143,28 @@
}
cpython3_cc_prebuilt_binary {
+ name: "py3-launcher-static",
+ host_supported: true,
+ device_supported: false,
+ compile_multilib: "64",
+ stl: "none",
+ notice: "common/py3-stdlib/NOTICE",
+ target: {
+ musl_x86_64: {
+ srcs: ["linux_musl-x86/bin/py3-launcher-static64"]
+ },
+ },
+
+ // Use the prebuilts for most branches
+ prefer: true,
+ soong_config_variables: {
+ force_build_host: {
+ prefer: false,
+ },
+ },
+}
+
+cpython3_cc_prebuilt_binary {
name: "py3-launcher-autorun",
host_supported: true,
device_supported: false,
@@ -147,9 +172,12 @@
stl: "none",
notice: "common/py3-stdlib/NOTICE",
target: {
- linux_glibc_x86_64: {
+ glibc_x86_64: {
srcs: ["linux-x86/bin/py3-launcher-autorun64"]
},
+ musl_x86_64: {
+ srcs: ["linux_musl-x86/bin/py3-launcher-autorun64"]
+ },
darwin_x86_64: {
srcs: ["darwin-x86/bin/py3-launcher-autorun64"],
},
@@ -164,6 +192,28 @@
},
}
+cpython3_cc_prebuilt_binary {
+ name: "py3-launcher-autorun-static",
+ host_supported: true,
+ device_supported: false,
+ compile_multilib: "64",
+ stl: "none",
+ notice: "common/py3-stdlib/NOTICE",
+ target: {
+ musl_x86_64: {
+ srcs: ["linux_musl-x86/bin/py3-launcher-autorun-static64"]
+ },
+ },
+
+ // Use the prebuilts for most branches
+ prefer: true,
+ soong_config_variables: {
+ force_build_host: {
+ prefer: false,
+ },
+ },
+}
+
filegroup {
name: "py3-stdlib-prebuilt-srcs",
visibility: ["//external/python/cpython3/Lib"],