2006-11-21 09:58:29 +01:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<!--
|
|
|
|
|
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">
|
2007-01-24 10:46:23 +01:00
|
|
|
|
<!-- for user extended tasks or macros -->
|
|
|
|
|
<import file="UserExtension.xml" optional="true"/>
|
|
|
|
|
|
2006-08-14 09:00:48 +02:00
|
|
|
|
<!--
|
|
|
|
|
Macro for intialize some properties. This Macro build will be called before source file build.
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Init">
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
2006-08-14 09:00:48 +02:00
|
|
|
|
<sequential>
|
|
|
|
|
<var name="OBJECTS" value="" />
|
|
|
|
|
<var name="SDB_FILES" value="" />
|
2006-10-08 18:07:32 +02:00
|
|
|
|
|
2007-01-22 10:18:15 +01:00
|
|
|
|
<mkdir dir="${DEST_DIR_DEBUG}"/>
|
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}"/>
|
|
|
|
|
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<if>
|
2006-10-10 06:36:57 +02:00
|
|
|
|
<and>
|
|
|
|
|
<isset property="PCH"/>
|
|
|
|
|
<not>
|
|
|
|
|
<equals arg1="${PCH}" arg2=""/>
|
|
|
|
|
</not>
|
|
|
|
|
</and>
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<then>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/AutoGen.h.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/AutoGen.h.gch">
|
|
|
|
|
<input file="${DEST_DIR_DEBUG}/AutoGen.h"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
2006-10-08 18:07:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.dep"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file Name="${DEST_DIR_OUTPUT}/AutoGen.h.gch"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<!-- Generate pre-compiled header -->
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" cmd="${PCH}" workdir="${DEST_DIR_OUTPUT}" family="${CC_FAMILY}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/AutoGen.h.obj" dpath="${CC_DPATH}" libpath="${CC_LIBPATH}"
|
|
|
|
|
include="${CC_INCLUDEPATH}">
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<argument value="${PCH_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
|
|
|
|
<fileset casesensitive="on" file="${DEST_DIR_DEBUG}/AutoGen.h"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="${CC_FAMILY}" arg2="GCC"/>
|
|
|
|
|
<then>
|
2006-10-09 09:15:20 +02:00
|
|
|
|
<move file="${DEST_DIR_OUTPUT}/AutoGen.h.obj" tofile="${DEST_DIR_DEBUG}/AutoGen.h.gch" overwrite="true"/>
|
2006-10-08 18:07:32 +02:00
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-10-09 09:15:20 +02:00
|
|
|
|
|
|
|
|
|
<if>
|
|
|
|
|
<not>
|
|
|
|
|
<equals arg1="${CC_FAMILY}" arg2="GCC"/>
|
|
|
|
|
</not>
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} AutoGen.h.obj"/>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
2006-10-08 18:07:32 +02:00
|
|
|
|
</then>
|
2007-01-19 08:41:47 +01:00
|
|
|
|
<else>
|
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/AutoGen.h.dep">
|
|
|
|
|
<input file="${DEST_DIR_DEBUG}/AutoGen.h"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
</else>
|
2006-10-08 18:07:32 +02:00
|
|
|
|
</if>
|
2006-08-14 09:00:48 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<!--
|
|
|
|
|
macro definitions for building files with different types
|
|
|
|
|
-->
|
|
|
|
|
<!--
|
|
|
|
|
C Code
|
|
|
|
|
-->
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<macrodef name="Build_CCode">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="c"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<sequential>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="@{FILEPATH}" />
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.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">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<command type="CC" cmd="${CC}" workdir="${DEST_DIR_OUTPUT}" family="${CC_FAMILY}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" dpath="${CC_DPATH}"
|
|
|
|
|
libpath="${CC_LIBPATH}" include="${CC_INCLUDEPATH}">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.ARG/>
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<!-- Since fileset can't scan file start with ./, remove ./ in previous. -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="@{FILEPATH}" arg2="." />
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILENAME}.obj" />
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILEPATH}/@{FILENAME}.obj" />
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
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-06-30 19:56:20 +02:00
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="@{FILEPATH}" />
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj">
|
|
|
|
|
<input file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.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">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<command type="CC" cmd="${CC}" workdir="${DEST_DIR_OUTPUT}" family="${CC_FAMILY}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" dpath="${CC_DPATH}"
|
|
|
|
|
libpath="${CC_LIBPATH}" include="${CC_INCLUDEPATH}">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.ARG/>
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<!-- Since fileset can't scan file start with ./, remove ./ in previous. -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="@{FILEPATH}" arg2="." />
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILENAME}.obj" />
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILEPATH}/@{FILENAME}.obj" />
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<macrodef name="Build_DPX">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="dxs"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="@{FILEPATH}" />
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-04-05 10:52:59 +02:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/${BASE_NAME}.depex">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2007-04-05 10:52:59 +02:00
|
|
|
|
<!--file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/-->
|
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.dep"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/${BASE_NAME}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
2006-07-06 12:31:48 +02:00
|
|
|
|
<command type="CC" cmd="${CC}" workdir="${DEST_DIR_OUTPUT}/@{FILEPATH}" family="${CC_FAMILY}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i" dpath="${CC_DPATH}"
|
|
|
|
|
libpath="${CC_LIBPATH}" include="${CC_INCLUDEPATH}">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<argument value="${PP_FLAGS}"/>
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-07-06 12:31:48 +02:00
|
|
|
|
<gendepex inputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i" outputFile="${DEST_DIR_OUTPUT}/${BASE_NAME}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
|
|
|
|
<macrodef name="Build_ASM">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="asm"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
|
|
|
|
<!-- Dispath ASM file, there are three type.
|
2006-07-06 12:31:48 +02:00
|
|
|
|
asm - Build_Assembly
|
|
|
|
|
S - Build_Gcc_Assembly
|
|
|
|
|
s - Build_Ipf_Assembly -->
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<sequential>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<if>
|
2006-07-06 12:31:48 +02:00
|
|
|
|
<equals arg1="@{FILEEXT}" arg2="asm" />
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<then>
|
|
|
|
|
<Build_Assembly FILEPATH="@{FILEPATH}" FILENAME="@{FILENAME}" FILEEXT="@{FILEEXT}">
|
|
|
|
|
<EXTRA.INC.1><EXTRA.INC /></EXTRA.INC.1>
|
|
|
|
|
<EXTRA.ARG.1><EXTRA.ARG /></EXTRA.ARG.1>
|
|
|
|
|
</Build_Assembly>
|
|
|
|
|
</then>
|
2006-07-06 12:31:48 +02:00
|
|
|
|
<elseif>
|
|
|
|
|
<equals arg1="@{FILEEXT}" arg2="S" />
|
|
|
|
|
<then>
|
|
|
|
|
<Build_Gcc_Assembly FILEPATH="@{FILEPATH}" FILENAME="@{FILENAME}" FILEEXT="@{FILEEXT}">
|
|
|
|
|
<EXTRA.INC.1><EXTRA.INC /></EXTRA.INC.1>
|
|
|
|
|
<EXTRA.ARG.1><EXTRA.ARG /></EXTRA.ARG.1>
|
|
|
|
|
</Build_Gcc_Assembly>
|
|
|
|
|
</then>
|
|
|
|
|
</elseif>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<elseif>
|
2006-07-04 15:44:18 +02:00
|
|
|
|
<equals arg1="@{FILEEXT}" arg2="s" />
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<then>
|
|
|
|
|
<Build_IPF_Assembly_Code FILEPATH="@{FILEPATH}" FILENAME="@{FILENAME}" FILEEXT="@{FILEEXT}">
|
|
|
|
|
<EXTRA.INC.1><EXTRA.INC /></EXTRA.INC.1>
|
|
|
|
|
<EXTRA.ARG.1><EXTRA.ARG /></EXTRA.ARG.1>
|
|
|
|
|
</Build_IPF_Assembly_Code>
|
|
|
|
|
</then>
|
|
|
|
|
</elseif>
|
|
|
|
|
</if>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-06-12 13:14:21 +02:00
|
|
|
|
<!--
|
2006-06-30 19:56:20 +02:00
|
|
|
|
IA32/x64 Assembly
|
2006-06-12 13:14:21 +02:00
|
|
|
|
-->
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<macrodef name="Build_Assembly">
|
2006-06-12 13:14:21 +02:00
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="asm"/>
|
|
|
|
|
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<element name="EXTRA.INC.1" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG.1" optional="yes"/>
|
2006-06-12 13:14:21 +02:00
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="@{FILEPATH}" />
|
2006-06-12 13:14:21 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC.1/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
|
2006-06-12 13:14:21 +02:00
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<file Listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.dep"/>
|
2006-06-12 13:14:21 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file Name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-07-04 04:51:07 +02:00
|
|
|
|
<cc userdefine="on">
|
2006-10-16 12:32:01 +02:00
|
|
|
|
<command type="PP" cmd="${PP}" workdir="${DEST_DIR_OUTPUT}/@{FILEPATH}" family="${PP_FAMILY}"
|
|
|
|
|
dpath="${PP_DPATH}" libpath="${PP_LIBPATH}" include="${PP_INCLUDEPATH}">
|
2006-07-04 04:51:07 +02:00
|
|
|
|
<EXTRA.INC.1/>
|
|
|
|
|
<argument value="${PP_FLAGS}"/>
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-07-04 04:51:07 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
|
|
|
|
<replaceregexp file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i"
|
|
|
|
|
match="^(#line +1 +.*@{FILEPATH}/@{FILENAME}\.@{FILEEXT}").+\1"
|
|
|
|
|
replace=";"
|
|
|
|
|
flags="gs"/>
|
|
|
|
|
<replaceregexp file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i"
|
|
|
|
|
match="^(#line .*)$"
|
|
|
|
|
replace="; \1"
|
|
|
|
|
byline="true"/>
|
|
|
|
|
<replaceregexp file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i"
|
|
|
|
|
match="([^_a-zA-Z])0x([0-9a-fA-F]+)"
|
|
|
|
|
replace="\10\2h"
|
|
|
|
|
flags="g"
|
|
|
|
|
byline="true"/>
|
2006-07-04 14:14:02 +02:00
|
|
|
|
|
2006-06-12 13:14:21 +02:00
|
|
|
|
<cc userdefine="on">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<command type="ASM" cmd="${ASM}" workdir="${DEST_DIR_OUTPUT}" family="${ASM_FAMILY}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" dpath="${ASM_DPATH}"
|
|
|
|
|
libpath="${ASM_LIBPATH}" include="${ASM_INCLUDEPATH}">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<EXTRA.INC.1/>
|
|
|
|
|
|
2006-06-12 13:14:21 +02:00
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<EXTRA.ARG.1/>
|
|
|
|
|
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i"/>
|
2006-05-24 22:56:12 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<!-- Since fileset can't scan file start with ./, remove ./ in previous. -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="@{FILEPATH}" arg2="." />
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILENAME}.obj" />
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILEPATH}/@{FILENAME}.obj" />
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
2006-05-24 22:56:12 +02:00
|
|
|
|
</sequential>
|
2006-07-06 12:31:48 +02:00
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Build GCC assembly code
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_Gcc_Assembly">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="asm"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC.1" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG.1" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="@{FILEPATH}" />
|
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC.1/>
|
|
|
|
|
</makedeps>
|
|
|
|
|
|
2006-07-06 12:31:48 +02:00
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<file Listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.dep"/>
|
2006-07-06 12:31:48 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file Name="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="ASM" cmd="${ASM}" workdir="${DEST_DIR_OUTPUT}" family="${ASM_FAMILY}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" dpath="${ASM_DPATH}"
|
|
|
|
|
libpath="${ASM_LIBPATH}" include="${ASM_INCLUDEPATH}">
|
2006-07-06 12:31:48 +02:00
|
|
|
|
<EXTRA.INC.1/>
|
|
|
|
|
|
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG.1/>
|
|
|
|
|
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-07-06 12:31:48 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<!-- Since fileset can't scan file start with ./, remove ./ in previous. -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="@{FILEPATH}" arg2="." />
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILENAME}.obj" />
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILEPATH}/@{FILENAME}.obj" />
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
2006-07-06 12:31:48 +02:00
|
|
|
|
</sequential>
|
2006-05-24 22:56:12 +02:00
|
|
|
|
</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"/>
|
|
|
|
|
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<element name="EXTRA.INC.1" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG.1" optional="yes"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}/@{FILEPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC.1/>
|
|
|
|
|
</makedeps>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.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">
|
2006-10-16 12:32:01 +02:00
|
|
|
|
<command type="PP" cmd="${APP}" workdir="${DEST_DIR_OUTPUT}/@{FILEPATH}" family="${APP_FAMILY}"
|
|
|
|
|
dpath="${APP_DPATH}" libpath="${APP_LIBPATH}" include="${APP_INCLUDEPATH}">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<EXTRA.INC.1/>
|
2006-10-12 14:09:28 +02:00
|
|
|
|
<argument value="${APP_FLAGS}"/>
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<cc userdefine="on">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<command type="ASM" cmd="${ASM}" workdir="${DEST_DIR_OUTPUT}" family="${ASM_FAMILY}"
|
2006-09-27 07:53:35 +02:00
|
|
|
|
includepathDelimiter="-I" outputDelimiter="-o" dpath="${ASM_DPATH}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
libpath="${ASM_LIBPATH}" include="${ASM_INCLUDEPATH}"
|
2006-06-30 19:56:20 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj">
|
|
|
|
|
<EXTRA.INC.1/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<EXTRA.ARG.1/>
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<!-- Since fileset can't scan file start with ./, remove ./ in previous. -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="@{FILEPATH}" arg2="." />
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILENAME}.obj" />
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILEPATH}/@{FILENAME}.obj" />
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<!--
|
|
|
|
|
Assembly the preprocessed IPF assembly code
|
|
|
|
|
-->
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<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-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<cc userdefine="on">
|
2006-10-16 12:32:01 +02:00
|
|
|
|
<command type="ASM" includepathDelimiter="-I" dpath="${ASM_DPATH}"
|
|
|
|
|
libpath="${ASM_LIBPATH}" include="${ASM_INCLUDEPATH}">
|
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/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<argument value="${ASM_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<OutputFile File="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<!--
|
|
|
|
|
Library
|
|
|
|
|
-->
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<macrodef name="Build_Library">
|
|
|
|
|
<attribute name="FILENAME" />
|
|
|
|
|
<attribute name="FILEEXT" default="obj"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="." />
|
|
|
|
|
<mkdir dir="${BIN_DIR}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-01-25 07:05:31 +01:00
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="${OBJECTS}" arg2="" trim="true"/>
|
|
|
|
|
<then>
|
|
|
|
|
<fail message="No object files"/>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
|
2006-06-30 19:56:20 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${BIN_DIR}/@{FILENAME}.lib"/>
|
|
|
|
|
</targetfiles>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
outputFile="${BIN_DIR}/@{FILENAME}.lib" dpath="${SLINK_DPATH}"
|
|
|
|
|
libpath="${SLINK_LIBPATH}" include="${SLINK_INCLUDEPATH}">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<argument value="${SLINK_FLAGS}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Unicode -> .sdb
|
|
|
|
|
-->
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<macrodef name="Build_UNI">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<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}"/>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.sdb">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2007-01-15 02:59:23 +01: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}.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
|
|
|
|
<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-06-30 19:56:20 +02:00
|
|
|
|
<var 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>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="@{FILEPATH}" />
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<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>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<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>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<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-10-18 07:36:54 +02:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.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}Strings.obj"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<command type="CC" cmd="${CC}" workdir="${DEST_DIR_OUTPUT}" family="${CC_FAMILY}"
|
2006-09-27 07:53:35 +02:00
|
|
|
|
includepathDelimiter="-I" dpath="${CC_DPATH}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
libpath="${CC_LIBPATH}" include="${CC_INCLUDEPATH}"
|
2006-06-30 19:56:20 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}Strings.obj">
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<EXTRA.INC />
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}Strings.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-08-21 08:03:55 +02:00
|
|
|
|
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<!-- Since fileset can't scan file start with ./, remove ./ in previous. -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="@{FILEPATH}" arg2="." />
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILENAME}Strings.obj" />
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILEPATH}/@{FILENAME}Strings.obj" />
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Vfr
|
|
|
|
|
-->
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<macrodef name="Build_VFR">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<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}"/>
|
|
|
|
|
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<makedeps DepsFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"
|
|
|
|
|
TargetFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj">
|
|
|
|
|
<input file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</makedeps>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-04-26 22:53:56 +02:00
|
|
|
|
<file listfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}.dep"/>
|
2007-01-15 02:59:23 +01:00
|
|
|
|
<file ListFile="${DEST_DIR_OUTPUT}/AutoGen.h.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-11-21 09:58:29 +01:00
|
|
|
|
<!-- if "TOOLCHIAN FAMILY" is "GCC", it should point the ouput file for preprocess compiler -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="${CC_FAMILY}" arg2="GCC"/>
|
|
|
|
|
<then>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="PP" cmd="${PP}" workdir="${DEST_DIR_OUTPUT}/@{FILEPATH}" family="${PP_FAMILY}"
|
|
|
|
|
dpath="${PP_DPATH}" libpath="${PP_LIBPATH}" include="${PP_INCLUDEPATH}">
|
|
|
|
|
<argument value="${VFRPP_FLAGS} -o ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i"/>
|
|
|
|
|
<!-- Output file of the preprocess -->
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</then>
|
2007-02-09 03:49:55 +01:00
|
|
|
|
<else>
|
2006-11-21 09:58:29 +01:00
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="PP" cmd="${PP}" workdir="${DEST_DIR_OUTPUT}/@{FILEPATH}" family="${PP_FAMILY}"
|
|
|
|
|
dpath="${PP_DPATH}" libpath="${PP_LIBPATH}" include="${PP_INCLUDEPATH}">
|
2007-02-09 03:49:55 +01:00
|
|
|
|
<argument value="${VFRPP_FLAGS}"/>
|
2006-11-21 09:58:29 +01:00
|
|
|
|
<!-- Output file of the preprocess -->
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
2007-02-09 03:49:55 +01:00
|
|
|
|
</else>
|
2006-11-21 09:58:29 +01:00
|
|
|
|
</if>
|
|
|
|
|
|
2006-11-16 11:19:07 +01:00
|
|
|
|
<vfrcompile createIfrBinFile="on" createListFile="on" outPutDir="${DEST_DIR_DEBUG}/@{FILEPATH}" vfrFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.i">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
</vfrcompile>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<cc userdefine="on">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<command type="CC" cmd="${CC}" workdir="${DEST_DIR_OUTPUT}"
|
2006-09-27 07:53:35 +02:00
|
|
|
|
includepathDelimiter="-I" family="${CC_FAMILY}" dpath="${CC_DPATH}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
libpath="${CC_LIBPATH}" include="${CC_INCLUDEPATH}"
|
2006-06-30 19:56:20 +02:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" >
|
2006-10-08 18:07:32 +02:00
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<EXTRA.INC/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<EXTRA.ARG/>
|
2006-07-13 07:21:14 +02:00
|
|
|
|
<fileset casesensitive="on" file="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.c"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<!-- Since fileset can't scan file start with ./, remove ./ in previous. -->
|
|
|
|
|
<if>
|
|
|
|
|
<equals arg1="@{FILEPATH}" arg2="." />
|
|
|
|
|
<then>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILENAME}.obj" />
|
|
|
|
|
</then>
|
|
|
|
|
<else>
|
|
|
|
|
<var name="OBJECTS" value="${OBJECTS} @{FILEPATH}/@{FILENAME}.obj" />
|
|
|
|
|
</else>
|
|
|
|
|
</if>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-10-18 04:38:01 +02:00
|
|
|
|
<!--
|
|
|
|
|
Build the real mode ASM file
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_RealAsm">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="asm"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2007-01-10 04:00:37 +01:00
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.cat"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<exec dir="${DEST_DIR_OUTPUT}" executable="${ASM}" failonerror="true">
|
|
|
|
|
<arg line="/nologo /omf ${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT} /Bl${ASMLINK} ${ASMLINK_FLAGS}"/>
|
|
|
|
|
</exec>
|
|
|
|
|
<concat destfile="${DEST_DIR_OUTPUT}/@{FILENAME}.cat" binary="yes">
|
|
|
|
|
<filelist dir="${MODULE_DIR}" files="Blank2.pad"/>
|
|
|
|
|
<filelist dir="${DEST_DIR_OUTPUT}" files="@{FILENAME}.com"/>
|
|
|
|
|
</concat>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-10-18 04:38:01 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
2006-10-31 02:58:39 +01:00
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Build Asl table file
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_ASL">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="asl"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}"/>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="PP" cmd="${PP}" workdir="${DEST_DIR_OUTPUT}" family="${PP_FAMILY}"
|
|
|
|
|
dpath="${PP_DPATH}" libpath="${PP_LIBPATH}" include="${PP_INCLUDEPATH}">
|
|
|
|
|
<argument value="${APP_FLAGS}"/>
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
|
|
|
|
<exec dir="${DEST_DIR_OUTPUT}" executable="${ASL}" failonerror="true" outputproperty="ASL_OUTPUT">
|
|
|
|
|
<arg line="${DEST_DIR_OUTPUT}/@{FILENAME}.i"/>
|
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
|
|
<if>
|
|
|
|
|
<or>
|
|
|
|
|
<contains string="${ASL_OUTPUT}" substring="Supports ACPI Specification Revision 2.0"/>
|
|
|
|
|
<contains string="${ASL_OUTPUT}" substring="Supports ACPI Specification Revision 1.0"/>
|
|
|
|
|
</or>
|
|
|
|
|
<then>
|
|
|
|
|
<fail message="Current Asl tool not support Acpi Spec 3.0. Pls update your Asl compiler."/>
|
|
|
|
|
</then>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<EFI_SECTION_RAW FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="aml"/>
|
|
|
|
|
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Build Asl table c file
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_CCASL">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="c"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}"/>
|
|
|
|
|
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="CC" cmd="${CC}" workdir="${DEST_DIR_OUTPUT}" family="${CC_FAMILY}"
|
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILENAME}.obj" dpath="${CC_DPATH}"
|
|
|
|
|
libpath="${CC_LIBPATH}" include="${CC_INCLUDEPATH}">
|
|
|
|
|
<EXTRA.INC/>
|
|
|
|
|
<argument value="${CC_FLAGS}"/>
|
|
|
|
|
<EXTRA.ARG/>
|
|
|
|
|
<fileset casesensitive="on" file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
|
|
|
|
<cc userdefine="on">
|
|
|
|
|
<command type="DLINK" cmd="${DLINK}" family="${DLINK_FAMILY}"
|
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILENAME}.exe" dpath="${DLINK_DPATH}" >
|
|
|
|
|
<argument value="${SLINK_FLAGS}"/>
|
|
|
|
|
<fileset casesensitive="on" file="${DEST_DIR_OUTPUT}/@{FILENAME}.obj"/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
|
|
|
|
|
|
|
|
|
<genacpitable inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.exe" outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.acpi" />
|
|
|
|
|
|
|
|
|
|
<EFI_SECTION_RAW FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="acpi"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
2007-01-25 11:25:16 +01:00
|
|
|
|
<!--
|
|
|
|
|
Build ACPI Bin File
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_ACPIBIN">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="bin"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${DEST_DIR_OUTPUT}"/>
|
2006-10-31 02:58:39 +01:00
|
|
|
|
|
2007-01-25 11:25:16 +01:00
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file name="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}" tofile="${DEST_DIR_OUTPUT}/@{FILENAME}.acpi" />
|
|
|
|
|
|
|
|
|
|
<exec executable="attrib">
|
|
|
|
|
<arg line="-r ${DEST_DIR_OUTPUT}/@{FILENAME}.acpi"/>
|
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
|
|
<EFI_SECTION_RAW FILEPATH="." FILENAME="@{FILENAME}" FILEEXT="acpi"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-07-12 03:59:43 +02:00
|
|
|
|
<!--
|
2007-01-15 02:59:23 +01:00
|
|
|
|
DUMMY - for skipping the source file which should not be built
|
2006-07-12 03:59:43 +02:00
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_DUMMY">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-11-06 06:52:10 +01:00
|
|
|
|
<!--echo message="Ignoring ${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}" level="info" /-->
|
2006-07-12 03:59:43 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<!--
|
2007-03-08 02:44:17 +01:00
|
|
|
|
Generate efi file
|
2006-04-22 00:54:32 +02:00
|
|
|
|
-->
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<macrodef name="GenEfi">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<attribute name="FILEEXT" default="efi"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<element name="LIB.ARG" optional="yes"/>
|
|
|
|
|
<element name="LINK.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<var name="FILE_BASENAME" value="@{FILENAME}" />
|
|
|
|
|
<var name="FILE_PATH" value="@{FILEPATH}" />
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file list="${LIBS}"/>
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<file name="${DEST_DIR_DEBUG}/@{FILENAME}.efi"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<!-- Generate a temporary lib file for object files -->
|
2006-06-01 16:46:11 +02:00
|
|
|
|
<cc userdefine="on">
|
2006-09-27 07:53:35 +02:00
|
|
|
|
<command type="SLINK" cmd="${SLINK}" family="${SLINK_FAMILY}" dpath="${SLINK_DPATH}"
|
2007-03-08 02:44:17 +01:00
|
|
|
|
outputFile="${DEST_DIR_OUTPUT}/@{FILENAME}Local.lib"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
libpath="${SLINKLIBPATH}" include="${SLINK_INCLUDEPATH}">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<argument value="${SLINK_FLAGS}"/>
|
|
|
|
|
|
2006-08-14 11:44:00 +02:00
|
|
|
|
<fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
|
2006-06-01 16:46:11 +02:00
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
|
|
|
|
|
<!-- Link the temporary lib file with dependent libraries -->
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<cc userdefine="on">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<command type="DLINK" cmd="${DLINK}" family="${DLINK_FAMILY}"
|
2007-03-08 02:44:17 +01:00
|
|
|
|
outputFile="${DEST_DIR_DEBUG}/@{FILENAME}.dll" dpath="${DLINK_DPATH}"
|
2006-10-16 12:32:01 +02:00
|
|
|
|
libpath="${DLINK_LIBPATH}" include="${DLINK_INCLUDEPATH}">
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<argument value="${DLINK_FLAGS}"/>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<libset libs="${DEST_DIR_OUTPUT}/@{FILENAME}Local.lib ${LIBS} ${DLINK_SPATH}"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<LINK.ARG/>
|
|
|
|
|
</command>
|
|
|
|
|
</cc>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
|
|
|
|
|
<!-- Convert the dll file to efi file -->
|
|
|
|
|
<fwimage componentType="${MODULE_TYPE}" outImage="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"
|
|
|
|
|
peImage="${DEST_DIR_DEBUG}/@{FILENAME}.dll" time="0"/>
|
|
|
|
|
|
|
|
|
|
<!-- Copy the efi file to BIN and OUTPUT directory -->
|
|
|
|
|
<copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${BIN_DIR}/@{FILENAME}.efi" />
|
|
|
|
|
<copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${DEST_DIR_DEBUG}/@{FILENAME}.efi" />
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
2007-03-08 02:44:17 +01:00
|
|
|
|
Binary
|
2006-04-22 00:54:32 +02:00
|
|
|
|
-->
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<macrodef name="Build_Binary">
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<attribute name="FILEEXT" default="bin"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<sequential>
|
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.bin"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Microcode
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_MICROCODE">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="TXT"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${TARGET_DIR}/Microcode"/>
|
|
|
|
|
<flashmap MCIFile="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}" MCOFILE="${TARGET_DIR}/Microcode/@{FILENAME}.bin"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Graphics (bmp, ...)
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="Build_BMP">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="bmp"/>
|
|
|
|
|
|
|
|
|
|
<element name="EXTRA.INC" optional="yes"/>
|
|
|
|
|
<element name="EXTRA.ARG" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.bin"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
build EFI file
|
|
|
|
|
-->
|
|
|
|
|
<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>
|
|
|
|
|
<mkdir dir="${MODULE_DIR}/@{FILEPATH}" />
|
|
|
|
|
<copy file="${MODULE_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
tofile="${DEST_DIR_OUTPUT}/${BASE_NAME}.efi"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Build macro for Apriori
|
2006-04-22 00:54:32 +02:00
|
|
|
|
-->
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<macrodef name="Build_Apriori">
|
|
|
|
|
<attribute name="FILEPATH" default="."/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="apr"/>
|
|
|
|
|
<attribute name="GUID"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<mkdir dir="${FV_DIR}/Apriori" />
|
|
|
|
|
<gensection inputfile="${FV_DIR}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
|
|
|
|
outputfile="${FV_DIR}/Apriori/@{FILENAME}.sec"
|
|
|
|
|
sectiontype="EFI_SECTION_RAW"/>
|
|
|
|
|
|
|
|
|
|
<genffsfile BaseName="@{FILENAME}" ffsATTRIBCHECKSUM="TRUE" ffsFILETYPE="EFI_FV_FILETYPE_FREEFORM"
|
|
|
|
|
fileGuid="@{GUID}" moduleType="BASE" outputDir="${FV_DIR}">
|
|
|
|
|
<sectFile fileName="${FV_DIR}/Apriori/@{FILENAME}.sec"/>
|
|
|
|
|
</genffsfile>
|
|
|
|
|
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
<!--############################################################################
|
|
|
|
|
Build Sections
|
|
|
|
|
#############################################################################-->
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<!--
|
2007-03-08 02:44:17 +01:00
|
|
|
|
EFI_SECTION_TE
|
2006-04-22 00:54:32 +02:00
|
|
|
|
-->
|
2006-07-04 05:09:01 +02:00
|
|
|
|
|
|
|
|
|
<macrodef name="EFI_SECTION_TE">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<attribute name="FILEEXT" default="efi" />
|
2006-07-04 05:09:01 +02:00
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.tes"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
|
2006-07-04 05:09:01 +02:00
|
|
|
|
<genteimage Dump="false" Verbose="false" OutputDir="" OutputFile="${DEST_DIR_OUTPUT}/@{FILENAME}.te" InputFile="${DEST_DIR_OUTPUT}/@{FILENAME}.efi"/>
|
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.te"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.tes"
|
|
|
|
|
sectiontype="EFI_SECTION_TE"/>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
|
2006-07-04 05:09:01 +02:00
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_PE32
|
|
|
|
|
-->
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<macrodef name="EFI_SECTION_PE32">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<attribute name="FILEEXT" default="efi"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
|
|
|
|
|
<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}.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>
|
2007-03-08 02:44:17 +01:00
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<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"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<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-06-30 19:56:20 +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-06-30 19:56:20 +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_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-06-30 19:56:20 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILENAME}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.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-06-30 19:56:20 +02:00
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.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-06-30 19:56:20 +02:00
|
|
|
|
<available type="file" file="${DEST_DIR_OUTPUT}/@{FILENAME}.depex"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<then>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.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-06-30 19:56:20 +02:00
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.depex"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.dpx"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_PEI_DEPEX"/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</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_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-10-31 02:58:39 +01:00
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{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}.sec"/>
|
2006-04-22 00:54:32 +02:00
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<PRE.PROCESS/>
|
2006-10-31 02:58:39 +01:00
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.@{FILEEXT}"
|
2006-06-30 19:56:20 +02:00
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"
|
2006-04-22 00:54:32 +02:00
|
|
|
|
sectiontype="EFI_SECTION_RAW"/>
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-10-18 04:38:01 +02:00
|
|
|
|
<!--
|
|
|
|
|
EFI_SECTION_RAW_SEC
|
|
|
|
|
-->
|
|
|
|
|
<macrodef name="EFI_SECTION_RAW_SEC">
|
|
|
|
|
<attribute name="FILEPATH"/>
|
|
|
|
|
<attribute name="FILENAME"/>
|
|
|
|
|
<attribute name="FILEEXT" default="cat"/>
|
|
|
|
|
|
|
|
|
|
<element name="PRE.PROCESS" optional="yes"/>
|
|
|
|
|
<element name="POST.PROCESS" optional="yes"/>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<OnDependency>
|
|
|
|
|
<sourcefiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/ResetVec.@{FILEEXT}"/>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.te"/>
|
|
|
|
|
</sourcefiles>
|
|
|
|
|
<targetfiles>
|
|
|
|
|
<file name="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"/>
|
|
|
|
|
</targetfiles>
|
|
|
|
|
|
|
|
|
|
<sequential>
|
|
|
|
|
<PRE.PROCESS/>
|
|
|
|
|
<secfixup secexefile="${DEST_DIR_OUTPUT}/@{FILENAME}.te" resetvectorDatafile="${DEST_DIR_OUTPUT}/ResetVec.@{FILEEXT}"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.bin"/>
|
|
|
|
|
|
|
|
|
|
<gensection inputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.bin"
|
|
|
|
|
outputfile="${DEST_DIR_OUTPUT}/@{FILENAME}.sec"
|
|
|
|
|
sectiontype="EFI_SECTION_RAW"/>
|
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<!--
|
|
|
|
|
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-06-30 19:56:20 +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-06-30 19:56:20 +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"/>
|
2006-06-30 19:56:20 +02:00
|
|
|
|
|
2006-04-22 00:54:32 +02:00
|
|
|
|
<POST.PROCESS/>
|
|
|
|
|
</sequential>
|
|
|
|
|
</OnDependency>
|
|
|
|
|
</sequential>
|
|
|
|
|
</macrodef>
|
|
|
|
|
|
|
|
|
|
</project>
|