summaryrefslogtreecommitdiff
path: root/Nt32Pkg/Sec/SecMain_build.xml
blob: fc26a10779233a1e7a5e1d686600ac04d9949c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?xml version="1.0" ?>
<!--
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution.  The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-->
<project name="SecMain" default="main" basedir="." >
  <!-- Apply external ANT task -->
  <taskdef resource="frameworktasks.tasks" /> 
  <taskdef resource="cpptasks.tasks" /> 
  <typedef resource="cpptasks.types" /> 
  <taskdef resource="net/sf/antcontrib/antlib.xml" />
  <property environment="env" />
  <!-- All Properties --> 
  <property name="BASE_NAME" value="SecMain" /> 
  
  <!-- Default target --> 
  <target name="main" depends="libraries, sourcefiles, sections, output" /> 
  <!-- Compile all dependency Library instances. --> 

  <target name="libraries">
    <GenBuild type="build">
      <property name="ARCH" value="${ARCH}"/>
      <property name="MODULE_GUID" value="27d67720-ea68-48ae-93da-a3a074c90e30"/>
      <property name="MODULE_VERSION" value=""/>
      <property name="PLATFORM" value="${PLATFORM}"/>
      <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
      <property name="PACKAGE_VERSION" value=""/>
    </GenBuild>
    <GenBuild type="build">
      <property name="ARCH" value="${ARCH}"/>
      <property name="MODULE_GUID" value="fd44e603-002a-4b29-9f5f-529e815b6165"/>
      <property name="MODULE_VERSION" value=""/>
      <property name="PLATFORM" value="${PLATFORM}"/>
      <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
      <property name="PACKAGE_VERSION" value=""/>
    </GenBuild>
    <GenBuild type="build">
      <property name="ARCH" value="${ARCH}"/>
      <property name="MODULE_GUID" value="a86fbfca-0183-4eeb-aa8a-762e3b7da1f3"/>
      <property name="MODULE_VERSION" value=""/>
      <property name="PLATFORM" value="${PLATFORM}"/>
      <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
      <property name="PACKAGE_VERSION" value=""/>
    </GenBuild>
    <GenBuild type="build">
      <property name="ARCH" value="${ARCH}"/>
      <property name="MODULE_GUID" value="556f5d10-7309-4af4-b80a-8196bd60946f"/>
      <property name="MODULE_VERSION" value=""/>
      <property name="PLATFORM" value="${PLATFORM}"/>
      <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
      <property name="PACKAGE_VERSION" value=""/>
    </GenBuild>
    <GenBuild type="build">
      <property name="ARCH" value="${ARCH}"/>
      <property name="MODULE_GUID" value="9ba1d976-0624-41a3-8650-28165e8d9ae8"/>
      <property name="MODULE_VERSION" value=""/>
      <property name="PLATFORM" value="${PLATFORM}"/>
      <property name="PACKAGE_GUID" value="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>
      <property name="PACKAGE_VERSION" value=""/>
    </GenBuild>
  </target>
  <target name="sourcefiles">
      <Build_Init>
        <EXTRA.INC>
          <includepath path="${INCLUDE_PATHS}"/>
        </EXTRA.INC>
      </Build_Init>
      <Build_AUTOGEN FILEEXT="c" FILENAME="AutoGen" FILEPATH=".">
         <EXTRA.INC>
            <includepath path="${INCLUDE_PATHS}"/>
         </EXTRA.INC>
       </Build_AUTOGEN>
      <Build_CCode FILEEXT="c" FILENAME="FwVol" FILEPATH=".">
         <EXTRA.INC>
            <includepath path="${INCLUDE_PATHS}"/>
         </EXTRA.INC>
      </Build_CCode>
      <Build_CCode FILEEXT="c" FILENAME="WinNtThunk" FILEPATH=".">
         <EXTRA.INC>
            <includepath path="${INCLUDE_PATHS}"/>
         </EXTRA.INC>
      </Build_CCode>
      <Build_CCode FILEEXT="c" FILENAME="SecMain" FILEPATH=".">
         <EXTRA.INC>
            <includepath path="${INCLUDE_PATHS}"/>
         </EXTRA.INC>
      </Build_CCode>
    </target>

    <target name="sections" />

    <target name="output" >
      <if>
        <available type="file" file="${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>
        <then>
          <var name="SLINK_FLAGS" value="${SLINK_FLAGS} ${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>
        </then>
      </if>
      <OnDependency>
        <sourcefiles>
          <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
          <file list="${LIBS}"/>
        </sourcefiles>
        <targetfiles>
          <file name="${BIN_DIR}\SecMain.exe"/>
        </targetfiles>
        
        <sequential>
          <cc userdefine="on">
            <command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}"
                outputFile="${DEST_DIR_OUTPUT}/SecMainLocal.lib" dpath="${SLINK_DPATH}">
                
              <argument value="${SLINK_FLAGS}"/>

              <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
            </command>
          </cc>

          <var name="LIBS" value="${LIBS} ${DEST_DIR_OUTPUT}/SecMainLocal.lib" />
         
          <shellscript shell="cmd.exe" tmpsuffix=".cmd" >
            <arg line="/q"/>
            <arg line="/c"/>
            <arg line="call"/>
            PATH ${DLINK_DPATH};%path%
            "${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
          </shellscript>
        </sequential>
      </OnDependency>
  </target>
  
  <target name="clean" ></target>

  <target name="cleanAll"></target>
</project>