1# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2#
3# This file is part of the LibreOffice project.
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#
9
10icu_VERSION := $(ICU_MAJOR).$(ICU_MINOR)$(if $(ICU_MICRO),.$(ICU_MICRO))
11
12$(eval $(call gb_ExternalPackage_ExternalPackage,icu,icu))
13
14$(eval $(call gb_ExternalPackage_use_external_project,icu,icu))
15
16ifneq ($(DISABLE_DYNLOADING),TRUE)
17ifeq ($(OS),WNT)
18
19ifeq ($(COM),GCC)
20$(eval $(call gb_ExternalPackage_add_files,icu,$(LIBO_LIB_FOLDER),\
21	source/lib/icuin$(ICU_MAJOR).dll \
22))
23else
24$(eval $(call gb_ExternalPackage_add_files,icu,$(LIBO_LIB_FOLDER),\
25	source/lib/icuin$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
26))
27endif # $(COM)
28
29else ifeq ($(OS),ANDROID)
30
31$(eval $(call gb_ExternalPackage_add_files,icu,$(LIBO_LIB_FOLDER),\
32	source/lib/libicui18nlo.so \
33))
34
35else # $(OS) != WNT/ANDROID
36
37$(eval $(call gb_ExternalPackage_add_file,icu,$(LIBO_LIB_FOLDER)/libicui18n$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicui18n$(gb_Library_DLLEXT).$(icu_VERSION)))
38
39endif # $(OS)
40endif # DISABLE_DYNLOADING
41
42# vim: set noet sw=4 ts=4:
43