2006-04-22 00:54:32 +02:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!--
|
|
|
|
|
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="common">
|
|
|
|
|
<!--
|
|
|
|
|
macro definitions for building files with different types
|
|
|
|
|
-->
|
|
|
|
|
<!--
|
|
|
|
|
C Code
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_C_Code">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="c"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<if>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<input file="${DEST_DIR_DEBUG}/AutoGen.h"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file Name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" workdir="${DEST_DIR_OUTPUT}">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
|
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<!-- <argument value="/FI${DEST_DIR_DEBUG}/AutoGen.h" /> -->
|
|
|
|
|
<includeFile value="${DEST_DIR_DEBUG}/AutoGen.h"/>
|
|
|
|
|
<!-- <argument value="/Fo${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/> -->
|
|
|
|
|
<outputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
for library generation later
|
|
|
|
|
-->
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl NAME="OBJECTS" VALUE="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<macrodef name="Build_AUTOGEN">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="c"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<if>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep">
|
|
|
|
|
<input file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<input file="${DEST_DIR_DEBUG}/AutoGen.h"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file Name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" workdir="${DEST_DIR_OUTPUT}">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
|
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<!-- <argument value="/FI${DEST_DIR_DEBUG}/AutoGen.h" /> -->
|
|
|
|
|
<includeFile value="${DEST_DIR_DEBUG}/AutoGen.h"/>
|
|
|
|
|
<!-- <argument value="/Fo${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/> -->
|
|
|
|
|
<outputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
<!--
|
|
|
|
|
for library generation later
|
|
|
|
|
-->
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl NAME="OBJECTS" VALUE="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<macrodef name="Build_Dependency_File">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="dxs"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/${BASE_NAME}.@{FILEEXT}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" workdir=".">
|
|
|
|
|
<includepath path="${DEST_DIR_DEBUG}" />
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<argument value="${PP_FLAGS}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<outputFile value="@{FILENAME}.@{FILEEXT}.i"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gendepex inputFile="@{FILENAME}.@{FILEEXT}.i" outputFile="${DEST_DIR_OUTPUT}/${BASE_NAME}.@{FILEEXT}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<delete file="@{FILENAME}.@{FILEEXT}.i" />
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<delete file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.c" />
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!-- Usage Example
|
|
|
|
|
<Build_C_Code
|
|
|
|
|
FILEPATH="."
|
|
|
|
|
FILENAME="${SOURCE_NAME}"
|
|
|
|
|
FILEEXT="c">
|
|
|
|
|
<EXTRA.INC>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${PACKAGE_DIR}/Include"/>
|
|
|
|
|
<includepath path="${PACKAGE_DIR}/Include/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</EXTRA.INC>
|
|
|
|
|
|
|
|
|
|
<EXTRA.ARG>
|
|
|
|
|
<argument value="/D EFI_DEBUG /D EFI_WHATEVER_FLAG"/>
|
|
|
|
|
</EXTRA.ARG>
|
|
|
|
|
</Build_C_Code>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
IA32/x64 Assembly
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Assembly">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="asm"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file Name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file Name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="ASM">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
|
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<argument value="/Fl${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.lst"/>
|
|
|
|
|
<OutputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
<!--
|
|
|
|
|
for library generation later
|
|
|
|
|
-->
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl NAME="OBJECTS" VALUE="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Library private HashMap map = new HashMap();
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Library">
|
|
|
|
|
<attribute name="FILENAME" />
|
|
|
|
|
<attribute name="FILEEXT" default="obj"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${BIN_DIR}"/>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file list="${OBJECTS}"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${BIN_DIR}/@{FILENAME}.lib"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<!-- <echo>re-generate library</echo> -->
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="LIB">
|
|
|
|
|
<argument value="${LIB_FLAGS}"/>
|
|
|
|
|
<!--<argument value="${OBJECTS}"/>-->
|
|
|
|
|
<FileList dir="" files="${OBJECTS}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<!-- <argument value="/out:${BIN_DIR}/@{FILENAME}.lib"/> -->
|
|
|
|
|
<OutputFile value="${BIN_DIR}/@{FILENAME}.lib"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-05-24 22:56:12 +02:00
|
|
|
|
<!--
|
|
|
|
|
GCC Assembly
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_GCC_Assembly_Code">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="s"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
|
|
|
|
|
|
|
|
|
<if>
|
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
|
|
|
|
<then>
|
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="ASM" includepathDelimiter="-I">
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
|
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
|
|
|
|
<!-- <argument value="-o ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/> -->
|
|
|
|
|
<OutputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
|
|
|
|
|
|
|
|
|
<fileset casesensitive="off" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
<!--
|
|
|
|
|
for library generation later
|
|
|
|
|
-->
|
|
|
|
|
<bl NAME="OBJECTS" VALUE="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<!--
|
|
|
|
|
IPF Assembly
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_IPF_Assembly_Code">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="s"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<if>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" workdir=".">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<argument value="${PP_FLAGS}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
<move file="@{FILENAME}.@{FILEEXT}.i"
|
2006-04-26 22:53:56 +02:00
|
|
|
|
tofile="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.pro"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="ASM" includepathDelimiter="-I">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
|
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<!-- <argument value="-o ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/> -->
|
|
|
|
|
<OutputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.pro"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
<!--
|
|
|
|
|
for library generation later
|
|
|
|
|
-->
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl NAME="OBJECTS" VALUE="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<macrodef name="Build_IPF_PP_Code">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="i"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="ASM" includepathDelimiter="-I">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
|
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<!-- <argument value="-o ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/> -->
|
|
|
|
|
<OutputFile File="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
for library generation later
|
|
|
|
|
-->
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl NAME="OBJECTS" VALUE="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
[Build.Ia32.Makefile,Build.Ipf.Makefile,Build.Ebc.Makefile]
|
|
|
|
|
[Build.Ia32.Custom_Makefile,Build.Ipf.Custom_Makefile,Build.Ebc.Custom_Makefile]
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Custom_Build">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="c"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Unicode -> .sdb
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Unicode">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="uni"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<strgather commandtype="parse" newdatabase="true">
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<database name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<EXTRA.ARG/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<inputfile name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</strgather>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl name="SDB_FILES" value="${SDB_FILES}, ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
.sdb(s) -> .c, .h -> .obj
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Unicode_Database">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="sdb"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file list="${SDB_FILES}"/>
|
|
|
|
|
<file list="${SOURCE_FILES}"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<strgather commandtype="scan" outputdatabase="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb" verbose="read">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<skipext name=".uni"/>
|
|
|
|
|
<skipext name=".h"/>
|
|
|
|
|
<database list="${SDB_FILES}"/>
|
|
|
|
|
<inputfile name="${SOURCE_FILES}"/>
|
|
|
|
|
</strgather>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}StrDefs.h"/>
|
|
|
|
|
<file name="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}Strings.hpk"/>
|
|
|
|
|
<file name="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}Strings.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<strgather basename="@{FILENAME}Strings" commandtype="dump"
|
2006-04-26 22:53:56 +02:00
|
|
|
|
outputdefines="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}StrDefs.h"
|
|
|
|
|
outputhpk="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}Strings.hpk"
|
|
|
|
|
outputstring="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}Strings.c">
|
|
|
|
|
<database name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</strgather>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}Strings.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}Strings.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" workdir="${DEST_DIR_OUTPUT}" includepathDelimiter="-I">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<OutputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}Strings.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}Strings.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}Strings.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Vfr
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Vfr">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="vfr"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${DEST_DIR_DEBUG}/@{FILEPATH}"/>
|
|
|
|
|
|
|
|
|
|
<if>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<!-- <input file="${DEST_DIR_DEBUG}/AutoGen.h"/> -->
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<vfrcompile createIfrBinFile="on" createListFile="on" outPutDir="${DEST_DIR_DEBUG}/@{FILEPATH}" vfrFile="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</vfrcompile>
|
|
|
|
|
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" workdir="${DEST_DIR_OUTPUT}" includepathDelimiter="-I">
|
|
|
|
|
<includepath path="${WORKSPACE_DIR}"/>
|
|
|
|
|
<includepath path="${MODULE_DIR}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<includepath path="${MODULE_DIR}/${ARCH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<OutputFile value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.ARG/>
|
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fileset casesensitive="off" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
|
|
|
|
<delete file="@{FILENAME}.i"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<bl name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--############################################################################
|
|
|
|
|
Build Sections
|
|
|
|
|
#############################################################################-->
|
|
|
|
|
<!--
|
|
|
|
|
DLL
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="GenDll">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT"/>
|
|
|
|
|
|
|
|
|
|
<element name="LIB.ARG" optional="yes"/>
|
|
|
|
|
<element name="LINK.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file list="${OBJECTS}"/>
|
|
|
|
|
<file list="${LIBS}"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.dll"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="LINK">
|
|
|
|
|
<argument value="${LINK_FLAGS}"/>
|
2006-04-26 04:44:39 +02:00
|
|
|
|
<libset libs="${LIBS}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<LINK.ARG/>
|
|
|
|
|
<EntryPoint value="_ModuleEntryPoint"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<map value="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.map"/>
|
|
|
|
|
<pdb value="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.pdb"/>
|
|
|
|
|
<OutputFile value="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.dll"/>
|
2006-04-26 04:44:39 +02:00
|
|
|
|
<FileList dir="" files="${OBJECTS}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="GenEfi">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="dll"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<fwimage componenttype="${COMPONENT_TYPE}" outImage="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"
|
|
|
|
|
peImage="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}" time="0"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_FREEFORM_SUBTYPE_GUID
|
|
|
|
|
EFI_SECTION_VERSION
|
|
|
|
|
EFI_SECTION_USER_INTERFACE
|
|
|
|
|
EFI_SECTION_DXE_DEPEX
|
|
|
|
|
EFI_SECTION_PEI_DEPEX
|
|
|
|
|
EFI_SECTION_PE32
|
|
|
|
|
EFI_SECTION_PIC
|
|
|
|
|
EFI_SECTION_TE
|
|
|
|
|
EFI_SECTION_RAW
|
|
|
|
|
EFI_SECTION_COMPRESSION
|
|
|
|
|
EFI_SECTION_GUID_DEFINED
|
|
|
|
|
EFI_SECTION_COMPATIBILITY16
|
|
|
|
|
EFI_SECTION_FIRMWARE_VOLUME_IMAGE
|
|
|
|
|
-->
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_PE32
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_PE32">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="" />
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
|
|
|
|
|
<if>
|
|
|
|
|
<not>
|
|
|
|
|
<equals arg1="${OBJECTS}" arg2=""/>
|
|
|
|
|
</not>
|
|
|
|
|
|
|
|
|
|
<then>
|
|
|
|
|
<GenDll FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="">
|
|
|
|
|
<LIB.ARG></LIB.ARG>
|
|
|
|
|
<LINK.ARG></LINK.ARG>
|
|
|
|
|
</GenDll>
|
|
|
|
|
|
|
|
|
|
<GenEfi FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="dll"/>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.pe32"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${BIN_DIR}/@{FILENAME}.efi" />
|
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.pe32"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PE32"/>
|
|
|
|
|
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_VERSION
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_VERSION">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="" />
|
|
|
|
|
<attribute name="VERSION" default="0000"/>
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<if>
|
|
|
|
|
<not>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.ver"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</not>
|
|
|
|
|
|
|
|
|
|
<then>
|
|
|
|
|
<PRE.PROCESS/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection outputfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.ver"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
versionnum="@{VERSION}"
|
|
|
|
|
sectiontype="EFI_SECTION_VERSION"/>
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_USER_INTERFACE
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_USER_INTERFACE">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="" />
|
|
|
|
|
<attribute name="UI" default="${BASE_NAME}"/>
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<if>
|
|
|
|
|
<not>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.ui"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</not>
|
|
|
|
|
|
|
|
|
|
<then>
|
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
<gensection interfacestring="@{UI}"
|
2006-04-26 22:53:56 +02:00
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.ui"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_USER_INTERFACE"/>
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_FREEFORM_SUBTYPE_GUID
|
|
|
|
|
<macrodef name="EFI_SECTION_FREEFORM_SUBTYPE_GUID">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default=""/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<gensection inputfile=""
|
|
|
|
|
outputfile=""
|
|
|
|
|
sectiontype="EFI_SECTION_FREEFORM_SUBTYPE_GUID"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_DXE_DEPEX
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_DXE_DEPEX">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="dxs"/>
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
|
|
|
|
|
<if>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}.depex"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_DXE_DEPEX"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<if>
|
|
|
|
|
<not>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</not>
|
|
|
|
|
<then>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<touch file="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_PEI_DEPEX
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_PEI_DEPEX">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="dxs"/>
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
<sequential>
|
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
<if>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}.depex"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PEI_DEPEX"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<if>
|
|
|
|
|
<not>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</not>
|
|
|
|
|
<then>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<touch file="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_PIC
|
|
|
|
|
<macrodef name="EFI_SECTION_PIC">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default=""/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${BIN_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${BIN_DIR}/@{FILENAME}.pe32"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PIC"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_TE
|
|
|
|
|
<macrodef name="EFI_SECTION_TE">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default=""/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${BIN_DIR}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${BIN_DIR}/@{FILENAME}.pe32"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PE32"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_RAW
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_RAW">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="bin"/>
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<PRE.PROCESS/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_RAW"/>
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_COMPRESSION
|
|
|
|
|
<macrodef name="EFI_SECTION_COMPRESSION">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default=""/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${BIN_DIR}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${BIN_DIR}/@{FILENAME}.pe32"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PE32"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_GUID_DEFINED
|
|
|
|
|
<macrodef name="EFI_SECTION_GUID_DEFINED">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default=""/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${BIN_DIR}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${BIN_DIR}/@{FILENAME}.pe32"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PE32"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_COMPATIBILITY16
|
|
|
|
|
<macrodef name="EFI_SECTION_COMPATIBILITY16">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default=""/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${BIN_DIR}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${BIN_DIR}/@{FILENAME}.pe32"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PE32"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_FIRMWARE_VOLUME_IMAGE
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_FIRMWARE_VOLUME_IMAGE">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="fv"/>
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${FV_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}fv.sec"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<copy file="${FV_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
overwrite="true"/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}fv.sec"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_FIRMWARE_VOLUME_IMAGE"/>
|
|
|
|
|
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Binary
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Binary">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="bin"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.bin"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Graphics (bmp, ...)
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Graphics">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="bmp"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${MODULE_DIR}/@{FILEPATH}" />
|
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.bin"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
<macrodef name="Build_EFI">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="efi"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${MODULE_DIR}/@{FILEPATH}" />
|
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_OUTPUT}/${BASE_NAME}.efi"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
</project>
|