summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-01-03 19:11:07 +0000
committerKenneth Russel <[email protected]>2006-01-03 19:11:07 +0000
commit0e323be66eee0728736f034d9de28ba00d9cf1a0 (patch)
tree951592f02a0f20d757121af140175cfa0de250a5 /make
parent3c3b699b51c4e1f72145f38800b27812ef74b727 (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')
-rw-r--r--make/build.xml63
-rw-r--r--make/jogl.properties17
2 files changed, 45 insertions, 35 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 &quot;_DEBUG&quot;
Optimized: /MD /W3 /O2 /Ob1 /GF /EHsc /GS /Gy /Wp64 /D &quot;NDEBUG&quot; -->
-
- <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
diff --git a/make/jogl.properties b/make/jogl.properties
index 85816f0d0..b5e14d47a 100644
--- a/make/jogl.properties
+++ b/make/jogl.properties
@@ -32,23 +32,6 @@
#build.compiler.emacs=true
#
-# If you are building on Windows with Visual C++ 6.0 and have installed
-# the compiler in somewhere other than the default location, modify this
-# to point to the absolute path of the VC98 directory
-#
-vc6.root=C:/Program Files/Microsoft Visual Studio/VC98
-
-#
-# If you are building on Windows with Visual C++ 7.0 or later and have
-# installed the compiler in somewhere other than the default location,
-# modify this to point to the absolute path of the parent directory of
-# the "lib" directory
-#
-# NOTE: this has been customized for VS.NET 2003
-#
-vc7.root=C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK
-
-#
# If you are building the Cg binding (by specifying -Djogl.cg=1 to the
# Ant build) and have installed the Cg SDK in somewhere other than the
# default location, modify the appropriate variable to point to the