Some library instance's PCD is missing in FPD file for a module, it break single...
[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 <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/AutoGen.obj" />\r
92 <Build_CCode FILEEXT="c" FILENAME="FwVol" FILEPATH=".">\r
878ddf1f 93 <EXTRA.INC>\r
2d527200 94 <includepath path="${WORKSPACE_DIR}"/>\r
95 <includepath path="${MODULE_DIR}"/>\r
96 <includepath path="${MODULE_DIR}\${ARCH}"/>\r
878ddf1f 97 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
98 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
99 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
100 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
101 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
102 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
103 <includepath path="${DEST_DIR_DEBUG}"/>\r
104 </EXTRA.INC>\r
2d527200 105 </Build_CCode>\r
106 <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/FwVol.obj" />\r
107 <Build_CCode FILEEXT="c" FILENAME="WinNtThunk" FILEPATH=".">\r
878ddf1f 108 <EXTRA.INC>\r
2d527200 109 <includepath path="${WORKSPACE_DIR}"/>\r
110 <includepath path="${MODULE_DIR}"/>\r
111 <includepath path="${MODULE_DIR}\${ARCH}"/>\r
878ddf1f 112 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
113 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
114 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
115 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
116 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
117 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
118 <includepath path="${DEST_DIR_DEBUG}"/>\r
119 </EXTRA.INC>\r
2d527200 120 </Build_CCode>\r
121 <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/WinNtThunk.obj" />\r
122 <Build_CCode FILEEXT="c" FILENAME="SecMain" FILEPATH=".">\r
878ddf1f 123 <EXTRA.INC>\r
2d527200 124 <includepath path="${WORKSPACE_DIR}"/>\r
125 <includepath path="${MODULE_DIR}"/>\r
126 <includepath path="${MODULE_DIR}\${ARCH}"/>\r
878ddf1f 127 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
128 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
129 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
130 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
131 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
132 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
133 <includepath path="${DEST_DIR_DEBUG}"/>\r
134 </EXTRA.INC>\r
2d527200 135 </Build_CCode>\r
136 <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/SecMain.obj" />\r
878ddf1f 137 </target>\r
138 <target name="sections" />\r
139 <target name="output" >\r
878ddf1f 140 <OnDependency>\r
141 <sourcefiles>\r
142 <file list="${OBJECTS}"/>\r
143 <file list="${LIBS}"/>\r
144 </sourcefiles>\r
145 <targetfiles>\r
146 <file name="${BIN_DIR}\SecMain.exe"/>\r
147 </targetfiles>\r
148 \r
149 <sequential>\r
2d527200 150 <shellscript shell="cmd.exe" tmpsuffix=".cmd" >\r
219e2247 151 <arg line="/q"/>\r
878ddf1f 152 <arg line="/c"/>\r
153 <arg line="call"/>\r
ae3f0d58 154 "${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 ${OBJECTS} ${LIBS} /base:0x10000000 /out:${BIN_DIR}\SecMain.exe /pdb:${DEST_DIR_DEBUG}\SecMain.pdb\r
878ddf1f 155 </shellscript>\r
156 </sequential>\r
157 </OnDependency>\r
158 <!-- \r
159 <cc userdefine="on">\r
160 <command type="LINK">\r
161 <argument value="/LIBPATH:&quot;${env.MSVCDir}\Lib&quot; /LIBPATH:&quot;${env.MSVCDir}\PlatformSdk\Lib&quot;" />\r
162 <argument value="/NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG" />\r
163 <argument value="Kernel32.lib MsvcRt.lib Gdi32.lib User32.lib Winmm.lib" />\r
164 <argument value="${OBJECTS}" />\r
165 <argument value="${LIBS}" />\r
166 <argument value="/base:0x10000000 /out:${BIN_DIR}\SecMain.exe /pdb:${DEST_DIR_DEBUG}\SecMain.pdb" />\r
167 </command>\r
168 </cc>\r
169 -->\r
170 </target>\r
171 <target name="clean" ></target>\r
172\r
173 <target name="cleanAll"></target>\r
174</project>\r