From 54d0ff131097a2cd9a91a0c1dd84deb8b1f7d0ac Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 15 Jun 2012 05:21:43 +0200 Subject: Fix Bug 583: Remove Android compile-time dependencies and exclude Android specific classes for non Android platforms. Adapt to GlueGen commits: b3c9951006f9bd863244f1db3d54ac7866d66f0a, 86c1df6fdca183454ff544857f4236b646c4730d Ensure same Java JAR content regardless of build target (fix). Separate Android compilation results: jogl.all-android.jar and jogl.test-android.jar avoiding generating different content w/ non android builds. Adding ${android.abi} to APK target name (jogl.all-android.apk -> jogl.all-android-armeabi-v7a.apk) if not generic. --- make/build-common.xml | 41 +++++++++++---- make/build-jogl.xml | 19 +++---- make/build-newt.xml | 48 ++++++++++++------ make/build-test.xml | 94 ++++++++++++++++++++++++----------- make/build.xml | 8 +-- make/joglversion-test-android | 13 +++++ make/scripts/adb-install-all-armv7.sh | 8 +-- make/scripts/adb-launch-main.sh | 2 +- make/scripts/adb-uninstall-all.sh | 4 +- 9 files changed, 160 insertions(+), 77 deletions(-) create mode 100644 make/joglversion-test-android (limited to 'make') diff --git a/make/build-common.xml b/make/build-common.xml index 6c830f3b8..93835e0f1 100644 --- a/make/build-common.xml +++ b/make/build-common.xml @@ -398,8 +398,10 @@ + - + + @@ -408,7 +410,7 @@ - + @@ -422,29 +424,47 @@ - + - + - + + + + + + + + + + + + + + + + + + + - + @@ -453,7 +473,7 @@ - + @@ -485,7 +505,6 @@ - @@ -506,12 +525,14 @@ - + + value="${junit.jar}${path.separator}${ant.jar}${path.separator}${ant-junit.jar}${path.separator}${gluegen-rt-android.jar}${path.separator}${jogl.all-android.jar}${path.separator}${jogl.test.jar}"/> + diff --git a/make/build-jogl.xml b/make/build-jogl.xml index f80efdfc7..0c7328c4a 100644 --- a/make/build-jogl.xml +++ b/make/build-jogl.xml @@ -194,20 +194,13 @@ - - - - - - - + @@ -1043,10 +1036,10 @@ - + - + @@ -1085,7 +1078,7 @@ - - + + + + + + - - - - - @@ -746,6 +756,16 @@ + + + + + + + + + @@ -772,7 +792,7 @@ maxmemory="${javac.memorymax}" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - + @@ -788,7 +808,7 @@ maxmemory="${javac.memorymax}" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - + @@ -804,7 +824,7 @@ maxmemory="${javac.memorymax}" linkoffline="${javadoc.link} 142-packages" bottom="${javadoc.bottom}" > - + @@ -827,7 +847,7 @@ - + diff --git a/make/build-test.xml b/make/build-test.xml index 75c319068..f5437902e 100644 --- a/make/build-test.xml +++ b/make/build-test.xml @@ -26,7 +26,8 @@ - + + @@ -58,25 +59,10 @@ - - - - - - + + - + - - - - - - @@ -109,9 +89,59 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -134,8 +164,14 @@ - - + + + + + + + + diff --git a/make/build.xml b/make/build.xml index 5f85f9a6e..9258df0e9 100644 --- a/make/build.xml +++ b/make/build.xml @@ -372,7 +372,7 @@ source="${target.sourcelevel}" maxmemory="${javac.memorymax}" bottom="${javadoc.bottom}" > - + @@ -394,7 +394,7 @@ source="${target.sourcelevel}" maxmemory="${javac.memorymax}" bottom="${javadoc.bottom}" > - + @@ -417,7 +417,7 @@ source="${target.sourcelevel}" maxmemory="${javac.memorymax}" bottom="${javadoc.bottom}" > - + @@ -439,7 +439,7 @@ source="${target.sourcelevel}" maxmemory="${javac.memorymax}" bottom="${javadoc.bottom}" > - + diff --git a/make/joglversion-test-android b/make/joglversion-test-android new file mode 100644 index 000000000..047995bd0 --- /dev/null +++ b/make/joglversion-test-android @@ -0,0 +1,13 @@ +Manifest-Version: 1.0 +Specification-Title: Test Java Bindings for OpenGL API Specification +Specification-Version: @BASEVERSION@ +Specification-Vendor: JogAmp Community +Implementation-Title: Test Java Bindings for OpenGL Runtime Environment on Android +Implementation-Version: @VERSION@ +Implementation-Branch: @SCM_BRANCH@ +Implementation-Commit: @SCM_COMMIT@ +Implementation-Vendor: JogAmp Community +Implementation-URL: http://jogamp.org/ +Extension-Name: com.jogamp.opengl.test +Implementation-Vendor-Id: com.jogamp +Trusted-Library: true diff --git a/make/scripts/adb-install-all-armv7.sh b/make/scripts/adb-install-all-armv7.sh index 503c6f2f7..fe9765541 100755 --- a/make/scripts/adb-install-all-armv7.sh +++ b/make/scripts/adb-install-all-armv7.sh @@ -1,4 +1,4 @@ -adb $* install ../../gluegen/build-android-armv7/jogamp.android-launcher.apk -adb $* install ../../gluegen/build-android-armv7/gluegen-rt.apk -adb $* install ../build-android-armv7/jar/jogl.all-android.apk -adb $* install ../build-android-armv7/jar/jogl.test.apk +#adb $* install ../../gluegen/build-android-armv7/jogamp.android-launcher.apk +#adb $* install ../../gluegen/build-android-armv7/gluegen-rt-android-armeabi-v7a.apk +adb $* install ../build-android-armv7/jar/jogl.all-android-armeabi-v7a.apk +adb $* install ../build-android-armv7/jar/jogl.test-android.apk diff --git a/make/scripts/adb-launch-main.sh b/make/scripts/adb-launch-main.sh index 0887c107f..ff47a7ab0 100644 --- a/make/scripts/adb-launch-main.sh +++ b/make/scripts/adb-launch-main.sh @@ -61,7 +61,7 @@ am start -a android.intent.action.MAIN -n jogamp.android.launcher/jogamp.android # \ #dalvikvm \ # -Xjnigreflimit:2000 \ -# -cp ../../gluegen/make/$BUILD_DIR/jogamp.android-launcher.apk:../../gluegen/make/lib/ant-junit-all.apk:../../gluegen/make/$BUILD_DIR/gluegen-rt.apk:$BUILD_DIR/jar/jogl.all-android.apk:$BUILD_DIR/jar/jogl.test.apk:$BUILD_DIR/jar/jogl.android-launcher.apk \ +# -cp ../../gluegen/make/$BUILD_DIR/jogamp.android-launcher.apk:../../gluegen/make/lib/ant-junit-all.apk:../../gluegen/make/$BUILD_DIR/gluegen-rt-android-armeabi-v7a.apk:$BUILD_DIR/jar/jogl.all-android-armeabi-v7a.apk:$BUILD_DIR/jar/jogl.test.apk \ # -Dgluegen.root=../../gluegen \ # -Drootrel.build=build-android-armv7 \ # com.android.internal.util.WithFramework \ diff --git a/make/scripts/adb-uninstall-all.sh b/make/scripts/adb-uninstall-all.sh index 1605a0e35..a80c38f61 100755 --- a/make/scripts/adb-uninstall-all.sh +++ b/make/scripts/adb-uninstall-all.sh @@ -1,4 +1,4 @@ -adb $* uninstall jogamp.android.launcher -adb $* uninstall com.jogamp.common +#adb $* uninstall jogamp.android.launcher +#adb $* uninstall com.jogamp.common adb $* uninstall javax.media.opengl adb $* uninstall com.jogamp.opengl.test -- cgit v1.2.3