mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-04 17:55:36 +08:00
22 lines
480 B
Bash
Executable File
22 lines
480 B
Bash
Executable File
#!/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
|
|
|
|
SRC_JNILIBS=app/src/main/jniLibs/
|
|
rm -Rf $SRC_JNILIBS
|
|
mkdir -p $SRC_JNILIBS
|
|
|
|
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/* $SRC_JNILIBS
|
|
|
|
rm -Rf $PROJECTDIR
|