diff options
author | Sven Gothel <[email protected]> | 2011-07-24 22:28:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-24 22:28:40 +0200 |
commit | 2488c4de3e5fe7c4b8258af3fb8aae9b4d5091ce (patch) | |
tree | 79f1bdd884de0916a3d555743037a0a35c0bd708 /make | |
parent | 625727ee75b758bef4f9f5f3816b37547c9f6875 (diff) |
Add native lib in apk, needs work to be installed (manifest ...)
Diffstat (limited to 'make')
-rw-r--r-- | make/build.xml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/make/build.xml b/make/build.xml index b1b8616..89426ec 100644 --- a/make/build.xml +++ b/make/build.xml @@ -687,20 +687,28 @@ </target> <target name="android.package" depends="gluegen.cpptasks.detect.os,gluegen.build.check.java" if="isAndroid"> + <mkdir dir="${build}/apk-temp/bin/lib/armeabi" /> + <copy todir="${build}/apk-temp/bin/lib/armeabi"> + <fileset dir="${build}/obj"> + <include name="*gluegen-rt.${native.library.suffix}" /> + </fileset> + </copy> + <delete file="${build}/gluegen-rt.apk" includeEmptyDirs="true" quiet="true" failonerror="false" /> <exec dir="." executable="dx" logError="true" failonerror="true" failifexecutionfails="true"> <arg line="--dex"/> <arg line="--output=${build}/gluegen-rt.apk"/> <arg line="${build}/gluegen-rt.jar"/> - <!-- CHECK HOW TO LOAD NATIVE LIBS FROM APK.. arg line="${build}/gluegen-rt-natives-${os.and.arch}.jar"/--> + <arg line="${build}/apk-temp/"/> <!-- need to be installed .. etc --> </exec> <delete file="${build}/gluegen.apk" includeEmptyDirs="true" quiet="true" failonerror="false" /> <exec dir="." executable="dx" logError="true" failonerror="true" failifexecutionfails="true"> <arg line="--dex"/> <arg line="--output=${build}/gluegen.apk"/> <arg line="${build}/gluegen.jar"/> - <!-- CHECK HOW TO LOAD NATIVE LIBS FROM APK.. arg line="${build}/gluegen-rt-natives-${os.and.arch}.jar"/ --> + <arg line="${build}/apk-temp/"/> <!-- need to be installed .. etc --> </exec> + <delete dir="${build}/apk-temp" includeEmptyDirs="true" quiet="true" failonerror="false" /> </target> <target name="base.compile" depends="init, gluegen.build.java, gluegen.build.c, tag.build" /> |