summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/build.xml47
-rwxr-xr-xmake/gl-macosx-nsig.cfg2
-rwxr-xr-xmake/gl-win32-nsig.cfg2
-rwxr-xr-xmake/gl-x11-nsig.cfg2
-rwxr-xr-xmake/nsig.cfg22
5 files changed, 66 insertions, 9 deletions
diff --git a/make/build.xml b/make/build.xml
index ed489400e..e20f5bc6e 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -74,11 +74,19 @@
<property name="make" value="." />
</target>
+ <target name="base.init.sourcelevel.1" unless="gluegen.nsig">
+ <property name="jogl.sourcelevel" value="1.4" />
+ </target>
+
+ <target name="base.init.sourcelevel.2" if="gluegen.nsig">
+ <property name="jogl.sourcelevel" value="1.5" />
+ </target>
+
<!-- ================================================================== -->
<!--
- Load user properties which override build defaults.
-->
- <target name="load.user.properties" depends="base.init" unless="user.properties.file">
+ <target name="load.user.properties" depends="base.init,base.init.sourcelevel.1,base.init.sourcelevel.2" unless="user.properties.file">
<!-- Load the user specified properties file that defines various host
- specific paths. The user will be notified if this is does not
- exist. -->
@@ -286,6 +294,7 @@
<target name="declare.win32" depends="declare.win32.vc6,declare.win32.vc7,declare.win32.vc8,declare.win32.mingw" if="isWindows">
<!-- Set platform configuration files. -->
<property name="gl.cfg" value="${config}/gl-win32.cfg" />
+ <property name="gl.cfg.nsig" value="${config}/gl-win32-nsig.cfg" />
<property name="glext.platform.cfg" value="${config}/wglext.cfg" />
<property name="glu.cfg" value="${config}/glu-win32.cfg" />
<property name="jawt.cfg" value="${config}/jawt-win32.cfg" />
@@ -308,6 +317,7 @@
<target name="declare.x11" depends="init" if="isX11">
<!-- Set platform configuration files. -->
<property name="gl.cfg" value="${config}/gl-x11.cfg" />
+ <property name="gl.cfg.nsig" value="${config}/gl-x11-nsig.cfg" />
<property name="glext.platform.cfg" value="${config}/glxext.cfg" />
<property name="glu.cfg" value="${config}/glu-x11.cfg" />
<property name="jawt.cfg" value="${config}/jawt-x11.cfg" />
@@ -372,6 +382,7 @@
<echo message="MacOSX" />
<!-- Set platform configuration files. -->
<property name="gl.cfg" value="${config}/gl-macosx.cfg" />
+ <property name="gl.cfg.nsig" value="${config}/gl-macosx-nsig.cfg" />
<property name="glext.platform.cfg" value="${config}/cglext.cfg" />
<property name="glu.cfg" value="${config}/glu-macosx.cfg" />
<property name="jawt.cfg" value="${config}/jawt-macosx.cfg" />
@@ -437,6 +448,7 @@
<ant antfile="${gluegen.build.xml}" dir="${gluegen.make.dir}" target="all" inheritAll="false">
<propertyset>
<propertyref name="antlr.jar" />
+ <propertyref name="gluegen.nsig" />
</propertyset>
</ant>
@@ -472,6 +484,28 @@
</uptodate>
</target>
+ <target name="java.generate.gl" unless="gluegen.nsig">
+ <!-- Generate GL interface and implementation -->
+ <echo message="Generating GL interface and implementation" />
+ <gluegen src="${stub.includes.common}/gl.c"
+ config="${gl.cfg}"
+ includeRefid="stub.includes.fileset.all"
+ emitter="com.sun.gluegen.opengl.GLEmitter">
+ <classpath refid="gluegen.classpath" />
+ </gluegen>
+ </target>
+
+ <target name="java.generate.gl.nsig" if="gluegen.nsig">
+ <!-- Generate GL interface and implementation -->
+ <echo message="Generating GL interface and implementation" />
+ <gluegen src="${stub.includes.common}/gl.c"
+ config="${gl.cfg.nsig}"
+ includeRefid="stub.includes.fileset.all"
+ emitter="com.sun.gluegen.nativesig.NativeSignatureEmitter">
+ <classpath refid="gluegen.classpath" />
+ </gluegen>
+ </target>
+
<!--
- Setup the generating ANT tasks and use it to generate the Java files
- from the C GL headers. This involves setting the taskdef and creating
@@ -488,13 +522,8 @@
- Java files -->
<!-- Generate GL interface and implementation -->
- <echo message="Generating GL interface and implementation" />
- <gluegen src="${stub.includes.common}/gl.c"
- config="${gl.cfg}"
- includeRefid="stub.includes.fileset.all"
- emitter="com.sun.gluegen.opengl.GLEmitter">
- <classpath refid="gluegen.classpath" />
- </gluegen>
+ <antcall target="java.generate.gl" inheritRefs="true" />
+ <antcall target="java.generate.gl.nsig" inheritRefs="true" />
<!-- Generate platform-specific extension class (WGLExt, GLXExt, etc.) -->
<echo message="Generating platform-specific OpenGL extension class" />
@@ -636,7 +665,7 @@
<target name="java.compile.secondpass" depends="java.generate.composable.pipeline">
<!-- Perform the second pass Java compile; everything. -->
<javac destdir="${classes}"
- excludes="${java.excludes.platform},com/sun/opengl/impl/nurbs/**" source="1.4" debug="true" debuglevel="source,lines">
+ excludes="${java.excludes.platform},com/sun/opengl/impl/nurbs/**" source="${jogl.sourcelevel}" debug="true" debuglevel="source,lines">
<src path="${src.java}" />
<src path="${src.generated.java}" />
</javac>
diff --git a/make/gl-macosx-nsig.cfg b/make/gl-macosx-nsig.cfg
new file mode 100755
index 000000000..6a4bc0a06
--- /dev/null
+++ b/make/gl-macosx-nsig.cfg
@@ -0,0 +1,2 @@
+Include nsig.cfg
+Include gl-macosx.cfg
diff --git a/make/gl-win32-nsig.cfg b/make/gl-win32-nsig.cfg
new file mode 100755
index 000000000..b7c4973d4
--- /dev/null
+++ b/make/gl-win32-nsig.cfg
@@ -0,0 +1,2 @@
+Include nsig.cfg
+Include gl-win32.cfg
diff --git a/make/gl-x11-nsig.cfg b/make/gl-x11-nsig.cfg
new file mode 100755
index 000000000..bb8a76821
--- /dev/null
+++ b/make/gl-x11-nsig.cfg
@@ -0,0 +1,2 @@
+Include nsig.cfg
+Include gl-x11.cfg
diff --git a/make/nsig.cfg b/make/nsig.cfg
new file mode 100755
index 000000000..404746cc3
--- /dev/null
+++ b/make/nsig.cfg
@@ -0,0 +1,22 @@
+# The NativeSignatureEmitter can not yet handle some constructs
+Ignore glColorPointerListIBM
+Ignore glColorPointervINTEL
+Ignore glEdgeFlagPointerListIBM
+Ignore glFogCoordPointerListIBM
+Ignore glIndexPointerListIBM
+Ignore glMultiDrawElements
+Ignore glMultiDrawElementsEXT
+Ignore glMultiModeDrawElementsIBM
+Ignore glNormalPointerListIBM
+Ignore glNormalPointervINTEL
+Ignore glReplacementCodePointerSUN
+Ignore glSecondaryColorPointerListIBM
+Ignore glTexCoordPointerListIBM
+Ignore glTexCoordPointervINTEL
+Ignore glVertexPointerListIBM
+Ignore glVertexPointervINTEL
+Ignore glShaderSource
+Ignore glShaderSourceARB
+Ignore glGetSeparableFilter
+Ignore glGetSeparableFilterEXT
+Ignore glGetShaderSourceARB