development
Revision | c3035696a2f7d5d2ea9aa1c5ef376b0ee962d60c (tree) |
---|---|
Time | 2011-01-15 03:16:59 |
Author | Raphael <raphael@goog...> |
Commiter | Android (Google) Code Review |
Merge "Add llvm-rs-cc to the SDK (all platforms)" into honeycomb
@@ -41,6 +41,7 @@ frameworks/base/docs/docs-redirect.html documentation.html | ||
41 | 41 | bin/adb platform-tools/adb |
42 | 42 | bin/aapt platform-tools/aapt |
43 | 43 | bin/aidl platform-tools/aidl |
44 | +bin/llvm-rs-cc platform-tools/llvm-rs-cc | |
44 | 45 | # dx |
45 | 46 | bin/dx platform-tools/dx |
46 | 47 | bin/dexdump platform-tools/dexdump |
@@ -56,11 +56,13 @@ LIB=$TEMP_SDK_DIR/tools/lib | ||
56 | 56 | rm $V $TOOLS/{dmtracedump,etc1tool,hprof-conv,sqlite3,zipalign} |
57 | 57 | rm $V $TOOLS/proguard/bin/*.sh |
58 | 58 | rm $V $LIB/*/swt.jar |
59 | -rm $V $PLATFORM_TOOLS/{adb,aapt,aidl,dx,dexdump} | |
59 | +rm $V $PLATFORM_TOOLS/{adb,aapt,aidl,dx,dexdump,llvm-rs-cc} | |
60 | 60 | |
61 | 61 | # Copy all the new stuff in tools |
62 | 62 | # Note: some tools are first copied here and then moved in platforms/<name>/tools/ |
63 | 63 | cp $V $WIN_OUT_DIR/host/windows-x86/bin/*.{exe,dll} $TOOLS/ |
64 | +# Remove some tools we don't want to take in the SDK | |
65 | +rm $V -f $TOOLS/{fastboot.exe,rs-spec-gen.exe,tblgen.exe} | |
64 | 66 | mkdir -pv $LIB/x86 |
65 | 67 | cp $V ${TOPDIR}prebuilt/windows/swt/swt.jar $LIB/x86/ |
66 | 68 | mkdir -pv $LIB/x86_64 |
@@ -94,7 +96,9 @@ cp -r $V ${TOPDIR}external/sonivox/docs/JET_Creator_User_Manual_files $JETDOC/ | ||
94 | 96 | |
95 | 97 | # Copy or move platform specific tools to the default platform. |
96 | 98 | cp $V ${TOPDIR}dalvik/dx/etc/dx.bat $PLATFORM_TOOLS/ |
97 | -mv $V $TOOLS/{adb.exe,aapt.exe,aidl.exe,dexdump.exe} $TOOLS/Adb*.dll $PLATFORM_TOOLS/ | |
99 | +mv $V $TOOLS/{adb.exe,aapt.exe,aidl.exe,dexdump.exe} $PLATFORM_TOOLS/ | |
100 | +mv $V $TOOLS/llvm-rs-cc.exe $PLATFORM_TOOLS/ | |
101 | +mv $V $TOOLS/Adb*.dll $PLATFORM_TOOLS/ | |
98 | 102 | |
99 | 103 | # Fix EOL chars to make window users happy - fix all files at the top level |
100 | 104 | # as well as all batch files including those in platforms/<name>/tools/ |
@@ -24,17 +24,28 @@ endif | ||
24 | 24 | |
25 | 25 | include $(TOPDIR)sdk/build/windows_sdk_tools.mk |
26 | 26 | |
27 | +# This is the list of target that we want to generate as | |
28 | +# Windows executables. | |
27 | 29 | WIN_TARGETS := \ |
28 | 30 | aapt adb aidl \ |
29 | 31 | etc1tool \ |
30 | 32 | dexdump dmtracedump \ |
31 | 33 | fastboot \ |
32 | 34 | hprof-conv \ |
35 | + llvm-rs-cc \ | |
33 | 36 | prebuilt \ |
34 | 37 | sqlite3 \ |
35 | 38 | zipalign \ |
36 | 39 | $(WIN_SDK_TARGETS) |
37 | 40 | |
41 | +# This is the list of *Linux* build tools that we need | |
42 | +# in order to be able to make the WIN_TARGETS. They are | |
43 | +# build prerequisites. | |
44 | +WIN_BUILD_PREREQ := \ | |
45 | + acp \ | |
46 | + llvm-rs-cc | |
47 | + | |
48 | + | |
38 | 49 | # LINUX_SDK_NAME/DIR is set in build/core/Makefile |
39 | 50 | WIN_SDK_NAME := $(subst $(HOST_OS)-$(HOST_ARCH),windows,$(LINUX_SDK_NAME)) |
40 | 51 | WIN_SDK_DIR := $(subst $(HOST_OS)-$(HOST_ARCH),windows,$(LINUX_SDK_DIR)) |
@@ -63,7 +74,7 @@ endef | ||
63 | 74 | win_sdk: $(WIN_SDK_ZIP) |
64 | 75 | $(call winsdk-banner,Done) |
65 | 76 | |
66 | -winsdk-tools: acp | |
77 | +winsdk-tools: $(WIN_BUILD_PREREQ) | |
67 | 78 | $(call winsdk-banner,Build Windows Tools) |
68 | 79 | $(hide) USE_MINGW=1 $(MAKE) PRODUCT-$(TARGET_PRODUCT)-$(strip $(WIN_TARGETS)) |
69 | 80 |