Initial import.
[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
27 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseLib\build.xml" inheritAll="false" target="BaseLib">\r
28 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" /> \r
29 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" /> \r
30 <property name="ARCH" value="${ARCH}" /> \r
31 <property name="TARGET" value="${TARGET}" /> \r
32 <property name="PACKAGE" value="MdePkg" /> \r
33 </ant>\r
34 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseMemoryLib\build.xml" inheritAll="false" target="BaseMemoryLib">\r
35 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" /> \r
36 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" /> \r
37 <property name="ARCH" value="${ARCH}" /> \r
38 <property name="TARGET" value="${TARGET}" /> \r
39 <property name="PACKAGE" value="MdePkg" /> \r
40 </ant>\r
41 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BasePrintLib\build.xml" inheritAll="false" target="BasePrintLib">\r
42 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" /> \r
43 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" /> \r
44 <property name="ARCH" value="${ARCH}" /> \r
45 <property name="TARGET" value="${TARGET}" /> \r
46 <property name="PACKAGE" value="MdePkg" /> \r
47 </ant>\r
48 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BasePeCoffLib\build.xml" inheritAll="false" target="BasePeCoffLib">\r
49 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" /> \r
50 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" /> \r
51 <property name="ARCH" value="${ARCH}" /> \r
52 <property name="TARGET" value="${TARGET}" /> \r
53 <property name="PACKAGE" value="MdePkg" /> \r
54 </ant>\r
55 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseReportStatusCodeLibNull\build.xml" inheritAll="false" target="BaseReportStatusCodeLibNull">\r
56 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" /> \r
57 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" /> \r
58 <property name="ARCH" value="${ARCH}" /> \r
59 <property name="TARGET" value="${TARGET}" /> \r
60 <property name="PACKAGE" value="MdePkg" /> \r
61 </ant>\r
62 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseDebugLibNull\build.xml" inheritAll="false" target="BaseDebugLibNull">\r
63 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" /> \r
64 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" /> \r
65 <property name="ARCH" value="${ARCH}" /> \r
66 <property name="TARGET" value="${TARGET}" /> \r
67 <property name="PACKAGE" value="MdePkg" /> \r
68 </ant>\r
69 <Expand />\r
70 </target>\r
71 <target name="sourcefiles">\r
72 <Build_AUTOGEN FILENAME="AutoGen" FILEPATH=".">\r
73 <EXTRA.INC>\r
74 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
75 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
76 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
77 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
78 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
79 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
80 <includepath path="${DEST_DIR_DEBUG}"/>\r
81 </EXTRA.INC>\r
82 </Build_AUTOGEN>\r
83 <Build_C_Code FILENAME="FwVol" FILEPATH=".">\r
84 <EXTRA.INC>\r
85 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
86 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
87 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
88 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
89 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
90 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
91 <includepath path="${DEST_DIR_DEBUG}"/>\r
92 </EXTRA.INC>\r
93 </Build_C_Code>\r
94 <Build_C_Code FILENAME="WinNtThunk" FILEPATH=".">\r
95 <EXTRA.INC>\r
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
104 </Build_C_Code>\r
105 <Build_C_Code FILENAME="SecMain" FILEPATH=".">\r
106 <EXTRA.INC>\r
107 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>\r
108 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>\r
109 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>\r
110 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>\r
111 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>\r
112 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>\r
113 <includepath path="${DEST_DIR_DEBUG}"/>\r
114 </EXTRA.INC>\r
115 </Build_C_Code>\r
116 </target>\r
117 <target name="sections" />\r
118 <target name="output" >\r
119 <echo message="##Entering Output!" />\r
120 \r
121 <OnDependency>\r
122 <sourcefiles>\r
123 <file list="${OBJECTS}"/>\r
124 <file list="${LIBS}"/>\r
125 </sourcefiles>\r
126 <targetfiles>\r
127 <file name="${BIN_DIR}\SecMain.exe"/>\r
128 </targetfiles>\r
129 \r
130 <sequential>\r
131 <shellscript shell="cmd.exe" tmpsuffix=".cmd">\r
132 <arg line="/c"/>\r
133 <arg line="call"/>\r
134 "${LINK}" /LIBPATH:"${env.MSVCDir}\Lib" /LIBPATH:"${env.MSVCDir}\PlatformSdk\Lib" /NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG Kernel32.lib MsvcRt.lib Gdi32.lib User32.lib Winmm.lib ${OBJECTS} ${LIBS} /base:0x10000000 /out:${BIN_DIR}\SecMain.exe /pdb:${DEST_DIR_DEBUG}\SecMain.pdb\r
135 </shellscript>\r
136 </sequential>\r
137 </OnDependency>\r
138 <!-- \r
139 <cc userdefine="on">\r
140 <command type="LINK">\r
141 <argument value="/LIBPATH:&quot;${env.MSVCDir}\Lib&quot; /LIBPATH:&quot;${env.MSVCDir}\PlatformSdk\Lib&quot;" />\r
142 <argument value="/NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG" />\r
143 <argument value="Kernel32.lib MsvcRt.lib Gdi32.lib User32.lib Winmm.lib" />\r
144 <argument value="${OBJECTS}" />\r
145 <argument value="${LIBS}" />\r
146 <argument value="/base:0x10000000 /out:${BIN_DIR}\SecMain.exe /pdb:${DEST_DIR_DEBUG}\SecMain.pdb" />\r
147 </command>\r
148 </cc>\r
149 -->\r
150 </target>\r
151 <target name="clean" ></target>\r
152\r
153 <target name="cleanAll"></target>\r
154</project>\r