2011-08-09 12:12:48 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2010-11-10 17:30:49 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
|
|
|
#
|
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
|
|
|
#
|
|
|
|
# This file is part of OpenOffice.org.
|
|
|
|
#
|
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
# fixes for all the libraries that are named with too much creativity and do
|
|
|
|
# not follow any of the established nameschemes
|
|
|
|
|
2011-03-21 17:21:20 -05:00
|
|
|
# Make has no support for 'or' clauses in conditionals,
|
|
|
|
# we use a filter expression instead.
|
2011-08-26 09:25:45 -05:00
|
|
|
ifneq (,$(filter SOLARIS GCC,$(OS) $(COM)))
|
2011-12-17 07:55:08 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst affine_uno:libaffine_uno%,affine_uno:libaffine_uno_uno%,$(gb_Library_FILENAMES))
|
2011-01-28 05:49:53 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst comphelper:libcomphelper%,comphelper:libcomphelp%,$(gb_Library_FILENAMES))
|
2010-11-10 17:30:49 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst jvmfwk:libuno_jvmfwk%,jvmfwk:libjvmfwk%,$(gb_Library_FILENAMES))
|
2011-12-17 07:55:08 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst log_uno:liblog_uno%,log_uno:liblog_uno_uno%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst purpenvhelper:libpurpen%,purpenvhelper:libuno_purpen%,$(gb_Library_FILENAMES))
|
2010-11-10 17:30:49 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst ucbhelper:libucbhelper%,ucbhelper:libucbhelper4%,$(gb_Library_FILENAMES))
|
2012-02-20 03:15:02 -06:00
|
|
|
ifneq ($(OS),ANDROID)
|
2012-02-09 17:16:55 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst unoexceptionprotector:libuno%,unoexceptionprotector:uno%,$(gb_Library_FILENAMES))
|
2012-02-20 03:15:02 -06:00
|
|
|
endif
|
2011-12-17 07:55:08 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst unsafe_uno:libunsafe_uno%,unsafe_uno:libunsafe_uno_uno%,$(gb_Library_FILENAMES))
|
2011-06-20 06:24:08 -05:00
|
|
|
endif
|
2010-11-10 17:30:49 -06:00
|
|
|
|
|
|
|
ifeq ($(OS),WNT)
|
2011-12-19 03:13:24 -06:00
|
|
|
gb_Library_DLLFILENAMES := $(patsubst affine_uno:affine_uno%,affine_uno:affine_uno_uno%,$(gb_Library_DLLFILENAMES))
|
2011-08-26 09:25:45 -05:00
|
|
|
gb_Library_DLLFILENAMES := $(patsubst comphelper:comphelper%,comphelper:comphelp%,$(gb_Library_DLLFILENAMES))
|
|
|
|
gb_Library_DLLFILENAMES := $(patsubst icuuc:icuuc%,icuuc:icuuc40%,$(gb_Library_DLLFILENAMES))
|
2011-12-19 03:13:24 -06:00
|
|
|
gb_Library_DLLFILENAMES := $(patsubst log_uno:log_uno%,log_uno:log_uno_uno%,$(gb_Library_DLLFILENAMES))
|
2011-08-26 09:25:45 -05:00
|
|
|
gb_Library_DLLFILENAMES := $(patsubst ucbhelper:ucbhelper%,ucbhelper:ucbhelper4%,$(gb_Library_DLLFILENAMES))
|
2011-12-19 03:13:24 -06:00
|
|
|
gb_Library_DLLFILENAMES := $(patsubst unsafe_uno:unsafe_uno%,unsafe_uno:unsafe_uno_uno%,$(gb_Library_DLLFILENAMES))
|
2011-08-26 09:25:45 -05:00
|
|
|
gb_Library_DLLFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_DLLFILENAMES))
|
2011-03-16 04:26:30 -05:00
|
|
|
|
2011-01-05 07:55:15 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst sb:isb%,sb:basic%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst sfx:isfx%,sfx:sfx%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst svt:isvt%,svt:svtool%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst tl:itl%,tl:itools%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst vbahelper:ivbahelper%,vbahelper:vbahelper%,$(gb_Library_FILENAMES))
|
2011-12-17 12:46:38 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst curl:icurl%,curl:libcurl%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst npsoplugin:inpsoplugin%,npsoplugin:npsoplugin%,$(gb_Library_FILENAMES))
|
2011-08-26 09:25:45 -05:00
|
|
|
|
|
|
|
gb_StaticLibrary_FILENAMES := $(patsubst graphite:graphite%,graphite:graphite_dll%,$(gb_StaticLibrary_FILENAMES))
|
|
|
|
|
|
|
|
ifeq ($(COM),GCC)
|
2011-03-07 06:07:44 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst crypto:icrypto%,crypto:crypto%,$(gb_Library_FILENAMES))
|
2011-08-26 09:25:45 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst graphite2_off:%.dll.a,graphite2_off:%.a,$(gb_Library_FILENAMES))
|
2011-12-23 06:26:56 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst libexttextcat:liblibext%,libexttextcat:libilibext%,$(gb_Library_FILENAMES))
|
2011-08-26 09:25:45 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
|
2011-03-07 06:07:44 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst ssl:issl%,ssl:ssl%,$(gb_Library_FILENAMES))
|
2011-01-05 07:55:15 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
|
2011-02-14 07:19:23 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt$(gb_Library_IARCEXT),$(gb_Library_FILENAMES))
|
2011-01-05 07:55:15 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst z:iz%,z:zlib%,$(gb_Library_FILENAMES))
|
2011-03-16 04:26:30 -05:00
|
|
|
|
2011-01-05 07:55:15 -06:00
|
|
|
|
2011-06-20 15:52:40 -05:00
|
|
|
# Libraries not provided by mingw(-w64), available only in the Windows
|
|
|
|
# SDK. So if these actually are liked with somewhere, we can't
|
|
|
|
# cross-compile that module then using MinGW. That needs to be fixed
|
|
|
|
# then, and we need to use these libraries through run-time lookup of
|
|
|
|
# APIs. Or something.
|
2011-09-30 08:11:10 -05:00
|
|
|
gb_Library_SDKLIBFILENAMES:=
|
2011-01-05 07:55:15 -06:00
|
|
|
|
2011-06-20 15:52:40 -05:00
|
|
|
gb_Library_DLLFILENAMES := $(filter-out $(foreach lib,$(gb_Library_SDKLIBFILENAMES),$(lib):%),$(gb_Library_DLLFILENAMES))
|
|
|
|
gb_Library_DLLFILENAMES += $(foreach lib,$(gb_Library_SDKLIBFILENAMES),$(lib):$(WINDOWS_SDK_HOME)/lib/$(lib).lib)
|
2011-01-05 07:55:15 -06:00
|
|
|
|
2011-04-18 05:40:45 -05:00
|
|
|
gb_Library_DLLFILENAMES := $(patsubst crypto:crypto%,crypto:libeay32%,$(gb_Library_DLLFILENAMES))
|
|
|
|
gb_Library_DLLFILENAMES := $(patsubst ssl:ssl%,ssl:ssleay32%,$(gb_Library_DLLFILENAMES))
|
2011-01-05 07:55:15 -06:00
|
|
|
|
2011-08-26 09:25:45 -05:00
|
|
|
else # $(COM) != GCC
|
2011-03-16 04:26:30 -05:00
|
|
|
|
2011-07-04 06:42:28 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst cairo:icairo%,cairo:cairo%,$(gb_Library_FILENAMES))
|
2010-11-10 17:30:49 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst comphelper:icomphelper%,comphelper:icomphelp%,$(gb_Library_FILENAMES))
|
2011-01-20 12:32:26 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst cppunit:icppunit%,cppunit:icppunit_dll%,$(gb_Library_FILENAMES))
|
2011-08-18 04:08:58 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst crypto:icrypto%,crypto:libeay32%,$(gb_Library_FILENAMES))
|
2011-04-18 05:27:39 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst crypto:libcrypto%,crypto:libcrypto_static%,$(gb_Library_FILENAMES))
|
2011-09-19 03:56:07 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst db47:idb47%,db47:libdb47%,$(gb_Library_FILENAMES))
|
2010-11-10 17:30:49 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst i18nisolang1:ii18nisolang1%,i18nisolang1:ii18nisolang%,$(gb_Library_FILENAMES))
|
2011-08-05 02:59:58 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst lpsolve55:ilpsolve55%,lpsolve55:lpsolve55%,$(gb_Library_FILENAMES))
|
2011-08-26 07:04:17 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst package2:ipackage2%,package2:ipackage%,$(gb_Library_FILENAMES))
|
2011-08-18 04:08:58 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst ssl:issl%,ssl:ssleay32%,$(gb_Library_FILENAMES))
|
2011-04-18 05:27:39 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst ssl:libssl%,ssl:libssl_static%,$(gb_Library_FILENAMES))
|
2010-11-10 17:30:49 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2%,$(gb_Library_FILENAMES))
|
2011-08-23 03:29:33 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst xmlsec1:ixmlsec1%,xmlsec1:libxmlsec%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst xmlsec1-mscrypto:ixmlsec1-mscrypto%,xmlsec1-mscrypto:libxmlsec-mscrypto%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst xmlsec1-nss:ixmlsec1-nss%,xmlsec1-nss:libxmlsec-nss%,$(gb_Library_FILENAMES))
|
2011-02-14 07:19:23 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt%,$(gb_Library_FILENAMES))
|
2011-08-26 09:25:45 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_FILENAMES))
|
2011-06-18 07:12:16 -05:00
|
|
|
|
2011-03-16 04:26:30 -05:00
|
|
|
|
|
|
|
# change the names of all import libraries that don't have an "i" prefix as in our standard naming schema
|
|
|
|
gb_Library_NOILIBFILENAMES := $(gb_Library_PLAINLIBS_NONE)
|
2011-08-19 02:32:18 -05:00
|
|
|
gb_Library_NOILIBFILENAMES += \
|
2011-05-30 09:53:46 -05:00
|
|
|
graphite2_off \
|
2012-03-10 09:40:38 -06:00
|
|
|
icudt icuin icule icuuc \
|
|
|
|
lcms2 \
|
2011-03-16 05:54:52 -05:00
|
|
|
msvcprt \
|
2011-08-16 07:32:51 -05:00
|
|
|
nspr4 \
|
|
|
|
nss3 \
|
2011-04-18 08:21:52 -05:00
|
|
|
shlwapi \
|
2011-12-17 06:13:11 -06:00
|
|
|
uwinapi \
|
2011-05-30 10:01:40 -05:00
|
|
|
version \
|
2010-11-10 17:30:49 -06:00
|
|
|
|
|
|
|
gb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT))
|
2011-03-16 04:26:30 -05:00
|
|
|
|
2011-08-26 09:25:45 -05:00
|
|
|
endif # ifeq ($(COM),GCC)
|
2010-11-10 17:30:49 -06:00
|
|
|
|
2011-03-16 04:26:30 -05:00
|
|
|
endif # ifeq ($(OS),WNT)
|
2010-11-13 02:41:56 -06:00
|
|
|
|
2012-02-27 08:31:42 -06:00
|
|
|
ifeq (,$(filter SCRIPTING,$(BUILD_TYPE)))
|
2012-01-27 14:30:27 -06:00
|
|
|
|
|
|
|
gb_Library_FILENAMES := $(patsubst vbahelper:libvbahelper%,,$(gb_Library_FILENAMES))
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2012-02-21 04:47:34 -06:00
|
|
|
ifeq (,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
|
|
|
|
gb_Library_FILENAMES := $(patsubst dbtools:libdbtools%,,$(gb_Library_FILENAMES))
|
|
|
|
endif
|
|
|
|
|
2010-11-10 17:30:49 -06:00
|
|
|
# vim: set noet sw=4 ts=4:
|