mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Initial commit
This commit is contained in:
17
build-jnilibs.sh
Executable file
17
build-jnilibs.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Script to build jni libraries while waiting for the new gradle build system:
|
||||
# http://tools.android.com/tech-docs/new-build-system/gradle-experimental#TOC-Ndk-Integration
|
||||
|
||||
set -e -u
|
||||
|
||||
PROJECTDIR=`mktemp -d`
|
||||
JNIDIR=$PROJECTDIR/jni
|
||||
LIBSDIR=$PROJECTDIR/libs
|
||||
|
||||
mkdir $JNIDIR
|
||||
cp app/src/main/jni/* $JNIDIR/
|
||||
|
||||
ndk-build NDK_PROJECT_PATH=$PROJECTDIR
|
||||
cp -Rf $LIBSDIR/* app/src/main/jniLibs/
|
||||
|
||||
rm -Rf $PROJECTDIR
|
Reference in New Issue
Block a user