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
10# libxml2 is in URE and depends on icuuc*.dll on Windows; the i18nlangtag lib is
11# in URE and depends on the icuuc lib (which in turn depends on the icudata lib)
12# on all platforms:
13
14$(eval $(call gb_ExternalPackage_ExternalPackage,icu_ure,icu))
15
16$(eval $(call gb_ExternalPackage_use_external_project,icu_ure,icu))
17
18ifneq ($(DISABLE_DYNLOADING),TRUE)
19ifeq ($(OS),WNT)
20
21ifeq ($(COM),GCC)
22$(eval $(call gb_ExternalPackage_add_files,icu_ure,$(LIBO_URE_LIB_FOLDER),\
23	source/lib/icudt$(ICU_MAJOR).dll \
24	source/lib/icuuc$(ICU_MAJOR).dll \
25))
26else
27$(eval $(call gb_ExternalPackage_add_files,icu_ure,$(LIBO_URE_LIB_FOLDER),\
28	source/lib/icudt$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
29	source/lib/icuuc$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
30))
31endif # $(COM)
32
33else ifeq ($(OS),ANDROID)
34
35$(eval $(call gb_ExternalPackage_add_files,icu_ure,$(LIBO_URE_LIB_FOLDER),\
36	source/lib/libicudatalo.so \
37	source/lib/libicuuclo.so \
38))
39
40else # $(OS) != WNT/ANDROID
41
42$(eval $(call gb_ExternalPackage_add_file,icu_ure,$(LIBO_URE_LIB_FOLDER)/libicudata$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicudata$(gb_Library_DLLEXT).$(icu_VERSION)))
43$(eval $(call gb_ExternalPackage_add_file,icu_ure,$(LIBO_URE_LIB_FOLDER)/libicuuc$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicuuc$(gb_Library_DLLEXT).$(icu_VERSION)))
44
45endif # $(OS)
46endif # DISABLE_DYNLOADING
47
48# vim: set noet sw=4 ts=4:
49