| Takeshi Abe | b2bd33e | 2011-08-10 02:12:48 +0900 | [diff] [blame] | 1 | # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 2 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 3 | # This file is part of the LibreOffice project. |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 4 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 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/. |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 8 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 9 | # This file incorporates work covered by the following license notice: |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 10 | # |
| Michael Meeks | 1e4422a | 2013-05-16 21:56:04 +0100 | [diff] [blame] | 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 . |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 18 | # |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 19 | |
| Matúš Kukan | 944f3a6 | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 20 | # fixes for executables |
| 21 | |
| 22 | gb_Executable_FILENAMES := $(foreach group,$(gb_Executable_VALIDGROUPS),\ |
| 23 | $(foreach exe,$(gb_Executable_$(group)),$(exe):$(exe)$(gb_Executable_EXT))) |
| 24 | |
| 25 | gb_Executable_FILENAMES := $(patsubst uno:uno,uno:uno.bin,$(gb_Executable_FILENAMES)) |
| Matúš Kukan | 9555b5b | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 26 | gb_Executable_FILENAMES := $(patsubst gengal:gengal,gengal:gengal.bin,$(gb_Executable_FILENAMES)) |
| Matúš Kukan | 944f3a6 | 2013-06-14 12:48:20 +0200 | [diff] [blame] | 27 | |
| 28 | gb_Executable_FILENAMES_FOR_BUILD := $(subst $(gb_Executable_EXT),$(gb_Executable_EXT_for_build),$(gb_Executable_FILENAMES)) |
| 29 | |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 30 | # fixes for all the libraries that are named with too much creativity and do |
| 31 | # not follow any of the established nameschemes |
| 32 | |
| Francois Tigeot | faae793 | 2011-03-21 23:21:20 +0100 | [diff] [blame] | 33 | # Make has no support for 'or' clauses in conditionals, |
| 34 | # we use a filter expression instead. |
| Matúš Kukan | 4361791 | 2011-08-26 16:25:45 +0200 | [diff] [blame] | 35 | ifneq (,$(filter SOLARIS GCC,$(OS) $(COM))) |
| Matúš Kukan | 051fdda | 2011-12-17 14:55:08 +0100 | [diff] [blame] | 36 | gb_Library_FILENAMES := $(patsubst affine_uno:libaffine_uno%,affine_uno:libaffine_uno_uno%,$(gb_Library_FILENAMES)) |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 37 | gb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES)) |
| Matúš Kukan | 051fdda | 2011-12-17 14:55:08 +0100 | [diff] [blame] | 38 | gb_Library_FILENAMES := $(patsubst log_uno:liblog_uno%,log_uno:liblog_uno_uno%,$(gb_Library_FILENAMES)) |
| 39 | gb_Library_FILENAMES := $(patsubst purpenvhelper:libpurpen%,purpenvhelper:libuno_purpen%,$(gb_Library_FILENAMES)) |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 40 | gb_Library_FILENAMES := $(patsubst salhelper:libsalhelper%,salhelper:libuno_salhelper%,$(gb_Library_FILENAMES)) |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 41 | |
| 42 | ifeq ($(OS),MACOSX) |
| Stephan Bergmann | fa20068 | 2012-06-15 16:46:44 +0200 | [diff] [blame] | 43 | # libpyuno_wrapper.dylib => pyuno.so |
| 44 | gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.dylib,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES)) |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 45 | else |
| 46 | # libpyuno_wrapper.so => pyuno.so |
| 47 | gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.so,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES)) |
| 48 | endif |
| 49 | |
| Tor Lillqvist | 3182631 | 2012-02-20 11:15:02 +0200 | [diff] [blame] | 50 | ifneq ($(OS),ANDROID) |
| Caolán McNamara | 8d7e8a0 | 2012-04-13 11:13:19 +0100 | [diff] [blame] | 51 | gb_Library_FILENAMES := $(patsubst unobootstrapprotector:libuno%,unobootstrapprotector:uno%,$(gb_Library_FILENAMES)) |
| Matúš Kukan | d06a78c | 2012-02-10 00:16:55 +0100 | [diff] [blame] | 52 | gb_Library_FILENAMES := $(patsubst unoexceptionprotector:libuno%,unoexceptionprotector:uno%,$(gb_Library_FILENAMES)) |
| Tor Lillqvist | 3182631 | 2012-02-20 11:15:02 +0200 | [diff] [blame] | 53 | endif |
| Matúš Kukan | 051fdda | 2011-12-17 14:55:08 +0100 | [diff] [blame] | 54 | gb_Library_FILENAMES := $(patsubst unsafe_uno:libunsafe_uno%,unsafe_uno:libunsafe_uno_uno%,$(gb_Library_FILENAMES)) |
| Bjoern Michaelsen | 902f9da | 2011-06-20 13:24:08 +0200 | [diff] [blame] | 55 | endif |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 56 | |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 57 | ifeq ($(OS),WNT) |
| Matúš Kukan | ad4c613 | 2011-12-19 10:13:24 +0100 | [diff] [blame] | 58 | gb_Library_DLLFILENAMES := $(patsubst affine_uno:affine_uno%,affine_uno:affine_uno_uno%,$(gb_Library_DLLFILENAMES)) |
| Matúš Kukan | 4361791 | 2011-08-26 16:25:45 +0200 | [diff] [blame] | 59 | gb_Library_DLLFILENAMES := $(patsubst icuuc:icuuc%,icuuc:icuuc40%,$(gb_Library_DLLFILENAMES)) |
| Matúš Kukan | ad4c613 | 2011-12-19 10:13:24 +0100 | [diff] [blame] | 60 | gb_Library_DLLFILENAMES := $(patsubst log_uno:log_uno%,log_uno:log_uno_uno%,$(gb_Library_DLLFILENAMES)) |
| Matúš Kukan | ad4c613 | 2011-12-19 10:13:24 +0100 | [diff] [blame] | 61 | gb_Library_DLLFILENAMES := $(patsubst unsafe_uno:unsafe_uno%,unsafe_uno:unsafe_uno_uno%,$(gb_Library_DLLFILENAMES)) |
| Caolán McNamara | 3934efe | 2012-04-13 14:06:05 +0100 | [diff] [blame] | 62 | gb_Library_DLLFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_DLLFILENAMES)) |
| Peter Foley | 18bd1e7 | 2012-12-27 18:04:21 -0500 | [diff] [blame] | 63 | gb_Library_DLLFILENAMES := $(patsubst rdf:rdf%,rdf:librdf%,$(gb_Library_DLLFILENAMES)) |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 64 | |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 65 | # libpyuno_wrapper.dll => pyuno.pyd |
| Michael Stahl | 849f87d | 2013-04-20 00:51:21 +0200 | [diff] [blame] | 66 | gb_Library_DLLFILENAMES := $(patsubst pyuno:pyuno.dll,pyuno:pyuno$(if $(MSVC_USE_DEBUG_RUNTIME),_d).pyd,$(gb_Library_DLLFILENAMES)) |
| David Ostrovsky | e16ac69 | 2012-05-27 22:50:41 +0200 | [diff] [blame] | 67 | |
| Matúš Kukan | 4361791 | 2011-08-26 16:25:45 +0200 | [diff] [blame] | 68 | ifeq ($(COM),GCC) |
| Daniel Rentz [dr] | 493b594 | 2011-03-07 13:07:44 +0100 | [diff] [blame] | 69 | gb_Library_FILENAMES := $(patsubst crypto:icrypto%,crypto:crypto%,$(gb_Library_FILENAMES)) |
| Stephan Bergmann | ebc6b41 | 2012-09-10 15:00:51 +0200 | [diff] [blame] | 70 | gb_Library_FILENAMES := $(patsubst exslt:iexslt%,exslt:libexslt$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) |
| Matúš Kukan | 4258f02 | 2011-12-23 13:26:56 +0100 | [diff] [blame] | 71 | gb_Library_FILENAMES := $(patsubst libexttextcat:liblibext%,libexttextcat:libilibext%,$(gb_Library_FILENAMES)) |
| Matúš Kukan | 4361791 | 2011-08-26 16:25:45 +0200 | [diff] [blame] | 72 | gb_Library_FILENAMES := $(patsubst rdf:irdf%,rdf:librdf.dll$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) |
| Daniel Rentz [dr] | 493b594 | 2011-03-07 13:07:44 +0100 | [diff] [blame] | 73 | gb_Library_FILENAMES := $(patsubst ssl:issl%,ssl:ssl%,$(gb_Library_FILENAMES)) |
| tono | 087e912 | 2011-01-05 22:55:15 +0900 | [diff] [blame] | 74 | gb_Library_FILENAMES := $(patsubst xml2:ixml2%,xml2:libxml2$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) |
| Michael Stahl | cbc756f | 2011-02-14 14:19:23 +0100 | [diff] [blame] | 75 | gb_Library_FILENAMES := $(patsubst xslt:ixslt%,xslt:libxslt$(gb_Library_IARCEXT),$(gb_Library_FILENAMES)) |
| Caolán McNamara | 3934efe | 2012-04-13 14:06:05 +0100 | [diff] [blame] | 76 | gb_Library_FILENAMES := $(patsubst z:iz%,z:zlib%,$(gb_Library_FILENAMES)) |
| Michael Stahl | d78b18f | 2011-04-13 12:44:29 +0000 | [diff] [blame] | 77 | |
| Tor Lillqvist | 1780e95 | 2011-06-20 23:52:40 +0300 | [diff] [blame] | 78 | # Libraries not provided by mingw(-w64), available only in the Windows |
| 79 | # SDK. So if these actually are liked with somewhere, we can't |
| 80 | # cross-compile that module then using MinGW. That needs to be fixed |
| 81 | # then, and we need to use these libraries through run-time lookup of |
| 82 | # APIs. Or something. |
| Norbert Thiebaud | ddc28b8 | 2011-09-30 08:11:10 -0500 | [diff] [blame] | 83 | gb_Library_SDKLIBFILENAMES:= |
| tono | 087e912 | 2011-01-05 22:55:15 +0900 | [diff] [blame] | 84 | |
| Tor Lillqvist | 1780e95 | 2011-06-20 23:52:40 +0300 | [diff] [blame] | 85 | gb_Library_DLLFILENAMES := $(filter-out $(foreach lib,$(gb_Library_SDKLIBFILENAMES),$(lib):%),$(gb_Library_DLLFILENAMES)) |
| 86 | gb_Library_DLLFILENAMES += $(foreach lib,$(gb_Library_SDKLIBFILENAMES),$(lib):$(WINDOWS_SDK_HOME)/lib/$(lib).lib) |
| tono | 087e912 | 2011-01-05 22:55:15 +0900 | [diff] [blame] | 87 | |
| David Tardon | b338739 | 2011-04-18 12:40:45 +0200 | [diff] [blame] | 88 | gb_Library_DLLFILENAMES := $(patsubst crypto:crypto%,crypto:libeay32%,$(gb_Library_DLLFILENAMES)) |
| David Tardon | b338739 | 2011-04-18 12:40:45 +0200 | [diff] [blame] | 89 | gb_Library_DLLFILENAMES := $(patsubst ssl:ssl%,ssl:ssleay32%,$(gb_Library_DLLFILENAMES)) |
| tono | 087e912 | 2011-01-05 22:55:15 +0900 | [diff] [blame] | 90 | |
| Matúš Kukan | 4361791 | 2011-08-26 16:25:45 +0200 | [diff] [blame] | 91 | else # $(COM) != GCC |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 92 | |
| Mathias Bauer | 368bae7 | 2011-01-20 19:32:26 +0100 | [diff] [blame] | 93 | gb_Library_FILENAMES := $(patsubst cppunit:icppunit%,cppunit:icppunit_dll%,$(gb_Library_FILENAMES)) |
| Tor Lillqvist | c77e444 | 2011-08-18 12:08:58 +0300 | [diff] [blame] | 94 | gb_Library_FILENAMES := $(patsubst crypto:icrypto%,crypto:libeay32%,$(gb_Library_FILENAMES)) |
| David Tardon | 373b55a | 2011-04-18 12:27:39 +0200 | [diff] [blame] | 95 | gb_Library_FILENAMES := $(patsubst crypto:libcrypto%,crypto:libcrypto_static%,$(gb_Library_FILENAMES)) |
| Tor Lillqvist | c77e444 | 2011-08-18 12:08:58 +0300 | [diff] [blame] | 96 | gb_Library_FILENAMES := $(patsubst ssl:issl%,ssl:ssleay32%,$(gb_Library_FILENAMES)) |
| David Tardon | 373b55a | 2011-04-18 12:27:39 +0200 | [diff] [blame] | 97 | gb_Library_FILENAMES := $(patsubst ssl:libssl%,ssl:libssl_static%,$(gb_Library_FILENAMES)) |
| Caolán McNamara | 79a2a32 | 2011-08-23 09:29:33 +0100 | [diff] [blame] | 98 | gb_Library_FILENAMES := $(patsubst xmlsec1:ixmlsec1%,xmlsec1:libxmlsec%,$(gb_Library_FILENAMES)) |
| 99 | gb_Library_FILENAMES := $(patsubst xmlsec1-mscrypto:ixmlsec1-mscrypto%,xmlsec1-mscrypto:libxmlsec-mscrypto%,$(gb_Library_FILENAMES)) |
| 100 | gb_Library_FILENAMES := $(patsubst xmlsec1-nss:ixmlsec1-nss%,xmlsec1-nss:libxmlsec-nss%,$(gb_Library_FILENAMES)) |
| Caolán McNamara | 3934efe | 2012-04-13 14:06:05 +0100 | [diff] [blame] | 101 | gb_Library_FILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_FILENAMES)) |
| Bjoern Michaelsen | 6f0d3f2 | 2011-06-18 14:12:16 +0200 | [diff] [blame] | 102 | |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 103 | |
| Michael Stahl | 4811c2d | 2013-04-14 13:52:56 +0200 | [diff] [blame] | 104 | gb_Library_NOILIBFILENAMES_D := \ |
| Khaled Hosny | 1733e4a | 2013-05-13 19:52:39 +0200 | [diff] [blame] | 105 | icudt icuin icuuc \ |
| Michael Stahl | 4811c2d | 2013-04-14 13:52:56 +0200 | [diff] [blame] | 106 | lcms2 \ |
| 107 | |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 108 | # change the names of all import libraries that don't have an "i" prefix as in our standard naming schema |
| Michael Stahl | dc397aae | 2012-09-28 15:31:46 +0200 | [diff] [blame] | 109 | gb_Library_NOILIBFILENAMES := \ |
| Eike Rathke | 15b95b2 | 2012-08-06 19:23:09 +0200 | [diff] [blame] | 110 | langtag \ |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 111 | lpsolve55 \ |
| Andras Timar | 06ec1c0 | 2012-11-11 18:24:14 +0100 | [diff] [blame] | 112 | xpcom \ |
| 113 | xpcom_core \ |
| Caolán McNamara | cebaf59 | 2011-08-16 13:32:51 +0100 | [diff] [blame] | 114 | nspr4 \ |
| 115 | nss3 \ |
| Stephan Bergmann | 066cf16 | 2012-08-13 11:46:21 +0200 | [diff] [blame] | 116 | smime3 \ |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 117 | |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 118 | # these have prefix "lib" instead of "i" |
| 119 | gb_Library_LIBLIBFILENAMES := \ |
| 120 | curl \ |
| 121 | exslt \ |
| 122 | rdf \ |
| 123 | xml2 \ |
| 124 | xslt \ |
| 125 | |
| 126 | gb_Library_FILENAMES := \ |
| 127 | $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%) \ |
| Michael Stahl | 4811c2d | 2013-04-14 13:52:56 +0200 | [diff] [blame] | 128 | $(foreach lib,$(gb_Library_NOILIBFILENAMES_D),$(lib):%) \ |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 129 | $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):%) \ |
| 130 | ,$(gb_Library_FILENAMES)) |
| 131 | gb_Library_FILENAMES += \ |
| 132 | $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT)) \ |
| Michael Stahl | faaccdc | 2013-04-15 19:17:15 +0200 | [diff] [blame] | 133 | $(foreach lib,$(gb_Library_NOILIBFILENAMES_D),$(lib):$(lib)$(if $(MSVC_USE_DEBUG_RUNTIME),d)$(gb_Library_PLAINEXT)) \ |
| Michael Stahl | 01df12e | 2013-04-09 12:33:46 +0200 | [diff] [blame] | 134 | $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):lib$(lib)$(gb_Library_PLAINEXT)) |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 135 | |
| Matúš Kukan | 4361791 | 2011-08-26 16:25:45 +0200 | [diff] [blame] | 136 | endif # ifeq ($(COM),GCC) |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 137 | |
| Mathias Bauer | 9048591 | 2011-03-16 10:26:30 +0100 | [diff] [blame] | 138 | endif # ifeq ($(OS),WNT) |
| Bjoern Michaelsen | 56070c6 | 2010-11-13 09:41:56 +0100 | [diff] [blame] | 139 | |
| Bjoern Michaelsen | 549d68a | 2010-11-11 00:30:49 +0100 | [diff] [blame] | 140 | # vim: set noet sw=4 ts=4: |