b0436d385b8b25f73893ee7a161edc8970e3b8c2
[mirror_edk2.git] / EdkNt32Pkg / Sec / SecMain_build.xml
1 <?xml version="1.0" ?>
2 <!--
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 -->
12 <project name="SecMain" default="main" basedir="." >
13 <!-- Apply external ANT task -->
14 <taskdef resource="frameworktasks.tasks" />
15 <taskdef resource="cpptasks.tasks" />
16 <typedef resource="cpptasks.types" />
17 <taskdef resource="net/sf/antcontrib/antlib.xml" />
18 <property environment="env" />
19 <!-- All Properties -->
20 <property name="BASE_NAME" value="SecMain" />
21
22 <!-- Default target -->
23 <target name="main" depends="libraries, sourcefiles, sections, output" />
24 <!-- Compile all dependency Library instances. -->
25
26 <target name="libraries">
27 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseLib\build.xml" inheritAll="false" target="BaseLib">
28 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" />
29 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" />
30 <property name="ARCH" value="${ARCH}" />
31 <property name="TARGET" value="${TARGET}" />
32 <property name="PACKAGE" value="MdePkg" />
33 </ant>
34 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseMemoryLib\build.xml" inheritAll="false" target="BaseMemoryLib">
35 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" />
36 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" />
37 <property name="ARCH" value="${ARCH}" />
38 <property name="TARGET" value="${TARGET}" />
39 <property name="PACKAGE" value="MdePkg" />
40 </ant>
41 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BasePrintLib\build.xml" inheritAll="false" target="BasePrintLib">
42 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" />
43 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" />
44 <property name="ARCH" value="${ARCH}" />
45 <property name="TARGET" value="${TARGET}" />
46 <property name="PACKAGE" value="MdePkg" />
47 </ant>
48 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BasePeCoffLib\build.xml" inheritAll="false" target="BasePeCoffLib">
49 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" />
50 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" />
51 <property name="ARCH" value="${ARCH}" />
52 <property name="TARGET" value="${TARGET}" />
53 <property name="PACKAGE" value="MdePkg" />
54 </ant>
55 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseReportStatusCodeLibNull\build.xml" inheritAll="false" target="BaseReportStatusCodeLibNull">
56 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" />
57 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" />
58 <property name="ARCH" value="${ARCH}" />
59 <property name="TARGET" value="${TARGET}" />
60 <property name="PACKAGE" value="MdePkg" />
61 </ant>
62 <ant antfile="${WORKSPACE_DIR}\MdePkg\Library\BaseDebugLibNull\build.xml" inheritAll="false" target="BaseDebugLibNull">
63 <property name="WORKSPACE_DIR" value="${WORKSPACE_DIR}" />
64 <property name="PACKAGE_DIR" value="${WORKSPACE_DIR}\MdePkg/" />
65 <property name="ARCH" value="${ARCH}" />
66 <property name="TARGET" value="${TARGET}" />
67 <property name="PACKAGE" value="MdePkg" />
68 </ant>
69 <Expand />
70 </target>
71 <target name="sourcefiles">
72 <Build_AUTOGEN FILENAME="AutoGen" FILEPATH=".">
73 <EXTRA.INC>
74 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>
75 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>
76 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>
77 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>
78 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>
79 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>
80 <includepath path="${DEST_DIR_DEBUG}"/>
81 </EXTRA.INC>
82 </Build_AUTOGEN>
83 <Build_C_Code FILENAME="FwVol" FILEPATH=".">
84 <EXTRA.INC>
85 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>
86 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>
87 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>
88 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>
89 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>
90 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>
91 <includepath path="${DEST_DIR_DEBUG}"/>
92 </EXTRA.INC>
93 </Build_C_Code>
94 <Build_C_Code FILENAME="WinNtThunk" FILEPATH=".">
95 <EXTRA.INC>
96 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>
97 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>
98 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>
99 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>
100 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>
101 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>
102 <includepath path="${DEST_DIR_DEBUG}"/>
103 </EXTRA.INC>
104 </Build_C_Code>
105 <Build_C_Code FILENAME="SecMain" FILEPATH=".">
106 <EXTRA.INC>
107 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>
108 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>
109 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>
110 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>
111 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>
112 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>
113 <includepath path="${DEST_DIR_DEBUG}"/>
114 </EXTRA.INC>
115 </Build_C_Code>
116 </target>
117 <target name="sections" />
118 <target name="output" >
119 <echo message="##Entering Output!" />
120
121 <OnDependency>
122 <sourcefiles>
123 <file list="${OBJECTS}"/>
124 <file list="${LIBS}"/>
125 </sourcefiles>
126 <targetfiles>
127 <file name="${BIN_DIR}\SecMain.exe"/>
128 </targetfiles>
129
130 <sequential>
131 <shellscript shell="cmd.exe" tmpsuffix=".cmd">
132 <arg line="/c"/>
133 <arg line="call"/>
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
135 </shellscript>
136 </sequential>
137 </OnDependency>
138 <!--
139 <cc userdefine="on">
140 <command type="LINK">
141 <argument value="/LIBPATH:&quot;${env.MSVCDir}\Lib&quot; /LIBPATH:&quot;${env.MSVCDir}\PlatformSdk\Lib&quot;" />
142 <argument value="/NOLOGO /SUBSYSTEM:CONSOLE /NODEFAULTLIB /IGNORE:4086 /MAP /OPT:REF /DEBUG /MACHINE:I386 /LTCG" />
143 <argument value="Kernel32.lib MsvcRt.lib Gdi32.lib User32.lib Winmm.lib" />
144 <argument value="${OBJECTS}" />
145 <argument value="${LIBS}" />
146 <argument value="/base:0x10000000 /out:${BIN_DIR}\SecMain.exe /pdb:${DEST_DIR_DEBUG}\SecMain.pdb" />
147 </command>
148 </cc>
149 -->
150 </target>
151 <target name="clean" ></target>
152
153 <target name="cleanAll"></target>
154 </project>