Kaydet (Commit) f44f94b9 authored tarafından Matúš Kukan's avatar Matúš Kukan

fix gdb pretty printers for --enable-mergelibs

And install them into $(INSTDIR) at the end of build,
as it is done in dev-install case.

Change-Id: I1a9852684361a12333046fa58f83720aa2c835da
üst a3b56a9b
......@@ -230,6 +230,9 @@ bootstrap: compilerplugins
#
build: bootstrap fetch $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross-toolset)
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild
ifneq ($(filter-out WNT MACOSX IOS ANDROID,$(OS)),)
install-gdb-printers -a $(INSTDIR)
endif
ifeq ($(OS),IOS)
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) ios
endif
......
......@@ -26,7 +26,6 @@ ifneq ($(filter-out WNT IOS ANDROID,$(OS)),)
$(eval $(call gb_Module_add_targets,solenv,\
CustomTarget_gdb \
Package_gdb \
Package_gdb_install \
))
endif
......
......@@ -9,21 +9,25 @@
$(eval $(call gb_Package_Package,solenv_gdb,$(call gb_CustomTarget_get_workdir,solenv/gdb)))
# keep in sync with solenv/bin/install-gdb-printers
$(eval $(call gb_Package_add_files,solenv_gdb,lib,\
$(if $(MERGELIBS), \
$(if $(filter ALL,$(MERGELIBS)), \
$(call gb_Library_get_runtime_filename,urelibs)-gdb.py, \
$(call gb_Library_get_runtime_filename,merged)-gdb.py \
$(if $(filter ALL,$(MERGELIBS)), \
$(call gb_Library_get_runtime_filename,urelibs)-gdb.py \
, \
$(call gb_Library_get_runtime_filename,cppu).3-gdb.py \
$(call gb_Library_get_runtime_filename,sal).3-gdb.py \
$(call gb_Library_get_runtime_filename,sw)-gdb.py \
) \
, \
$(call gb_Library_get_runtime_filename,basegfx).3-gdb.py \
$(call gb_Library_get_runtime_filename,cppu).3-gdb.py \
$(call gb_Library_get_runtime_filename,sal).3-gdb.py \
$(call gb_Library_get_runtime_filename,svl)-gdb.py \
$(call gb_Library_get_runtime_filename,sw)-gdb.py \
$(call gb_Library_get_runtime_filename,writerfilter)-gdb.py \
$(call gb_Library_get_runtime_filename,tl)-gdb.py \
) \
$(call gb_Library_get_runtime_filename,merged)-gdb.py, \
$(call gb_Library_get_runtime_filename,cppu).3-gdb.py \
$(call gb_Library_get_runtime_filename,sal).3-gdb.py \
$(call gb_Library_get_runtime_filename,svl)-gdb.py \
$(call gb_Library_get_runtime_filename,sw)-gdb.py \
$(call gb_Library_get_runtime_filename,tl)-gdb.py) \
$(call gb_Library_get_runtime_filename,writerfilter)-gdb.py \
))
......
# -*- 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_Package_Package,solenv_gdb_install,$(call gb_CustomTarget_get_workdir,solenv/gdb)))
$(eval $(call gb_Package_set_outdir,solenv_gdb_install,$(INSTDIR)))
$(eval $(call gb_Package_add_files,solenv_gdb_install,$(gb_PROGRAMDIRNAME),\
$(call gb_Library_get_runtime_filename,svl)-gdb.py \
$(call gb_Library_get_runtime_filename,sw)-gdb.py \
$(call gb_Library_get_runtime_filename,tl)-gdb.py \
))
$(eval $(call gb_Package_add_files,solenv_gdb_install,ure/lib,\
$(call gb_Library_get_runtime_filename,cppu).3-gdb.py \
$(call gb_Library_get_runtime_filename,sal).3-gdb.py \
))
$(eval $(call gb_Package_use_custom_target,solenv_gdb_install,solenv/gdb))
# vim: set shiftwidth=4 tabstop=4 noexpandtab:
......@@ -156,25 +156,24 @@ if [[ ${DESTDIR}${pythondir} != ${GDBDIR} ]]; then
cp -pr "${GDBDIR}/libreoffice" "${DESTDIR}${pythondir}"
fi
# keep in sync with solenv/Package_gdb.mk
if [[ -n "${MERGELIBS}" ]]; then
make_autoload merged program libmergedlo."$DYLIB" merge svl tl basegfx writerfilter `[[ ${MERGELIBS} == "ALL" ]] && echo sw`
make_autoload merged program libmergedlo."$DYLIB" merge svl tl basegfx `[[ ${MERGELIBS} == "ALL" ]] && echo sw`
if [[ ${MERGELIBS} == "ALL" ]]; then
make_autoload urelibs ure-link/lib liburelibs."$DYLIB" merge cppu sal
else
make_autoload cppu ure-link/lib libuno_cppu."$DYLIB".3
make_autoload sal ure-link/lib libuno_sal."$DYLIB".3
make_autoload sw program libswlo."$DYLIB"
make_autoload basegfx program libbasegfxlo."$DYLIB"
make_autoload writerfilter program libwriterfilterlo."$DYLIB"
fi
else
make_autoload basegfx program libbasegfxlo."$DYLIB"
make_autoload cppu ure-link/lib libuno_cppu."$DYLIB".3
make_autoload sal ure-link/lib libuno_sal."$DYLIB".3
make_autoload svl program libsvllo."$DYLIB"
make_autoload tl program libtllo."$DYLIB"
make_autoload sw program libswlo."$DYLIB"
make_autoload basegfx program libbasegfxlo."$DYLIB"
make_autoload writerfilter program libwriterfilterlo."$DYLIB"
make_autoload tl program libtllo."$DYLIB"
fi
make_autoload writerfilter program libwriterfilterlo."$DYLIB"
# vim:set shiftwidth=4 softtabstop=4 expandtab:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment