Subversion Repositories DevTools

Rev

Rev 1890 | Rev 1894 | Go to most recent revision | 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"/>
16
 
17
	<!-- Include the Microsoft C++ Compiler/Linker environment from its COTS package -->
1890 mtanner 18
	<using name="microsoft_cpp" version="REPLACE_MICROSOFT_CPP"/>
1886 mkiran 19
 
20
	<!-- Set up the environment's Binary path, Include and Library paths -->
21
	<property name="msvc_bin" value="${using.microsoft_cpp.basedir}/bin"/>
22
	<property name="msvc_compilername" value="msvc"/>
23
 
24
	<property name="msvc_include" value="${using.microsoft_cpp.basedir}/include"/>
25
	<property name="msvc_include_debug" value="${msvc_include}"/>
26
	<property name="msvc_include_release" value="${msvc_include}"/>
27
 
28
	<property name="msvc_lib" value="${using.microsoft_cpp.basedir}/lib"/>
29
 
30
	<property name="msvc_lib_debug" value="${msvc_lib}/debug"/>
31
	<property name="msvc_lib_release" value="${msvc_lib}/release"/>
32
 
1892 crichaud 33
	<property name="msvc_libraries_debug"	value="kernel32.lib,user32.lib,advapi32.lib,ws2_32.lib,wsock32.lib"/>
34
	<property name="msvc_libraries_release"	value="kernel32.lib,user32.lib,advapi32.lib,ws2_32.lib,wsock32.lib"/>
1886 mkiran 35
 
36
	<compiler id="msvc_compiler_debug_console" name="${msvc_compilername}">
37
		<compilerarg value="/G6"/>
38
		<compilerarg value="/MDd"/>
39
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
40
		<compilerarg value="/W3"/>
41
		<compilerarg value="/GX"/>
42
		<compilerarg value="/Od"/>
43
 
44
		<compilerarg value="-DNO_STRICT"/>
45
		<compilerarg value="-D_DEBUG"/>
46
		<compilerarg value="-DNDEBUG"/>
47
 
48
		<compilerarg value="-DWIN32"/>
49
		<compilerarg value="-D_WINDOWS"/>
50
	</compiler>
51
 
52
	<compiler id="msvc_compiler_debug_gui" name="${msvc_compilername}">
53
		<compilerarg value="/G6"/>
54
		<compilerarg value="/MDd"/>
55
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
56
		<compilerarg value="/W3"/>
57
		<compilerarg value="/GX"/>
58
		<compilerarg value="/Od"/>
59
 
60
		<compilerarg value="-DNO_STRICT"/>
61
		<compilerarg value="-D_DEBUG"/>
62
		<compilerarg value="-DNDEBUG"/>
63
 
64
		<compilerarg value="-DWIN32"/>
65
		<compilerarg value="-D_WINDOWS"/>
66
	</compiler>
67
 
68
	<compiler id="msvc_compiler_release_console" name="${msvc_compilername}">
69
		<compilerarg value="/G6"/>
70
		<compilerarg value="/MD"/>
71
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
72
		<compilerarg value="/W3"/>
73
		<compilerarg value="/GX"/>
74
		<compilerarg value="/O2"/>
75
		<compilerarg value="/Ob2"/>
76
 
77
	</compiler>
78
 
79
	<compiler id="msvc_compiler_release_gui" name="${msvc_compilername}">
80
		<compilerarg value="/G6"/>
81
		<compilerarg value="/MD"/>
82
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
83
		<compilerarg value="/W3"/>
84
		<compilerarg value="/GX"/>
85
		<compilerarg value="/O2"/>
86
		<compilerarg value="/Ob2"/>
87
 
88
	</compiler>
89
 
90
 
1892 crichaud 91
	<linker id="msvc_linker_debug_console" name="${msvc_compilername}" path="${msvc_bin}">
1886 mkiran 92
		<linkerarg value="-L&quot;${msvc_lib_debug}&quot;"/>
93
 
94
		<syslibset dir="${msvc_lib}" libs="MSVCPRTD,MSVCRTD,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
95
	</linker>
96
 
1892 crichaud 97
	<linker id="msvc_linker_debug_gui" name="${msvc_compilername}" path="${msvc_bin}">
1886 mkiran 98
		<linkerarg value="-L&quot;${msvc_lib_debug}&quot;"/>
99
 
100
		<syslibset dir="${msvc_lib}" libs="MSVCPRTD,MSVCRTD,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
101
	</linker>
102
 
1892 crichaud 103
	<linker id="msvc_linker_release_console" name="${msvc_compilername}" path="${msvc_bin}">
1886 mkiran 104
		<linkerarg value="/L&quot;${msvc_lib_release}&quot;"/>
105
 
106
		<syslibset dir="${msvc_lib}" libs="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
107
	</linker>
108
 
1892 crichaud 109
	<linker id="msvc_linker_release_gui" name="${msvc_compilername}" path="${msvc_bin}">
1886 mkiran 110
		<linkerarg value="/L&quot;${msvc_lib_release}&quot;"/>
111
 
112
		<syslibset dir="${msvc_lib}" libs="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
113
	</linker>
114
 
115
</project>