Browse Source
- Just unset LD_LIBRARY_PATH in the dalvikvm wrapper. - Let the dalvikvm wrapper setup $ANDROID_DATA. - Avoid using a custom dalvikvm wrapper in dx.android-5
Fredrik Fornwall
9 years ago
8 changed files with 25 additions and 27 deletions
@ -1,8 +0,0 @@ |
|||||
#!/bin/sh |
|
||||
|
|
||||
# There needs to be a folder at $ANDROID_DATA/dalvik-cache: |
|
||||
export ANDROID_DATA=@TERMUX_PREFIX@/var/android/ |
|
||||
mkdir -p $ANDROID_DATA/dalvik-cache |
|
||||
|
|
||||
# Reset LD_LIBRARY_PATH to avoid shared library clashes: |
|
||||
LD_LIBRARY_PATH=/system/lib dalvikvm $@ |
|
@ -1,6 +1,6 @@ |
|||||
#!/bin/sh |
#!/bin/sh |
||||
|
|
||||
dalvikvm-wrapper |
exec dalvikvm \ |
||||
-Xmx256m \ |
-Xmx256m \ |
||||
-cp @TERMUX_PREFIX@/share/dex/dx.jar \ |
-cp @TERMUX_PREFIX@/share/dex/dx.jar \ |
||||
com.android.dx.command.Main $@ |
com.android.dx.command.Main $@ |
||||
|
@ -1,10 +1,11 @@ |
|||||
#!/bin/sh |
#!/bin/sh |
||||
|
|
||||
# There needs to be a folder at $ANDROID_DATA/dalvik-cache |
# -proc:none to disable annotation processing. |
||||
export ANDROID_DATA=@TERMUX_PREFIX@/var/android/ |
# -7 for java 1.7 compatibility. |
||||
mkdir -p $ANDROID_DATA/dalvik-cache |
dalvikvm -Xmx256m \ |
||||
|
-cp @TERMUX_PREFIX@/share/dex/ecj.jar |
||||
jarpath=@TERMUX_PREFIX@/share/dex/ecj.jar |
org.eclipse.jdt.internal.compiler.batch.Main \ |
||||
# -proc:none to disable annotation processing/compiling |
-proc:none \ |
||||
# -7 for java 1.7 compatibility |
-7 \ |
||||
dalvikvm -Xmx256m -cp $jarpath org.eclipse.jdt.internal.compiler.batch.Main -proc:none -7 -cp @TERMUX_PREFIX@/share/java/android.jar $@ |
-cp @TERMUX_PREFIX@/share/java/android.jar \ |
||||
|
$@ |
||||
|
@ -0,0 +1,8 @@ |
|||||
|
#!/bin/sh |
||||
|
|
||||
|
# There needs to be a folder at $ANDROID_DATA/dalvik-cache |
||||
|
export ANDROID_DATA=@TERMUX_PREFIX@/var/android/ |
||||
|
mkdir -p $ANDROID_DATA/dalvik-cache |
||||
|
|
||||
|
unset LD_LIBRARY_PATH |
||||
|
exec /system/bin/dalvikvm -Djava.io.tmpdir=@TERMUX_PREFIX@/tmp "$@" |
Loading…
Reference in new issue