Merge "Use more prebuilt build-tools"
This commit is contained in:
commit
6c0c720389
3 changed files with 3 additions and 27 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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++",
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue