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/.
9 # This file incorporates work covered by the following license notice:
11 # Licensed to the Apache Software Foundation (ASF) under one or more
12 # contributor license agreements. See the NOTICE file distributed
13 # with this work for additional information regarding copyright
14 # ownership. The ASF licenses this file to you under the Apache
15 # License, Version 2.0 (the "License"); you may not use this file
16 # except in compliance with the License. You may obtain a copy of
17 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 # fixes for all the libraries that are named with too much creativity and do
21 # not follow any of the established nameschemes
23 # Make has no support for 'or' clauses in conditionals,
24 # we use a filter expression instead.
25 ifneq (,$(filter SOLARIS GCC
,$(OS
) $(COM
)))
26 gb_Library_FILENAMES
:= $(patsubst affine_uno
:libaffine_uno
%,affine_uno
:libaffine_uno_uno
%,$(gb_Library_FILENAMES
))
27 gb_Library_FILENAMES
:= $(patsubst cppuhelper
:libcppuhelper
%,cppuhelper
:libuno_cppuhelper
%,$(gb_Library_FILENAMES
))
28 gb_Library_FILENAMES
:= $(patsubst log_uno
:liblog_uno
%,log_uno
:liblog_uno_uno
%,$(gb_Library_FILENAMES
))
29 gb_Library_FILENAMES
:= $(patsubst purpenvhelper
:libpurpen
%,purpenvhelper
:libuno_purpen
%,$(gb_Library_FILENAMES
))
30 gb_Library_FILENAMES
:= $(patsubst salhelper
:libsalhelper
%,salhelper
:libuno_salhelper
%,$(gb_Library_FILENAMES
))
33 # libpyuno_wrapper.dylib => pyuno.so
34 gb_Library_FILENAMES
:= $(patsubst pyuno_wrapper
:libpyuno_wrapper.dylib
,pyuno_wrapper
:pyuno.so
,$(gb_Library_FILENAMES
))
36 # libpyuno_wrapper.so => pyuno.so
37 gb_Library_FILENAMES
:= $(patsubst pyuno_wrapper
:libpyuno_wrapper.so
,pyuno_wrapper
:pyuno.so
,$(gb_Library_FILENAMES
))
41 gb_Library_FILENAMES
:= $(patsubst unobootstrapprotector
:libuno
%,unobootstrapprotector
:uno
%,$(gb_Library_FILENAMES
))
42 gb_Library_FILENAMES
:= $(patsubst unoexceptionprotector
:libuno
%,unoexceptionprotector
:uno
%,$(gb_Library_FILENAMES
))
44 gb_Library_FILENAMES
:= $(patsubst unsafe_uno
:libunsafe_uno
%,unsafe_uno
:libunsafe_uno_uno
%,$(gb_Library_FILENAMES
))
48 gb_Library_DLLFILENAMES
:= $(patsubst affine_uno
:affine_uno
%,affine_uno
:affine_uno_uno
%,$(gb_Library_DLLFILENAMES
))
49 gb_Library_DLLFILENAMES
:= $(patsubst icuuc
:icuuc
%,icuuc
:icuuc40
%,$(gb_Library_DLLFILENAMES
))
50 gb_Library_DLLFILENAMES
:= $(patsubst log_uno
:log_uno
%,log_uno
:log_uno_uno
%,$(gb_Library_DLLFILENAMES
))
51 gb_Library_DLLFILENAMES
:= $(patsubst unsafe_uno
:unsafe_uno
%,unsafe_uno
:unsafe_uno_uno
%,$(gb_Library_DLLFILENAMES
))
52 gb_Library_DLLFILENAMES
:= $(patsubst z
:z
%,z
:zlib
%,$(gb_Library_DLLFILENAMES
))
53 gb_Library_DLLFILENAMES
:= $(patsubst rdf
:rdf
%,rdf
:librdf
%,$(gb_Library_DLLFILENAMES
))
55 # libpyuno_wrapper.dll => pyuno.pyd
56 gb_Library_DLLFILENAMES
:= $(patsubst pyuno
:pyuno.dll
,pyuno
:pyuno
$(if
$(MSVC_USE_DEBUG_RUNTIME
),_d
).pyd
,$(gb_Library_DLLFILENAMES
))
58 gb_StaticLibrary_FILENAMES
:= $(patsubst png
:png
%,png
:libpng
%,$(gb_StaticLibrary_FILENAMES
))
59 gb_StaticLibrary_FILENAMES
:= $(patsubst salcpprt
:salcpprt
%,salcpprt
:cpprtl
%,$(gb_StaticLibrary_FILENAMES
))
62 gb_Library_FILENAMES
:= $(patsubst crypto
:icrypto
%,crypto
:crypto
%,$(gb_Library_FILENAMES
))
63 gb_Library_FILENAMES
:= $(patsubst exslt
:iexslt
%,exslt
:libexslt
$(gb_Library_IARCEXT
),$(gb_Library_FILENAMES
))
64 gb_Library_FILENAMES
:= $(patsubst libexttextcat
:liblibext
%,libexttextcat
:libilibext
%,$(gb_Library_FILENAMES
))
65 gb_Library_FILENAMES
:= $(patsubst rdf
:irdf
%,rdf
:librdf.dll
$(gb_Library_IARCEXT
),$(gb_Library_FILENAMES
))
66 gb_Library_FILENAMES
:= $(patsubst ssl
:issl
%,ssl
:ssl
%,$(gb_Library_FILENAMES
))
67 gb_Library_FILENAMES
:= $(patsubst xml2
:ixml2
%,xml2
:libxml2
$(gb_Library_IARCEXT
),$(gb_Library_FILENAMES
))
68 gb_Library_FILENAMES
:= $(patsubst xslt
:ixslt
%,xslt
:libxslt
$(gb_Library_IARCEXT
),$(gb_Library_FILENAMES
))
69 gb_Library_FILENAMES
:= $(patsubst z
:iz
%,z
:zlib
%,$(gb_Library_FILENAMES
))
71 # Libraries not provided by mingw(-w64), available only in the Windows
72 # SDK. So if these actually are liked with somewhere, we can't
73 # cross-compile that module then using MinGW. That needs to be fixed
74 # then, and we need to use these libraries through run-time lookup of
76 gb_Library_SDKLIBFILENAMES
:=
78 gb_Library_DLLFILENAMES
:= $(filter-out $(foreach lib
,$(gb_Library_SDKLIBFILENAMES
),$(lib
):%),$(gb_Library_DLLFILENAMES
))
79 gb_Library_DLLFILENAMES
+= $(foreach lib
,$(gb_Library_SDKLIBFILENAMES
),$(lib
):$(WINDOWS_SDK_HOME
)/lib
/$(lib
).lib
)
81 gb_Library_DLLFILENAMES
:= $(patsubst crypto
:crypto
%,crypto
:libeay32
%,$(gb_Library_DLLFILENAMES
))
82 gb_Library_DLLFILENAMES
:= $(patsubst ssl
:ssl
%,ssl
:ssleay32
%,$(gb_Library_DLLFILENAMES
))
86 gb_Library_FILENAMES
:= $(patsubst cppunit
:icppunit
%,cppunit
:icppunit_dll
%,$(gb_Library_FILENAMES
))
87 gb_Library_FILENAMES
:= $(patsubst crypto
:icrypto
%,crypto
:libeay32
%,$(gb_Library_FILENAMES
))
88 gb_Library_FILENAMES
:= $(patsubst crypto
:libcrypto
%,crypto
:libcrypto_static
%,$(gb_Library_FILENAMES
))
89 gb_Library_FILENAMES
:= $(patsubst ssl
:issl
%,ssl
:ssleay32
%,$(gb_Library_FILENAMES
))
90 gb_Library_FILENAMES
:= $(patsubst ssl
:libssl
%,ssl
:libssl_static
%,$(gb_Library_FILENAMES
))
91 gb_Library_FILENAMES
:= $(patsubst xmlsec1
:ixmlsec1
%,xmlsec1
:libxmlsec
%,$(gb_Library_FILENAMES
))
92 gb_Library_FILENAMES
:= $(patsubst xmlsec1-mscrypto
:ixmlsec1-mscrypto
%,xmlsec1-mscrypto
:libxmlsec-mscrypto
%,$(gb_Library_FILENAMES
))
93 gb_Library_FILENAMES
:= $(patsubst xmlsec1-nss
:ixmlsec1-nss
%,xmlsec1-nss
:libxmlsec-nss
%,$(gb_Library_FILENAMES
))
94 gb_Library_FILENAMES
:= $(patsubst z
:z
%,z
:zlib
%,$(gb_Library_FILENAMES
))
97 gb_Library_NOILIBFILENAMES_D
:= \
98 icudt icuin icule icuuc \
101 # change the names of all import libraries that don't have an "i" prefix as in our standard naming schema
102 gb_Library_NOILIBFILENAMES
:= \
111 # these have prefix "lib" instead of "i"
112 gb_Library_LIBLIBFILENAMES
:= \
119 gb_Library_FILENAMES
:= \
120 $(filter-out $(foreach lib
,$(gb_Library_NOILIBFILENAMES
),$(lib
):%) \
121 $(foreach lib
,$(gb_Library_NOILIBFILENAMES_D
),$(lib
):%) \
122 $(foreach lib
,$(gb_Library_LIBLIBFILENAMES
),$(lib
):%) \
123 ,$(gb_Library_FILENAMES
))
124 gb_Library_FILENAMES
+= \
125 $(foreach lib
,$(gb_Library_NOILIBFILENAMES
),$(lib
):$(lib
)$(gb_Library_PLAINEXT
)) \
126 $(foreach lib
,$(gb_Library_NOILIBFILENAMES_D
),$(lib
):$(lib
)$(if
$(MSVC_USE_DEBUG_RUNTIME
),d
)$(gb_Library_PLAINEXT
)) \
127 $(foreach lib
,$(gb_Library_LIBLIBFILENAMES
),$(lib
):lib
$(lib
)$(gb_Library_PLAINEXT
))
129 endif # ifeq ($(COM),GCC)
131 endif # ifeq ($(OS),WNT)
133 # vim: set noet sw=4 ts=4: