Subversion Repositories DevTools

Rev

Rev 1884 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1884 Rev 1886
Line 1... Line 1...
1
<project name="msvc-task">
1
<project name="ant-msvc">
2
 
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="1.4.0"/>
-
 
15
	<using name="ant-windows" version="1.0.0"/>
-
 
16
 
-
 
17
	<!-- Include the Microsoft C++ Compiler/Linker environment from its COTS package -->
-
 
18
	<using name="microsoft_cpp" version="6.0.0.cots">
-
 
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"/>
3
	<description>ANT Compile and link task</description>
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
 
4
 
127
		<syslibset dir="${msvc_lib}" libs="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
5
	<property name="env" environment="env" value="not used" />
128
	</linker>
6
	<property name="release.dir" value="${basedir}/build/release"/>
129
 
7
 
130
	<linker id="msvc_linker_release_gui" name="${msvc_compilername}">
8
	<import file="auto.xml" optional="true"/>
131
		<linkerarg value="/L&quot;${msvc_lib_release}&quot;"/>
9
	<import file="${ant.project.name}depends.xml"/>
-
 
10
	<import file="${env.GBE_DPKG}/ant-using/${ant-using}/ant-using.xml" />
132
 
11
 
-
 
12
<!--	<taskdef resource="jats.properties" />
-
 
13
	<taskdef resource="antshield.properties"/>-->
-
 
14
 
-
 
15
   	<property name="src.dir"               value="${basedir}/src"/>
-
 
16
   	<property name="build.dir"             value="${basedir}/build"/>
-
 
17
	<property name="package.dir"           value="${build.dir}/pkg"/>
-
 
18
 
-
 
19
	<usingall/>
-
 
20
 
-
 
21
	<target name="run_tests"/>
-
 
22
 
-
 
23
   	<target name="compile"/>
-
 
24
 
-
 
25
	<!--
-
 
26
	  P A C K A G E
-
 
27
	  -->
-
 
28
	<target name="build"
-
 
29
	        depends     = ""
-
 
30
			description="Creates the jar archives.">
-
 
31
 
-
 
32
			<mkdir dir="${package.dir}"/>
-
 
33
 
-
 
34
			<copy todir="${package.dir}">
-
 
35
				<fileset dir="${src.dir}" includes="ant-msvc.xml"/>
-
 
36
			</copy>
-
 
37
 
133
		<syslibset dir="${msvc_lib}" libs="MSVCPRT,MSVCRT,OLDNAMES,uuid,kernel32,user32,advapi32,ws2_32" casesensitive="no"/>
38
			<replace file="${package.dir}/ant-msvc.xml" token="REPLACE_ANT_CPPTASK" value="${using.ant-cpptasks.version}"/>
-
 
39
			<replace file="${package.dir}/ant-msvc.xml" token="REPLACE_WINDOWS" value="${using.ant-windows.version}"/>
-
 
40
			<replace file="${package.dir}/ant-msvc.xml" token="REPLACE_MICROSOFT_CPP" value="${using.microsoft_cpp.version}"/>
-
 
41
	</target>
-
 
42
 
-
 
43
	<target name        = "make_package"
-
 
44
	        depends     = ""
-
 
45
	        description = "Called during build using the automated build tool">
-
 
46
 
-
 
47
		<echo message="AUTO BUILD"/>
-
 
48
 
-
 
49
		<summarise-manifest package="${packagename}" version="${packageversion}"/>
-
 
50
 
134
	</linker>
51
	</target>
135
 
52
 
136
</project>
53
</project>