Mark some Calc slots as inactive in readonly mode
[LibreOffice.git] / external / libwps / ExternalProject_libwps.mk
blob5ff5997f6021873471e2d2e1a64044b2221dac12
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
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/.
10 $(eval $(call gb_ExternalProject_ExternalProject,libwps))
12 $(eval $(call gb_ExternalProject_use_autoconf,libwps,build))
14 $(eval $(call gb_ExternalProject_register_targets,libwps,\
15 build \
18 $(eval $(call gb_ExternalProject_use_externals,libwps,\
19 revenge \
22 libwps_CPPFLAGS+=$(gb_COMPILERDEFS_STDLIB_DEBUG)
24 libwps_CXXFLAGS=$(gb_CXXFLAGS) $(call gb_ExternalProject_get_build_flags,libwps)
26 libwps_LDFLAGS=$(call gb_ExternalProject_get_link_flags,libwps)
27 ifeq ($(OS),LINUX)
28 ifeq ($(SYSTEM_REVENGE),)
29 libwps_LDFLAGS+=-Wl,-z,origin -Wl,-rpath,\$$$$ORIGIN
30 endif
31 endif
33 $(call gb_ExternalProject_get_state_target,libwps,build) :
34 $(call gb_Trace_StartRange,libwps,EXTERNAL)
35 $(call gb_ExternalProject_run,build,\
36 export PKG_CONFIG="" \
37 && $(gb_RUN_CONFIGURE) ./configure \
38 --with-pic \
39 $(if $(DISABLE_DYNLOADING), \
40 --enable-static --disable-shared \
41 , \
42 --enable-shared --disable-static \
43 ) \
44 --with-sharedptr=c++11 \
45 --without-docs \
46 --disable-tools \
47 $(if $(ENABLE_DEBUG),--enable-debug,--disable-debug) \
48 --disable-werror \
49 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
50 $(if $(libwps_CXXFLAGS),CXXFLAGS='$(libwps_CXXFLAGS)') \
51 $(if $(libwps_CPPFLAGS),CPPFLAGS='$(libwps_CPPFLAGS)') \
52 $(if $(libwps_LDFLAGS),LDFLAGS='$(libwps_LDFLAGS)') \
53 $(gb_CONFIGURE_PLATFORMS) \
54 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
55 && $(MAKE) \
56 $(if $(filter MACOSX,$(OS)),\
57 && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
58 $(EXTERNAL_WORKDIR)/src/lib/.libs/libwps-0.4.4.dylib \
59 ) \
61 $(call gb_Trace_EndRange,libwps,EXTERNAL)
63 # vim: set noet sw=4 ts=4: