Import Usb/UsbBusDxe and Usb/UsbMassStorageDxe into MdeModulePkg.
[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="9ba1d976-0624-41a3-8650-28165e8d9ae8"/>
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 </target>
68 <target name="sourcefiles">
69 <Build_Init>
70 <EXTRA.INC>
71 <includepath path="${INCLUDE_PATHS}"/>
72 </EXTRA.INC>
73 </Build_Init>
74 <Build_AUTOGEN FILEEXT="c" FILENAME="AutoGen" FILEPATH=".">
75 <EXTRA.INC>
76 <includepath path="${INCLUDE_PATHS}"/>
77 </EXTRA.INC>
78 </Build_AUTOGEN>
79 <Build_CCode FILEEXT="c" FILENAME="FwVol" FILEPATH=".">
80 <EXTRA.INC>
81 <includepath path="${INCLUDE_PATHS}"/>
82 </EXTRA.INC>
83 </Build_CCode>
84 <Build_CCode FILEEXT="c" FILENAME="WinNtThunk" FILEPATH=".">
85 <EXTRA.INC>
86 <includepath path="${INCLUDE_PATHS}"/>
87 </EXTRA.INC>
88 </Build_CCode>
89 <Build_CCode FILEEXT="c" FILENAME="SecMain" FILEPATH=".">
90 <EXTRA.INC>
91 <includepath path="${INCLUDE_PATHS}"/>
92 </EXTRA.INC>
93 </Build_CCode>
94 </target>
95
96 <target name="sections" />
97
98 <target name="output" >
99 <if>
100 <available type="file" file="${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>
101 <then>
102 <var name="SLINK_FLAGS" value="${SLINK_FLAGS} ${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>
103 </then>
104 </if>
105 <OnDependency>
106 <sourcefiles>
107 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
108 <file list="${LIBS}"/>
109 </sourcefiles>
110 <targetfiles>
111 <file name="${BIN_DIR}\SecMain.exe"/>
112 </targetfiles>
113
114 <sequential>
115 <cc userdefine="on">
116 <command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}"
117 outputFile="${DEST_DIR_OUTPUT}/SecMainLocal.lib" dpath="${SLINK_DPATH}">
118
119 <argument value="${SLINK_FLAGS}"/>
120
121 <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
122 </command>
123 </cc>
124
125 <var name="LIBS" value="${LIBS} ${DEST_DIR_OUTPUT}/SecMainLocal.lib" />
126
127 <shellscript shell="cmd.exe" tmpsuffix=".cmd" >
128 <arg line="/q"/>
129 <arg line="/c"/>
130 <arg line="call"/>
131 PATH ${DLINK_DPATH};%path%
132 "${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
133 </shellscript>
134 </sequential>
135 </OnDependency>
136 </target>
137
138 <target name="clean" ></target>
139
140 <target name="cleanAll"></target>
141 </project>