Skip to content

Commit 9f180e7

Browse files
Stop building Android x86 (#6938)
1 parent 2da2494 commit 9f180e7

File tree

10 files changed

+16
-25
lines changed

10 files changed

+16
-25
lines changed

automation/generate_android_symbols.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ if [[ ! -f "${DUMP_SYMS_DIR}/dump_syms" ]]; then
3434
fi
3535

3636
# Keep these 2 in sync.
37-
TARGET_ARCHS=("x86_64" "x86" "arm64" "arm")
38-
JNI_LIBS_TARGETS=("x86_64" "x86" "arm64-v8a" "armeabi-v7a")
37+
TARGET_ARCHS=("x86_64" "arm64" "arm")
38+
JNI_LIBS_TARGETS=("x86_64" "arm64-v8a" "armeabi-v7a")
3939

4040
rm -rf "${OUTPUT_FOLDER}"
4141
mkdir -p "${OUTPUT_FOLDER}"

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ ext.rustTargets = [
197197
'arm',
198198
'arm64',
199199
'x86_64',
200-
'x86',
201200
]
202201

203202
// Generate libs for our current platform so we can run unit tests.

docs/howtos/locally-building-jna.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Here are the steps that worked for me:
4141
* Build the JNA native libraries for the target platforms of interest:
4242
* `ant -Dos.prefix=android-aarch64`
4343
* `ant -Dos.prefix=android-armv7`
44-
* `ant -Dos.prefix=android-x86`
4544
* `ant -Dos.prefix=android-x86-64`
4645
4746
* Package the newly-built native libraries into a JAR/AAR using `ant dist`.

libs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ This directory builds the required libraries for iOS, Android and desktop platfo
1616

1717
### Supported architectures
1818

19-
* Android: `TARGET_ARCHS=("x86" "x86_64" "arm64" "arm")`
19+
* Android: `TARGET_ARCHS=("x86_64" "arm64" "arm")`
2020
* iOS: `TARGET_ARCHS=("x86_64" "arm64")`

libs/build-all-android.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
set -euvx
44

55
# Our short-names for the architectures.
6-
TARGET_ARCHS=("x86_64" "x86" "arm64" "arm")
6+
TARGET_ARCHS=("x86_64" "arm64" "arm")
77
# The directories required for the Android-Gradle plugin and APK
8-
# layout, like `jniLibs/x86` or `lib/x86` respectively.
9-
TARGET_ARCHS_DISTS=("x86_64" "x86" "arm64-v8a" "armeabi-v7a")
8+
# layout, like `jniLibs/x86_64` or `lib/x86_64` respectively.
9+
TARGET_ARCHS_DISTS=("x86_64" "arm64-v8a" "armeabi-v7a")
1010
# The corresponding Rust target names.
11-
TARGET_ARCHS_TOOLCHAINS=("x86_64-linux-android" "i686-linux-android" "aarch64-linux-android" "arm-linux-androideabi")
11+
TARGET_ARCHS_TOOLCHAINS=("x86_64-linux-android" "aarch64-linux-android" "arm-linux-androideabi")
1212

1313
# End of configuration.
1414

libs/build-nss-android.sh

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ if [[ "${TOOLCHAIN}" == "x86_64-linux-android" ]]
2626
then
2727
GYP_ARCH="x64"
2828
NSPR_64="--enable-64bit"
29-
elif [[ "${TOOLCHAIN}" == "i686-linux-android" ]]
30-
then
31-
GYP_ARCH="ia32"
3229
elif [[ "${TOOLCHAIN}" == "aarch64-linux-android" ]]
3330
then
3431
GYP_ARCH="arm64"
@@ -103,8 +100,14 @@ cp -p -L "${BUILD_DIR}/lib/libsoftokn_static.a" "${DIST_DIR}/lib"
103100
cp -p -L "${BUILD_DIR}/lib/libssl.a" "${DIST_DIR}/lib"
104101
# HW specific.
105102
# https://searchfox.org/nss/rev/0d5696b3edce5124353f03159d2aa15549db8306/lib/freebl/freebl.gyp#508-542
106-
if [[ "${TOOLCHAIN}" == "i686-linux-android" ]] || [[ "${TOOLCHAIN}" == "x86_64-linux-android" ]]; then
103+
# https://searchfox.org/nss/rev/08c4d05078d00089f8d7540651b0717a9d66f87e/lib/freebl/freebl.gyp#315-324
104+
# https://searchfox.org/nss/rev/08c4d05078d00089f8d7540651b0717a9d66f87e/lib/freebl/freebl.gyp#43-47
105+
if [[ "${TOOLCHAIN}" == "x86_64-linux-android" ]]; then
107106
cp -p -L "${BUILD_DIR}/lib/libgcm-aes-x86_c_lib.a" "${DIST_DIR}/lib"
107+
cp -p -L "${BUILD_DIR}/lib/libintel-gcm-wrap_c_lib.a" "${DIST_DIR}/lib"
108+
cp -p -L "${BUILD_DIR}/lib/libintel-gcm-s_lib.a" "${DIST_DIR}/lib"
109+
cp -p -L "${BUILD_DIR}/lib/libhw-acc-crypto-avx.a" "${DIST_DIR}/lib"
110+
cp -p -L "${BUILD_DIR}/lib/libhw-acc-crypto-avx2.a" "${DIST_DIR}/lib"
108111
cp -p -L "${BUILD_DIR}/lib/libsha-x86_c_lib.a" "${DIST_DIR}/lib"
109112
fi
110113
if [[ "${TOOLCHAIN}" == "aarch64-linux-android" ]] || [[ "${TOOLCHAIN}" == "arm-linux-androideabi" ]]; then
@@ -116,14 +119,6 @@ fi
116119
if [[ "${TOOLCHAIN}" == "arm-linux-androideabi" ]]; then
117120
cp -p -L "${BUILD_DIR}/lib/libgcm-aes-arm32-neon_c_lib.a" "${DIST_DIR}/lib"
118121
fi
119-
# https://searchfox.org/nss/rev/08c4d05078d00089f8d7540651b0717a9d66f87e/lib/freebl/freebl.gyp#315-324
120-
# https://searchfox.org/nss/rev/08c4d05078d00089f8d7540651b0717a9d66f87e/lib/freebl/freebl.gyp#43-47
121-
if [[ "${TOOLCHAIN}" == "x86_64-linux-android" ]]; then
122-
cp -p -L "${BUILD_DIR}/lib/libintel-gcm-wrap_c_lib.a" "${DIST_DIR}/lib"
123-
cp -p -L "${BUILD_DIR}/lib/libintel-gcm-s_lib.a" "${DIST_DIR}/lib"
124-
cp -p -L "${BUILD_DIR}/lib/libhw-acc-crypto-avx.a" "${DIST_DIR}/lib"
125-
cp -p -L "${BUILD_DIR}/lib/libhw-acc-crypto-avx2.a" "${DIST_DIR}/lib"
126-
fi
127122
cp -p -L "${NSPR_BUILD_DIR}/dist/lib/libplc4.a" "${DIST_DIR}/lib"
128123
cp -p -L "${NSPR_BUILD_DIR}/dist/lib/libplds4.a" "${DIST_DIR}/lib"
129124
cp -p -L "${NSPR_BUILD_DIR}/dist/lib/libnspr4.a" "${DIST_DIR}/lib"

libs/verify-android-ci-environment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
set -e
1212

13-
RUST_TARGETS=("aarch64-linux-android" "armv7-linux-androideabi" "i686-linux-android" "x86_64-linux-android")
13+
RUST_TARGETS=("aarch64-linux-android" "armv7-linux-androideabi" "x86_64-linux-android")
1414

1515
if [[ ! -f "$(pwd)/libs/build-all.sh" ]]; then
1616
echo "ERROR: verify-android-ci-environment.sh should be run from the root directory of the repo"

rust-toolchain.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ channel = "1.87.0"
1111
targets = [
1212
"aarch64-linux-android",
1313
"armv7-linux-androideabi",
14-
"i686-linux-android",
1514
"x86_64-linux-android",
1615
"aarch64-apple-ios",
1716
"x86_64-apple-ios",

taskcluster/kinds/module-build/kind.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ task-defaults:
3232
- [source, taskcluster/scripts/toolchain/setup-fetched-rust-toolchain.sh]
3333
- [source, taskcluster/scripts/toolchain/cross-compile-setup.sh]
3434
- [source, taskcluster/scripts/toolchain/copy-libs-dir.sh, libs]
35-
- [bash, '-c', 'echo "rust.targets=arm,arm64,x86_64,x86,darwin,linux-x86-64\n" > local.properties']
35+
- [bash, '-c', 'echo "rust.targets=arm,arm64,x86_64,darwin,linux-x86-64\n" > local.properties']
3636
gradlew:
3737
- ':{module_name}:assembleRelease'
3838
- ':{module_name}:publish'

tools/dependency_summary.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"armv7-linux-androideabi",
3636
"aarch64-linux-android",
3737
"aarch64-apple-darwin",
38-
"i686-linux-android",
3938
"x86_64-linux-android",
4039
"x86_64-unknown-linux-gnu",
4140
"x86_64-apple-darwin",

0 commit comments

Comments
 (0)