forked from amazingfate/loongoffice
Fixes build for iOS. In theory, it is a bit unclear whether DISABLE_DYNLOADING means to 1) not build any dynamic libraries at all, not even of bundled 3rd-party libraries, or 2) not build any own dynamic libraries, including dynamically loaded UNO components, while still building 3rd-party libraries as dynamic. But in practice, a use case for the latter is nonexistent, nobody uses --disable-dynamic-loading in their autogen.input, and DISABLE_DYNLOADING is turned on automatically for iOS and Android. What we want for iOS, for an LO-based app, is to not build any dynamic libraries at all, but produce a single executable. Correspondingly for Android, at least currently, we want to produce a single dynamic library. Change-Id: I7af4c3e53b13439612bb57bbb0fc8b118bda96bd
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
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_ExternalProject_ExternalProject,libwpd))
|
|
|
|
$(eval $(call gb_ExternalProject_use_autoconf,libwpd,build))
|
|
|
|
$(eval $(call gb_ExternalProject_register_targets,libwpd,\
|
|
build \
|
|
))
|
|
|
|
$(eval $(call gb_ExternalProject_use_externals,libwpd,\
|
|
revenge \
|
|
))
|
|
|
|
$(call gb_ExternalProject_get_state_target,libwpd,build) :
|
|
$(call gb_ExternalProject_run,build,\
|
|
export PKG_CONFIG="" \
|
|
&& MAKE=$(MAKE) ./configure \
|
|
--with-pic \
|
|
$(if $(DISABLE_DYNLOADING), \
|
|
--disable-shared --enable-static, \
|
|
--enable-shared --disable-static) \
|
|
--without-docs \
|
|
--disable-tools \
|
|
--disable-debug \
|
|
$(if $(filter MACOSX,$(OS)),--disable-werror) \
|
|
$(if $(VERBOSE)$(verbose),--disable-silent-rules,--enable-silent-rules) \
|
|
$(if $(filter TRUE,$(DISABLE_DYNLOADING)),CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_COMPILEROPTFLAGS)" CXXFLAGS="$(CXXFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_COMPILEROPTFLAGS)") \
|
|
$(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
|
|
&& $(MAKE) \
|
|
)
|
|
|
|
# vim: set noet sw=4 ts=4:
|