forked from abstrakraft/android_build
-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge changes from topic 'build_improvements' into n7.1
* changes: Remove bootclasspath handling for Jack Remove static libraries from Jack classpath Use ASAN prebuilts if SANITIZE_HOST includes address Use more prebuilt build-tools Update prebuilt build tools path
- Loading branch information
Showing
7 changed files
with
46 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -727,12 +727,6 @@ define jack-lib-files | |
$(foreach lib,$(1),$(call _jack-lib-full-classes,$(lib),$(2))) | ||
endef | ||
|
||
# $(1): library name list | ||
# $(2): Non-empty if IS_HOST_MODULE | ||
define jack-lib-deps | ||
$(call jack-lib-files,$(1),$(2)) | ||
endef | ||
|
||
########################################################### | ||
## Run rot13 on a string | ||
## $(1): the string. Must be one line. | ||
|
@@ -2139,7 +2133,7 @@ $(call call-jack) \ | |
$(if $(PRIVATE_RMTYPEDEFS), \ | ||
-D jack.android.remove-typedef="true") \ | ||
$(addprefix --classpath ,$(strip \ | ||
$(call normalize-path-list,$(PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES) $(PRIVATE_ALL_JACK_LIBRARIES)))) \ | ||
$(call normalize-path-list,$(PRIVATE_JACK_SHARED_LIBRARIES)))) \ | ||
$(addprefix --import ,$(call reverse-list,$(PRIVATE_STATIC_JACK_LIBRARIES))) \ | ||
$(if $(PRIVATE_EXTRA_JAR_ARGS),--import-resource $@.res.tmp) \ | ||
-D jack.android.min-api-level=$(PRIVATE_JACK_MIN_SDK_VERSION) \ | ||
|
@@ -2184,7 +2178,7 @@ $(hide) if [ -s [email protected] ] ; then \ | |
$(strip $(PRIVATE_JACK_FLAGS)) \ | ||
$(strip $(PRIVATE_JACK_DEBUG_FLAGS)) \ | ||
$(addprefix --classpath ,$(strip \ | ||
$(call normalize-path-list,$(call reverse-list,$(PRIVATE_STATIC_JACK_LIBRARIES)) $(PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES) $(PRIVATE_ALL_JACK_LIBRARIES)))) \ | ||
$(call normalize-path-list,$(call reverse-list,$(PRIVATE_STATIC_JACK_LIBRARIES)) $(PRIVATE_JACK_SHARED_LIBRARIES)))) \ | ||
-D jack.import.resource.policy=keep-first \ | ||
-D jack.android.min-api-level=$(PRIVATE_JACK_MIN_SDK_VERSION) \ | ||
-D jack.import.type.policy=keep-first \ | ||
|
@@ -2314,7 +2308,7 @@ $(call call-jack) \ | |
$(if $(NO_OPTIMIZE_DX), \ | ||
-D jack.dex.optimize="false") \ | ||
$(addprefix --classpath ,$(strip \ | ||
$(call normalize-path-list,$(PRIVATE_BOOTCLASSPATH_JAVA_LIBRARIES) $(PRIVATE_ALL_JACK_LIBRARIES)))) \ | ||
$(call normalize-path-list,$(PRIVATE_JACK_SHARED_LIBRARIES)))) \ | ||
$(addprefix --import ,$(call reverse-list,$(PRIVATE_STATIC_JACK_LIBRARIES))) \ | ||
$(if $(PRIVATE_EXTRA_JAR_ARGS),--import-resource $@.res.tmp) \ | ||
-D jack.import.resource.policy=keep-first \ | ||
|
@@ -2505,11 +2499,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. | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2015 The Android Open Source Project | ||
// | ||
// The rest of files in this directory comes from | ||
// https://github.com/bazelbuild/bazel/tree/master/third_party/ijar | ||
|
||
cc_binary_host { | ||
srcs: [ | ||
"classfile.cc", | ||
"ijar.cc", | ||
"zip.cc", | ||
], | ||
cflags: [ | ||
"-Wall", | ||
"-Werror", | ||
], | ||
host_ldlibs: ["-lz"], | ||
name: "ijar", | ||
} |