OSDN Git Service

mgwz.dll must be packaged next to tools/zipalign.exe in the Windows SDK.
authorRaphael <raphael@google.com>
Fri, 21 Aug 2009 04:12:01 +0000 (21:12 -0700)
committerRaphael <raphael@google.com>
Fri, 21 Aug 2009 04:12:01 +0000 (21:12 -0700)
BUG 2068812

build/tools/make_windows_sdk.sh

index 68e6c80..9b688e6 100755 (executable)
@@ -185,8 +185,9 @@ function package() {
 
     # Copy or move platform specific tools to the default platform.
     cp -v dalvik/dx/etc/dx.bat "$PLATFORM_TOOLS"/
-    # Note: mgwz.dll must be in same folder than aapt.exe
-    mv -v "$TOOLS"/{aapt.exe,aidl.exe,dexdump.exe,mgwz.dll} "$PLATFORM_TOOLS"/
+    mv -v "$TOOLS"/{aapt.exe,aidl.exe,dexdump.exe} "$PLATFORM_TOOLS"/
+    # Note: mgwz.dll must be both in SDK/tools for zipalign and in SDK/platform/XYZ/tools/ for aapt
+    cp -v "$TOOLS"/mgwz.dll "$PLATFORM_TOOLS"/
 
     # Fix EOL chars to make window users happy - fix all files at the top level only
     # as well as all batch files including those in platforms/<name>/tools/