Allow disabling turbine
m -j TURBINE_ENABLED=false will build without turbine. This is primarily useful for A/B comparisions of turbine builds, but will also be used to temporarily disable turbine for unbundled builds until we have turbine prebuilts. Bug: 64308460 Test: m -j TURBINE_ENABLED=false java Test: m -j java Change-Id: Ie48746c8bfc60c361be9634cb1805ca1c09aa1fe
This commit is contained in:
@@ -499,6 +499,8 @@ $(full_classes_compiled_jar): \
|
||||
| $(SOONG_JAVAC_WRAPPER)
|
||||
$(transform-java-to-classes.jar)
|
||||
|
||||
ifneq ($(TURBINE_ENABLED),false)
|
||||
|
||||
$(full_classes_turbine_jar): PRIVATE_JAVACFLAGS := $(LOCAL_JAVACFLAGS) $(annotation_processor_flags)
|
||||
$(full_classes_turbine_jar): PRIVATE_DONT_DELETE_JAR_META_INF := $(LOCAL_DONT_DELETE_JAR_META_INF)
|
||||
$(full_classes_turbine_jar): \
|
||||
@@ -527,6 +529,8 @@ endif
|
||||
|
||||
$(eval $(call copy-one-file,$(full_classes_header_jarjar),$(full_classes_header_jar)))
|
||||
|
||||
endif # TURBINE_ENABLED != false
|
||||
|
||||
javac-check : $(full_classes_compiled_jar)
|
||||
javac-check-$(LOCAL_MODULE) : $(full_classes_compiled_jar)
|
||||
|
||||
|
Reference in New Issue
Block a user