summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.xml44
-rw-r--r--scripts/make.jocl.all.linux-x86_64.sh6
-rw-r--r--scripts/make.jocl.all.solaris-x86_64.sh11
3 files changed, 57 insertions, 4 deletions
diff --git a/build.xml b/build.xml
index a515d521..bf34597c 100644
--- a/build.xml
+++ b/build.xml
@@ -395,7 +395,7 @@
<copydir src="${basedir}/resources/includes/CL" dest="${basedir}/resources/includes/OpenCL"/>
</target>
- <target name="c.setup.build" depends="gluegen.cpptasks.configure.compiler, gluegen.cpptasks.declare.compiler, c.configure.default, jocl.configure.linker, mac.includepath.hack">
+ <target name="c.setup.build" depends="gluegen.cpptasks.configure.compiler, gluegen.cpptasks.declare.compiler, c.configure.default, jocl.configure.compiler, jocl.configure.linker, mac.includepath.hack">
<property name="obj.dir" value="${build.dir}/obj"/>
<property name="natives.dir" value="${build.dir}/natives"/>
@@ -410,6 +410,26 @@
</target>
+ <!-- compiler configuration -->
+ <target name="jocl.configure.compiler">
+ <!-- a hackish way on Solaris10 w/ gcc in 'sfw'
+ to make mmintrin.h, pmmintrin.h and xmmintrin.h visible -->
+
+ <compiler id="compiler.cfg.solaris.jocl" extends="compiler.cfg.solaris">
+ <compilerarg value="-I/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/install-tools/include" />
+ </compiler>
+
+ <compiler id="compiler.cfg.solaris.jocl.sparcv9" extends="compiler.cfg.solaris.sparcv9">
+ <!-- dunno .. need to fix, if we ever compile on Solaris/sparcv9 -->
+ <compilerarg value="-I/usr/sfw/lib/gcc/sparc-pc-solaris2.10/3.4.3/install-tools/include" />
+ </compiler>
+
+ <compiler id="compiler.cfg.solaris.jocl.amd64" extends="compiler.cfg.solaris.amd64">
+ <compilerarg value="-I/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/install-tools/include" />
+ </compiler>
+
+ </target>
+
<!-- linker configuration -->
<target name="jocl.configure.linker">
@@ -451,9 +471,10 @@
<!-- configure for current platform -->
<target name="c.configure.default" depends="c.configure.os" />
- <target name="c.configure.os" depends="c.configure.win, c.configure.linux, c.configure.macosx" />
+ <target name="c.configure.os" depends="c.configure.win, c.configure.linux, c.configure.macosx, c.configure.solaris" />
<target name="c.configure.win" depends="c.configure.win.mingw32, c.configure.win.mingw64" if="isWindows" />
<target name="c.configure.linux" depends="c.configure.linux.x86, c.configure.linux.amd64, c.configure.linux.armv7" if="isLinux" />
+ <target name="c.configure.solaris" depends="c.configure.solaris32, c.configure.solaris.sparcv9, c.configure.solaris.amd64" if="isSolaris" />
<target name="c.configure.win.mingw32" if="isMingW32">
<echo message="Win.Ming32W" />
@@ -480,6 +501,25 @@
<property name="compiler.cfg.id" value="${compiler.cfg.id.base}" />
<property name="linker.cfg.id" value="linker.cfg.linux.armv7.jocl" />
</target>
+
+ <target name="c.configure.solaris32" if="isSolaris32Bit">
+ <echo message="Solaris" />
+ <property name="compiler.cfg.id" value="compiler.cfg.solaris.jocl" />
+ <property name="linker.cfg.id" value="linker.cfg.solaris" />
+ </target>
+
+ <target name="c.configure.solaris.sparcv9" if="isSolarisSparcv9">
+ <echo message="SolarisSparcv9" />
+ <property name="compiler.cfg.id" value="compiler.cfg.solaris.jocl.sparcv9" />
+ <property name="linker.cfg.id" value="linker.cfg.solaris.sparcv9" />
+ </target>
+
+ <target name="c.configure.solaris.amd64" if="isSolarisAMD64">
+ <echo message="SolarisAMD64" />
+ <property name="compiler.cfg.id" value="compiler.cfg.solaris.jocl.amd64" />
+ <property name="linker.cfg.id" value="linker.cfg.solaris.amd64" />
+ </target>
+
<target name="c.configure.macosx" if="isOSX">
<echo message="MacOS" />
<property name="compiler.cfg.id" value="${compiler.cfg.id.base}" />
diff --git a/scripts/make.jocl.all.linux-x86_64.sh b/scripts/make.jocl.all.linux-x86_64.sh
index 6ca3e805..c58e1ae9 100644
--- a/scripts/make.jocl.all.linux-x86_64.sh
+++ b/scripts/make.jocl.all.linux-x86_64.sh
@@ -1,7 +1,9 @@
#! /bin/sh
-if [ -e ../setenv-build-jogl-x86_64.sh ] ; then
- . ../setenv-build-jogl-x86_64.sh
+SDIR=`dirname $0`
+
+if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh ] ; then
+ . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh
fi
ant \
diff --git a/scripts/make.jocl.all.solaris-x86_64.sh b/scripts/make.jocl.all.solaris-x86_64.sh
new file mode 100644
index 00000000..be11b91b
--- /dev/null
+++ b/scripts/make.jocl.all.solaris-x86_64.sh
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+SDIR=`dirname $0`
+
+if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh ] ; then
+ . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh
+fi
+
+ant \
+ -Drootrel.build=build-solaris-x86_64 \
+ $* 2>&1 | tee make.jocl.all.solaris-x86_64.log