From f808b531daba9771dbf0ffc1bd2d24e4e05bdfd5 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 28 Mar 2013 14:52:46 +0100 Subject: [PATCH] Factorize the arm detection and manage arm hard flot (armv4 => armv7) Patch by Thomas Preud'homme & Sylvestre Ledru --- make/build-jogl.xml | 29 ++++++++++++++++------ make/build-nativewindow.xml | 33 +++++++++++++++++-------- make/build-newt.xml | 35 ++++++++++++++++++--------- make/build.xml | 9 +++++++ make/scripts/make.jogl.all.linux-armv7hf.sh | 27 +++++++++++++++++++++ make/scripts/tests-armv7_armhf.sh | 7 ++++++ make/scripts/tests-linux-armv7hf.sh | 7 ++++++ 7 files changed, 118 insertions(+), 29 deletions(-) create mode 100644 make/scripts/make.jogl.all.linux-armv7hf.sh create mode 100644 make/scripts/tests-armv7_armhf.sh create mode 100644 make/scripts/tests-linux-armv7hf.sh diff --git a/make/build-jogl.xml b/make/build-jogl.xml index c481eb0..a54a59a 100644 --- a/make/build-jogl.xml +++ b/make/build-jogl.xml @@ -197,6 +197,19 @@ + + + + + + + + + + + + + @@ -1108,7 +1121,7 @@ - + @@ -1136,8 +1149,8 @@ - - + + @@ -1225,10 +1238,10 @@ - - - - + + + + @@ -1273,7 +1286,7 @@ - + diff --git a/make/build-nativewindow.xml b/make/build-nativewindow.xml index d7ef73a..37b8957 100644 --- a/make/build-nativewindow.xml +++ b/make/build-nativewindow.xml @@ -88,6 +88,19 @@ + + + + + + + + + + + + + @@ -342,7 +355,7 @@ - + @@ -395,10 +408,10 @@ - - - - + + + + @@ -483,10 +496,10 @@ - - - - + + + + @@ -531,7 +544,7 @@ - + diff --git a/make/build-newt.xml b/make/build-newt.xml index c3b5114..479d8f4 100644 --- a/make/build-newt.xml +++ b/make/build-newt.xml @@ -157,6 +157,19 @@ + + + + + + + + + + + + + @@ -265,7 +278,7 @@ - + @@ -320,13 +333,13 @@ - - - + + + - + @@ -410,11 +423,11 @@ - - - - + + + + @@ -486,7 +499,7 @@ - + diff --git a/make/build.xml b/make/build.xml index 44adf80..4e9d202 100644 --- a/make/build.xml +++ b/make/build.xml @@ -452,6 +452,15 @@ basedir="${javadoc.root.path}" includes="jogl/**" /> + + + + + + + diff --git a/make/scripts/make.jogl.all.linux-armv7hf.sh b/make/scripts/make.jogl.all.linux-armv7hf.sh new file mode 100644 index 0000000..5170810 --- /dev/null +++ b/make/scripts/make.jogl.all.linux-armv7hf.sh @@ -0,0 +1,27 @@ +#! /bin/sh + +# arm-linux-gnueabihf == armhf triplet +PATH=`pwd`/../../gluegen/make/lib/linux/arm-linux-gnueabihf/bin:$PATH +export PATH + +# -Dc.compiler.debug=true +# -Dgluegen.cpptasks.detected.os=true \ +# -DisUnix=true \ +# -DisLinux=true \ +# -DisLinuxARMv7=true \ +# -DisX11=false \ + +export TARGET_PLATFORM_ROOT=/ +export TARGET_PLATFORM_LIBS=/usr/lib/arm-linux-gnueabihf +export TARGET_JAVA_LIBS=/usr/lib/jvm/java-6-openjdk-armhf/jre/lib/arm + +export GLUEGEN_CPPTASKS_FILE="../../gluegen/make/lib/gluegen-cpptasks-linux-armv7hf.xml" + +ant \ + -Drootrel.build=build-linux-armv7hf \ + -Dsetup.addNativeKD=true \ + -Dsetup.addNativeOpenMAX=true \ + -Dsetup.addNativeBroadcom=true \ + -Djunit.run.arg0="-Dnewt.test.Screen.disableScreenMode" \ + $* 2>&1 | tee make.jogl.all.linux-armv7hf.log + diff --git a/make/scripts/tests-armv7_armhf.sh b/make/scripts/tests-armv7_armhf.sh new file mode 100644 index 0000000..5526e81 --- /dev/null +++ b/make/scripts/tests-armv7_armhf.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +spath=`dirname $0` + +. $spath/tests.sh `which java` -DummyArg ../build-linux-armv7hf $* + + diff --git a/make/scripts/tests-linux-armv7hf.sh b/make/scripts/tests-linux-armv7hf.sh new file mode 100644 index 0000000..5526e81 --- /dev/null +++ b/make/scripts/tests-linux-armv7hf.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +spath=`dirname $0` + +. $spath/tests.sh `which java` -DummyArg ../build-linux-armv7hf $* + + -- 1.7.10.4