Add ICU file for ART host gtests
Bug: 147817558
Test: check testcases directory after "m general-tests"
Change-Id: I46d7df70c749b0a510c77bbf7a36e20b0f792b7f
diff --git a/build/Android.gtest.mk b/build/Android.gtest.mk
index 90e0d44..a35462a 100644
--- a/build/Android.gtest.mk
+++ b/build/Android.gtest.mk
@@ -34,13 +34,15 @@
$(call intermediates-dir-for,SHARED_LIBRARIES,$(lib),HOST,,2ND)/$(lib).so:lib/$(lib)-host.so)
# Add apex directories for art, conscrypt and i18n.
+icu_data_file := $(firstword $(wildcard external/icu/icu4c/source/stubdata/icu*.dat))
my_files += $(foreach infix,_ _VDEX_,$(foreach suffix,$(HOST_ARCH) $(HOST_2ND_ARCH), \
$(DEXPREOPT_IMAGE$(infix)BUILT_INSTALLED_art_host_$(suffix))))
my_files += \
$(foreach jar,$(CORE_IMG_JARS),\
$(HOST_OUT_JAVA_LIBRARIES)/$(jar)-hostdex.jar:apex/com.android.art/javalib/$(jar).jar) \
$(HOST_OUT_JAVA_LIBRARIES)/conscrypt-hostdex.jar:apex/com.android.conscrypt/javalib/conscrypt.jar\
- $(HOST_OUT_JAVA_LIBRARIES)/core-icu4j-hostdex.jar:apex/com.android.i18n/javalib/core-icu4j.jar
+ $(HOST_OUT_JAVA_LIBRARIES)/core-icu4j-hostdex.jar:apex/com.android.i18n/javalib/core-icu4j.jar \
+ $(icu_data_file):com.android.i18n/etc/icu/$(notdir $(icu_data_file))
# Create dummy module that will copy all the data files into testcases directory.
# For now, this copies everything to "out/host/linux-x86/" subdirectory, since it