Subversion Repositories DevTools

Rev

Rev 1900 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1886 mkiran 1
<project name="msvc-task">
2
 
1890 mtanner 3
	<!--	C O P Y R I G H T   N O T I C E
4
			This material is confidential to ERG and may not be disclosed in whole
1886 mkiran 5
			or in part to any third party nor used in any manner whatsoever other
6
			than for the purposes expressly consented to by ERG in writing.
7
 
8
			This material is also copyright and may not be reproduced, stored in a
9
			retrieval system or transmitted in any form or by any means in whole or
10
			in part without the express written consent of ERG.
11
	-->
12
 
13
	<!-- This is a Windows based compiler package, so include its standard environment -->
14
	<using name="ant-cpptasks" version="REPLACE_ANT_CPPTASK"/>
15
	<using name="ant-windows" version="REPLACE_WINDOWS"/>
1898 crichaud 16
 
17
	<using name="ant-dinkumware_stl" version="REPLACE_DINKUMWARE_STL"/>
1886 mkiran 18
 
19
	<!-- Include the Microsoft C++ Compiler/Linker environment from its COTS package -->
1890 mtanner 20
	<using name="microsoft_cpp" version="REPLACE_MICROSOFT_CPP"/>
1898 crichaud 21
 
1886 mkiran 22
	<!-- Set up the environment's Binary path, Include and Library paths -->
23
	<property name="msvc_bin" value="${using.microsoft_cpp.basedir}/bin"/>
24
	<property name="msvc_compilername" value="msvc"/>
25
 
1898 crichaud 26
 
27
	<if>
28
		<isset property="dinkumware_stl_include"/>
29
		<then>
30
			<echo taskname="msvc-task">using Placing Dinkumware before Microsoft MSVC</echo>
31
			<property name="msvc_include" value="${dinkumware_stl_include};${using.microsoft_cpp.basedir}/include"/>	
32
			<property name="msvc_lib" value="${using.microsoft_cpp.basedir}/lib"/>
33
			<property name="msvc_libraries_debug"	value="MSVCPRTD,MSVCRTD,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32"/>
34
			<property name="msvc_libraries_release"	value="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32"/>	
35
		</then>
36
		<else>
37
			<property name="msvc_include" value="${using.microsoft_cpp.basedir}/include"/>
38
			<property name="msvc_lib" value="${using.microsoft_cpp.basedir}/lib"/>
39
			<property name="msvc_libraries_debug"	value="MSVCPRTD,MSVCRTD,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32"/>
40
			<property name="msvc_libraries_release"	value="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32"/>
41
		</else>
42
	</if>
43
 
1886 mkiran 44
	<property name="msvc_include_debug" value="${msvc_include}"/>
45
	<property name="msvc_include_release" value="${msvc_include}"/>
1898 crichaud 46
	<property name="msvc_lib_debug" value="${msvc_lib}"/>
47
	<property name="msvc_lib_release" value="${msvc_lib}"/>
1886 mkiran 48
 
49
 
50
	<compiler id="msvc_compiler_debug_console" name="${msvc_compilername}">
1900 crichaud 51
		<compilerarg value="/G6"/>	<!-- Optimize for Pentium Pro -->
52
		<compilerarg value="/MDd"/>	<!-- link with MSVCRTD.LIB debug lib -->
1886 mkiran 53
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
1900 crichaud 54
 
55
		<compilerarg value="/W3"/>	<!-- Warning Level 3 -->
56
		<compilerarg value="/GX"/>	<!-- Enable C++ EH (same as /EHsc) enable synchronous C++ and extern "C" defaults to nothrow -->
57
		<compilerarg value="-DNO_STRICT"/>
1886 mkiran 58
 
1900 crichaud 59
		<compilerarg value="/Od"/>	<!-- Disable Optimization for Debug Build -->
60
		<compilerarg value="/Zi"/>
1886 mkiran 61
		<compilerarg value="-D_DEBUG"/>
1900 crichaud 62
		<compilerarg value="-DDEBUG"/>
1886 mkiran 63
 
64
		<compilerarg value="-DWIN32"/>
65
		<compilerarg value="-D_WINDOWS"/>
66
	</compiler>
67
 
68
	<compiler id="msvc_compiler_debug_gui" name="${msvc_compilername}">
1900 crichaud 69
		<compilerarg value="/G6"/>	<!-- Optimize for Pentium Pro -->
70
		<compilerarg value="/MDd"/>	<!-- link with MSVCRTD.LIB debug lib -->
1886 mkiran 71
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
72
 
1900 crichaud 73
		<compilerarg value="/W3"/>	<!-- Warning Level 3 -->
