Subversion Repositories DevTools

Rev

Rev 1890 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1886 mkiran 1
<project name="msvc-task">
2
 
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 
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"/>
16
 
17
	<!-- Include the Microsoft C++ Compiler/Linker environment from its COTS package -->
18
	<using name="microsoft_cpp" version="REPLACE_MICROSOFT_CPP">
19
		<exclude name="**/*.PDB"		if="windows-release"/>
20
		<exclude name="**/LIBCD.LIB"	if="windows-release"/>
21
		<exclude name="**/LIBCID.LIB"	if="windows-release"/>
22
		<exclude name="**/LIBCIMTD.LIB"	if="windows-release"/>
23
		<exclude name="**/LIBCMTD.LIB"	if="windows-release"/>
24
		<exclude name="**/LIBCPD.LIB"	if="windows-release"/>
25
		<exclude name="**/LIBCPMTD.LIB"	if="windows-release"/>
26
		<exclude name="**/MSVCIRTD.LIB"	if="windows-release"/>
27
		<exclude name="**/MSVCPRTD.LIB"	if="windows-release"/>
28
		<exclude name="**/MSVCRTD.LIB"	if="windows-release"/>
29
 
30
		<exclude name="**/LIBC.LIB"		if="windows-debug"/>
31
		<exclude name="**/LIBCI.LIB"	if="windows-debug"/>
32
		<exclude name="**/LIBCIMT.LIB"	if="windows-debug"/>
33
		<exclude name="**/LIBCMT.LIB"	if="windows-debug"/>
34
		<exclude name="**/LIBCP.LIB"	if="windows-debug"/>
35
		<exclude name="**/LIBCPMT.LIB"	if="windows-debug"/>
36
		<exclude name="**/MSVCIRT.LIB"	if="windows-debug"/>
37
		<exclude name="**/MSVCPRT.LIB"	if="windows-debug"/>
38
		<exclude name="**/MSVCRT.LIB"	if="windows-debug"/>
39
	</using>
40
 
41
	<!-- Set up the environment's Binary path, Include and Library paths -->
42
	<property name="msvc_bin" value="${using.microsoft_cpp.basedir}/bin"/>
43
	<property name="msvc_compilername" value="msvc"/>
44
 
45
	<property name="msvc_include" value="${using.microsoft_cpp.basedir}/include"/>
46
	<property name="msvc_include_debug" value="${msvc_include}"/>
47
	<property name="msvc_include_release" value="${msvc_include}"/>
48
 
49
	<property name="msvc_lib" value="${using.microsoft_cpp.basedir}/lib"/>
50
 
51
	<property name="msvc_lib_debug" value="${msvc_lib}/debug"/>
52
	<property name="msvc_lib_release" value="${msvc_lib}/release"/>
53
 
54
	<property name="msvc_libraries_debug"	value="kernel32.lib,user32.lib,advapi32.lib,ws2_32.lib"/>
55
	<property name="msvc_libraries_release"	value="kernel32.lib,user32.lib,advapi32.lib,ws2_32.lib"/>
56
 
57
	<compiler id="msvc_compiler_debug_console" name="${msvc_compilername}">
58
		<compilerarg value="/G6"/>
59
		<compilerarg value="/MDd"/>
60
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
61
		<compilerarg value="/W3"/>
62
		<compilerarg value="/GX"/>
63
		<compilerarg value="/Od"/>
64
 
65
		<compilerarg value="-DNO_STRICT"/>
66
		<compilerarg value="-D_DEBUG"/>
67
		<compilerarg value="-DNDEBUG"/>
68
 
69
		<compilerarg value="-DWIN32"/>
70
		<compilerarg value="-D_WINDOWS"/>
71
	</compiler>
72
 
73
	<compiler id="msvc_compiler_debug_gui" name="${msvc_compilername}">
74
		<compilerarg value="/G6"/>
75
		<compilerarg value="/MDd"/>
76
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
77
		<compilerarg value="/W3"/>
78
		<compilerarg value="/GX"/>
79
		<compilerarg value="/Od"/>
80
 
81
		<compilerarg value="-DNO_STRICT"/>
82
		<compilerarg value="-D_DEBUG"/>
83
		<compilerarg value="-DNDEBUG"/>
84
 
85
		<compilerarg value="-DWIN32"/>
86
		<compilerarg value="-D_WINDOWS"/>
87
	</compiler>
88
 
89
	<compiler id="msvc_compiler_release_console" name="${msvc_compilername}">
90
		<compilerarg value="/G6"/>
91
		<compilerarg value="/MD"/>
92
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
93
		<compilerarg value="/W3"/>
94
		<compilerarg value="/GX"/>
95
		<compilerarg value="/O2"/>
96
		<compilerarg value="/Ob2"/>
97
 
98
	</compiler>
99
 
100
	<compiler id="msvc_compiler_release_gui" name="${msvc_compilername}">
101
		<compilerarg value="/G6"/>
102
		<compilerarg value="/MD"/>
103
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
104
		<compilerarg value="/W3"/>
105
		<compilerarg value="/GX"/>
106
		<compilerarg value="/O2"/>
107
		<compilerarg value="/Ob2"/>
108
 
109
	</compiler>
110
 
111
 
112
	<linker id="msvc_linker_debug_console" name="${msvc_compilername}">
113
		<linkerarg value="-L&quot;${msvc_lib_debug}&quot;"/>
114
 
115
		<syslibset dir="${msvc_lib}" libs="MSVCPRTD,MSVCRTD,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
116
	</linker>
117
 
118
	<linker id="msvc_linker_debug_gui" name="${msvc_compilername}">
119
		<linkerarg value="-L&quot;${msvc_lib_debug}&quot;"/>
120
 
121
		<syslibset dir="${msvc_lib}" libs="MSVCPRTD,MSVCRTD,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
122
	</linker>
123
 
124
	<linker id="msvc_linker_release_console" name="${msvc_compilername}">
125
		<linkerarg value="/L&quot;${msvc_lib_release}&quot;"/>
126
 
127
		<syslibset dir="${msvc_lib}" libs="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
128
	</linker>
129
 
130
	<linker id="msvc_linker_release_gui" name="${msvc_compilername}">
131
		<linkerarg value="/L&quot;${msvc_lib_release}&quot;"/>
132
 
133
		<syslibset dir="${msvc_lib}" libs="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
134
	</linker>
135
 
136
</project>