diff options
author | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-14 09:44:00 +0000 |
---|---|---|
committer | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-08-14 09:44:00 +0000 |
commit | 32a47954e2fd96e038379df2c47ef863cb7458cd (patch) | |
tree | 08f8aae66c96eee174feab337184d6b23caf7fee | |
parent | 03af6beba5f15564ff10aa1766f224c2f25a530a (diff) | |
download | edk2-platforms-32a47954e2fd96e038379df2c47ef863cb7458cd.tar.xz |
Add judgement if filepath is . or not.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1254 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Conf/BuildMacro.xml | 85 |
1 files changed, 74 insertions, 11 deletions
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml index 41e2163fbf..59dc7c2469 100644 --- a/Tools/Conf/BuildMacro.xml +++ b/Tools/Conf/BuildMacro.xml @@ -71,7 +71,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </cc>
</sequential>
</OnDependency>
- <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" />
+ <!-- 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>
</sequential>
</macrodef>
@@ -120,7 +129,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </cc>
</sequential>
</OnDependency>
- <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" />
+ <!-- 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>
</sequential>
</macrodef>
@@ -265,7 +283,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </cc>
</sequential>
</OnDependency>
- <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" />
+ <!-- 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>
</sequential>
</macrodef>
@@ -307,7 +334,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </cc>
</sequential>
</OnDependency>
- <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" />
+ <!-- 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>
</sequential>
</macrodef>
@@ -364,7 +400,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </cc>
</sequential>
</OnDependency>
- <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" />
+ <!-- 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>
</sequential>
</macrodef>
@@ -412,7 +457,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <OnDependency>
<sourcefiles>
- <file list="${OBJECTS}" />
+ <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
</sourcefiles>
<targetfiles>
<file name="${BIN_DIR}/@{FILENAME}.lib"/>
@@ -424,7 +469,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. outputFile="${BIN_DIR}/@{FILENAME}.lib">
<argument value="${SLINK_FLAGS}"/>
- <argument value="${OBJECTS}"/>
+ <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
</command>
</cc>
</sequential>
@@ -541,7 +586,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </cc>
</sequential>
</OnDependency>
- <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}Strings.obj" />
+ <!-- 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>
</sequential>
</macrodef>
@@ -595,7 +649,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <delete file="${PLATFORM_DIR}/@{FILENAME}.i" />
</sequential>
</OnDependency>
- <var name="OBJECTS" value="${OBJECTS} ${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}.obj" />
+ <!-- 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>
</sequential>
</macrodef>
@@ -635,7 +698,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <OnDependency>
<sourcefiles>
<file list="${LIBS}"/>
- <file list="${OBJECTS}"/>
+ <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />
</sourcefiles>
<targetfiles>
<file name="${DEST_DIR_DEBUG}/@{FILEPATH}/@{FILENAME}.dll"/>
@@ -647,7 +710,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. outputFile="${DEST_DIR_OUTPUT}/@{FILEPATH}/@{FILENAME}Local.lib">
<argument value="${SLINK_FLAGS}"/>
- <argument value="${OBJECTS}"/>
+ <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}"/>
</command>
</cc>
<cc userdefine="on">
|