OSDN Git Service

Add etc1tool to Windows SDK.
authorRaphael <raphael@google.com>
Tue, 12 Jan 2010 19:11:07 +0000 (11:11 -0800)
committerRaphael <raphael@google.com>
Tue, 12 Jan 2010 19:16:08 +0000 (11:16 -0800)
SDK BUG 2368918

This depends on Change I1b4f5e39 from build/core.

Change-Id: I8348514506742aa70cdee057e94069a67357a689

build/tools/make_windows_sdk.sh

index c443430..6847f73 100755 (executable)
@@ -86,14 +86,21 @@ function check() {
 
 function build() {
 
+    # IMPORTANT: For Cygwin to be able to build Android targets here,
+    # you will generally need to edit build/core/main.mk and add directories
+    # where Android.mk makefiles are to be found to the SDK_ONLY==true section.
+
     echo 
     echo "Building..."
     [ -n "$MAKE_OPT" ] && echo "Make options: $MAKE_OPT"
+
     . build/envsetup.sh
-    make -j 4 emulator || die "Build failed"
+
     # Disable parallel build: it generates "permission denied" issues when
     # multiple "ar.exe" are running in parallel.
-    make aapt adb aidl \
+    make \
+        aapt adb aidl \
+        etc1tool \
         prebuilt \
         dexdump dmtracedump \
         fastboot \
@@ -102,6 +109,9 @@ function build() {
         sdklauncher sqlite3 \
         zipalign \
         || die "Build failed"
+
+    # It's worth building the emulator with -j 4 so do it separately
+    make -j 4 emulator || die "Build failed"
 }
 
 function package() {
@@ -140,7 +150,7 @@ function package() {
     # Remove obsolete stuff from tools & platform
     TOOLS="$TEMP_SDK_DIR/tools"
     LIB="$TEMP_SDK_DIR/tools/lib"
-    rm -v "$TOOLS"/{adb,android,apkbuilder,ddms,dmtracedump,draw9patch,emulator}
+    rm -v "$TOOLS"/{adb,android,apkbuilder,ddms,dmtracedump,draw9patch,emulator,etc1tool}
     rm -v "$TOOLS"/{hierarchyviewer,hprof-conv,layoutopt,mksdcard,sqlite3,traceview,zipalign}
     rm -v "$LIB"/*/swt.jar
     rm -v "$PLATFORM_TOOLS"/{aapt,aidl,dx,dexdump}