35cd784f06
liblangtag uses quoted strings in defines, like -DFOO="\"value\"" and ccache (at least the one available from the windows build dependencies wiki page) gets confused and doesn't parse the arguments correctly to the actual compiler, resulting in the error "cl : Command line error D8003 : missing source filename" Change-Id: I456b98b8956a25ff9acd3ab776c0c6f149a08ac7 Reviewed-on: https://gerrit.libreoffice.org/3760 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
40 lines
2.2 KiB
Makefile
40 lines
2.2 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,langtag))
|
|
|
|
$(eval $(call gb_ExternalProject_use_unpacked,langtag,langtag))
|
|
|
|
$(eval $(call gb_ExternalProject_use_external,langtag,libxml2))
|
|
|
|
$(eval $(call gb_ExternalProject_use_autoconf,langtag,build))
|
|
|
|
$(eval $(call gb_ExternalProject_register_targets,langtag,\
|
|
build \
|
|
))
|
|
|
|
# disable ccache on windows, as it doesn't cope with the quoted defines
|
|
# liblangtag uses (-DBUILDDIR="\"$(abs_top_builddir)\"" and similar).
|
|
# Results in "cl : Command line error D8003 : missing source filename"
|
|
$(call gb_ExternalProject_get_state_target,langtag,build):
|
|
$(call gb_ExternalProject_run,build,\
|
|
./configure --disable-modules --disable-test --disable-introspection --disable-shared --enable-static --with-pic \
|
|
$(if $(filter WNTMSC,$(OS)$(COM)),--disable-rebuild-data) \
|
|
$(if $(filter TRUE,$(HAVE_GCC_BUILTIN_ATOMIC)),"lt_cv_has_atomic=yes","lt_cv_has_atomic=no") \
|
|
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
|
|
$(if $(filter NO,$(SYSTEM_LIBXML)),LIBXML2_CFLAGS="-I$(call gb_UnpackedTarball_get_dir,xml2)/include" \
|
|
LIBXML2_LIBS=$(if $(filter WNTMSC,$(OS)$(COM)),"-L$(OUTDIR)/lib -llibxml2","-L$(gb_Helper_OUTDIRLIBDIR) -lxml2"),\
|
|
$(if $(filter MACOSX,$(OS)),LIBXML2_CFLAGS="$(LIBXML_CFLAGS)" LIBXML2_LIBS="$(LIBXML_LIBS)")) \
|
|
$(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
|
|
$(if $(filter-out LINUX FREEBSD,$(OS)),,LDFLAGS="-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-rpath,\\"\$$\$$ORIGIN:'\'\$$\$$ORIGIN/../ure-link/lib) \
|
|
$(if $(filter-out SOLARIS,$(OS)),,LDFLAGS="-Wl$(COMMA)-z$(COMMA)origin -Wl$(COMMA)-R$(COMMA)\\"\$$\$$ORIGIN:'\'\$$\$$ORIGIN/../ure-link/lib) \
|
|
$(if $(filter-out WNTGCC,$(OS)$(COM)),,LDFLAGS="-Wl$(COMMA)--enable-runtime-pseudo-reloc-v2") \
|
|
&& $(if $(filter WNTMSC,$(OS)$(COM)),REAL_CC="$(shell cygpath -w $(lastword $(CC)))") $(MAKE) \
|
|
)
|
|
# vim: set noet sw=4 ts=4:
|