Copy dynamic config files to compatibility output.

Change-Id: I6a92f125738eebce86f20183516e6900fca9f0cc
This commit is contained in:
Stuart Scott 2015-08-18 14:31:08 -07:00
parent 60ccef50cd
commit 8fe4bc780b
1 changed files with 10 additions and 2 deletions

View File

@ -615,12 +615,20 @@ $(cts_testcase_config) : $(android_test_xml) | $(ACP)
$(copy-file-to-new-target) $(copy-file-to-new-target)
endif endif
cts_testcase_dynamic :=
dynamic_config_xml := $(wildcard $(LOCAL_PATH)/DynamicConfig.xml)
ifdef dynamic_config_xml
cts_testcase_dynamic := $(COMPATIBILITY_TESTCASES_OUT_$(LOCAL_COMPATIBILITY_SUITE))/$(LOCAL_MODULE).dynamic
$(cts_testcase_dynamic) : $(dynamic_config_xml) | $(ACP)
$(copy-file-to-new-target)
endif
COMPATIBILITY.$(LOCAL_COMPATIBILITY_SUITE).FILES := \ COMPATIBILITY.$(LOCAL_COMPATIBILITY_SUITE).FILES := \
$(COMPATIBILITY.$(LOCAL_COMPATIBILITY_SUITE).FILES) \ $(COMPATIBILITY.$(LOCAL_COMPATIBILITY_SUITE).FILES) \
$(cts_testcase_file) $(cts_testcase_config) $(cts_testcase_file) $(cts_testcase_config) $(cts_testcase_dynamic)
# Copy over the compatibility files when user runs mm/mmm. # Copy over the compatibility files when user runs mm/mmm.
$(my_register_name) : $(cts_testcase_file) $(cts_testcase_config) $(my_register_name) : $(cts_testcase_file) $(cts_testcase_config) $(cts_testcase_dynamic)
endif # LOCAL_COMPATIBILITY_SUITE endif # LOCAL_COMPATIBILITY_SUITE
########################################################### ###########################################################