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 |
|||
|
|||
dalvikvm-wrapper |
|||
exec dalvikvm \ |
|||
-Xmx256m \ |
|||
-cp @TERMUX_PREFIX@/share/dex/dx.jar \ |
|||
com.android.dx.command.Main $@ |
|||
|
@ -1,10 +1,11 @@ |
|||
#!/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 |
|||
|
|||
jarpath=@TERMUX_PREFIX@/share/dex/ecj.jar |
|||
# -proc:none to disable annotation processing/compiling |
|||
# -7 for java 1.7 compatibility |
|||
dalvikvm -Xmx256m -cp $jarpath org.eclipse.jdt.internal.compiler.batch.Main -proc:none -7 -cp @TERMUX_PREFIX@/share/java/android.jar $@ |
|||
# -proc:none to disable annotation processing. |
|||
# -7 for java 1.7 compatibility. |
|||
dalvikvm -Xmx256m \ |
|||
-cp @TERMUX_PREFIX@/share/dex/ecj.jar |
|||
org.eclipse.jdt.internal.compiler.batch.Main \ |
|||
-proc:none \ |
|||
-7 \ |
|||
-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