Fix VS 2005 compatibility issue
[mirror_edk2.git] / EdkNt32Pkg / Sec / SecMain_build.xml
CommitLineData
878ddf1f 1<?xml version="1.0" ?>\r
2<!--\r
3Copyright (c) 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11-->\r
12<project name="SecMain" default="main" basedir="." >\r
13 <!-- Apply external ANT task -->\r
14 <taskdef resource="frameworktasks.tasks" /> \r
15 <taskdef resource="cpptasks.tasks" /> \r
16 <typedef resource="cpptasks.types" /> \r
17 <taskdef resource="net/sf/antcontrib/antlib.xml" />\r
18 <property environment="env" />\r
19 <!-- All Properties --> \r
20 <property name="BASE_NAME" value="SecMain" /> \r
21 \r
22 <!-- Default target --> \r
23 <target name="main" depends="libraries, sourcefiles, sections, output" /> \r
24 <!-- Compile all dependency Library instances. --> \r
25\r
26 <target name="libraries">\r
2d527200 27 <GenBuild type="build">\r
28 <property name="ARCH" value="${ARCH}"/>\r
29 <property name="MODULE_GUID" value="27d67720-ea68-48ae-93da-a3a074c90e30"/>\r
30 <property name="MODULE_VERSION" value=""/>\r
31 <property name="PLATFORM" value="${PLATFORM}"/>\r
32 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
33 <property name="PACKAGE_VERSION" value=""/>\r
34 </GenBuild>\r
35 <GenBuild type="build">\r
36 <property name="ARCH" value="${ARCH}"/>\r
37 <property name="MODULE_GUID" value="fd44e603-002a-4b29-9f5f-529e815b6165"/>\r
38 <property name="MODULE_VERSION" value=""/>\r
39 <property name="PLATFORM" value="${PLATFORM}"/>\r
40 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
41 <property name="PACKAGE_VERSION" value=""/>\r
42 </GenBuild>\r
43 <GenBuild type="build">\r
44 <property name="ARCH" value="${ARCH}"/>\r
45 <property name="MODULE_GUID" value="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3"/>\r
46 <property name="MODULE_VERSION" value=""/>\r
47 <property name="PLATFORM" value="${PLATFORM}"/>\r
48 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
49 <property name="PACKAGE_VERSION" value=""/>\r
50 </GenBuild>\r
51 <GenBuild type="build">\r
52 <property name="ARCH" value="${ARCH}"/>\r
53 <property name="MODULE_GUID" value="556f5d10-7309-4af4-b80a-8196bd60946f"/>\r
54 <property name="MODULE_VERSION" value=""/>\r
55 <property name="PLATFORM" value="${PLATFORM}"/>\r
56 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
57 <property name="PACKAGE_VERSION" value=""/>\r
58 </GenBuild>\r
59 <GenBuild type="build">\r
60 <property name="ARCH" value="${ARCH}"/>\r
61 <property name="MODULE_GUID" value="55c61087-7367-4546-bc32-4937c5e6aff3"/>\r
62 <property name="MODULE_VERSION" value=""/>\r
63 <property name="PLATFORM" value="${PLATFORM}"/>\r
64 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
65 <property name="PACKAGE_VERSION" value=""/>\r
66 </GenBuild>\r
67 <GenBuild type="build">\r
68 <property name="ARCH" value="${ARCH}"/>\r
69 <property name="MODULE_GUID" value="9ba1d976-0624-41a3-8650-28165e8d9ae8"/>\r
70 <property name="MODULE_VERSION" value=""/>\r
71 <property name="PLATFORM" value="${PLATFORM}"/>\r
72 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
73 <property name="PACKAGE_VERSION" value=""/>\r
74 </GenBuild>\r
878ddf1f 75 </target>\r
76 <target name="sourcefiles">\r
2d527200 77 <Build_AUTOGEN FILEEXT="c" FILENAME="AutoGen" FILEPATH=".">\r
878ddf1f 78 <EXTRA.INC>\r
bf3a7173 79 <includepath path="${INCLUDE_PATHS}"/>\r
878ddf1f 80 </EXTRA.INC>\r
81 </Build_AUTOGEN>\r
2d527200 82 <Build_CCode FILEEXT="c" FILENAME="FwVol" FILEPATH=".">\r
878ddf1f 83 <EXTRA.INC>\r
bf3a7173 84 <includepath path="${INCLUDE_PATHS}"/>\r
878ddf1f 85 </EXTRA.INC>\r
2d527200 86 </Build_CCode>\r
2d527200 87 <Build_CCode FILEEXT="c" FILENAME="WinNtThunk" FILEPATH=".">\r
878ddf1f 88 <EXTRA.INC>\r
bf3a7173 89 <includepath path="${INCLUDE_PATHS}"/>\r
878ddf1f 90 </EXTRA.INC>\r
2d527200 91 </Build_CCode>\r
2d527200 92 <Build_CCode FILEEXT="c" FILENAME="SecMain" FILEPATH=".">\r
878ddf1f 93 <EXTRA.INC>\r
bf3a7173 94 <includepath path="${INCLUDE_PATHS}"/>\r
878ddf1f 95 </EXTRA.INC>\r
2d527200 96 </Build_CCode>\r
878ddf1f 97 </target>\r
2f62848a 98\r
878ddf1f 99 <target name="sections" />\r
2f62848a 100\r
878ddf1f 101 <target name="output" >\r
956e7946 102 <if>\r
103 <available type="file" file="${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>\r
104 <then>\r
105 <var name="SLINK_FLAGS" value="${SLINK_FLAGS} ${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>\r
106 </then>\r
107 </if>\r
878ddf1f 108 <OnDependency>\r
109 <sourcefiles>\r
2f62848a 110 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />\r
878ddf1f 111 <file list="${LIBS}"/>\r
112 </sourcefiles>\r
113 <targetfiles>\r
114 <file name="${BIN_DIR}\SecMain.exe"/>\r
115 </targetfiles>\r
116 \r
117 <sequential>\r
2f62848a 118 <cc userdefine="on">\r
119 <command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}"\r
120 outputFile="${DEST_DIR_OUTPUT}/SecMainLocal.lib">\r
121 \r
122 <argument value="${SLINK_FLAGS}"/>\r
123\r
124 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>\r
125 </command>\r
126 </cc>\r
127 \r
128 <var name="LIBS" value="${LIBS} ${DEST_DIR_OUTPUT}/SecMainLocal.lib" />\r
129 \r
2d527200 130 <shellscript shell="cmd.exe" tmpsuffix=".cmd" >\r
219e2247 131 <arg line="/q"/>\r
878ddf1f 132 <arg line="/c"/>\r
133 <arg line="call"/>\r
2f62848a 134 "${DLINK}" /LIBPATH:"${env.MSVCDir}\Lib" /LIBPATH:"${env.MSVCDir}\PlatformSdk\Lib" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MSVCRTD.lib Gdi32.lib User32.lib Winmm.lib ${LIBS} /base:0x10000000 /out:${BIN_DIR}\SecMain.exe /pdb:${DEST_DIR_DEBUG}\SecMain.pdb\r
878ddf1f 135 </shellscript>\r
136 </sequential>\r
137 </OnDependency>\r
878ddf1f 138 </target>\r
2f62848a 139 \r
878ddf1f 140 <target name="clean" ></target>\r
141\r
142 <target name="cleanAll"></target>\r
143</project>\r