Skip to content

Commit

Permalink
Revert "arm64"
Browse files Browse the repository at this point in the history
This reverts commit 45b4886.
  • Loading branch information
esdeathlove committed Mar 24, 2017
1 parent 9c49583 commit 98cd172
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ src/main/libs
src/main/assets/armeabi
src/main/assets/armeabi-v7a
src/main/assets/x86
src/main/assets/arm64-v8a
src/main/assets/api-16/
jni/Application.mk
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
path = src/main/jni/libancillary
url = https://github.com/shadowsocks/libancillary.git
branch = shadowsocks-android
[submodule "src/main/jni/libevent"]
path = src/main/jni/libevent
url = https://github.com/shadowsocks/libevent.git
branch = shadowsocks-android
[submodule "src/main/jni/redsocks"]
path = src/main/jni/redsocks
url = https://github.com/shadowsocks/redsocks.git
Expand All @@ -24,7 +28,3 @@
[submodule "src/main/jni/pcre"]
path = src/main/jni/pcre
url = https://android.googlesource.com/platform/external/pcre
[submodule "src/main/jni/libevent"]
path = src/main/jni/libevent
url = https://github.com/esdeathlove/libevent.git
branch = shadowsocks-android
3 changes: 0 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ try pushd src/main
try ${ANDROID_NDK_HOME}/ndk-build -j8

# copy executables
rm -rf assets/arm64-v8a
rm -rf assets/armeabi-v7a
rm -rf assets/x86
mkdir -p assets/arm64-v8a
mkdir -p assets/armeabi-v7a
mkdir -p assets/x86
for app in pdnsd redsocks ss-local ss-tunnel tun2socks
do
try mv libs/armeabi-v7a/$app assets/armeabi-v7a/
try mv libs/arm64-v8a/$app assets/arm64-v8a/
try mv libs/x86/$app assets/x86/
done

Expand Down
2 changes: 1 addition & 1 deletion src/main/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_ABI := arm64-v8a armeabi-v7a x86
APP_ABI := armeabi-v7a x86
APP_PLATFORM := android-16
APP_STL := stlport_static
NDK_TOOLCHAIN_VERSION := clang
2 changes: 1 addition & 1 deletion src/main/jni/libevent
Submodule libevent updated 1 files
+14 −0 arc4random.c
2 changes: 0 additions & 2 deletions src/main/jni/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jstring Java_com_github_shadowsocks_system_getabi(JNIEnv *env, jobject thiz) {
abi = "x86";
} else if (family == ANDROID_CPU_FAMILY_MIPS) {
abi = "mips";
} else if (family == ANDROID_CPU_FAMILY_ARM64) {
abi = "arm64-v8a";
} else if (family == ANDROID_CPU_FAMILY_ARM) {
// if (features & ANDROID_CPU_ARM_FEATURE_ARMv7) {
abi = "armeabi-v7a";
Expand Down

0 comments on commit 98cd172

Please sign in to comment.