cfadceffe242fdf1d88eb9cd58491b71cf93fe87
[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 <GenBuild type="build">
28 <property name="ARCH" value="${ARCH}"/>
29 <property name="MODULE_GUID" value="27d67720-ea68-48ae-93da-a3a074c90e30"/>
30 <property name="MODULE_VERSION" value=""/>
31 <property name="PLATFORM" value="${PLATFORM}"/>
32 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
33 <property name="PACKAGE_VERSION" value=""/>
34 </GenBuild>
35 <GenBuild type="build">
36 <property name="ARCH" value="${ARCH}"/>
37 <property name="MODULE_GUID" value="fd44e603-002a-4b29-9f5f-529e815b6165"/>
38 <property name="MODULE_VERSION" value=""/>
39 <property name="PLATFORM" value="${PLATFORM}"/>
40 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
41 <property name="PACKAGE_VERSION" value=""/>
42 </GenBuild>
43 <GenBuild type="build">
44 <property name="ARCH" value="${ARCH}"/>
45 <property name="MODULE_GUID" value="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3"/>
46 <property name="MODULE_VERSION" value=""/>
47 <property name="PLATFORM" value="${PLATFORM}"/>
48 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
49 <property name="PACKAGE_VERSION" value=""/>
50 </GenBuild>
51 <GenBuild type="build">
52 <property name="ARCH" value="${ARCH}"/>
53 <property name="MODULE_GUID" value="556f5d10-7309-4af4-b80a-8196bd60946f"/>
54 <property name="MODULE_VERSION" value=""/>
55 <property name="PLATFORM" value="${PLATFORM}"/>
56 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
57 <property name="PACKAGE_VERSION" value=""/>
58 </GenBuild>
59 <GenBuild type="build">
60 <property name="ARCH" value="${ARCH}"/>
61 <property name="MODULE_GUID" value="55c61087-7367-4546-bc32-4937c5e6aff3"/>
62 <property name="MODULE_VERSION" value=""/>
63 <property name="PLATFORM" value="${PLATFORM}"/>
64 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
65 <property name="PACKAGE_VERSION" value=""/>
66 </GenBuild>
67 <GenBuild type="build">
68 <property name="ARCH" value="${ARCH}"/>
69 <property name="MODULE_GUID" value="9ba1d976-0624-41a3-8650-28165e8d9ae8"/>
70 <property name="MODULE_VERSION" value=""/>
71 <property name="PLATFORM" value="${PLATFORM}"/>
72 <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
73 <property name="PACKAGE_VERSION" value=""/>
74 </GenBuild>
75 </target>
76 <target name="sourcefiles">
77 <Build_AUTOGEN FILEEXT="c" FILENAME="AutoGen" FILEPATH=".">
78 <EXTRA.INC>
79 <includepath path="${WORKSPACE_DIR}"/>
80 <includepath path="${MODULE_DIR}"/>
81 <includepath path="${MODULE_DIR}\${ARCH}"/>
82 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>
83 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>
84 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>
85 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>
86 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>
87 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>
88 <includepath path="${DEST_DIR_DEBUG}"/>
89 </EXTRA.INC>
90 </Build_AUTOGEN>
91 <Build_CCode FILEEXT="c" FILENAME="FwVol" FILEPATH=".">
92 <EXTRA.INC>
93 <includepath path="${WORKSPACE_DIR}"/>
94 <includepath path="${MODULE_DIR}"/>
95 <includepath path="${MODULE_DIR}\${ARCH}"/>
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_CCode>
105 <Build_CCode FILEEXT="c" FILENAME="WinNtThunk" FILEPATH=".">
106 <EXTRA.INC>
107 <includepath path="${WORKSPACE_DIR}"/>
108 <includepath path="${MODULE_DIR}"/>
109 <includepath path="${MODULE_DIR}\${ARCH}"/>
110 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>
111 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>
112 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>
113 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>
114 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>
115 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>
116 <includepath path="${DEST_DIR_DEBUG}"/>
117 </EXTRA.INC>
118 </Build_CCode>
119 <Build_CCode FILEEXT="c" FILENAME="SecMain" FILEPATH=".">
120 <EXTRA.INC>
121 <includepath path="${WORKSPACE_DIR}"/>
122 <includepath path="${MODULE_DIR}"/>
123 <includepath path="${MODULE_DIR}\${ARCH}"/>
124 <includepath path="${WORKSPACE_DIR}\MdePkg\Include"/>
125 <includepath path="${WORKSPACE_DIR}\MdePkg\Include\${ARCH}"/>
126 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include"/>
127 <includepath path="${WORKSPACE_DIR}\EdkModulePkg\Include\${ARCH}"/>
128 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include"/>
129 <includepath path="${WORKSPACE_DIR}\EdkNt32Pkg\Include\${ARCH}"/>
130 <includepath path="${DEST_DIR_DEBUG}"/>
131 </EXTRA.INC>
132 </Build_CCode>
133 </target>
134
135 <target name="sections" />
136
137 <target name="output" >
138 <OnDependency>
139 <sourcefiles>
140 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
141 <file list="${LIBS}"/>
142 </sourcefiles>
143 <targetfiles>
144 <file name="${BIN_DIR}\SecMain.exe"/>
145 </targetfiles>
146
147 <sequential>
148 <cc userdefine="on">
149 <command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}"
150 outputFile="${DEST_DIR_OUTPUT}/SecMainLocal.lib">
151
152 <argument value="${SLINK_FLAGS}"/>
153
154 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
155 </command>
156 </cc>
157
158 <var name="LIBS" value="${LIBS} ${DEST_DIR_OUTPUT}/SecMainLocal.lib" />
159
160 <shellscript shell="cmd.exe" tmpsuffix=".cmd" >
161 <arg line="/q"/>
162 <arg line="/c"/>
163 <arg line="call"/>
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
165 </shellscript>
166 </sequential>
167 </OnDependency>
168 </target>
169
170 <target name="clean" ></target>
171
172 <target name="cleanAll"></target>
173 </project>