update credits
[LibreOffice.git] / icu / ExternalPackage_icu.mk
blob11ba2eb26a12e1c42226be6b923e29cbf6977abe
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
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/.
10 icu_VERSION := $(ICU_MAJOR).$(ICU_MINOR)$(if $(ICU_MICRO),.$(ICU_MICRO))
12 $(eval $(call gb_ExternalPackage_ExternalPackage,icu,icu))
14 $(eval $(call gb_ExternalPackage_use_external_project,icu,icu))
15 ifeq ($(OS),WNT)
16 ifeq ($(COM),GCC)
18 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicudata.dll.a,source/stubdata/icudt.lib))
19 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicuuc.dll.a,source/lib/icuuc.lib))
20 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicui18n.dll.a,source/lib/icuin.lib))
21 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicule.dll.a,source/lib/icule.lib))
22 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicutu.dll.a,source/lib/icutu.lib))
23 $(eval $(call gb_ExternalPackage_add_libraries_for_install,icu,bin,\
24 source/lib/icudt$(ICU_MAJOR).dll \
25 source/lib/icuuc$(ICU_MAJOR).dll \
26 source/lib/icuin$(ICU_MAJOR).dll \
27 source/lib/icule$(ICU_MAJOR).dll \
28 source/lib/icutu$(ICU_MAJOR).dll \
30 $(eval $(call gb_ExternalPackage_add_files,icu,bin,\
31 source/bin/genccode.exe \
32 source/bin/genbrk.exe \
33 source/bin/gencmn.exe \
36 else
37 $(eval $(call gb_ExternalPackage_add_files,icu,lib,\
38 source/lib/icudt$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
39 source/lib/icuuc$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
40 source/lib/icuin$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
41 source/lib/icule$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib \
42 source/lib/icutu$(if $(MSVC_USE_DEBUG_RUNTIME),d).lib\
44 $(eval $(call gb_ExternalPackage_add_libraries_for_install,icu,bin,\
45 source/lib/icudt$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
46 source/lib/icuuc$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
47 source/lib/icuin$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
48 source/lib/icule$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
49 source/lib/icutu$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(ICU_MAJOR).dll \
51 $(eval $(call gb_ExternalPackage_add_files,icu,bin,\
52 source/bin/genccode.exe \
53 source/bin/genbrk.exe \
54 source/bin/gencmn.exe \
56 endif
57 else # $(OS)
58 ifeq ($(DISABLE_DYNLOADING),TRUE)
59 $(eval $(call gb_ExternalPackage_add_files,icu,lib,\
60 source/lib/libicudata.a \
61 source/lib/libicuuc.a \
62 source/lib/libicui18n.a \
63 source/lib/libicule.a \
64 source/lib/libicutu.a \
66 else ifeq ($(OS),ANDROID)
67 $(eval $(call gb_ExternalPackage_add_libraries_for_install,icu,lib,\
68 source/lib/libicudatalo.so \
69 source/lib/libicuuclo.so \
70 source/lib/libicui18nlo.so \
71 source/lib/libiculelo.so \
72 source/lib/libicutulo.so \
74 else
75 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicudata$(gb_Library_DLLEXT).$(icu_VERSION),source/lib/libicudata$(gb_Library_DLLEXT).$(icu_VERSION)))
76 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicudata$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicudata$(gb_Library_DLLEXT).$(icu_VERSION)))
77 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicudata$(gb_Library_DLLEXT),source/lib/libicudata$(gb_Library_DLLEXT).$(icu_VERSION)))
78 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicuuc$(gb_Library_DLLEXT).$(icu_VERSION),source/lib/libicuuc$(gb_Library_DLLEXT).$(icu_VERSION)))
79 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicuuc$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicuuc$(gb_Library_DLLEXT).$(icu_VERSION)))
80 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicuuc$(gb_Library_DLLEXT),source/lib/libicuuc$(gb_Library_DLLEXT).$(icu_VERSION)))
81 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicui18n$(gb_Library_DLLEXT).$(icu_VERSION),source/lib/libicui18n$(gb_Library_DLLEXT).$(icu_VERSION)))
82 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicui18n$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicui18n$(gb_Library_DLLEXT).$(icu_VERSION)))
83 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicui18n$(gb_Library_DLLEXT),source/lib/libicui18n$(gb_Library_DLLEXT).$(icu_VERSION)))
84 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicule$(gb_Library_DLLEXT).$(icu_VERSION),source/lib/libicule$(gb_Library_DLLEXT).$(icu_VERSION)))
85 $(eval $(call gb_ExternalPackage_add_library_for_install,icu,lib/libicule$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicule$(gb_Library_DLLEXT).$(icu_VERSION)))
86 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicule$(gb_Library_DLLEXT),source/lib/libicule$(gb_Library_DLLEXT).$(icu_VERSION)))
87 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicutu$(gb_Library_DLLEXT).$(icu_VERSION),source/lib/libicutu$(gb_Library_DLLEXT).$(icu_VERSION)))
88 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicutu$(gb_Library_DLLEXT).$(ICU_MAJOR),source/lib/libicutu$(gb_Library_DLLEXT).$(icu_VERSION)))
89 $(eval $(call gb_ExternalPackage_add_file,icu,lib/libicutu$(gb_Library_DLLEXT),source/lib/libicutu$(gb_Library_DLLEXT).$(icu_VERSION)))
91 $(eval $(call gb_ExternalPackage_add_files,icu,bin,\
92 source/bin/genccode \
93 source/bin/genbrk \
94 source/bin/gencmn \
96 endif
97 endif
98 # vim: set noet sw=4 ts=4: