The library .dylib file path was not found when building cairo for macOS. Now it is possible to build cairo for macOS. Built library files for cario and pixman are adjusted using the tool install_name_tool, and also solenv/bin/macosx-change-install-names.pl perl script which also uses install_name_tool indirectly. From now on, macOS no longer uses the name 'libcairo' for built library file, and it will use 'libcairo-lo' like the other platforms. This removes the need for handling macOS differently from the other platforms. To use headless mode, these options should be added to autogen.input: --enable-headless --without-system-fontconfig --without-system-freetype Change-Id: I1895ba651a07b1dbd8488fa973ec1d90c24de63b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194931 Tested-by: Jenkins Reviewed-by: Dan Williams <dcbw@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
23 lines
841 B
Makefile
23 lines
841 B
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# 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/.
|
|
#
|
|
|
|
$(eval $(call gb_ExternalPackage_ExternalPackage,cairo,cairo))
|
|
|
|
$(eval $(call gb_ExternalPackage_use_external_project,cairo,cairo))
|
|
|
|
ifneq ($(DISABLE_DYNLOADING),TRUE)
|
|
ifeq ($(OS),MACOSX)
|
|
$(eval $(call gb_ExternalPackage_add_file,cairo,$(LIBO_LIB_FOLDER)/libcairo-lo.2.dylib,builddir/src/libcairo-lo.2.dylib))
|
|
else
|
|
$(eval $(call gb_ExternalPackage_add_file,cairo,$(LIBO_LIB_FOLDER)/libcairo-lo.so.2,builddir/src/libcairo-lo.so.2.1180$(CAIRO_VERSION_MICRO).$(CAIRO_VERSION_MICRO)))
|
|
endif
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|