From 7c2d228701b0cb1b0f8a0eb8ff8a7c96eb3a31f6 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Mon, 6 Jun 2016 14:44:00 -0700 Subject: [PATCH] Use more prebuilt build-tools For acp, we've been using an old prebuilt in prebuilts/sdk, but it's not part of the SDK. Instead, we'll use a prebuilt in the build-tools repository. For ijar, we've been using the host libstdc++ to workaround the lack of libc++ on some unbundled branches. Instead, use a prebuilt that can use libc++. For ziptime, we've been disabling it on unbundled branches, due to the lack of libc++. Instead, use a prebuilt version of ziptime that can use the prebuilt libc++. Change-Id: If80f845ea06f76e3fe6765964e77c864eaf303d0 --- core/config.mk | 12 +++--------- core/definitions.mk | 2 -- tools/ijar/Android.bp | 16 ---------------- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/core/config.mk b/core/config.mk index ba9f0cd7a..b1798812c 100644 --- a/core/config.mk +++ b/core/config.mk @@ -459,7 +459,6 @@ BUILD_PLATFORM_ZIP := $(filter platform platform-java,$(MAKECMDGOALS)) prebuilt_sdk_tools := prebuilts/sdk/tools prebuilt_sdk_tools_bin := $(prebuilt_sdk_tools)/$(HOST_OS)/bin -ACP := $(HOST_OUT_EXECUTABLES)/acp AIDL := $(HOST_OUT_EXECUTABLES)/aidl AAPT := $(HOST_OUT_EXECUTABLES)/aapt ZIPALIGN := $(HOST_OUT_EXECUTABLES)/zipalign @@ -474,14 +473,16 @@ MAINDEXCLASSES := $(HOST_OUT_EXECUTABLES)/mainDexClasses # Always use prebuilts for ckati and makeparallel prebuilt_build_tools := prebuilts/build-tools prebuilt_build_tools_bin := $(prebuilt_build_tools)/$(HOST_PREBUILT_TAG)/bin +ACP := $(prebuilt_build_tools_bin)/acp CKATI := $(prebuilt_build_tools_bin)/ckati +IJAR := $(prebuilt_build_tools_bin)/ijar MAKEPARALLEL := $(prebuilt_build_tools_bin)/makeparallel +ZIPTIME := $(prebuilt_build_tools_bin)/ziptime USE_PREBUILT_SDK_TOOLS_IN_PLACE := true # Override the definitions above for unbundled and PDK builds ifneq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK))) -ACP := $(prebuilt_sdk_tools_bin)/acp AIDL := $(prebuilt_sdk_tools_bin)/aidl AAPT := $(prebuilt_sdk_tools_bin)/aapt ZIPALIGN := $(prebuilt_sdk_tools_bin)/zipalign @@ -584,13 +585,6 @@ FUTILITY := prebuilts/misc/$(BUILD_OS)-$(HOST_PREBUILT_ARCH)/futility/futility VBOOT_SIGNER := prebuilts/misc/scripts/vboot_signer/vboot_signer.sh FEC := $(HOST_OUT_EXECUTABLES)/fec -ifndef TARGET_BUILD_APPS -ZIPTIME := $(HOST_OUT_EXECUTABLES)/ziptime$(HOST_EXECUTABLE_SUFFIX) -endif - -# ijar converts a .jar file to a smaller .jar file which only has its -# interfaces. -IJAR := $(HOST_OUT_EXECUTABLES)/ijar$(BUILD_EXECUTABLE_SUFFIX) DEXDUMP := $(HOST_OUT_EXECUTABLES)/dexdump2$(BUILD_EXECUTABLE_SUFFIX) # relocation packer diff --git a/core/definitions.mk b/core/definitions.mk index 4fc21d5ac..1b647aa3c 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2450,11 +2450,9 @@ endef # Remove dynamic timestamps from packages # -ifndef TARGET_BUILD_APPS define remove-timestamps-from-package $(hide) $(ZIPTIME) $@ endef -endif # Uncompress shared libraries embedded in an apk. # diff --git a/tools/ijar/Android.bp b/tools/ijar/Android.bp index 6f3a23942..a244a2ddb 100644 --- a/tools/ijar/Android.bp +++ b/tools/ijar/Android.bp @@ -15,20 +15,4 @@ cc_binary_host { ], host_ldlibs: ["-lz"], name: "ijar", - // libc++ is not supported for TARGET_BUILD_APPS builds - stl: "libstdc++", -} - -cc_binary_host { - srcs: [ - "classfile.cc", - "ijar.cc", - "zip.cc", - ], - cflags: [ - "-Wall", - "-Werror", - ], - host_ldlibs: ["-lz"], - name: "ijar_libc++", }