jack: Configure when running

This commit is contained in:
Fredrik Fornwall 2015-08-25 18:41:57 -04:00
parent 2ff12a7aa0
commit 5828a775db
2 changed files with 10 additions and 4 deletions

View File

@ -4,6 +4,7 @@
TERMUX_PKG_HOMEPAGE=http://tools.android.com/tech-docs/jackandjill
TERMUX_PKG_DESCRIPTION="Java Android Compiler Kit"
TERMUX_PKG_VERSION="1.1-mr2"
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make () {

View File

@ -4,7 +4,12 @@
export ANDROID_DATA=@TERMUX_PREFIX@/var/android/
mkdir -p $ANDROID_DATA/dalvik-cache
JACK_JAR=@TERMUX_PREFIX@/share/dex/jack.jar
ANDROID_JAR=@TERMUX_PREFIX@/share/jack/android.jack
dalvikvm -Xmx256m -cp $JACK_JAR com.android.jack.Main -cp $ANDROID_JAR $@
LD_LIBRARY_PATH=/system/lib \
exec dalvikvm -Xmx256m \
-Djava.io.tmpdir=@TERMUX_PREFIX@/tmp \
-cp @TERMUX_PREFIX@/share/dex/jack.jar com.android.jack.Main \
-cp @TERMUX_PREFIX@/share/jack/android.jack \
-D jack.library.digest.algo=MD5 -D sched.vfs.case-insensitive.algo=MD5 \
-D jack.annotation-processor=off \
--output-dex=`pwd` \
$@