183658a7d90dd769ad597edd23cd38b8a1e3245ebJean-Baptiste Queru# Copyright (C) 2008 The Android Open Source Project
256914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru#
356914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# Licensed under the Apache License, Version 2.0 (the "License");
456914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# you may not use this file except in compliance with the License.
556914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# You may obtain a copy of the License at
656914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru#
756914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru#      http://www.apache.org/licenses/LICENSE-2.0
856914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru#
956914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# Unless required by applicable law or agreed to in writing, software
1056914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# distributed under the License is distributed on an "AS IS" BASIS,
1156914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1256914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# See the License for the specific language governing permissions and
1356914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru# limitations under the License.
1456914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru
1547a68d3fbd2591734eaac7a65620025528d430c2Dan Bornstein#
1647a68d3fbd2591734eaac7a65620025528d430c2Dan Bornstein# Common definitions for all variants.
1747a68d3fbd2591734eaac7a65620025528d430c2Dan Bornstein#
187c971b21cb09c84a9bd948bdf2918b727d46992cJean-Baptiste Queru
1947a68d3fbd2591734eaac7a65620025528d430c2Dan BornsteinLOCAL_PATH:= $(call my-dir)
202975cc0d79d44d6978e64c4094125ee5bef62a9bJean-Baptiste Queru
211e9af9f17f0d22602c65b6115eaef2076e4136b0Elliott Hughes# Derive a string like 'icudt 48l.dat' from a path like 'external/icu/icu4c/source/stubdata/icudt 48l.dat'
2291c17eff4c1181c0b947fc4ab9300b46fe38cc81Elliott Hughesstubdata_path:= $(call my-dir)
2391c17eff4c1181c0b947fc4ab9300b46fe38cc81Elliott Hughesdat_file := $(notdir $(wildcard $(stubdata_path)/*.dat))
2456914233dc2553f6517f1dd232f681546c190eb7Jean-Baptiste Queru
2541e405cbcb2416996b402e153ef11d374d776705Elliott Hughesinclude $(CLEAR_VARS)
2641e405cbcb2416996b402e153ef11d374d776705Elliott HughesLOCAL_MODULE := icu-data
279f63ddeb3088d9c76ab0b3fa696bd49bc96bf91aJean-Baptiste QueruLOCAL_MODULE_CLASS := ETC
289f63ddeb3088d9c76ab0b3fa696bd49bc96bf91aJean-Baptiste QueruLOCAL_MODULE_PATH := $(TARGET_OUT)/usr/icu
2991c17eff4c1181c0b947fc4ab9300b46fe38cc81Elliott HughesLOCAL_MODULE_STEM := $(dat_file)
3091c17eff4c1181c0b947fc4ab9300b46fe38cc81Elliott HughesLOCAL_SRC_FILES := $(dat_file)
319f63ddeb3088d9c76ab0b3fa696bd49bc96bf91aJean-Baptiste Queruinclude $(BUILD_PREBUILT)
325b5e4f5360b972d26349d856e7f07e506af3f887Jean-Baptiste Queru
3341e405cbcb2416996b402e153ef11d374d776705Elliott Hughesinclude $(CLEAR_VARS)
3414ca649682f17fcadbf3089112dd3123d53c4fbeDan WillemsenLOCAL_MODULE := icu-data
3541e405cbcb2416996b402e153ef11d374d776705Elliott HughesLOCAL_MODULE_CLASS := ETC
3641e405cbcb2416996b402e153ef11d374d776705Elliott HughesLOCAL_MODULE_PATH := $(HOST_OUT)/usr/icu
3791c17eff4c1181c0b947fc4ab9300b46fe38cc81Elliott HughesLOCAL_MODULE_STEM := $(dat_file)
3891c17eff4c1181c0b947fc4ab9300b46fe38cc81Elliott HughesLOCAL_SRC_FILES := $(dat_file)
3941e405cbcb2416996b402e153ef11d374d776705Elliott HughesLOCAL_IS_HOST_MODULE := true
4041e405cbcb2416996b402e153ef11d374d776705Elliott Hughesinclude $(BUILD_PREBUILT)
41