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
|
|
|
#
|
2013-05-16 15:56:04 -05:00
|
|
|
# This file is part of the LibreOffice project.
|
2010-11-10 17:30:49 -06:00
|
|
|
#
|
2013-05-16 15:56:04 -05:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2010-11-10 17:30:49 -06:00
|
|
|
#
|
2013-05-16 15:56:04 -05:00
|
|
|
# This file incorporates work covered by the following license notice:
|
2010-11-10 17:30:49 -06:00
|
|
|
#
|
2013-05-16 15:56:04 -05:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed
|
|
|
|
# with this work for additional information regarding copyright
|
|
|
|
# ownership. The ASF licenses this file to you under the Apache
|
|
|
|
# License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
2010-11-10 17:30:49 -06:00
|
|
|
#
|
|
|
|
|
2013-06-14 05:48:20 -05:00
|
|
|
# fixes for executables
|
|
|
|
|
|
|
|
gb_Executable_FILENAMES := $(foreach group,$(gb_Executable_VALIDGROUPS),\
|
|
|
|
$(foreach exe,$(gb_Executable_$(group)),$(exe):$(exe)$(gb_Executable_EXT)))
|
|
|
|
|
2014-08-08 03:28:49 -05:00
|
|
|
ifneq (,$(filter-out MACOSX WNT,$(OS)))
|
2013-06-14 05:48:20 -05:00
|
|
|
gb_Executable_FILENAMES := $(patsubst uno:uno,uno:uno.bin,$(gb_Executable_FILENAMES))
|
2014-08-08 03:28:49 -05:00
|
|
|
endif
|
2015-02-09 11:06:48 -06:00
|
|
|
gb_Executable_FILENAMES := $(patsubst unopkg_bin:unopkg_bin%,unopkg_bin:unopkg$(if $(filter-out MACOSX,$(OS)),.bin),$(gb_Executable_FILENAMES))
|
2013-09-20 18:34:26 -05:00
|
|
|
gb_Executable_FILENAMES := $(patsubst unopkg_com:unopkg_com%,unopkg_com:unopkg.com,$(gb_Executable_FILENAMES))
|
2015-11-27 08:43:37 -06:00
|
|
|
ifneq ($(OS),MACOSX)
|
2013-06-14 05:48:20 -05:00
|
|
|
gb_Executable_FILENAMES := $(patsubst gengal:gengal,gengal:gengal.bin,$(gb_Executable_FILENAMES))
|
2015-11-27 08:43:37 -06:00
|
|
|
endif
|
2013-06-14 05:48:20 -05:00
|
|
|
|
2013-09-11 02:05:31 -05:00
|
|
|
ifeq ($(OS),MACOSX)
|
2013-09-20 18:34:26 -05:00
|
|
|
gb_Executable_FILENAMES := $(patsubst soffice_bin:soffice_bin,soffice_bin:soffice,$(gb_Executable_FILENAMES))
|
|
|
|
else
|
|
|
|
gb_Executable_FILENAMES := $(patsubst soffice_bin:soffice_bin%,soffice_bin:soffice.bin,$(gb_Executable_FILENAMES))
|
2013-09-11 02:05:31 -05:00
|
|
|
endif
|
|
|
|
|
2013-06-14 05:48:20 -05:00
|
|
|
gb_Executable_FILENAMES_FOR_BUILD := $(subst $(gb_Executable_EXT),$(gb_Executable_EXT_for_build),$(gb_Executable_FILENAMES))
|
|
|
|
|
2013-09-14 11:08:57 -05:00
|
|
|
# fixes for .jnilibs on Mac OS X that are not also needed as .dylibs:
|
|
|
|
ifeq ($(OS),MACOSX)
|
|
|
|
gb_Library_FILENAMES := \
|
|
|
|
$(subst jpipe:libjpipe.dylib,jpipe:libjpipe.jnilib,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := \
|
|
|
|
$(subst juh:libjuh.dylib,juh:libjuh.jnilib,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := \
|
|
|
|
$(subst hsqldb:libhsqldb.dylib,hsqldb:libhsqldb.jnilib,$(gb_Library_FILENAMES))
|
|
|
|
endif
|
|
|
|
|
2010-11-10 17:30:49 -06:00
|
|
|
# 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)))
|
2010-11-10 17:30:49 -06:00
|
|
|
gb_Library_FILENAMES := $(patsubst cppuhelper:libcppuhelper%,cppuhelper:libuno_cppuhelper%,$(gb_Library_FILENAMES))
|
2011-12-17 07:55:08 -06:00
|
|
|
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))
|
2012-05-27 15:50:41 -05:00
|
|
|
|
|
|
|
ifeq ($(OS),MACOSX)
|
2012-06-15 09:46:44 -05:00
|
|
|
# libpyuno_wrapper.dylib => pyuno.so
|
|
|
|
gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.dylib,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES))
|
2012-05-27 15:50:41 -05:00
|
|
|
else
|
|
|
|
# libpyuno_wrapper.so => pyuno.so
|
|
|
|
gb_Library_FILENAMES := $(patsubst pyuno_wrapper:libpyuno_wrapper.so,pyuno_wrapper:pyuno.so,$(gb_Library_FILENAMES))
|
|
|
|
endif
|
|
|
|
|
2012-02-20 03:15:02 -06:00
|
|
|
ifneq ($(OS),ANDROID)
|
2012-04-13 05:13:19 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst unobootstrapprotector:libuno%,unobootstrapprotector:uno%,$(gb_Library_FILENAMES))
|
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-06-20 06:24:08 -05:00
|
|
|
endif
|
2010-11-10 17:30:49 -06:00
|
|
|
|
|
|
|
ifeq ($(OS),WNT)
|
2013-09-17 12:50:20 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES := $(patsubst rdf:rdf%,rdf:librdf%,$(gb_Library_FILENAMES))
|
2011-03-16 04:26:30 -05:00
|
|
|
|
2012-05-27 15:50:41 -05:00
|
|
|
# libpyuno_wrapper.dll => pyuno.pyd
|
2013-09-17 12:50:20 -05:00
|
|
|
gb_Library_FILENAMES := $(patsubst pyuno:pyuno.dll,pyuno:pyuno$(if $(MSVC_USE_DEBUG_RUNTIME),_d).pyd,$(gb_Library_FILENAMES))
|
2012-05-27 15:50:41 -05:00
|
|
|
|
2013-09-17 12:50:20 -05:00
|
|
|
gb_Library_ILIBFILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_ILIBFILENAMES))
|
2011-06-18 07:12:16 -05:00
|
|
|
|
2013-04-09 05:33:46 -05:00
|
|
|
# these have prefix "lib" instead of "i"
|
|
|
|
gb_Library_LIBLIBFILENAMES := \
|
|
|
|
rdf \
|
|
|
|
|
2013-09-17 12:50:20 -05:00
|
|
|
gb_Library_ILIBFILENAMES := \
|
2013-11-01 09:43:47 -05:00
|
|
|
$(filter-out $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):%) \
|
2013-09-17 12:50:20 -05:00
|
|
|
,$(gb_Library_ILIBFILENAMES))
|
|
|
|
gb_Library_ILIBFILENAMES += \
|
2013-04-09 05:33:46 -05:00
|
|
|
$(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):lib$(lib)$(gb_Library_PLAINEXT))
|
2011-03-16 04:26:30 -05:00
|
|
|
|
2013-09-17 12:50:20 -05:00
|
|
|
gb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES))
|
|
|
|
gb_Library_FILENAMES += $(foreach lib,$(gb_Library_LIBLIBFILENAMES),$(lib):lib$(lib).dll)
|
|
|
|
|
2011-03-16 04:26:30 -05:00
|
|
|
endif # ifeq ($(OS),WNT)
|
2010-11-13 02:41:56 -06:00
|
|
|
|
2010-11-10 17:30:49 -06:00
|
|
|
# vim: set noet sw=4 ts=4:
|