Merged the fix of CompressDll.dll manifest issue when built by VS2005
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 2 Apr 2007 07:38:34 +0000 (07:38 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 2 Apr 2007 07:38:34 +0000 (07:38 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2521 6f19259b-4bc3-4df7-8a09-765794883524

Tools/CCode/Source/CompressDll/build.xml

index 6f591b3..1b0e281 100644 (file)
@@ -57,6 +57,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       <linkerarg value="-mno-cygwin" if="cygwin"/>\r
       <linkerarg value="--add-stdcall-alias" if="cygwin"/>\r
     </cc>\r
+    <if>\r
+      <available file="${result}.manifest"/>\r
+      <then>\r
+        <exec executable="mt.exe">\r
+          <arg value="-manifest"/>\r
+          <arg value="${result}.manifest"/>\r
+          <arg value="-outputresource:${result};2"/>\r
+        </exec>\r
+      </then>\r
+    </if>\r
     <copy file="${result}" tofile="${BIN_DIR}/CompressDll.dll"/>\r
     <chmod file="${BIN_DIR}/CompressDll.dll" perm="ugo+x"/>\r
   </target>\r