diff options
author | Kenneth Russel <[email protected]> | 2006-01-03 19:11:07 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-01-03 19:11:07 +0000 |
commit | 0e323be66eee0728736f034d9de28ba00d9cf1a0 (patch) | |
tree | 951592f02a0f20d757121af140175cfa0de250a5 /make/build.xml | |
parent | 3c3b699b51c4e1f72145f38800b27812ef74b727 (diff) |
Added contribution from user mabraham on JOGL forum with Microsoft
Visual C++ 2005 (VC8) support. Deleted vc6.root and vc7.root
properties as no longer being necessary. Updated build documentation
to indicate that vcvars32.bat must be run before executing the
appropriate ant target.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@511 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/build.xml')
-rw-r--r-- | make/build.xml | 63 |
1 files changed, 45 insertions, 18 deletions
diff --git a/make/build.xml b/make/build.xml index 55ad448e6..aa1d86fea 100644 --- a/make/build.xml +++ b/make/build.xml @@ -275,20 +275,19 @@ <property name="javadoc.dev.packagenames.platform" value="${javadoc.dev.packagenames.win32}" /> </target> - <target name="declare.win32.vc6" depends="declare.win32"> - <property name="c.compiler.include.root" value="${vc6.root}" /> - <property name="c.linker.lib.root" value="${vc6.root}" /> - - <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" /> - <property name="linker.cfg.id" value="linker.cfg.win32.msvc" /> + <target name="declare.win32.vc6" depends="declare.win32"> + <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" /> + <property name="linker.cfg.id" value="linker.cfg.win32.msvc" /> </target> <target name="declare.win32.vc7" depends="declare.win32"> - <property name="c.compiler.include.root" value="${vc7.root}" /> - <property name="c.linker.lib.root" value="${vc7.root}" /> - - <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" /> - <property name="linker.cfg.id" value="linker.cfg.win32.msvc" /> + <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" /> + <property name="linker.cfg.id" value="linker.cfg.win32.msvc" /> + </target> + + <target name="declare.win32.vc8" depends="declare.win32"> + <property name="compiler.cfg.id" value="compiler.cfg.win32.msvc" /> + <property name="linker.cfg.id" value="linker.cfg.win32.msvc" /> </target> <target name="declare.win32.mingw" depends="declare.win32"> @@ -686,9 +685,9 @@ <!-- Note: previous compiler options for VC7 were: Debug: /MDd /Yd /GS /RTCs /RTCu /RTCc /W3 /Od /GF /EHsc /Zi /GS /Gy /Wp64 /Zi /D "_DEBUG" Optimized: /MD /W3 /O2 /Ob1 /GF /EHsc /GS /Gy /Wp64 /D "NDEBUG" --> - - <sysincludepath path="${c.compiler.include.root}/PlatformSDK/Include"/> - <sysincludepath path="${c.compiler.include.root}/include"/> + <compilerarg value="/GS" if="c.compiler.use-msvc8"/> <!-- buffer security checks --> + <compilerarg value="/Wp64" if="c.compiler.use-msvc8"/> <!-- detect 64-bit port problems --> + <compilerarg value="/RTCcsu" if="c.compiler.use-msvc8"/> <!-- various runtime checks --> <defineset> <define name="_DEBUG" if="c.compiler.use-debug"/> @@ -739,9 +738,9 @@ <linkerarg value="/OPT:REF,ICF" /> <!-- enable link-time optimisations --> <linkerarg value="/SUBSYSTEM:WINDOWS" /> <!-- output is not a console app as uses WinMain entry point --> <linkerarg value="/MACHINE:IX86" /> <!-- explicity set target platform --> + + <syslibset libs="opengl32, glu32, gdi32, user32, kernel32"/> - <syslibset dir="${c.linker.lib.root}/lib" libs="opengl32, glu32, gdi32, user32, kernel32" unless="c.compiler.use-msvc7"/> - <syslibset dir="${c.linker.lib.root}/PlatformSDK/lib" libs="opengl32, glu32, gdi32, user32, kernel32" if="c.compiler.use-msvc7"/> <syslibset dir="${windows.cg.lib}" libs="cg, cgGL" if="c.compiler.use-cglib"/> </linker> @@ -872,7 +871,20 @@ </antcall> <antcall target="c.rename.jogl_cg.lib.macosx" inheritRefs="true" /> </target> - + + <target name="c.manifest"> + <!-- exec mt, the Microsoft Manifest Tool, to include DLL manifests in order to resolve the location of msvcr80.dll --> + <exec executable="mt"> + <arg value="-manifest"/> + <arg value="${obj}/jogl.dll.manifest"/> + <arg value="-outputresource:${obj}/jogl.dll;#2"/> + </exec> + <exec executable="mt"> + <arg value="-manifest"/> + <arg value="${obj}/jogl_awt.dll.manifest"/> + <arg value="-outputresource:${obj}/jogl_awt.dll;#2"/> + </exec> + </target> <target name="c.compile.jogl.win32.vc6" depends="declare.win32.vc6, c.build.jogl.core, c.build.jogl.awt, c.build.cg" > </target> @@ -881,6 +893,10 @@ <property name="c.compiler.use-msvc7" value="true"/> </target> + <target name="c.compile.jogl.win32.vc8" depends="declare.win32.vc8, c.build.jogl.core, c.build.jogl.awt, c.build.cg, c.manifest"> + <property name="c.compiler.use-msvc8" value="true"/> + </target> + <target name="c.compile.jogl.win32.mingw" depends="declare.win32.mingw, c.build.jogl.core, c.build.jogl.awt, c.build.cg"> <antcall target="c.rename.jogl.libs.mingw" inheritrefs="true" /> </target> @@ -1175,7 +1191,7 @@ <target name="all"> <fail> -Use a platform specific target: linux, linux.amd64, linux.ia64, macosx, macosxfat (ppc and i386), solaris, win32.vc6, win32.vc7, win32.mingw +Use a platform specific target: linux, linux.amd64, linux.ia64, macosx, macosxfat (ppc and i386), solaris, win32.vc6, win32.vc7, win32.vc8, win32.mingw </fail> </target> @@ -1200,6 +1216,17 @@ Use a platform specific target: linux, linux.amd64, linux.ia64, macosx, macosxf <!-- Compile the native C sources and build the jogl.dll. --> <antcall target="c.compile.jogl.win32.vc7" /> </target> + + <!-- + - Win32 with MS VC8 + --> + <target name="win32.vc8" depends="setup.java.home.dir, declare.win32"> + <!-- Generate, compile, and build the jar for the Java sources. --> + <antcall target="jar" inheritRefs="true" /> + + <!-- Compile the native C sources and build the jogl.dll. --> + <antcall target="c.compile.jogl.win32.vc8" /> + </target> <!-- - Win32 with mingw32 |