aboutsummaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-06-27 00:00:33 +0000
committerKenneth Russel <[email protected]>2008-06-27 00:00:33 +0000
commit1f64245f42db1bf5b5ff63ff4425b4dfd9e1b70d (patch)
tree349c70f041075dc6fb7d24d66a66e07119f2b2e6 /make/build.xml
parentef077b7abd6b54308071c48d1081cae8902f6dec (diff)
Mac OS X port of new JOGL and Newt. Currently leverages the AWT; will
re-host Newt on lower level code when a port to an AWT-less Mac OS X-based mobile device is done. Added support to NativeWindow and Newt for wrapping a Java-based window from a toolkit like the AWT, and added appropriate code to the GLDrawableFactory implementations to recognize and handle these NativeWindows. Fixed naming of native method for JAWT_DrawingSurfaceInfo.platformInfo0(). Fixed linker definition on Mac and cleaned up Windows variants. Fixed intptr_t definitions in ES1 and ES2 native code. Added workaround for GLU type reference in com.sun.opengl.util.texture.Texture. Fixed bugs in Newt event dispatching. Tested with RedSquare demo on Mac OS X. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1698 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/build.xml')
-rw-r--r--make/build.xml40
1 files changed, 17 insertions, 23 deletions
diff --git a/make/build.xml b/make/build.xml
index 3dc658d24..3c62f2c36 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -531,40 +531,40 @@
<echo message="Win32.VC6" />
<property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" />
<property name="linker.cfg.id.base" value="linker.cfg.win32.msvc" />
- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl.gl2" />
- <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl.gl2" />
+ <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl" />
+ <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl" />
</target>
<target name="declare.win32.vc7" if="isVC7">
<echo message="Win32.VC7" />
<property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" />
<property name="linker.cfg.id.base" value="linker.cfg.win32.msvc" />
- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl.gl2" />
- <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl.gl2" />
+ <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl" />
+ <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl" />
</target>
<target name="declare.win32.vc8" if="isVC8">
<echo message="Win32.VC8" />
<property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" />
<property name="linker.cfg.id.base" value="linker.cfg.win32.msvc" />
- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl.gl2" />
- <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl.gl2" />
+ <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl" />
+ <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl" />
</target>
<target name="declare.win32.vc8_x64" if="isVC8_X64">
<echo message="Win32.VC8_X64" />
<property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" />
<property name="linker.cfg.id.base" value="linker.cfg.win32.msvc" />
- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl.gl2" />
- <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl.gl2" />
+ <property name="linker.cfg.id.oswin" value="linker.cfg.win32.msvc.jogl" />
+ <property name="linker.cfg.id.gl2" value="linker.cfg.win32.msvc.jogl" />
</target>
<target name="declare.win32.mingw" if="isMingW">
<echo message="Win32.MingW" />
<property name="compiler.cfg.id" value="compiler.cfg.win32.mingw" />
<property name="linker.cfg.id.base" value="linker.cfg.win32.mingw" />
- <property name="linker.cfg.id.oswin" value="linker.cfg.win32.mingw.jogl.gl2" />
- <property name="linker.cfg.id.gl2" value="linker.cfg.win32.mingw.jogl.gl2" />
+ <property name="linker.cfg.id.oswin" value="linker.cfg.win32.mingw.jogl" />
+ <property name="linker.cfg.id.gl2" value="linker.cfg.win32.mingw.jogl" />
</target>
<target name="declare.linux.x86" if="isLinuxX86">
@@ -672,8 +672,8 @@
<property name="compiler.cfg.id" value="compiler.cfg.macosx" />
<property name="linker.cfg.id.base" value="linker.cfg.macosx" />
- <property name="linker.cfg.id.oswin" value="linker.cfg.macosx.jogl.x11" />
- <property name="linker.cfg.id.gl2" value="linker.cfg.macosx.jogl.gl2" />
+ <property name="linker.cfg.id.oswin" value="linker.cfg.macosx.jogl" />
+ <property name="linker.cfg.id.gl2" value="linker.cfg.macosx.jogl" />
</target>
<!-- ================================================================== -->
@@ -1251,13 +1251,13 @@
<syslibset dir="/usr/lib/amd64" libs="X11"/>
</linker>
- <linker id="linker.cfg.win32.mingw.jogl.gl2" extends="linker.cfg.win32.mingw">
+ <linker id="linker.cfg.win32.mingw.jogl" extends="linker.cfg.win32.mingw">
<linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names -->
<syslibset libs="opengl32, glu32, gdi32, kernel32"/>
<syslibset dir="${windows.cg.lib}" libs="cg, cgGL" if="c.compiler.use-cglib"/>
</linker>
- <linker id="linker.cfg.win32.msvc.jogl.gl2" extends="linker.cfg.win32.msvc">
+ <linker id="linker.cfg.win32.msvc.jogl" extends="linker.cfg.win32.msvc">
<syslibset libs="opengl32, gdi32, user32, kernel32" />
<syslibset dir="${windows.cg.lib}" libs="cg, cgGL" if="c.compiler.use-cglib"/>
<!-- This is temporary -->
@@ -1350,15 +1350,12 @@
<!-- Also supported on Solaris, but works differently -->
<include name="${rootrel.src.c.jogl}/Xinerama.c" if="isLinux"/>
- <include name="${rootrel.src.c.jogl}/MacOSXWindowSystemInterface.m" if="isOSX"/>
-
<include name="${rootrel.generated.c.jogl}/X11/X11Lib_JNI.c" if="isX11"/>
<include name="${rootrel.generated.c.jogl}/es2/GLES2Impl_JNI.c"/>
<include name="${rootrel.generated.c.jogl}/egl/EGL_JNI.c"/>
<include name="${rootrel.src.c.jogl}/InternalBufferUtils.c"/>
- <include name="${rootrel.src.c.jogl}/ContextUpdater.m" if="isOSX"/>
</patternset>
<patternset id="c.src.files.jogl.es1">
@@ -1367,13 +1364,10 @@
<!-- Also supported on Solaris, but works differently -->
<include name="${rootrel.src.c.jogl}/Xinerama.c" if="isLinux"/>
- <include name="${rootrel.src.c.jogl}/MacOSXWindowSystemInterface.m" if="isOSX"/>
-
<include name="${rootrel.generated.c.jogl}/X11/X11Lib_JNI.c" if="isX11"/>
<include name="${rootrel.generated.c.jogl}/egl/EGL_JNI.c"/>
<include name="${rootrel.src.c.jogl}/InternalBufferUtils.c"/>
- <include name="${rootrel.src.c.jogl}/ContextUpdater.m" if="isOSX"/>
<include name="${rootrel.generated.c.jogl}/es1/GLES1Impl_JNI.c"/>
<!--include name="${rootrel.generated.c.jogl}/GLU_JNI.c"/ EMPTY -->
@@ -1446,7 +1440,6 @@
<!-- 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="${obj}/libjogl_awt.dylib" tofile="${obj}/libjogl_awt.jnilib" />
- <move file="${obj}/libnewt.dylib" tofile="${obj}/libnewt.jnilib" />
<move file="${obj}/libjogl_gl2.dylib" tofile="${obj}/libjogl_gl2.jnilib" />
<move file="${obj}/libjogl_es2.dylib" tofile="${obj}/libjogl_es2.jnilib" />
<move file="${obj}/libjogl_es1.dylib" tofile="${obj}/libjogl_es1.jnilib" />
@@ -1464,7 +1457,7 @@
<arg value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjawt.dylib" />
<arg value="/System/Library/Frameworks/JavaVM.framework/Libraries/libjawt.dylib" />
<srcfile />
- <fileset dir="${obj}" includes="libjogl_awt.jnilib, libjogl_gl2.jnilib, libjogl_gl2.jnilib, libjogl_es2.jnilib, libjogl_es1.jnilib" />
+ <fileset dir="${obj}" includes="libjogl_awt.jnilib, libjogl_gl2.jnilib, libjogl_es2.jnilib, libjogl_es1.jnilib, libjogl_cg.jnilib" />
</apply>
</target>
@@ -1492,7 +1485,8 @@
</antcall>
</target>
- <target name="c.build.newt">
+ <!-- There is no native newt library on OS X -->
+ <target name="c.build.newt" unless="isOSX">
<antcall target="c.build" inheritRefs="true">
<param name="c.compiler.src.files" value="c.src.files.newt"/>
<param name="c.compiler.use-newt" value="true"/>