blob: 09657147005865efc50ba8e2a524b78e91ab6174 [file] [log] [blame]
Takeshi Abeb2bd33e2011-08-10 02:12:48 +09001# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +01002#*************************************************************************
3#
4# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5#
6# Copyright 2000, 2010 Oracle and/or its affiliates.
7#
8# OpenOffice.org - a multi-platform office productivity suite
9#
10# This file is part of OpenOffice.org.
11#
12# OpenOffice.org is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Lesser General Public License version 3
14# only, as published by the Free Software Foundation.
15#
16# OpenOffice.org is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU Lesser General Public License version 3 for more details
20# (a copy is included in the LICENSE file that accompanied this code).
21#
22# You should have received a copy of the GNU Lesser General Public License
23# version 3 along with OpenOffice.org. If not, see
24# <http://www.openoffice.org/license.html>
25# for a copy of the LGPLv3 License.
26#
27#*************************************************************************
28
29# fixes for all the libraries that are named with too much creativity and do
30# not follow any of the established nameschemes
31
Francois Tigeotfaae7932011-03-21 23:21:20 +010032# Make has no support for 'or' clauses in conditionals,
33# we use a filter expression instead.
Matúš Kukan43617912011-08-26 16:25:45 +020034ifneq (,$(filter SOLARIS GCC,$(OS) $(COM)))
Matúš Kukan051fdda2011-12-17 14:55:08 +010035gb_Library_FILENAMES := $(patsubst affine_uno:libaffine_uno%,affine_uno:libaffine_uno_uno%,$(gb_Library_FILENAMES))
Hans-Joachim Lankenaudb66b652011-01-28 12:49:53 +010036gb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES))
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +010037gb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES))
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +010038gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
Matúš Kukan051fdda2011-12-17 14:55:08 +010039gb_Library_FILENAMES := $(patsubst log_uno:liblog_uno%,log_uno:liblog_uno_uno%,$(gb_Library_FILENAMES))
40gb_Library_FILENAMES := $(patsubst purpenvhelper:libpurpen%,purpenvhelper:libuno_purpen%,$(gb_Library_FILENAMES))
Matúš Kukana09b25f2012-05-06 11:23:55 +020041gb_Library_FILENAMES := $(patsubst reg:libuno_reg%,reg:libreg%,$(gb_Library_FILENAMES))
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +010042gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
Matúš Kukana09b25f2012-05-06 11:23:55 +020043gb_Library_FILENAMES := $(patsubst store:libuno_store%,store:libstore%,$(gb_Library_FILENAMES))
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +010044gb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES))
David Ostrovskye16ac692012-05-27 22:50:41 +020045
46ifeq ($(OS),MACOSX)
Stephan Bergmannfa200682012-06-15 16:46:44 +020047# libpyuno_wrapper.dylib => pyuno.so
48gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.dylib,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES))
David Ostrovskye16ac692012-05-27 22:50:41 +020049else
50# libpyuno_wrapper.so => pyuno.so
51gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.so,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES))
52endif
53
Tor Lillqvist31826312012-02-20 11:15:02 +020054ifneq ($(OS),ANDROID)
Caolán McNamara8d7e8a02012-04-13 11:13:19 +010055gb_Library_FILENAMES := $(patsubst unobootstrapprotector:libuno%,unobootstrapprotector:uno%,$(gb_Library_FILENAMES))
Matúš Kukand06a78c2012-02-10 00:16:55 +010056gb_Library_FILENAMES := $(patsubst unoexceptionprotector:libuno%,unoexceptionprotector:uno%,$(gb_Library_FILENAMES))
Tor Lillqvist31826312012-02-20 11:15:02 +020057endif
Matúš Kukan051fdda2011-12-17 14:55:08 +010058gb_Library_FILENAMES := $(patsubst unsafe_uno:libunsafe_uno%,unsafe_uno:libunsafe_uno_uno%,$(gb_Library_FILENAMES))
Bjoern Michaelsen902f9da2011-06-20 13:24:08 +020059endif
Mathias Bauer90485912011-03-16 10:26:30 +010060
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +010061ifeq ($(OS),WNT)
Matúš Kukanad4c6132011-12-19 10:13:24 +010062gb_Library_DLLFILENAMES := $(patsubst affine_uno:affine_uno%,affine_uno:affine_uno_uno%,$(gb_Library_DLLFILENAMES))
Matúš Kukan43617912011-08-26 16:25:45 +020063gb_Library_DLLFILENAMES := $(patsubst comphelper:comphelper%,comphelper:comphelp%,$(gb_Library_DLLFILENAMES))
64gb_Library_DLLFILENAMES := $(patsubst icuuc:icuuc%,icuuc:icuuc40%,$(gb_Library_DLLFILENAMES))
Matúš Kukanad4c6132011-12-19 10:13:24 +010065gb_Library_DLLFILENAMES := $(patsubst log_uno:log_uno%,log_uno:log_uno_uno%,$(gb_Library_DLLFILENAMES))
Matúš Kukan43617912011-08-26 16:25:45 +020066gb_Library_DLLFILENAMES := $(patsubst ucbhelper:ucbhelper%,ucbhelper:ucbhelper4%,$(gb_Library_DLLFILENAMES))
Matúš Kukanad4c6132011-12-19 10:13:24 +010067gb_Library_DLLFILENAMES := $(patsubst unsafe_uno:unsafe_uno%,unsafe_uno:unsafe_uno_uno%,$(gb_Library_DLLFILENAMES))
Caolán McNamara3934efe2012-04-13 14:06:05 +010068gb_Library_DLLFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_DLLFILENAMES))
Peter Foley18bd1e72012-12-27 18:04:21 -050069gb_Library_DLLFILENAMES := $(patsubst rdf:rdf%,rdf:librdf%,$(gb_Library_DLLFILENAMES))
Mathias Bauer90485912011-03-16 10:26:30 +010070
David Ostrovskye16ac692012-05-27 22:50:41 +020071# libpyuno_wrapper.dll => pyuno.pyd
72gb_Library_DLLFILENAMES := $(patsubst pyuno:pyuno.dll,pyuno:pyuno.pyd,$(gb_Library_DLLFILENAMES))
73
tono087e9122011-01-05 22:55:15 +090074gb_Library_FILENAMES := $(patsubst sb:isb%,sb:basic%,$(gb_Library_FILENAMES))
75gb_Library_FILENAMES := $(patsubst sfx:isfx%,sfx:sfx%,$(gb_Library_FILENAMES))
76gb_Library_FILENAMES := $(patsubst svt:isvt%,svt:svtool%,$(gb_Library_FILENAMES))
77gb_Library_FILENAMES := $(patsubst tl:itl%,tl:itools%,$(gb_Library_FILENAMES))
78gb_Library_FILENAMES := $(patsubst vbahelper:ivbahelper%,vbahelper:vbahelper%,$(gb_Library_FILENAMES))
Peter Foley2548d632011-12-17 19:46:38 +010079gb_Library_FILENAMES := $(patsubst curl:icurl%,curl:libcurl%,$(gb_Library_FILENAMES))
80gb_Library_FILENAMES := $(patsubst npsoplugin:inpsoplugin%,npsoplugin:npsoplugin%,$(gb_Library_FILENAMES))
Matúš Kukan43617912011-08-26 16:25:45 +020081
Matúš Kukane6812db2012-09-09 14:15:44 +020082gb_StaticLibrary_FILENAMES := $(patsubst png:png%,png:libpng%,$(gb_StaticLibrary_FILENAMES))
Matúš Kukana52703c2012-09-25 09:17:18 +020083gb_StaticLibrary_FILENAMES := $(patsubst salcpprt:salcpprt%,salcpprt:cpprtl%,$(gb_StaticLibrary_FILENAMES))
Matúš Kukan43617912011-08-26 16:25:45 +020084
85ifeq ($(COM),GCC)
Daniel Rentz [dr]493b5942011-03-07 13:07:44 +010086gb_Library_FILENAMES := $(patsubst crypto:icrypto%,crypto:crypto%,$(gb_Library_FILENAMES))
Stephan Bergmannebc6b412012-09-10 15:00:51 +020087gb_Library_FILENAMES := $(patsubst exslt:iexslt%,exslt:libexslt$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
Matúš Kukan4258f022011-12-23 13:26:56 +010088gb_Library_FILENAMES := $(patsubst libexttextcat:liblibext%,libexttextcat:libilibext%,$(gb_Library_FILENAMES))
Matúš Kukan43617912011-08-26 16:25:45 +020089gb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
Daniel Rentz [dr]493b5942011-03-07 13:07:44 +010090gb_Library_FILENAMES := $(patsubst ssl:issl%,ssl:ssl%,$(gb_Library_FILENAMES))
tono087e9122011-01-05 22:55:15 +090091gb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
Michael Stahlcbc756f2011-02-14 14:19:23 +010092gb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
Caolán McNamara3934efe2012-04-13 14:06:05 +010093gb_Library_FILENAMES := $(patsubst z:iz%,z:zlib%,$(gb_Library_FILENAMES))
Michael Stahld78b18f2011-04-13 12:44:29 +000094
Tor Lillqvist1780e952011-06-20 23:52:40 +030095# Libraries not provided by mingw(-w64), available only in the Windows
96# SDK. So if these actually are liked with somewhere, we can't
97# cross-compile that module then using MinGW. That needs to be fixed
98# then, and we need to use these libraries through run-time lookup of
99# APIs. Or something.
Norbert Thiebaudddc28b82011-09-30 08:11:10 -0500100gb_Library_SDKLIBFILENAMES:=
tono087e9122011-01-05 22:55:15 +0900101
Tor Lillqvist1780e952011-06-20 23:52:40 +0300102gb_Library_DLLFILENAMES := $(filter-out $(foreach lib,$(gb_Library_SDKLIBFILENAMES),$(lib):%),$(gb_Library_DLLFILENAMES))
103gb_Library_DLLFILENAMES += $(foreach lib,$(gb_Library_SDKLIBFILENAMES),$(lib):$(WINDOWS_SDK_HOME)/lib/$(lib).lib)
tono087e9122011-01-05 22:55:15 +0900104
David Tardonb3387392011-04-18 12:40:45 +0200105gb_Library_DLLFILENAMES := $(patsubst crypto:crypto%,crypto:libeay32%,$(gb_Library_DLLFILENAMES))
David Tardonb3387392011-04-18 12:40:45 +0200106gb_Library_DLLFILENAMES := $(patsubst ssl:ssl%,ssl:ssleay32%,$(gb_Library_DLLFILENAMES))
tono087e9122011-01-05 22:55:15 +0900107
Matúš Kukan43617912011-08-26 16:25:45 +0200108else # $(COM) != GCC
Mathias Bauer90485912011-03-16 10:26:30 +0100109
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +0100110gb_Library_FILENAMES := $(patsubst comphelper:icomphelper%,comphelper:icomphelp%,$(gb_Library_FILENAMES))
Mathias Bauer368bae72011-01-20 19:32:26 +0100111gb_Library_FILENAMES := $(patsubst cppunit:icppunit%,cppunit:icppunit_dll%,$(gb_Library_FILENAMES))
Tor Lillqvistc77e4442011-08-18 12:08:58 +0300112gb_Library_FILENAMES := $(patsubst crypto:icrypto%,crypto:libeay32%,$(gb_Library_FILENAMES))
David Tardon373b55a2011-04-18 12:27:39 +0200113gb_Library_FILENAMES := $(patsubst crypto:libcrypto%,crypto:libcrypto_static%,$(gb_Library_FILENAMES))
Caolán McNamara375fc2d2011-09-19 09:56:07 +0100114gb_Library_FILENAMES := $(patsubst db47:idb47%,db47:libdb47%,$(gb_Library_FILENAMES))
Stephan Bergmannebc6b412012-09-10 15:00:51 +0200115gb_Library_FILENAMES := $(patsubst exslt:iexslt%,exslt:libexslt%,$(gb_Library_FILENAMES))
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +0100116gb_Library_FILENAMES := $(patsubst i18nisolang1:ii18nisolang1%,i18nisolang1:ii18nisolang%,$(gb_Library_FILENAMES))
Caolán McNamara79adf172011-08-05 08:59:58 +0100117gb_Library_FILENAMES := $(patsubst lpsolve55:ilpsolve55%,lpsolve55:lpsolve55%,$(gb_Library_FILENAMES))
Matúš Kukand0c301b2011-08-26 14:04:17 +0200118gb_Library_FILENAMES := $(patsubst package2:ipackage2%,package2:ipackage%,$(gb_Library_FILENAMES))
Tor Lillqvistc77e4442011-08-18 12:08:58 +0300119gb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf%,$(gb_Library_FILENAMES))
Tor Lillqvistc77e4442011-08-18 12:08:58 +0300120gb_Library_FILENAMES := $(patsubst ssl:issl%,ssl:ssleay32%,$(gb_Library_FILENAMES))
David Tardon373b55a2011-04-18 12:27:39 +0200121gb_Library_FILENAMES := $(patsubst ssl:libssl%,ssl:libssl_static%,$(gb_Library_FILENAMES))
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +0100122gb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2%,$(gb_Library_FILENAMES))
Caolán McNamara79a2a322011-08-23 09:29:33 +0100123gb_Library_FILENAMES := $(patsubst xmlsec1:ixmlsec1%,xmlsec1:libxmlsec%,$(gb_Library_FILENAMES))
124gb_Library_FILENAMES := $(patsubst xmlsec1-mscrypto:ixmlsec1-mscrypto%,xmlsec1-mscrypto:libxmlsec-mscrypto%,$(gb_Library_FILENAMES))
125gb_Library_FILENAMES := $(patsubst xmlsec1-nss:ixmlsec1-nss%,xmlsec1-nss:libxmlsec-nss%,$(gb_Library_FILENAMES))
Michael Stahlcbc756f2011-02-14 14:19:23 +0100126gb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt%,$(gb_Library_FILENAMES))
Caolán McNamara3934efe2012-04-13 14:06:05 +0100127gb_Library_FILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_FILENAMES))
Bjoern Michaelsen6f0d3f22011-06-18 14:12:16 +0200128
Mathias Bauer90485912011-03-16 10:26:30 +0100129
130# change the names of all import libraries that don't have an "i" prefix as in our standard naming schema
Michael Stahldc397aae2012-09-28 15:31:46 +0200131gb_Library_NOILIBFILENAMES := \
Matúš Kukanbf5380c2012-03-10 16:40:38 +0100132 icudt icuin icule icuuc \
Eike Rathke15b95b22012-08-06 19:23:09 +0200133 langtag \
Matúš Kukanbf5380c2012-03-10 16:40:38 +0100134 lcms2 \
Andras Timar06ec1c02012-11-11 18:24:14 +0100135 xpcom \
136 xpcom_core \
Caolán McNamaracebaf592011-08-16 13:32:51 +0100137 nspr4 \
138 nss3 \
Stephan Bergmann066cf162012-08-13 11:46:21 +0200139 smime3 \
Matúš Kukana9e130a2011-12-17 13:13:11 +0100140 uwinapi \
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +0100141
142gb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES))
143gb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT))
Mathias Bauer90485912011-03-16 10:26:30 +0100144
Matúš Kukan43617912011-08-26 16:25:45 +0200145endif # ifeq ($(COM),GCC)
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +0100146
Mathias Bauer90485912011-03-16 10:26:30 +0100147endif # ifeq ($(OS),WNT)
Bjoern Michaelsen56070c62010-11-13 09:41:56 +0100148
Tor Lillqvistc16bc822012-02-27 16:31:42 +0200149ifeq (,$(filter SCRIPTING,$(BUILD_TYPE)))
Tor Lillqvist5cf4a002012-01-27 22:30:27 +0200150
Tor Lillqvist5cf4a002012-01-27 22:30:27 +0200151gb_Library_FILENAMES := $(patsubst vbahelper:libvbahelper%,,$(gb_Library_FILENAMES))
152
153endif
154
Tor Lillqvistf9a5c4c2012-02-21 12:47:34 +0200155ifeq (,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
156gb_Library_FILENAMES := $(patsubst dbtools:libdbtools%,,$(gb_Library_FILENAMES))
157endif
158
Bjoern Michaelsen549d68a2010-11-11 00:30:49 +0100159# vim: set noet sw=4 ts=4: