diff options
author | Paul Duffin <paulduffin@google.com> | 2016-02-26 16:21:51 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2016-02-29 15:18:45 +0000 |
commit | 69ef1baa641465e7474f8646903b8f5fc3125534 (patch) | |
tree | f7cddd7ff77e45f2bc795feba8691a422339d810 /icu4j | |
parent | dfda36fc57967f7b7f0e5166ed5fd2d5fc47298c (diff) | |
download | icu-69ef1baa641465e7474f8646903b8f5fc3125534.tar.gz |
Add repackaged version of the ICU tests
Adds a new android-icu4j-tests target to build the repackaged
tests. The repackages tests were generated by running the
following script which was modified to repackage the tests in
addition to the source and sample.
tools/srcgen/generate_android_icu4j.sh
Bug: 22023363
(cherry picked from aefe4d1f8f1773ead1a52f7a5d2c9e0009353600)
Change-Id: I083baac898c587e4a6787e408b22f811010167eb
Diffstat (limited to 'icu4j')
-rw-r--r-- | icu4j/Android.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/icu4j/Android.mk b/icu4j/Android.mk index 03432d179..cf521fe9e 100644 --- a/icu4j/Android.mk +++ b/icu4j/Android.mk @@ -146,3 +146,24 @@ LOCAL_JARJAR_RULES := $(LOCAL_PATH)/liblayout-jarjar-rules.txt LOCAL_JACK_ENABLED := disabled LOCAL_MODULE := icu4j-icutzdata-jarjar include $(BUILD_STATIC_JAVA_LIBRARY) + +# build repackaged ICU tests +# +# Builds against core-libart and core-oj so that it can access all the +# repackaged android.icu classes and methods and not just the ones available +# through the Android API. +include $(CLEAR_VARS) + +android_icu4j_tests := ../android_icu4j/src/main/tests + +# Don't include this package in any target +LOCAL_MODULE_TAGS := tests +LOCAL_SRC_FILES := \ + $(call all-java-files-under,$(android_icu4j_tests)) +LOCAL_JAVA_RESOURCE_DIRS := $(android_icu4j_tests) +LOCAL_JAVA_LIBRARIES := \ + core-oj \ + core-libart +LOCAL_NO_STANDARD_LIBRARIES := true +LOCAL_MODULE := android-icu4j-tests +include $(BUILD_STATIC_JAVA_LIBRARY) |