aboutsummaryrefslogtreecommitdiffstats
path: root/make/build-newt.xml
diff options
context:
space:
mode:
Diffstat (limited to 'make/build-newt.xml')
-rw-r--r--make/build-newt.xml108
1 files changed, 54 insertions, 54 deletions
diff --git a/make/build-newt.xml b/make/build-newt.xml
index e74a036bb..df5783319 100644
--- a/make/build-newt.xml
+++ b/make/build-newt.xml
@@ -27,14 +27,14 @@
- Java and C file generators. Note that it is only supported
- to create the Javadoc for the platform on which you are
- currently running.
- -
+ -
- Note: on Windows the "win32.c.compiler" property in newt.properties
- is required to select the appropriate C compiler. See the example
- newt.properties in this directory for valid values. On Mac OS X
- universal binaries may also be built by setting the "macosxfat"
- property in newt.properties; again see the example file in this
- directory.
- -
+ -
- Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the
- ANT build, including the GlueGen and StaticGLInfo tasks, the building of
- the Java generated sources, the first and second phase Java compiles, and
@@ -63,7 +63,7 @@
<import file="${gluegen.root}/make/gluegen-cpptasks.xml" />
<!-- ================================================================== -->
- <!--
+ <!--
- Base initialization and detection of operating system.
-->
<target name="base.init" depends="gluegen.cpptasks.detect.os">
@@ -79,7 +79,7 @@
</condition>
<condition property="setup.noall">
- <isset property="setup.noAWT"/>
+ <isset property="setup.noAWT"/>
</condition>
<condition property="setup.nonatives">
@@ -132,19 +132,19 @@
<condition property="java.excludes.awt"
value="${java.part.awt}">
- <isset property="setup.noAWT"/>
+ <isset property="setup.noAWT"/>
</condition>
<condition property="java.excludes.opengl"
value="${java.part.opengl} ${java.part.broadcomegl}">
- <isset property="setup.noOpenGL"/>
+ <isset property="setup.noOpenGL"/>
</condition>
<property name="java.excludes.cdcfp" value="${java.part.awt}"/>
<condition property="java.excludes.desktop"
value="${java.part.x11} ${java.part.windows}, ${java.part.macosx}, ${java.part.awt}">
- <isset property="setup.nodesktop"/>
+ <isset property="setup.nodesktop"/>
</condition>
<property name="java.excludes.all" value="${java.excludes.awt}, ${java.excludes.opengl} ${java.excludes.desktop}" />
@@ -153,7 +153,7 @@
<!-- Set the project root directory to be up one directory. -->
<property name="project.root" value=".." />
-
+
<!-- Set the configuration and build files to this directory. -->
<property name="make" value="." />
</target>
@@ -167,7 +167,7 @@
</target-->
<!-- ================================================================== -->
- <!--
+ <!--
- Load user properties which override build defaults.
-->
<target name="load.user.properties" depends="base.init,base.init.sourcelevel.1" unless="user.properties.file">
@@ -182,17 +182,17 @@
</target>
<!-- ================================================================== -->
- <!--
+ <!--
- Declare all paths and user defined variables.
-->
<target name="declare.common" description="Declare properties" depends="load.user.properties">
- <!-- The location and name of the configuration ANT file that will
+ <!-- The location and name of the configuration ANT file that will
- validate to ensure that all user-define variables are set. -->
<property name="validate.user.properties" value="${make}/validate-properties.xml" />
-
+
<!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
- <property name="javacdebug" value="true" />
- <property name="javacdebuglevel" value="source,lines" />
+ <property name="javacdebug" value="true" />
+ <property name="javacdebuglevel" value="source,lines" />
<!-- Names of directories relative to the project root.
Some of these are used in FileMappers later for dependence information
@@ -226,7 +226,7 @@
<property name="src.java" value="${project.root}/${rootrel.src.java}" />
<property name="src.c" value="${project.root}/${rootrel.src.c}" />
<property name="build" value="${project.root}/${rootrel.build.newt}" />
-
+
<!-- The generated source directories. -->
<property name="src.generated" value="${build}/gensrc" />
<property name="src.generated.c" value="${src.generated}/native/newt" />
@@ -286,16 +286,16 @@
<property name="javadoc.dev.packagenames" value="${javadoc.packagenames},com.sun.javafx.newt.*" />
<property name="javadoc.bottom" value="Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to &lt;a href=&quot;http://jcp.org/en/jsr/detail?id=231&quot;&gt;license terms&lt;/a&gt;." />
</target>
-
+
<!-- ================================================================== -->
- <!--
+ <!--
- Initialize all parameters required for the build and create any
- required directories.
-->
<target name="init" depends="declare.common">
<!-- Call the external config validator script to make sure the config is ok and consistent -->
<ant antfile="${validate.user.properties}" inheritall="true"/>
-
+
<mkdir dir="${src.generated.c}" />
<mkdir dir="${src.generated.c}/X11" />
<mkdir dir="${src.generated.c}/MacOSX" />
@@ -309,7 +309,7 @@
</target>
<!-- ================================================================== -->
- <!--
+ <!--
- Compile the original and generated source.
-->
<target name="java.compile.javase">
@@ -342,7 +342,7 @@
<target name="java.compile" depends="java.compile.javase,java.compile.javacdc" />
<!-- ================================================================== -->
- <!--
+ <!--
- Compile the native C code for JOGL (and optionally the Cg binding).
-->
@@ -356,7 +356,7 @@
</compiler>
<!-- linker configuration -->
-
+
<linker id="linker.cfg.linux.newt.broadcom_egl" extends="linker.cfg.linux">
<syslibset dir="/nfsroot/lg/lib" libs="EGL"/>
<syslibset dir="/nfsroot/lg/lib" libs="GLES_CM"/>
@@ -409,7 +409,7 @@
<property name="linker.cfg.id.core" value="linker.cfg.win32.msvc" />
<property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.newt" />
</target>
-
+
<target name="c.configure.win32.mingw" if="isMingW">
<echo message="Win32.MingW" />
<property name="compiler.cfg.id" value="compiler.cfg.win32.mingw" />
@@ -427,7 +427,7 @@
</condition>
<echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" />
</target>
-
+
<target name="c.configure.linux.amd64" if="isLinuxAMD64">
<echo message="Linux.AMD64" />
<property name="compiler.cfg.id" value="compiler.cfg.linux.amd64" />
@@ -438,7 +438,7 @@
</condition>
<echo message="linker.cfg.id.oswin ${linker.cfg.id.oswin}" />
</target>
-
+
<target name="c.configure.linux.ia64" if="isLinuxIA64">
<echo message="Linux.IA64" />
<property name="compiler.cfg.id" value="compiler.cfg.linux" />
@@ -454,15 +454,15 @@
<property name="linker.cfg.id.core" value="linker.cfg.solaris" />
<property name="linker.cfg.id.oswin" value="linker.cfg.solaris.newt.x11" />
</target>
-
-
+
+
<target name="c.configure.solaris.sparcv9" depends="c.configure.x11" if="isSolarisSparcv9">
<echo message="SolarisSparcv9" />
<property name="compiler.cfg.id" value="compiler.cfg.solaris.sparcv9" />
<property name="linker.cfg.id.core" value="linker.cfg.solaris.sparcv9" />
<property name="linker.cfg.id.oswin" value="linker.cfg.solaris.sparcv9.newt.x11" />
</target>
-
+
<target name="c.configure.solaris.amd64" depends="c.configure.x11" if="isSolarisAMD64">
<echo message="SolarisAMD64" />
@@ -470,7 +470,7 @@
<property name="linker.cfg.id.core" value="linker.cfg.solaris.amd64" />
<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" />
<property name="compiler.cfg.id" value="compiler.cfg.freebsd.newt" />
@@ -494,7 +494,7 @@
<property name="linker.cfg.id.core" value="linker.cfg.macosx" />
<property name="linker.cfg.id.oswin" value="linker.cfg.macosx.newt" />
</target>
-
+
<target name="c.configure.2" depends="c.configure.win32,c.configure.linux,c.configure.solaris32,c.configure.solaris.sparcv9,c.configure.solaris.amd64,c.configure.macosx,c.configure.freebsd,c.configure.hpux" />
<target name="c.configure" depends="c.configure.1,c.configure.2" />
@@ -518,9 +518,9 @@
<echo message="Output lib name = @{output.lib.name}" />
<!-- NOTE: the value of the debug and optimise attributes will not be overridden if already set externally -->
- <property name="c.compiler.debug" value="false" />
- <!-- Optimise flags one of { none, size, speed, minimal, full, aggressive, extreme, unsafe } -->
- <property name="c.compiler.optimise" value="none" />
+ <property name="c.compiler.debug" value="false" />
+ <!-- Optimise flags one of { none, size, speed, minimal, full, aggressive, extreme, unsafe } -->
+ <property name="c.compiler.optimise" value="none" />
<condition property="c.compiler.use-debug"><istrue value="${c.compiler.debug}"/></condition>
@@ -535,25 +535,25 @@
<echo message="Compiling @{output.lib.name}" />
- <cc outtype="shared"
- objdir="${obj}"
+ <cc outtype="shared"
+ objdir="${obj}"
outfile="${obj}/@{output.lib.name}"
- optimize="${c.compiler.optimise}"
+ optimize="${c.compiler.optimise}"
debug="${c.compiler.debug}"
- multithreaded="true"
- exceptions="false"
- rtti="false">
-
+ multithreaded="true"
+ exceptions="false"
+ rtti="false">
+
<!-- TODO: versioninfo companyname="java.net"
legalcopyright="Copyright"
- productname="JOGL"
+ productname="JOGL"
productversion="x.y.z"
description="Description"
- fileversion="x.y.z"
- filecomments="File Comment" /-->
-
+ fileversion="x.y.z"
+ filecomments="File Comment" /-->
+
<fileset dir="${project.root}"><patternset refid="@{c.compiler.src.files}"/></fileset>
-
+
<compiler extends="@{compiler.cfg.id}" >
<sysincludepath path="${java.includes.dir}"/>
<sysincludepath path="${java.includes.dir.platform}"/>
@@ -567,11 +567,11 @@
<includepath path="${src.generated.c}/IntelGDL" if="useIntelGDL" />
<includepath path="stub_includes/embedded/IntelGDL" if="useIntelGDL" />
<includepath path="${src.generated.c}/BroadcomEGL" if="useBroadcomEGL" />
-
+
<!-- This must come last to not override real include paths -->
<!-- includepath path="stub_includes/macosx" if="isOSX" / -->
</compiler>
-
+
<linker extends="@{linker.cfg.id}">
<syslibset dir="${java.lib.dir.platform}" libs="jawt" if="@{output.lib.name}.useLibJAWT"/>
<syslibset dir="${java.lib.dir.platform}/server" libs="jvm" if="@{output.lib.name}.useLibJVM"/>
@@ -593,7 +593,7 @@
<param name="dest" value="${build}/obj/@{output.lib.name}.dll" />
</antcall>
</sequential>
- </macrodef>
+ </macrodef>
<target name="c.build.newt.prepare.KD" if="useKD">
<javah destdir="${src.generated.c}/KD" classpath="${classes}" class="com.sun.javafx.newt.opengl.kd.KDWindow" />
@@ -797,17 +797,17 @@
<!-- ================================================================== -->
<!--
- Build the Javadocs for the sources.
- - NOTE: these are not entirely correct as the javadocs targets depend
- - on the platform specific build targets. To circumvent any
+ - NOTE: these are not entirely correct as the javadocs targets depend
+ - on the platform specific build targets. To circumvent any
- errors, ensure that the source is built first.
-->
<target name="javadoc" depends="load.user.properties,init">
<!-- Build the general Javadoc -->
<javadoc packagenames="${javadoc.packagenames}"
excludepackagenames="${java.excludes.javadoc.packagenames}"
- sourcepath="${src.java};${src.generated.java}"
+ sourcepath="${src.java};${src.generated.java}"
destdir="${javadoc}" windowtitle="${javadoc.windowtitle}"
- overview="${javadoc.overview}"
+ overview="${javadoc.overview}"
source="1.4"
linkoffline="${javadoc.link} 142-packages"
bottom="${javadoc.bottom}" >
@@ -828,14 +828,14 @@
<classpath refid="nativewindow_gluegen_jogl.classpath"/>
</javadoc>
</target>
-
+
<target name="javadoc.dev" depends="load.user.properties,init">
<!-- Build the internal developer Javadoc -->
<javadoc packagenames="${javadoc.dev.packagenames}"
excludepackagenames="${java.excludes.javadoc.packagenames}"
- sourcepath="${src.java};${src.generated.java}"
+ sourcepath="${src.java};${src.generated.java}"
destdir="${javadoc.dev}" windowtitle="${javadoc.windowtitle}"
- overview="${javadoc.overview}"
+ overview="${javadoc.overview}"
source="1.4"
linkoffline="${javadoc.link} 142-packages"
bottom="${javadoc.bottom}" >