summaryrefslogtreecommitdiff
path: root/Tools/CCode
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-02 07:38:34 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-04-02 07:38:34 +0000
commite22f5aaab77319a0c824d4259d2c9c3e9eae5c47 (patch)
treeafd77065171a5ef5c5cfbe3504815a232320178b /Tools/CCode
parent18f95092d6bf694adf5ad9e7a1e8036d19ed3c8d (diff)
downloadedk2-platforms-e22f5aaab77319a0c824d4259d2c9c3e9eae5c47.tar.xz
Merged the fix of CompressDll.dll manifest issue when built by VS2005
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2521 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/CCode')
-rw-r--r--Tools/CCode/Source/CompressDll/build.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tools/CCode/Source/CompressDll/build.xml b/Tools/CCode/Source/CompressDll/build.xml
index 6f591b371b..1b0e281103 100644
--- a/Tools/CCode/Source/CompressDll/build.xml
+++ b/Tools/CCode/Source/CompressDll/build.xml
@@ -57,6 +57,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<linkerarg value="-mno-cygwin" if="cygwin"/>
<linkerarg value="--add-stdcall-alias" if="cygwin"/>
</cc>
+ <if>
+ <available file="${result}.manifest"/>
+ <then>
+ <exec executable="mt.exe">
+ <arg value="-manifest"/>
+ <arg value="${result}.manifest"/>
+ <arg value="-outputresource:${result};2"/>
+ </exec>
+ </then>
+ </if>
<copy file="${result}" tofile="${BIN_DIR}/CompressDll.dll"/>
<chmod file="${BIN_DIR}/CompressDll.dll" perm="ugo+x"/>
</target>