From 3f2caae206b5d44e83d44b6753ac736171fab9cb Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Mon, 29 Sep 2014 18:06:39 -0700 Subject: [PATCH] Restore the ability to build RS-related binaries on Windows. Bug: 14416410 This change reverts two prior commits (listed below): Revert "Use renderscript prebuilts for windows." This reverts commit ebacf02e88f7ec2bf77b671d14e1d524a2786e1b. Revert "Temporarily disable rs/bcc in win_sdk" This reverts commit c63c2d31ba050d61594aaa317b6d32f5627ce6fc. --- build/sdk-windows-x86.atree | 40 ++++++++++++------------------------- build/tools/windows_sdk.mk | 17 +++------------- 2 files changed, 16 insertions(+), 41 deletions(-) diff --git a/build/sdk-windows-x86.atree b/build/sdk-windows-x86.atree index a04072397..7820b8674 100644 --- a/build/sdk-windows-x86.atree +++ b/build/sdk-windows-x86.atree @@ -72,39 +72,25 @@ dalvik/dx/etc/dx.bat build-tools/${PLATFORM_NAME}/dx.ba rm build-tools/${PLATFORM_NAME}/dexdump bin/dexdump.exe strip build-tools/${PLATFORM_NAME}/dexdump.exe -# delete linux rs/bcc files rm build-tools/${PLATFORM_NAME}/llvm-rs-cc +bin/llvm-rs-cc.exe strip build-tools/${PLATFORM_NAME}/llvm-rs-cc.exe + rm build-tools/${PLATFORM_NAME}/libLLVM.so +lib/libLLVM.dll strip build-tools/${PLATFORM_NAME}/libLLVM.dll + rm build-tools/${PLATFORM_NAME}/libclang.so +lib/libclang.dll strip build-tools/${PLATFORM_NAME}/libclang.dll + +#bcc not yet compiled on windows + rm build-tools/${PLATFORM_NAME}/libbcc.so +lib/libbcc.dll strip build-tools/${PLATFORM_NAME}/libbcc.dll + rm build-tools/${PLATFORM_NAME}/libbcinfo.so +lib/libbcinfo.dll strip build-tools/${PLATFORM_NAME}/libbcinfo.dll + rm build-tools/${PLATFORM_NAME}/bcc_compat - -###RM(2014-05-02) Temporarily disable rs/bcc for the Windows SDK as we fix cross-compilation issues -###bin/llvm-rs-cc.exe strip build-tools/${PLATFORM_NAME}/llvm-rs-cc.exe -### -###lib/libLLVM.dll strip build-tools/${PLATFORM_NAME}/libLLVM.dll -### -###lib/libclang.dll strip build-tools/${PLATFORM_NAME}/libclang.dll -### -####bcc not yet compiled on windows -### -###lib/libbcc.dll strip build-tools/${PLATFORM_NAME}/libbcc.dll -### -###lib/libbcinfo.dll strip build-tools/${PLATFORM_NAME}/libbcinfo.dll -### -###bin/bcc_compat.exe strip build-tools/${PLATFORM_NAME}/bcc_compat.exe - - -###XAV(2014-06-17) Temporarily get rs/bcc from a prebuilt. -prebuilts/misc/windows/renderscript/llvm-rs-cc.exe build-tools/${PLATFORM_NAME}/llvm-rs-cc.exe -prebuilts/misc/windows/renderscript/libLLVM.dll build-tools/${PLATFORM_NAME}/libLLVM.dll -prebuilts/misc/windows/renderscript/libclang.dll build-tools/${PLATFORM_NAME}/libclang.dll -prebuilts/misc/windows/renderscript/libbcc.dll build-tools/${PLATFORM_NAME}/libbcc.dll -prebuilts/misc/windows/renderscript/libbcinfo.dll build-tools/${PLATFORM_NAME}/libbcinfo.dll -prebuilts/misc/windows/renderscript/bcc_compat.exe build-tools/${PLATFORM_NAME}/bcc_compat.exe -### - +bin/bcc_compat.exe strip build-tools/${PLATFORM_NAME}/bcc_compat.exe rm build-tools/${PLATFORM_NAME}/arm-linux-androideabi-ld prebuilts/sdk/tools/windows/arm-linux-androideabi-ld.exe strip build-tools/${PLATFORM_NAME}/arm-linux-androideabi-ld.exe diff --git a/build/tools/windows_sdk.mk b/build/tools/windows_sdk.mk index c4fcfa2b1..d107d3712 100644 --- a/build/tools/windows_sdk.mk +++ b/build/tools/windows_sdk.mk @@ -32,28 +32,17 @@ include $(TOPDIR)sdk/build/windows_sdk_tools.mk # the topdir/development directory and are somehow platform-dependent. WIN_TARGETS := \ aapt adb aidl \ + bcc_compat \ etc1tool \ dexdump dmtracedump \ fastboot \ hprof-conv \ + llvm-rs-cc \ prebuilt \ sqlite3 \ zipalign \ $(WIN_SDK_TARGETS) -###RM(2014-05-02) full list of WIN_TARGS, including bcc/rs that are temporarily deactivated -###WIN_TARGETS := \ -### aapt adb aidl \ -### bcc_compat \ -### etc1tool \ -### dexdump dmtracedump \ -### fastboot \ -### hprof-conv \ -### llvm-rs-cc \ -### prebuilt \ -### sqlite3 \ -### zipalign \ -### $(WIN_SDK_TARGETS) -### + # This is the list of *Linux* build tools that we need # in order to be able to make the WIN_TARGETS. They are # build prerequisites.