summaryrefslogtreecommitdiffstats
path: root/build/test_host_java_library.mk
diff options
context:
space:
mode:
authorStuart Scott <stuartscott@google.com>2015-02-04 10:37:07 -0800
committerStuart Scott <stuartscott@google.com>2015-02-12 10:04:26 -0800
commit0337dbf56e1a9a02cd3cb93ccedb8b051e179135 (patch)
treeffc608e6c980a6540e7f0e718ce19eabbb8ef689 /build/test_host_java_library.mk
parent6d986852192c987d9c2f4cb5a6770c65e077b33b (diff)
downloadplatform_cts-0337dbf56e1a9a02cd3cb93ccedb8b051e179135.tar.gz
platform_cts-0337dbf56e1a9a02cd3cb93ccedb8b051e179135.tar.bz2
platform_cts-0337dbf56e1a9a02cd3cb93ccedb8b051e179135.zip
Split the build of the CTS infrastructure from the tests.
This allows developers to build the test packages individually without needing to build the entire CTS release. Add new build target for support packages bug: 18945639 Change-Id: I60b79797b2d254b96aa98f88cfd5b19d195ea982
Diffstat (limited to 'build/test_host_java_library.mk')
-rw-r--r--build/test_host_java_library.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/build/test_host_java_library.mk b/build/test_host_java_library.mk
index 8ed5670114e..ecde1964bfa 100644
--- a/build/test_host_java_library.mk
+++ b/build/test_host_java_library.mk
@@ -19,12 +19,15 @@
include $(BUILD_HOST_JAVA_LIBRARY)
-cts_library_xml := $(CTS_TESTCASES_OUT)/$(LOCAL_MODULE).xml
+cts_library_jar := $(CTS_TESTCASES_OUT)/$(LOCAL_MODULE).jar
+$(cts_library_jar): $(LOCAL_BUILT_MODULE)
+ $(copy-file-to-target)
cts_src_dirs := $(LOCAL_PATH)/src
cts_src_dirs += $(sort $(dir $(LOCAL_GENERATED_SOURCES)))
cts_src_dirs := $(addprefix -s , $(cts_src_dirs))
+cts_library_xml := $(CTS_TESTCASES_OUT)/$(LOCAL_MODULE).xml
$(cts_library_xml): PRIVATE_SRC_DIRS := $(cts_src_dirs)
$(cts_library_xml): PRIVATE_TEST_PACKAGE := $(LOCAL_CTS_TEST_PACKAGE)
$(cts_library_xml): PRIVATE_LIBRARY := $(LOCAL_MODULE)
@@ -44,4 +47,4 @@ $(cts_library_xml): $(HOST_OUT_JAVA_LIBRARIES)/$(LOCAL_MODULE).jar $(CTS_EXPECTA
-o $@
# Have the module name depend on the cts files; so the cts files get generated when you run mm/mmm/mma/mmma.
-$(my_register_name) : $(cts_library_xml)
+$(my_register_name) : $(cts_library_jar) $(cts_library_xml)