1 # Copyright (C) 2008 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 # 16 # Common definitions for all variants. 17 # 18 19 LOCAL_PATH:= $(call my-dir) 20 21 # Derive a string like 'icudt 48l.dat' from a path like 22 # 'external/icu/icu4c/source/stubdata/icudt 48l.dat' 23 stubdata_path:= $(call my-dir) 24 dat_file := $(notdir $(wildcard $(stubdata_path)/*.dat)) 25 26 include $(CLEAR_VARS) 27 LOCAL_MODULE := icu-data_host_runtime_apex 28 LOCAL_MODULE_CLASS := ETC 29 LOCAL_MODULE_PATH := $(HOST_OUT)/com.android.runtime/etc/icu 30 LOCAL_MODULE_STEM := $(dat_file) 31 LOCAL_SRC_FILES := $(dat_file) 32 LOCAL_IS_HOST_MODULE := true 33 include $(BUILD_PREBUILT) 34 35 # Module definition producing ICU .dat prebuilt files in 36 # /system/etc/icu for standalone ART testing purposes. This is a 37 # temporary change needed until the ART Buildbot and Golem both fully 38 # support the Runtime APEX (see b/121117762). This module should never 39 # be shipped by default (i.e. should never be part of 40 # `PRODUCT_PACKAGE`.) 41 # 42 # TODO(b/121117762): Remove this module definition when the ART 43 # Buildbot and Golem have full support for the Runtime APEX. 44 include $(CLEAR_VARS) 45 LOCAL_MODULE := icu-data-art-test 46 LOCAL_MODULE_CLASS := ETC 47 LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/icu 48 LOCAL_MODULE_STEM := $(dat_file) 49 LOCAL_SRC_FILES := $(dat_file) 50 include $(BUILD_PREBUILT) 51