aboutsummaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-03-05 01:19:45 +0000
committerSven Gothel <[email protected]>2009-03-05 01:19:45 +0000
commit056229b0b7a962c36afca73a9925dc978f93e13c (patch)
treef81ef563afacb2ca199dcde19545c5ef88a89333 /make/build.xml
parentd88ec9ca9e797335a926202ebb0d3adbf7ea952e (diff)
- Fixed rootrel.build usage, this works properly through gluegen, jogl-demos and this build.
You can say -Drootrel.build=build-x86_64 for example. - Fixed jogl-demos in regard to this changeset - Gluegen - Fixed gluegen BuildComposablePipeline's 'getGL*' methods. Now they return 'this', otherwise the pipeline would be broken/removed. - Add BuildComposablePipeline CustomPipeline, which allows customized class composition with an interface (to be wrapped), prolog class and the downstream class. - Add GlueGen (incl. ant task) 'outputRootDir' to be able to set a top output root dir via ant / commandline. - GL fixed function - Package 'javax.media.opengl.sub.fixed.*' defines some fixed function interfaces. This allows partitioning of custom implementation. - Using gluegen's new CustomPipeline to compose a GLFixedFuncIf implementation, using a GL downstream and a GLFixedFuncHookIf prolog. The latter implements the fixed functionality. Example is the GLFixedFuncImpl. gl.getContext().setGL( new GLFixedFuncImpl(gl, new FixedFuncHook(gl.getGL2ES2())) ) ; or gl.getContext().setGL( new GLFixedFuncImpl(gl, gl.getGL2ES1()) ) ; - The example GLFixedFuncHookIf impl FixedFuncPipeline/ can be instantiated with custom shader code. - ES2 and all other interfaces only contain the original functionality, besides minor convenient data access methods. - Fix: GL2ES2 createCompileShader() and createLoadShader() is moved to ShaderCode util class. - Updated PMVMatrix - Add: GLAutoDrawable.setContext() .. and all it's implementations Necessary to set a new GLContext. - Add: GLContext getAttachedObject(int) and putAttachedObject(int, Object), to allow the user to attach application specific and TLS sensitive objects to the GLContext. - git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/branches/JOGL_2_SANDBOX@122 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'make/build.xml')
-rwxr-xr-xmake/build.xml38
1 files changed, 22 insertions, 16 deletions
diff --git a/make/build.xml b/make/build.xml
index da090e5..904b16c 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -29,6 +29,12 @@
<echo message="antlr.jar=${antlr.jar}" />
</target>
+ <condition property="rootrel.build" value="build">
+ <not>
+ <isset property="rootrel.build"/>
+ </not>
+ </condition>
+
<target name="setup-excludes-1" if="gluegen.nsig">
<property name="gluegen.excludes" value="" />
</target>
@@ -42,13 +48,13 @@
</target>
<target name="setup.javase" unless="isCDCFP">
- <copy file="../src/java/com/sun/gluegen/runtime/BufferFactory.java.javase" tofile="../build/gensrc/java/com/sun/gluegen/runtime/BufferFactory.java" />
- <copy file="../src/java/com/sun/gluegen/runtime/StructAccessor.java.javase" tofile="../build/gensrc/java/com/sun/gluegen/runtime/StructAccessor.java" />
+ <copy file="../src/java/com/sun/gluegen/runtime/BufferFactory.java.javase" tofile="../${rootrel.build}/gensrc/java/com/sun/gluegen/runtime/BufferFactory.java" />
+ <copy file="../src/java/com/sun/gluegen/runtime/StructAccessor.java.javase" tofile="../${rootrel.build}/gensrc/java/com/sun/gluegen/runtime/StructAccessor.java" />
</target>
<target name="setup.javame.cdc.fp" if="isCDCFP">
- <copy file="../src/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp" tofile="../build/gensrc/java/com/sun/gluegen/runtime/BufferFactory.java" />
- <copy file="../src/java/com/sun/gluegen/runtime/StructAccessor.java.javame_cdc_fp" tofile="../build/gensrc/java/com/sun/gluegen/runtime/StructAccessor.java" />
+ <copy file="../src/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp" tofile="../${rootrel.build}/gensrc/java/com/sun/gluegen/runtime/BufferFactory.java" />
+ <copy file="../src/java/com/sun/gluegen/runtime/StructAccessor.java.javame_cdc_fp" tofile="../${rootrel.build}/gensrc/java/com/sun/gluegen/runtime/StructAccessor.java" />
</target>
<target name="init" depends="load.user.properties,setup-excludes-1,setup-excludes-2,init.javame.cdc.fp">
@@ -56,11 +62,11 @@
<!-- The source directories. -->
<property name="src.java" value="../src/java" />
- <property name="build" value="../build" />
+ <property name="build" value="../${rootrel.build}" />
<!-- The generated source directories. -->
- <property name="src.generated" value="../build/gensrc" />
- <property name="src.generated.java" value="../build/gensrc/java" />
+ <property name="src.generated" value="../${rootrel.build}/gensrc" />
+ <property name="src.generated.java" value="../${rootrel.build}/gensrc/java" />
<!-- The compiler output directories. -->
<property name="classes" value="${build}/classes" />
@@ -310,13 +316,13 @@
<target name="c.rename.lib.mingw" if="isMingW">
<!-- FIXME: this is a hack; the cpptask should have an option to change the
suffix or at least understand the override from .so to .dll -->
- <move file="../build/obj/libgluegen-rt.so" tofile="../build/obj/gluegen-rt.dll" />
+ <move file="../${rootrel.build}/obj/libgluegen-rt.so" tofile="../${rootrel.build}/obj/gluegen-rt.dll" />
</target>
<target name="c.rename.lib.macosx" if="isOSX">
<!-- FIXME: this is a hack; the cpptask should have an option to change the
suffix or at least understand the override from dylib to jnilib -->
- <move file="../build/obj/libgluegen-rt.dylib" tofile="../build/obj/libgluegen-rt.jnilib" />
+ <move file="../${rootrel.build}/obj/libgluegen-rt.dylib" tofile="../${rootrel.build}/obj/libgluegen-rt.jnilib" />
</target>
<target name="c.build" depends="c.configure" unless="build.javaonly" >
@@ -334,14 +340,14 @@
<condition property="c.compiler.use-debug"><istrue value="${c.compiler.debug}"/></condition>
- <mkdir dir="../build/obj" />
+ <mkdir dir="../${rootrel.build}/obj" />
<echo message="Compiling ${c.compiler.src.files}" />
<echo message="user.dir=${user.dir}" />
<cc outtype="shared"
- objdir="../build/obj"
- outfile="../build/obj/${output.lib.name}"
+ objdir="../${rootrel.build}/obj"
+ outfile="../${rootrel.build}/obj/${output.lib.name}"
optimize="${c.compiler.optimise}"
debug="${c.compiler.debug}"
multithreaded="true"
@@ -373,8 +379,8 @@
<antcall target="c.rename.lib.mingw" inheritRefs="true" />
<antcall target="c.rename.lib.macosx" inheritRefs="true" />
<!-- Create Java Web Start jar file from built file -->
- <jar destfile="../build/gluegen-rt-natives-${os.and.arch}.jar">
- <fileset dir="../build/obj">
+ <jar destfile="../${rootrel.build}/gluegen-rt-natives-${os.and.arch}.jar">
+ <fileset dir="../${rootrel.build}/obj">
<include name="*gluegen-rt.${native.library.suffix}" />
</fileset>
</jar>
@@ -388,7 +394,7 @@
<target name="gluegen.rebuild.gluegen-rt" if="isCDCFP">
<!-- Re-build just the gluegen-rt.jar classes using the Java ME
boot classes, if they're in use. -->
- <delete dir="../build/classes/com/sun/gluegen/runtime" />
+ <delete dir="../${rootrel.build}/classes/com/sun/gluegen/runtime" />
<javac destdir="${classes}"
source="1.4"
debug="true"
@@ -506,7 +512,7 @@
<target name="clean">
<delete includeEmptyDirs="true" quiet="true">
- <fileset dir="../build" />
+ <fileset dir="../${rootrel.build}" />
</delete>
</target>
</project>