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 gb_Top_MODULE_CHECK_TARGETS
:= slowcheck unitcheck subsequentcheck perfcheck uicheck screenshot
12 .PHONY
: check-if-root bootstrap gbuild build build-non-l10n-only build-l10n-only
check clean clean-build clean-host test-install
distclean distro-pack-install docs download etags fetch get-submodules id
install install-gdb-printers install-strip
tags debugrun help showmodules translations packageinfo coverage internal.
clean $(gb_Top_MODULE_CHECK_TARGETS
)
15 build_goal
:=$(if
$(filter build uicheck
,$(MAKECMDGOALS
)),build
)\
16 $(if
$(filter check,$(MAKECMDGOALS
)),unitcheck slowcheck subsequentcheck
$(if
$(filter Linux
, $(shell uname
)), uicheck
))\
17 $(filter build-l10n-only build-non-l10n-only debugrun help showmodules translations
$(gb_Top_MODULE_CHECK_TARGETS
) check packageinfo gbuildtojson
,$(MAKECMDGOALS
))
20 BUILDDIR
:= @BUILDDIR@
21 COMPILER_PLUGINS
:= @COMPILER_PLUGINS@
22 GIT_BUILD
:= $(if
$(wildcard $(SRCDIR
)/.git
),T
)
24 # Run autogen.sh if needed and force make to restart itself.
25 # ... but there are several cases where we do not want to run
27 # 1. if we are building from tarballs, not git checkout (I do not
28 # think packagers would ever want that. I certainly do not.)
29 # 2. if we are making help, clean or distclean, because they do not
30 # need updated configuration
31 ifeq (,$(MAKE_RESTARTS
)$(if
$(GIT_BUILD
),,T
)$(if
$(filter-out help showmodules
clean distclean,$(MAKECMDGOALS
)),,T
))
33 # note: this must touch both Makefile and $(BUILDDIR)/Makefile, because make
34 # may be invoked using either of these paths, and it will restart itself only
35 # if the updated target is exactly the same path as the Makefile it is using
36 .PHONY
: force-restart
37 Makefile
$(BUILDDIR
)/Makefile
: $(BUILDDIR
)/config_host.mk
$(BUILDDIR
)/config_host_lang.mk force-restart
40 # run configure in an environment not polluted by config_host.mk
41 $(BUILDDIR
)/config_host.mk
: $(wildcard \
42 $(SRCDIR
)/autogen.sh \
43 $(SRCDIR
)/config_host.mk.in \
44 $(SRCDIR
)/config_host_lang.mk.in \
45 $(SRCDIR
)/Makefile.in \
46 $(SRCDIR
)/instsetoo_native
/util
/openoffice.lst.in \
47 $(SRCDIR
)/configure.ac \
48 $(SRCDIR
)/config_host
/*.h.in \
49 $(SRCDIR
)/download.lst \
51 $(BUILDDIR
)/autogen.input \
52 $(BUILDDIR
)/autogen.lastrun \
54 $(shell .
$(SRCDIR
)/bin
/get_config_variables JAVA_HOME
&& \
55 if
test -n
"$${JAVA_HOME}" -a
! -d
"$${JAVA_HOME}/bin"; then echo force-restart
; fi
)
56 sh
-c
$(SRCDIR
)/autogen.sh
60 .DEFAULT_GOAL
:= build
62 # Nested test is to check if the systemd-detect-virt command doesn't exist or it reports we're not
65 @if
test ! `uname` = 'Haiku' -a
`id -u` = 0; then \
66 if
test ! -x
"$$(command -v systemd-detect-virt)" ||
! systemd-detect-virt
-c
-q
; then \
68 echo
'Building LibreOffice as root is a very bad idea, use a regular user.'; \
76 include $(BUILDDIR
)/config_
$(gb_Side
).mk
78 export GMAKE_OPTIONS?
=-r
$(if
$(verbose
),,s
)$(value
$(MAKEFLAGS
))
80 PARALLELISM_OPTION
:= $(if
$(filter-out 0,$(PARALLELISM
)),-j
$(PARALLELISM
),)
85 define gb_Top_GbuildModuleRules
86 .PHONY
: $(1) $(1).build
$(1).
all $(1).
check $(1).
clean $(1).showdeliverables
$(1).coverage
$(foreach target
,$(gb_Top_MODULE_CHECK_TARGETS
),$(1).
$(target
))
87 .PHONY
: $(1).allbuild
$(1).buildall
$(1).allcheck
$(1).checkall
90 cd
$(SRCDIR
)/$(2) && $$(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
)
92 $(1).build
$(1).
check $(1).coverage
$(foreach target
,$(gb_Top_MODULE_CHECK_TARGETS
),$(1).
$(target
)): bootstrap fetch
93 cd
$(SRCDIR
)/$(2) && $$(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) $$(patsubst $(1).
%,%,$$@
)
95 $(1).
clean $(1).showdeliverables
:
96 cd
$(SRCDIR
)/$(2) && $$(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) $$(patsubst $(1).
%,%,$$@
)
98 $(1).allbuild
$(1).buildall
: bootstrap fetch
99 $$(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild
$(WORKDIR
)/Module
/$(1)
101 $(1).allcheck
$(1).checkall
: bootstrap fetch
102 $$(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild
$(WORKDIR
)/Module
/$(1) $(WORKDIR
)/Module
/check/$(1) $(WORKDIR
)/Module
/slowcheck
/$(1)
105 @echo
"'make $(1).all' was renamed to 'make $(1).allcheck' (or use 'make $(1).allbuild' to build without unit tests)"
110 define gb_Top_GbuildModulesRules
111 $(foreach m
,$(1),$(call gb_Top_GbuildModuleRules
,$(notdir $(m
)),$(m
)))
114 gbuild_modules
:= $(patsubst $(SRCDIR
)/%/,%,$(dir $(wildcard $(SRCDIR
)/*/Module_
*.mk
$(SRCDIR
)/external
/*/Module_
*.mk
)))
116 gbuild_internal_modules
:= $(filter-out odk external
,$(patsubst $(SRCDIR
)/%/,%,$(dir $(wildcard $(SRCDIR
)/*/Module_
*.mk
))))
118 internal.
clean: $(addsuffix .
clean,$(gbuild_internal_modules
))
121 $(eval
$(call gb_Top_GbuildModulesRules
,$(gbuild_modules
)))
123 gbuild_TARGETS
:= AllLangHelp \
139 ExtensionPackageSet \
167 # build a generic gbuild target
168 $(foreach target
,$(gbuild_TARGETS
),$(target
)_
% $(foreach module
,$(gbuild_modules
),$(target
)_
$(module
)/%)) UIConfig_modules
/% %.genpatch
: bootstrap fetch
169 $(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild
$@
172 $(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild
$@
177 clean: clean-host clean-build
180 rm -fr
$(TESTINSTALLDIR
)
185 ifneq ($(CROSS_COMPILING
),)
186 rm -fr
$(INSTDIR_FOR_BUILD
)
187 rm -fr
$(WORKDIR_FOR_BUILD
)
189 rm -fr
$(BUILDDIR
)/android
/obj
190 rm -fr
$(BUILDDIR
)/android
/jniLibs
191 rm -fr
$(SRCDIR
)/android
/source
/build
192 rm -fr
$(SRCDIR
)/android
/source
/assets
193 rm -fr
$(SRCDIR
)/android
/source
/assets_fullUI
194 rm -fr
$(SRCDIR
)/android
/source
/assets_strippedUI
195 rm -fr
$(SRCDIR
)/android
/source
/res_generated
199 include $(SRCDIR
)/compilerplugins
/Makefile.mk
204 distclean : clean compilerplugins-clean mac-app-store-package.
clean
206 $(BUILDDIR
)/Makefile \
207 $(BUILDDIR
)/aclocal.m4 \
208 $(BUILDDIR
)/autom4te.cache \
209 $(BUILDDIR
)/bin
/bffvalidator.sh \
210 $(BUILDDIR
)/bin
/odfvalidator.sh \
211 $(BUILDDIR
)/bin
/officeotron.sh \
212 $(BUILDDIR
)/config.Build.log \
213 $(BUILDDIR
)/config.Build.warn \
214 $(BUILDDIR
)/config.log \
215 $(BUILDDIR
)/config.status \
216 $(BUILDDIR
)/config.warn \
217 $(BUILDDIR
)/config_build.mk \
218 $(BUILDDIR
)/config_build_lang.mk \
219 $(BUILDDIR
)/config_build \
220 $(BUILDDIR
)/config_host.mk \
221 $(BUILDDIR
)/config_host.mk.stamp \
222 $(BUILDDIR
)/config_host_lang.mk \
223 $(BUILDDIR
)/config_host_lang.mk.stamp \
224 $(BUILDDIR
)/config_host
/*.h \
225 $(BUILDDIR
)/configure \
226 $(BUILDDIR
)/hardened_runtime.xcent \
227 $(BUILDDIR
)/instsetoo_native
/util
/openoffice.lst \
228 $(BUILDDIR
)/solenv
/lockfile
/autoconf.h \
229 $(BUILDDIR
)/lo.xcent \
230 $(BUILDDIR
)/sysui
/desktop
/macosx
/Info.plist \
231 $(BUILDDIR
)/vs-code
*.code-workspace
*
232 $(if
$(filter WNT
,$(OS
)),env
-i PATH
="$$PATH") $(FIND
) $(SRCDIR
)/solenv
/gdb
-name \
*.pyc
-exec
rm -f
{} \
;
238 $(if
$(verbose
),echo
"custom cmd" &&) ( $(cmd
) )
243 ifneq ($(DO_FETCH_TARBALLS
),)
244 include $(SRCDIR
)/Makefile.fetch
246 fetch
: get-submodules
248 ifneq (,$(wildcard $(SRCDIR
)/.git
))
250 ifneq ($(foreach i
,$(GIT_NEEDED_SUBMODULES
),$(SRCDIR
)/$(i
)/.git
),$(wildcard $(foreach i
,$(GIT_NEEDED_SUBMODULES
),$(SRCDIR
)/$(i
)/.git
)))
251 cd
$(SRCDIR
) && .
/g
-f clone
253 ifeq ($(shell test -d
$(SRCDIR
)/.git
; echo
$$?
),0)
254 @cd
$(SRCDIR
) && .
/g
-z
# make sure the git hooks are in place even if no submodules are needed
257 else # these sources are from a tarball, so get the other source tarballs
258 gb_LO_VER
:= $(shell .
$(SRCDIR
)/sources.ver
&& echo
$$lo_sources_ver)
259 $(if
$(gb_LO_VER
),,$(error Error while retrieving
$$lo_sources_ver from
$(SRCDIR
)/sources.ver
))
261 get-submodules
: | download
262 ifneq ($(foreach i
,$(subst helpcontent2
,help
,$(GIT_NEEDED_SUBMODULES
)),$(SRCDIR
)/src
/libreoffice-
$(i
)-$(gb_LO_VER
)),$(wildcard $(foreach i
,$(subst helpcontent2
,help
,$(GIT_NEEDED_SUBMODULES
)),$(SRCDIR
)/src
/libreoffice-
$(i
)-$(gb_LO_VER
))))
263 $(foreach i
,$(subst helpcontent2
,help
,$(GIT_NEEDED_SUBMODULES
)),\
264 $(call fetch_Download_item_unchecked
,https
://download.documentfoundation.org
/libreoffice
/src
/$(shell echo
$(gb_LO_VER
) | sed
-e
"s/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/"),libreoffice-
$(i
)-$(gb_LO_VER
).
tar.xz
))
265 $(SRCDIR
)/bin
/unpack-sources
$(SRCDIR
) $(foreach i
,$(subst helpcontent2
,help
,$(GIT_NEEDED_SUBMODULES
)),\
266 $(TARFILE_LOCATION
)/libreoffice-
$(i
)-$(gb_LO_VER
).
tar.xz
)
273 @echo
"Automatic fetching of external tarballs is disabled."
280 bootstrap
: check-if-root compilerplugins
285 # Note: this will pipe through all gbuild targets to ... gbuild
286 # with some translations like "check"->"unitcheck subsequentcheck uicheck" for historic reasons
288 build
: bootstrap fetch
$(if
$(CROSS_COMPILING
),cross-toolset
,install-gdb-printers
) \
289 $(if
$(filter check,$(MAKECMDGOALS
)),$(if
$(COMPILER_PLUGINS
),$(if
$(LODE_HOME
),clang-format-check
)))
290 $(MAKE
) $(PARALLELISM_OPTION
) $(IWYU_OPTION
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild
$(build_goal
)
292 $(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) ios
295 build-non-l10n-only build-l10n-only
check debugrun translations packageinfo coverage
$(gb_Top_MODULE_CHECK_TARGETS
): build
297 help showmodules gbuildtojson pocheck
:
298 $(MAKE
) $(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild
$@
300 cross-toolset
: bootstrap fetch install-gdb-printers
301 # fetch again in case there are externals only needed on build platform
303 $(MAKE
) gb_Side
=build
$(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) -f
$(BUILDDIR
)/Makefile fetch
305 $(MAKE
) gb_Side
=build
$(PARALLELISM_OPTION
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild build-tools
307 install-gdb-printers
:
308 ifneq ($(filter-out WNT MACOSX iOS
,$(OS
)),)
309 ifneq ($(INSTDIR_FOR_BUILD
),$(INSTDIR
))
310 mkdir
-p
$(INSTDIR_FOR_BUILD
)
311 $(SRCDIR
)/solenv
/bin
/install-gdb-printers
-a
$(INSTDIR_FOR_BUILD
) -c
314 $(SRCDIR
)/solenv
/bin
/install-gdb-printers
-a
$(INSTDIR
) -c
322 define gb_Top_DoInstall
323 echo
"$(1) in $(INSTALLDIR) ..." && \
324 WITH_LANG_LIST
="$(WITH_LANG_LIST)" $(SRCDIR
)/solenv
/bin
/ooinstall
$(2) "$(INSTALLDIR)"
329 define gb_Top_InstallFinished
330 echo
&& echo
"If you want to edit the .ui files with glade first execute:" && \
331 echo
&& echo
"export GLADE_CATALOG_SEARCH_PATH=$(2)/share/glade" && \
332 echo
&& echo
"$(1) finished, you can now execute:" && \
333 echo
"$(2)/program/soffice"
337 define gb_Top_InstallFinished
338 echo
&& echo
"$(1) finished, you can now run: " && \
339 echo
"open $(2)/$(PRODUCTNAME).app" && \
341 echo
"To debug: gdb $(2)/$(PRODUCTNAME).app/Contents/MacOS/soffice"
348 @
$(call gb_Top_DoInstall
,Installing
,)
349 @
$(call gb_Top_InstallFinished
,Installation
,$(INSTALLDIR
))
352 @
$(call gb_Top_DoInstall
,Installing and stripping binaries
,--strip)
353 @
$(call gb_Top_InstallFinished
,Installation
,$(INSTALLDIR
))
357 @
rm -rf
$(TESTINSTALLDIR
)
358 @mkdir
-p
$(TESTINSTALLDIR
)
359 ifeq ($(OS_FOR_BUILD
),WNT
)
360 cd
$(SRCDIR
)/instsetoo_native
&& $(MAKE
) LIBO_TEST_INSTALL
=TRUE
$(GMAKE_OPTIONS
)
362 @WITH_LANG_LIST
="$(WITH_LANG_LIST)" $(SRCDIR
)/solenv
/bin
/ooinstall
$(TESTINSTALLDIR
)
365 # Create Resources/*.lproj directories for languages supported by macOS
366 set
-x
; for lang in ca cs da de el en es fi fr hr hu id it ja ko ms nl no pl pt pt_PT ro ru sk sv th tr uk vi zh_CN zh_TW
; do \
367 lproj
=$(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
/Contents
/Resources
/$$lang.lproj
; \
371 # Remove unnecessary executables in the LibreOfficePython framework
372 rm -rf
$(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
/Contents
/Frameworks
/LibreOfficePython.framework
/Versions
/[1-9]*/bin
374 # Remove the python.o object file which is weird and interferes with app store uploading
375 # And with it removed, presumably the other stuff in the Python lib/python3.3/config-3.3m probably does not make sense either.
376 rm -rf
$(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
/Contents
/Frameworks
/LibreOfficePython.framework
/Versions
/[1-9]*/lib
/python
[1-9]*/config-
[1-9]*
378 ifneq ($(ENABLE_MACOSX_SANDBOX
),)
380 # Remove the gengal binary that we hardly need and the shell scripts
381 # for which code signatures (stored as extended attributes) won't
382 # survive upload to the App Store anyway. See
383 # https://developer.apple.com/library/content/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-TNTAG201
384 # We could put the shell scripts somewhere in Resources instead, but
385 # no 3rd-party code that would be interested in them would look there
387 rm $(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
/Contents
/MacOS
/gengal
388 rm $(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
/Contents
/MacOS
/unopkg
389 rm $(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
/Contents
/MacOS
/unoinfo
391 ifneq ($(MACOSX_PROVISIONING_PROFILE
),)
392 cp
"$(MACOSX_PROVISIONING_PROFILE)" $(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
/Contents
/embedded.provisionprofile
394 ifneq ($(MACOSX_CODESIGNING_IDENTITY
),)
395 # Then use the macosx-codesign-app-bundle script
396 @
$(SRCDIR
)/solenv
/bin
/macosx-codesign-app-bundle
$(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
400 @
$(call gb_Top_InstallFinished
,Test Installation
,$(TESTINSTALLDIR
))
402 # target to bypass the packaging steps/to only assemble the package
403 mac-app-store-package.prepare
: $(BUILDDIR
)/$(PLATFORMID
)/done
405 # shorthand target to build a complete package for the currently building architecture
406 mac-app-store-package
: mac-app-store-package.
$(PLATFORMID
)
408 # recipe/targets to do the actual packaging
409 # the symbolication switch to productbuild unfortunately is undocumented, but that is what XCode
410 # uses when it creates a package with symbols for uploading to the appstore
411 mac-app-store-package.
$(PLATFORMID
) mac-app-store-package.universal
: mac-app-store-package.
%: $(BUILDDIR
)/%/done
412 ifneq ($(MACOSX_PACKAGE_SIGNING_IDENTITY
),)
413 $(SRCDIR
)/solenv
/bin
/macosx-codesign-app-bundle
$*/"$(PRODUCTNAME)".app
414 productbuild
$(if
$(ENABLE_SYMBOLS_FOR
),--symbolication
$*/Symbols
) --component
$*/"$(PRODUCTNAME)".app
/Applications
--sign
$(MACOSX_PACKAGE_SIGNING_IDENTITY
) $(PRODUCTNAME_WITHOUT_SPACES
).pkg
416 @echo You did not provide an installer signing identity with
--enable-macosx-package-signing
420 # the builds need to persist a standard "make clean" to be able to combine them into a universal
421 # binary, so provide an additional target that can be used standalone or via make distclean
422 mac-app-store-package.
clean:
424 $(BUILDDIR
)/macosx_x86_64 \
425 $(BUILDDIR
)/macosx_aarch64 \
426 $(BUILDDIR
)/universal \
427 $(BUILDDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).pkg
429 # used by the mac-app-store targets
430 $(BUILDDIR
)/$(PLATFORMID
)/done
: test-install
432 mkdir
-p
$(PLATFORMID
)/Symbols
433 mv
$(TESTINSTALLDIR
)/$(PRODUCTNAME_WITHOUT_SPACES
).app
$(PLATFORMID
)/"$(PRODUCTNAME)".app
434 ifneq ($(ENABLE_SYMBOLS_FOR
),)
435 symbols
-arch
all -symbolsPackageDir
$(PLATFORMID
)/Symbols
$(PLATFORMID
)/"$(PRODUCTNAME)".app
/Contents
/Frameworks
/[^L
]* $(PLATFORMID
)/"$(PRODUCTNAME)".app
/Contents
/MacOS
/*
436 strip -S
$(PLATFORMID
)/"$(PRODUCTNAME)".app
/Contents
/Frameworks
/[^L
]* $(PLATFORMID
)/"$(PRODUCTNAME)".app
/Contents
/MacOS
/*
440 # build one arch using the mac-app-store-package.prepare target, make clean and change the autogen.input
441 # to build for the other target, then use mac-app-store-package.universal to build for the other arch and
442 # combine the two into a universal binary
443 $(BUILDDIR
)/universal
/done
: $(BUILDDIR
)/macosx_x86_64
/done
$(BUILDDIR
)/macosx_aarch64
/done
445 mkdir
-p universal
/Symbols
446 ifneq ($(ENABLE_SYMBOLS_FOR
),)
447 cp
-a macosx_x86_64
/Symbols
/* macosx_aarch64
/Symbols
/* universal
/Symbols
/
449 $(SRCDIR
)/bin
/merge-app-bundles macosx_x86_64
/"$(PRODUCTNAME)".app macosx_aarch64
/"$(PRODUCTNAME)".app universal
/"$(PRODUCTNAME)".app
452 distro-pack-install
: install
453 WITH_LANG_LIST
="$(WITH_LANG_LIST)" WITH_POOR_HELP_LOCALIZATIONS
="$(WITH_POOR_HELP_LOCALIZATIONS)" $(SRCDIR
)/bin
/distro-install-clean-up
454 $(SRCDIR
)/bin
/distro-install-desktop-integration
455 $(SRCDIR
)/bin
/distro-install-sdk
456 WITH_LANG_LIST
="$(WITH_LANG_LIST)" $(SRCDIR
)/bin
/distro-install-file-lists
459 $(MAKE
) $(GMAKE_OPTIONS
) -f
$(SRCDIR
)/Makefile.gbuild
$@
462 @
$(SRCDIR
)/solenv
/bin
/create-ids
465 @
$(SRCDIR
)/solenv
/bin
/create-tags
468 @
$(SRCDIR
)/solenv
/bin
/create-tags
-e
471 @
$(SRCDIR
)/solenv
/bin
/mkdocs.sh
$(SRCDIR
)/docs
$(SRCDIR
)/solenv
/inc
/doxygen.cfg
474 $(SRCDIR
)/bin
/find-unusedheaders.py
477 rm -fr
$(WORKDIR
)/symbols
/
478 mkdir
-p
$(WORKDIR
)/symbols
/
480 $(SRCDIR
)/bin
/symbolstore.py
$(WORKDIR
)/UnpackedTarball
/breakpad
/src
/tools
/windows
/dump_syms
/Release
/dump_syms.exe
$(WORKDIR
)/symbols
/ $(INSTDIR
)/program
/
481 $(SRCDIR
)/bin
/symstore.sh
483 $(SRCDIR
)/bin
/symbolstore.py
$(WORKDIR
)/UnpackedTarball
/breakpad
/src
/tools
/linux
/dump_syms
/dump_syms
$(WORKDIR
)/symbols
/ $(INSTDIR
)/program
/*
486 cd
$(WORKDIR
)/symbols
/ && zip
-r
$(WORKDIR
)/symbols.zip
*
489 rm -fr
$(WORKDIR
)/installation
/mar
/
490 rm -fr
$(WORKDIR
)/installation
/temp
/
491 mkdir
-p
$(WORKDIR
)/installation
/temp
/
492 mkdir
-p
$(WORKDIR
)/installation
/mar
/
493 tar -xzf
$(WORKDIR
)/installation
/LibreOfficeDev
/archive
/install/en-US
/LibreOffice
* -C
$(WORKDIR
)/installation
/temp
/
494 $(SRCDIR
)/bin
/update
/make_full_update.sh
$(WORKDIR
)/installation
/mar
/test.mar
$(WORKDIR
)/installation
/temp
/*/
497 $(MAKE
) -f
$(SRCDIR
)/Makefile.gbuild upload-symbols
500 $(MAKE
) -f
$(SRCDIR
)/Makefile.gbuild create-update-info
503 $(MAKE
) -f
$(SRCDIR
)/Makefile.gbuild create-partial-info
506 @
$(SRCDIR
)/bin
/module-deps.pl
$(if
$(verbose
),-v
) $(MAKE
) $(SRCDIR
)/Makefile.gbuild
509 @
$(SRCDIR
)/bin
/module-deps.pl
$(if
$(verbose
),-v
) $(MAKE
) $(SRCDIR
)/Makefile.gbuild | dot
-Tpng
-o lo.png
512 @
$(SRCDIR
)/bin
/module-deps.pl
-t
$(if
$(verbose
),-v
) $(MAKE
) $(SRCDIR
)/Makefile.gbuild
515 @
$(SRCDIR
)/solenv
/clang-format
/check-last-commit
517 define gb_Top_GbuildToIdeIntegration
518 $(1)-ide-integration
: gbuildtojson
$(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),python3.allbuild
)
520 $(if
$(filter MACOSX
,$(OS_FOR_BUILD
)),PATH
="$(INSTROOT_FOR_BUILD)/Frameworks/LibreOfficePython.framework/Versions/Current/bin:$(PATH)") \
521 bin
/gbuild-to-ide
--ide
$(1) --make
$(MAKE
)
533 $(eval
$(call gb_Top_GbuildToIdeIntegration
,$(ide
))))
535 # vscode integration is based on compile_commands.json, which is generated by vim-ide-integration
536 # the workspace template created by configure doesn't provide advanced/fine grained targets but
537 # rather supplies some useful settings and basic examples for run/debug configurations
538 # this target is provided primarily for consistency with the other ide-integrations
539 vscode-ide-integration
: $(BUILDDIR
)/vs-code.code-workspace vim-ide-integration
541 # ToDo: there probably is a way to have it at least create the compile-commands.json file
542 # for the vim/vs-code integration without building the registry stuff
546 $(BUILDDIR
)/vs-code.code-workspace
: $(BUILDDIR
)/vs-code.code-workspace.template
547 @
test -e
$@ || cp
$< $@
&& \
548 cmp
-s
$@
$< || echo
"ATTN: $(@F) differs from $(<F), please check yourself for changes"
550 endif # MAKE_RESTARTS
552 # vim: set noet sw=4 ts=4: