Merge "Export DIST_DIR to soong on dist builds." am: 824958e880
am: 26f40c264d
Change-Id: I4c68f459eeee7b34d39d369b2c1e8339c3cb8506
This commit is contained in:
commit
8add887830
3 changed files with 5 additions and 3 deletions
|
@ -67,6 +67,9 @@ FORCE:
|
||||||
|
|
||||||
ORIGINAL_MAKECMDGOALS := $(MAKECMDGOALS)
|
ORIGINAL_MAKECMDGOALS := $(MAKECMDGOALS)
|
||||||
|
|
||||||
|
dist_goal := $(strip $(filter dist,$(MAKECMDGOALS)))
|
||||||
|
MAKECMDGOALS := $(strip $(filter-out dist,$(MAKECMDGOALS)))
|
||||||
|
|
||||||
# Tell python not to spam the source tree with .pyc files. This
|
# Tell python not to spam the source tree with .pyc files. This
|
||||||
# only has an effect on python 2.6 and above.
|
# only has an effect on python 2.6 and above.
|
||||||
export PYTHONDONTWRITEBYTECODE := 1
|
export PYTHONDONTWRITEBYTECODE := 1
|
||||||
|
|
|
@ -17,9 +17,6 @@
|
||||||
# When specifying "dist", the user has asked that we copy the important
|
# When specifying "dist", the user has asked that we copy the important
|
||||||
# files from this build into DIST_DIR.
|
# files from this build into DIST_DIR.
|
||||||
|
|
||||||
dist_goal := $(strip $(filter dist,$(MAKECMDGOALS)))
|
|
||||||
MAKECMDGOALS := $(strip $(filter-out dist,$(MAKECMDGOALS)))
|
|
||||||
|
|
||||||
ifdef dist_goal
|
ifdef dist_goal
|
||||||
|
|
||||||
# $(1): source file
|
# $(1): source file
|
||||||
|
|
|
@ -119,6 +119,8 @@ $(call add_json_bool, MinimizeJavaDebugInfo, $(filter true,$(PRODUCT
|
||||||
|
|
||||||
$(call add_json_bool, UseGoma, $(filter-out false,$(USE_GOMA)))
|
$(call add_json_bool, UseGoma, $(filter-out false,$(USE_GOMA)))
|
||||||
|
|
||||||
|
$(call add_json_str, DistDir, $(if $(dist_goal), $(DIST_DIR)))
|
||||||
|
|
||||||
_contents := $(subst $(comma)$(newline)__SV_END,$(newline)}$(newline),$(_contents)__SV_END)
|
_contents := $(subst $(comma)$(newline)__SV_END,$(newline)}$(newline),$(_contents)__SV_END)
|
||||||
|
|
||||||
$(file >$(SOONG_VARIABLES).tmp,$(_contents))
|
$(file >$(SOONG_VARIABLES).tmp,$(_contents))
|
||||||
|
|
Loading…
Reference in a new issue