74
		<compilerarg value="/GX"/>	<!-- Enable C++ EH (same as /EHsc) enable synchronous C++ and extern "C" defaults to nothrow -->
75
 
1886 mkiran 76
		<compilerarg value="-DNO_STRICT"/>
1900 crichaud 77
 
78
		<compilerarg value="/Od"/>	<!-- Disable Optimization for Debug Build -->
79
		<compilerarg value="/Zi"/>
1886 mkiran 80
		<compilerarg value="-D_DEBUG"/>
1900 crichaud 81
		<compilerarg value="-DDEBUG"/>
1886 mkiran 82
 
83
		<compilerarg value="-DWIN32"/>
84
		<compilerarg value="-D_WINDOWS"/>
85
	</compiler>
86
 
87
	<compiler id="msvc_compiler_release_console" name="${msvc_compilername}">
1900 crichaud 88
		<compilerarg value="/G6"/>	<!-- Optimize for Pentium Pro -->
89
		<compilerarg value="/MD"/>	<!-- link with MSVCRT.LIB -->
1886 mkiran 90
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
91
 
1900 crichaud 92
		<compilerarg value="/W3"/>	<!-- Warning Level 3 -->
93
		<compilerarg value="/GX"/>	<!-- Enable C++ EH (same as /EHsc) enable synchronous C++ and extern "C" defaults to nothrow -->
94
 
95
		<compilerarg value="/Od"/>	<!-- Disable Optimization for Debugable Release Code -->
96
		<compilerarg value="/Zi"/>	<!-- Place Source Code information in debugable code -->
97
		<compilerarg value="-DNDEBUG"/>
1886 mkiran 98
	</compiler>
99
 
100
	<compiler id="msvc_compiler_release_gui" name="${msvc_compilername}">
1900 crichaud 101
		<compilerarg value="/G6"/>	<!-- Optimize for Pentium Pro -->
102
		<compilerarg value="/MD"/>	<!-- link with MSVCRT.LIB -->
1886 mkiran 103
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
104
 
1900 crichaud 105
		<compilerarg value="/W3"/>	<!-- Warning Level 3 -->
106
		<compilerarg value="/GX"/>	<!-- Enable C++ EH (same as /EHsc) enable synchronous C++ and extern "C" defaults to nothrow -->
107
 
108
		<compilerarg value="/Od"/>	<!-- Disable Optimization for Debugable Release Code -->
109
		<compilerarg value="/Zi"/>	<!-- Place Source Code information in debugable code -->
110
		<compilerarg value="-DNDEBUG"/>
1886 mkiran 111
	</compiler>
112
 
1892 crichaud 113
	<linker id="msvc_linker_debug_console" name="${msvc_compilername}" path="${msvc_bin}">
1902 crichaud 114
		<linkerarg value="/LIBPATH:${msvc_lib_debug}"/>
1886 mkiran 115
 
1898 crichaud 116
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_debug}" casesensitive="no" if="dinkumware_stl_lib"/>
117
		<syslibset dir="${msvc_lib_debug}" libs="${msvc_libraries_debug}" casesensitive="no"/>
1886 mkiran 118
	</linker>
119
 
1892 crichaud 120
	<linker id="msvc_linker_debug_gui" name="${msvc_compilername}" path="${msvc_bin}">
1902 crichaud 121
		<linkerarg value="/LIBPATH:${msvc_lib_debug}"/>
1886 mkiran 122
 
1898 crichaud 123
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_debug}" casesensitive="no" if="dinkumware_stl_lib"/>
124
		<syslibset dir="${msvc_lib_debug}" libs="${msvc_libraries_debug}" casesensitive="no"/>
1886 mkiran 125
	</linker>
126
 
1892 crichaud 127
	<linker id="msvc_linker_release_console" name="${msvc_compilername}" path="${msvc_bin}">
1902 crichaud 128
		<linkerarg value="/LIBPATH:${msvc_lib_release}"/>
1898 crichaud 129
 
130
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_release}" casesensitive="no" if="dinkumware_stl_lib"/>
131
		<syslibset dir="${msvc_lib_release}" libs="${msvc_libraries_release}" casesensitive="no"/>
1886 mkiran 132
	</linker>
133
 
1892 crichaud 134
	<linker id="msvc_linker_release_gui" name="${msvc_compilername}" path="${msvc_bin}">
1902 crichaud 135
		<linkerarg value="/LIBPATH:${msvc_lib_release}"/>
1898 crichaud 136
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_release}" casesensitive="no" if="dinkumware_stl_lib"/>
137
		<syslibset dir="${msvc_lib_release}" libs="${msvc_libraries_release}" casesensitive="no"/>
1886 mkiran 138
	</linker>
139
 
140
</project>