diff options
author | Mark Rothwell <[email protected]> | 2010-06-26 16:24:48 +0000 |
---|---|---|
committer | Mark Rothwell <[email protected]> | 2010-06-26 16:24:48 +0000 |
commit | ceec1ed6f1d6ebe904326a7517259d920098d9a0 (patch) | |
tree | f58056e0ad7f22ab4d4f8f37e09bb489b0df29d9 | |
parent | 707a4d36a562e543ac4251c2369927e1a4c536c0 (diff) |
Set up compiler and linker for newt. JOGL builds and passes all tests.
-rw-r--r-- | make/build-newt.xml | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/make/build-newt.xml b/make/build-newt.xml index d85f9da65..58f8d1962 100644 --- a/make/build-newt.xml +++ b/make/build-newt.xml @@ -231,9 +231,22 @@ <target name="c.configure.1" depends="gluegen.cpptasks.detect.os,gluegen.cpptasks.setup.compiler"> <!-- compiler configuration --> <!-- Note that we can use the base setups in the gluegen-cpptasks for most of these --> + <compiler id="compiler.cfg.freebsd.newt" extends="compiler.cfg.freebsd"> + <includepath path="/usr/local/include" /> + </compiler> <!-- linker configuration --> + <linker id="linker.cfg.freebsd.newt.x11" extends="linker.cfg.freebsd"> + <syslibset dir="/usr/local/lib" libs="X11"/> + <syslibset dir="/usr/local/lib" libs="Xxf86vm" /> + </linker> + + <linker id="linker.cfg.freebsd.amd64.newt.x11" extends="linker.cfg.freebsd.amd64"> + <syslibset dir="/usr/local/lib" libs="X11"/> + <syslibset dir="/usr/local/lib" libs="Xxf86vm" /> + </linker> + <linker id="linker.cfg.linux.newt.broadcom_egl" extends="linker.cfg.linux"> <syslibset libs="EGL"/> <syslibset libs="GLES_CM"/> @@ -360,13 +373,30 @@ <property name="linker.cfg.id.oswin" value="linker.cfg.solaris.amd64.newt.x11" /> </target> - <target name="c.configure.freebsd" depends="c.configure.x11" if="isFreeBSD"> - <echo message="FreeBSD" /> + <target name="c.configure.freebsd.x86" if="isFreeBSDX86"> + <echo message="FreeBSD.x86" /> <property name="compiler.cfg.id" value="compiler.cfg.freebsd.newt" /> - <property name="linker.cfg.id.core" value="linker.cfg.linux" /> - <property name="linker.cfg.id.oswin" value="linker.cfg.linux.newt.x11" /> + <property name="linker.cfg.id.core" value="linker.cfg.freebsd" /> + <condition property="linker.cfg.id.oswin" value="linker.cfg.freebsd.newt.x11" + else="linker.cfg.freebsd"> + <isset property="isX11" /> + </condition> + <echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" /> + </target> + + <target name="c.configure.freebsd.amd64" if="isFreeBSDAMD64"> + <echo message="FreeBSD.AMD64" /> + <property name="compiler.cfg.id" value="compiler.cfg.freebsd.newt" /> + <property name="linker.cfg.id.core" value="linker.cfg.freebsd.amd64" /> + <condition property="linker.cfg.id.oswin" value="linker.cfg.freebsd.amd64.newt.x11" + else="linker.cfg.freebsd.amd64"> + <isset property="isX11" /> + </condition> + <echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" /> </target> + <target name="c.configure.freebsd" depends="c.configure.freebsd.x86,c.configure.freebsd.amd64,c.configure.x11" if="isFreeBSD"/> + <target name="c.configure.hpux" depends="c.configure.x11" if="isHPUX"> <echo message="HP-UX" /> <property name="compiler.cfg.id" value="compiler.cfg.hpux" /> |