Allow dialogs to create multiple instances in Online
[LibreOffice.git] / external / liblangtag / ExternalProject_liblangtag.mk
blob3fb5618f7fc18097df02ac53207dc3133d956ce9
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,liblangtag))
12 $(eval $(call gb_ExternalProject_use_external,liblangtag,libxml2))
14 $(eval $(call gb_ExternalProject_use_autoconf,liblangtag,build))
16 $(eval $(call gb_ExternalProject_register_targets,liblangtag,\
17 build \
20 # disable ccache on windows, as it doesn't cope with the quoted defines
21 # liblangtag uses (-DBUILDDIR="\"$(abs_top_builddir)\"" and similar).
22 # Results in "cl : Command line error D8003 : missing source filename"
23 $(call gb_ExternalProject_get_state_target,liblangtag,build):
24 $(call gb_ExternalProject_run,build,\
25 MAKE=$(MAKE) ./configure --disable-modules --disable-test --disable-introspection --with-pic \
26 $(if $(or $(DISABLE_DYNLOADING),$(filter MSC,$(COM))), \
27 --disable-shared --enable-static, \
28 --enable-shared --disable-static) \
29 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
30 $(if $(filter TRUE,$(HAVE_GCC_BUILTIN_ATOMIC)),"lt_cv_has_atomic=yes","lt_cv_has_atomic=no") \
31 CFLAGS='$(CFLAGS) \
32 $(if $(ENABLE_OPTIMIZED), \
33 $(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) \
34 $(if $(call gb_Module__symbols_enabled,liblangtag),$(gb_DEBUGINFO_FLAGS))' \
35 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) "ac_cv_va_copy=no") \
36 LIBXML2_CFLAGS="$(LIBXML_CFLAGS)" \
37 LIBXML2_LIBS="$(if $(filter WNT,$(OS)),-L$(call gb_UnpackedTarball_get_dir,libxml2)/win32/bin.msvc -llibxml2,$(LIBXML_LIBS))" \
38 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________URELIB) \
39 $(if $(filter-out LINUX FREEBSD,$(OS)),,LDFLAGS="-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath,\\"\$$\$$ORIGIN) \
40 $(if $(filter-out SOLARIS,$(OS)),,LDFLAGS="-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-R$(COMMA)\\"\$$\$$ORIGIN) \
41 && $(if $(filter WNT,$(OS)),\
42 REAL_CC="$(shell cygpath -w $(lastword $(filter-out -%,$(CC))))" \
43 REAL_CC_FLAGS="$(filter -%,$(CC))") \
44 $(if $(verbose),V=1) \
45 $(MAKE) \
46 LIBO_TUNNEL_LIBRARY_PATH='$(subst ','\'',$(subst $$,$$$$,$(call gb_Helper_extend_ld_path,$(call gb_UnpackedTarball_get_dir,liblangtag)/liblangtag/.libs)))' \
47 $(if $(filter MACOSX,$(OS)),\
48 && $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl URELIB \
49 $(EXTERNAL_WORKDIR)/liblangtag/.libs/liblangtag.1.dylib \
50 ) \
52 # vim: set noet sw=4 ts=4: