new look
[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
2d527200 79 <includepath path="${WORKSPACE_DIR}"/>\r
80 <includepath path="${MODULE_DIR}"/>\r
81 <includepath path="${MODULE_DIR}\${ARCH}"/>\r
878ddf1f 82 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
83 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
84 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
85 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
86 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
87 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
88 <includepath path="${DEST_DIR_DEBUG}"/>\r
89 </EXTRA.INC>\r
90 </Build_AUTOGEN>\r
2d527200 91 <Build_CCode FILEEXT="c" FILENAME="FwVol" FILEPATH=".">\r
878ddf1f 92 <EXTRA.INC>\r
2d527200 93 <includepath path="${WORKSPACE_DIR}"/>\r
94 <includepath path="${MODULE_DIR}"/>\r
95 <includepath path="${MODULE_DIR}\${ARCH}"/>\r
878ddf1f 96 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
97 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
98 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
99 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
100 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
101 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
102 <includepath path="${DEST_DIR_DEBUG}"/>\r
103 </EXTRA.INC>\r
2d527200 104 </Build_CCode>\r
2d527200 105 <Build_CCode FILEEXT="c" FILENAME="WinNtThunk" FILEPATH=".">\r
878ddf1f 106 <EXTRA.INC>\r
2d527200 107 <includepath path="${WORKSPACE_DIR}"/>\r
108 <includepath path="${MODULE_DIR}"/>\r
109 <includepath path="${MODULE_DIR}\${ARCH}"/>\r
878ddf1f 110 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
111 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
112 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
113 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
114 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
115 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
116 <includepath path="${DEST_DIR_DEBUG}"/>\r
117 </EXTRA.INC>\r
2d527200 118 </Build_CCode>\r
2d527200 119 <Build_CCode FILEEXT="c" FILENAME="SecMain" FILEPATH=".">\r
878ddf1f 120 <EXTRA.INC>\r
2d527200 121 <includepath path="${WORKSPACE_DIR}"/>\r
122 <includepath path="${MODULE_DIR}"/>\r
123 <includepath path="${MODULE_DIR}\${ARCH}"/>\r
878ddf1f 124 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
125 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
126 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
127 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
128 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
129 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
130 <includepath path="${DEST_DIR_DEBUG}"/>\r
131 </EXTRA.INC>\r
2d527200 132 </Build_CCode>\r
878ddf1f 133 </target>\r
2f62848a 134\r
878ddf1f 135 <target name="sections" />\r
2f62848a 136\r
878ddf1f 137 <target name="output" >\r
878ddf1f 138 <OnDependency>\r
139 <sourcefiles>\r
2f62848a 140 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />\r
878ddf1f 141 <file list="${LIBS}"/>\r
142 </sourcefiles>\r
143 <targetfiles>\r
144 <file name="${BIN_DIR}\SecMain.exe"/>\r
145 </targetfiles>\r
146 \r
147 <sequential>\r
2f62848a 148 <cc userdefine="on">\r
149 <command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}"\r
150 outputFile="${DEST_DIR_OUTPUT}/SecMainLocal.lib">\r
151 \r
152 <argument value="${SLINK_FLAGS}"/>\r
153\r
154 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>\r
155 </command>\r
156 </cc>\r
157 \r
158 <var name="LIBS" value="${LIBS} ${DEST_DIR_OUTPUT}/SecMainLocal.lib" />\r
159 \r
2d527200 160 <shellscript shell="cmd.exe" tmpsuffix=".cmd" >\r
219e2247 161 <arg line="/q"/>\r
878ddf1f 162 <arg line="/c"/>\r
163 <arg line="call"/>\r
2f62848a 164 "${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 165 </shellscript>\r
166 </sequential>\r
167 </OnDependency>\r
878ddf1f 168 </target>\r
2f62848a 169 \r
878ddf1f 170 <target name="clean" ></target>\r
171\r
172 <target name="cleanAll"></target>\r
173</project>\r