Skip to content

Commit 5d5dd5f

Browse files
authored
Merge pull request #215 from imReker/master
Fix target path of jni
2 parents fc94fca + f0dae1c commit 5d5dd5f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

android/build.sh

+13-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,19 @@ execute_build() {
245245
create_directory_if_not_found "$TARGET_DIR/libs/"
246246
create_directory_if_not_found "$TARGET_DIR/jni/"
247247

248-
ARCH_JNI="$TARGET_DIR/jni/${WEBRTC_ARCH}"
248+
if [ "$WEBRTC_ARCH" = "x86" ] ;
249+
then
250+
ARCH_JNI="$TARGET_DIR/jni/x86"
251+
elif [ "$WEBRTC_ARCH" = "x86_64" ] ;
252+
then
253+
ARCH_JNI="$TARGET_DIR/jni/x86_64"
254+
elif [ "$WEBRTC_ARCH" = "armv7" ] ;
255+
then
256+
ARCH_JNI="$TARGET_DIR/jni/armeabi-v7a"
257+
elif [ "$WEBRTC_ARCH" = "armv8" ] ;
258+
then
259+
ARCH_JNI="$TARGET_DIR/jni/arm64-v8a"
260+
fi
249261
create_directory_if_not_found "$ARCH_JNI"
250262

251263
# Copy the jars

0 commit comments

Comments
 (0)