Subversion Repositories DevTools

Rev

Rev 1896 | Rev 1900 | 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"/>
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}">
51
		<compilerarg value="/G6"/>
52
		<compilerarg value="/MDd"/>
53
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
54
		<compilerarg value="/W3"/>
55
		<compilerarg value="/GX"/>
56
		<compilerarg value="/Od"/>
57
 
58
		<compilerarg value="-DNO_STRICT"/>
59
		<compilerarg value="-D_DEBUG"/>
60
		<compilerarg value="-DNDEBUG"/>
61
 
62
		<compilerarg value="-DWIN32"/>
63
		<compilerarg value="-D_WINDOWS"/>
64
	</compiler>
65
 
66
	<compiler id="msvc_compiler_debug_gui" name="${msvc_compilername}">
67
		<compilerarg value="/G6"/>
68
		<compilerarg value="/MDd"/>
69
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
70
		<compilerarg value="/W3"/>
71
		<compilerarg value="/GX"/>
72
		<compilerarg value="/Od"/>
73
 
74
		<compilerarg value="-DNO_STRICT"/>
75
		<compilerarg value="-D_DEBUG"/>
76
		<compilerarg value="-DNDEBUG"/>
77
 
78
		<compilerarg value="-DWIN32"/>
79
		<compilerarg value="-D_WINDOWS"/>
80
	</compiler>
81
 
82
	<compiler id="msvc_compiler_release_console" name="${msvc_compilername}">
83
		<compilerarg value="/G6"/>
84
		<compilerarg value="/MD"/>
85
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
86
		<compilerarg value="/W3"/>
87
		<compilerarg value="/GX"/>
88
		<compilerarg value="/O2"/>
89
		<compilerarg value="/Ob2"/>
90
 
91
	</compiler>
92
 
93
	<compiler id="msvc_compiler_release_gui" name="${msvc_compilername}">
94
		<compilerarg value="/G6"/>
95
		<compilerarg value="/MD"/>
96
		<compilerarg value="/Ze"/>	<!-- Enable langauge extensions -->
97
		<compilerarg value="/W3"/>
98
		<compilerarg value="/GX"/>
99
		<compilerarg value="/O2"/>
100
		<compilerarg value="/Ob2"/>
101
 
102
	</compiler>
103
 
1892 crichaud 104
	<linker id="msvc_linker_debug_console" name="${msvc_compilername}" path="${msvc_bin}">
1898 crichaud 105
		<!-- linkerarg value="${msvc_lib_path_option}"/ -->
1886 mkiran 106
 
1898 crichaud 107
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_debug}" casesensitive="no" if="dinkumware_stl_lib"/>
108
		<syslibset dir="${msvc_lib_debug}" libs="${msvc_libraries_debug}" casesensitive="no"/>
1886 mkiran 109
	</linker>
110
 
1892 crichaud 111
	<linker id="msvc_linker_debug_gui" name="${msvc_compilername}" path="${msvc_bin}">
1898 crichaud 112
		<!-- linkerarg value="${msvc_lib_path_option}"/ -->
1886 mkiran 113
 
1898 crichaud 114
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_debug}" casesensitive="no" if="dinkumware_stl_lib"/>
115
		<syslibset dir="${msvc_lib_debug}" libs="${msvc_libraries_debug}" casesensitive="no"/>
1886 mkiran 116
	</linker>
117
 
1892 crichaud 118
	<linker id="msvc_linker_release_console" name="${msvc_compilername}" path="${msvc_bin}">
1898 crichaud 119
		<!-- linkerarg value="/LIBPATH:${msvc_lib_release}"/ -->
120
 
121
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_release}" casesensitive="no" if="dinkumware_stl_lib"/>
122
		<syslibset dir="${msvc_lib_release}" libs="${msvc_libraries_release}" casesensitive="no"/>
1886 mkiran 123
	</linker>
124
 
1892 crichaud 125
	<linker id="msvc_linker_release_gui" name="${msvc_compilername}" path="${msvc_bin}">
1898 crichaud 126
		<!-- linkerarg value="/LIBPATH:${msvc_lib_release}"/ -->
127
		<syslibset dir="${dinkumware_stl_lib}" libs="${dinkumware_stl_libs_release}" casesensitive="no" if="dinkumware_stl_lib"/>
128
		<syslibset dir="${msvc_lib_release}" libs="${msvc_libraries_release}" casesensitive="no"/>
1886 mkiran 129
	</linker>
130
 
131
</project>