make additionsdialog show connection errors
[LibreOffice.git] / Makefile.in
blobb2d59e3075abe64ed84aefe1c52280ae4cade2f0
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)
14 MAKECMDGOALS?=build
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))
19 SRCDIR := @SRC_ROOT@
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
26 # autogen.sh:
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
38 @touch $@
40 # run configure in an environment not polluted by config_host.mk
41 ifneq ($(MSYSTEM),)
42 WSL:=@WSL@
43 # wsl needs unix-style path into windows realm
44 $(BUILDDIR)/config_host.mk : SRCDIR:=/$(shell $(WSL) wslpath -u $(SRCDIR))
45 endif
46 $(BUILDDIR)/config_host.mk : $(wildcard \
47 $(SRCDIR)/autogen.sh \
48 $(SRCDIR)/config_host.mk.in \
49 $(SRCDIR)/config_host_lang.mk.in \
50 $(SRCDIR)/Makefile.in \
51 $(SRCDIR)/instsetoo_native/util/openoffice.lst.in \
52 $(SRCDIR)/configure.ac \
53 $(SRCDIR)/config_host/*.h.in \
54 $(SRCDIR)/download.lst \
55 $(SRCDIR)/m4/*.m4 \
56 $(BUILDDIR)/autogen.input \
57 $(BUILDDIR)/autogen.lastrun \
58 ) \
59 $(shell if test -n '$(JAVA_HOME)' -a ! -d '$(JAVA_HOME)'; then echo force-restart; fi)
60 sh -c "$(if $(MSYSTEM),$(WSL) )$(SRCDIR)/autogen.sh"
62 else # MAKE_RESTARTS
64 .DEFAULT_GOAL := build
66 # Nested test is to check if the systemd-detect-virt command doesn't exist or it reports we're not
67 # in a container:
68 check-if-root:
69 @if test ! `uname` = 'Haiku' -a `id -u` = 0; then \
70 if test ! -x "$$(command -v systemd-detect-virt)" || ! systemd-detect-virt -c -q; then \
71 echo; \
72 echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \
73 echo; \
74 exit 1; \
75 fi \
78 gb_Side ?= host
80 include $(BUILDDIR)/config_$(gb_Side).mk
82 export GMAKE_OPTIONS?=-r$(if $(verbose),,s)$(value $(MAKEFLAGS))
84 PARALLELISM_OPTION := $(if $(filter-out 0,$(PARALLELISM)),-j $(PARALLELISM),)
87 # Partial Build
89 define gb_Top_GbuildModuleRules
90 .PHONY: $(1) $(1).build $(1).all $(1).check $(1).clean $(1).showdeliverables $(1).coverage $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target))
91 .PHONY: $(1).allbuild $(1).buildall $(1).allcheck $(1).checkall
93 $(1): bootstrap fetch
94 $(KEEP_AWAKE_CMD) cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS)
96 $(1).build $(1).check $(1).coverage $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target)): bootstrap fetch
97 $(KEEP_AWAKE_CMD) cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
99 $(1).clean $(1).showdeliverables:
100 cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
102 $(1).allbuild $(1).buildall: bootstrap fetch
103 $(KEEP_AWAKE_CMD) $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(WORKDIR)/Module/$(1)
105 $(1).allcheck $(1).checkall: bootstrap fetch
106 $(KEEP_AWAKE_CMD) $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(WORKDIR)/Module/$(1) $(WORKDIR)/Module/check/$(1) $(WORKDIR)/Module/slowcheck/$(1)
108 $(1).all:
109 @echo "'make $(1).all' was renamed to 'make $(1).allcheck' (or use 'make $(1).allbuild' to build without unit tests)"
110 @exit 42
112 endef
114 define gb_Top_GbuildModulesRules
115 $(foreach m,$(1),$(call gb_Top_GbuildModuleRules,$(notdir $(m)),$(m)))
116 endef
118 gbuild_modules := $(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk $(SRCDIR)/external/*/Module_*.mk)))
120 gbuild_internal_modules := $(filter-out odk external,$(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk))))
122 internal.clean: $(addsuffix .clean,$(gbuild_internal_modules))
125 $(eval $(call gb_Top_GbuildModulesRules,$(gbuild_modules)))
127 gbuild_TARGETS := AllLangHelp \
128 AllLangMoTarget \
129 AllLangPackage \
130 AutoInstall \
131 CliLibrary \
132 CliNativeLibrary \
133 CliUnoApi \
134 CompilerTest \
135 ComponentTarget \
136 Configuration \
137 CppunitTest \
138 CustomTarget \
139 Dictionary \
140 DotnetLibrary \
141 Executable \
142 Extension \
143 ExtensionPackage \
144 ExtensionPackageSet \
145 ExternalPackage \
146 ExternalProject \
147 Gallery \
148 GeneratedPackage \
149 InstallModule \
150 InstallScript \
151 InternalUnoApi \
152 Jar \
153 JunitTest \
154 Library \
155 Module \
156 Package \
157 PackageSet \
158 Pagein \
159 Postprocess \
160 Pyuno \
161 PythonTest \
162 Rdb \
163 SdiTarget \
164 StaticLibrary \
165 UIConfig \
166 UITest \
167 UnoApi \
168 UnpackedTarball \
169 WinResTarget \
170 Zip \
172 # build a generic gbuild target
173 $(foreach target,$(gbuild_TARGETS),$(target)_% $(foreach module,$(gbuild_modules),$(target)_$(module)/%)) UIConfig_modules/% %.genpatch: bootstrap fetch
174 $(KEEP_AWAKE_CMD) $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
176 $(gbuild_TARGETS):
177 $(KEEP_AWAKE_CMD) $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
180 # Clean
182 clean: clean-host clean-build
184 clean-host:
185 rm -fr $(TESTINSTALLDIR)
186 rm -fr $(INSTDIR)
187 rm -fr $(WORKDIR)
189 clean-build:
190 ifneq ($(CROSS_COMPILING),)
191 rm -fr $(INSTDIR_FOR_BUILD)
192 rm -fr $(WORKDIR_FOR_BUILD)
193 ifeq ($(OS),ANDROID)
194 rm -fr $(BUILDDIR)/android/obj
195 rm -fr $(BUILDDIR)/android/jniLibs
196 rm -fr $(SRCDIR)/android/source/build
197 rm -fr $(SRCDIR)/android/source/assets
198 rm -fr $(SRCDIR)/android/source/assets_fullUI
199 rm -fr $(SRCDIR)/android/source/assets_strippedUI
200 rm -fr $(SRCDIR)/android/source/res_generated
201 endif
202 endif
204 include $(SRCDIR)/compilerplugins/Makefile.mk
207 # Distclean
209 distclean : clean compilerplugins-clean mac-app-store-package.clean
210 rm -fr \
211 $(BUILDDIR)/Makefile \
212 $(BUILDDIR)/aclocal.m4 \
213 $(BUILDDIR)/autom4te.cache \
214 $(BUILDDIR)/bin/bffvalidator.sh \
215 $(BUILDDIR)/bin/odfvalidator.sh \
216 $(BUILDDIR)/bin/officeotron.sh \
217 $(BUILDDIR)/config.Build.log \
218 $(BUILDDIR)/config.Build.warn \
219 $(BUILDDIR)/config.log \
220 $(BUILDDIR)/config.status \
221 $(BUILDDIR)/config.warn \
222 $(BUILDDIR)/config_build.mk \
223 $(BUILDDIR)/config_build_lang.mk \
224 $(BUILDDIR)/config_build \
225 $(BUILDDIR)/config_host.mk \
226 $(BUILDDIR)/config_host.mk.stamp \
227 $(BUILDDIR)/config_host_lang.mk \
228 $(BUILDDIR)/config_host_lang.mk.stamp \
229 $(BUILDDIR)/config_host/*.h \
230 $(BUILDDIR)/configure \
231 $(BUILDDIR)/hardened_runtime.xcent \
232 $(BUILDDIR)/instsetoo_native/util/openoffice.lst \
233 $(BUILDDIR)/solenv/lockfile/autoconf.h \
234 $(BUILDDIR)/lo.xcent \
235 $(BUILDDIR)/sysui/desktop/macosx/Info.plist \
236 $(BUILDDIR)/vs-code*.code-workspace*
237 $(if $(filter WNT,$(OS)),env -i PATH="$$PATH") $(FIND) $(SRCDIR)/solenv/gdb -name \*.pyc -exec rm -f {} \;
240 # custom command
242 cmd:
243 $(if $(verbose),echo "custom cmd" &&) ( $(cmd) )
246 # Fetch
248 ifneq ($(DO_FETCH_TARBALLS),)
249 include $(SRCDIR)/Makefile.fetch
250 fetch: download
251 fetch: get-submodules
253 ifneq (,$(wildcard $(SRCDIR)/.git))
254 get-submodules:
255 ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git)))
256 cd $(SRCDIR) && ./g -f clone
257 endif
258 ifeq ($(shell test -d $(SRCDIR)/.git; echo $$?),0)
259 @cd $(SRCDIR) && ./g -z # make sure the git hooks are in place even if no submodules are needed
260 endif
262 else # these sources are from a tarball, so get the other source tarballs
263 gb_LO_VER := $(shell . $(SRCDIR)/sources.ver && echo $$lo_sources_ver)
264 $(if $(gb_LO_VER),,$(error Error while retrieving $$lo_sources_ver from $(SRCDIR)/sources.ver))
266 get-submodules: | download
267 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))))
268 $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
269 $(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))
270 $(SRCDIR)/bin/unpack-sources $(SRCDIR) $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
271 $(TARFILE_LOCATION)/libreoffice-$(i)-$(gb_LO_VER).tar.xz)
272 endif
274 endif
276 else
277 fetch:
278 @echo "Automatic fetching of external tarballs is disabled."
280 endif
283 # Bootstrap
285 bootstrap: check-if-root compilerplugins
288 # Build
290 # Note: this will pipe through all gbuild targets to ... gbuild
291 # with some translations like "check"->"unitcheck subsequentcheck uicheck" for historic reasons
293 build: bootstrap fetch $(if $(CROSS_COMPILING),cross-toolset,install-gdb-printers) \
294 $(if $(filter check,$(MAKECMDGOALS)),$(if $(COMPILER_PLUGINS),$(if $(LODE_HOME),clang-format-check)))
295 $(KEEP_AWAKE_CMD) $(MAKE) $(PARALLELISM_OPTION) $(IWYU_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(build_goal)
296 ifeq ($(OS),iOS)
297 $(KEEP_AWAKE_CMD) $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) ios
298 endif
300 build-non-l10n-only build-l10n-only check debugrun translations packageinfo coverage $(gb_Top_MODULE_CHECK_TARGETS): build
302 help showmodules gbuildtojson pocheck:
303 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
305 cross-toolset: bootstrap fetch install-gdb-printers
306 # fetch again in case there are externals only needed on build platform
307 ifneq ($(OS),iOS)
308 $(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(BUILDDIR)/Makefile fetch
309 endif
310 $(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild build-tools
312 install-gdb-printers:
313 ifneq ($(filter-out WNT MACOSX iOS,$(OS)),)
314 ifneq ($(INSTDIR_FOR_BUILD),$(INSTDIR))
315 mkdir -p $(INSTDIR_FOR_BUILD)
316 $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR_FOR_BUILD) -c
317 endif
318 mkdir -p $(INSTDIR)
319 $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR) -c
320 endif
324 # Install
327 define gb_Top_DoInstall
328 echo "$(1) in $(INSTALLDIR) ..." && \
329 WITH_LANG_LIST="$(WITH_LANG_LIST)" $(SRCDIR)/solenv/bin/ooinstall $(2) "$(INSTALLDIR)"
331 endef
333 ifneq ($(OS),MACOSX)
334 define gb_Top_InstallFinished
335 echo && echo "If you want to edit the .ui files with glade first execute:" && \
336 echo && echo "export GLADE_CATALOG_SEARCH_PATH=$(2)/share/glade" && \
337 echo && echo "$(1) finished, you can now execute:" && \
338 echo "$(2)/program/soffice"
340 endef
341 else
342 define gb_Top_InstallFinished
343 echo && echo "$(1) finished, you can now run: " && \
344 echo "open $(2)/$(PRODUCTNAME).app" && \
345 echo "" && \
346 echo "To debug: gdb $(2)/$(PRODUCTNAME).app/Contents/MacOS/soffice"
348 endef
349 endif
351 ifneq ($(OS),MACOSX)
352 install:
353 @$(call gb_Top_DoInstall,Installing,)
354 @$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
356 install-strip:
357 @$(call gb_Top_DoInstall,Installing and stripping binaries,--strip)
358 @$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
359 endif # !MACOSX
361 test-install: build
362 @rm -rf $(TESTINSTALLDIR)
363 @mkdir -p $(TESTINSTALLDIR)
364 ifeq ($(OS_FOR_BUILD),WNT)
365 cd $(SRCDIR)/instsetoo_native && $(MAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
366 else
367 @WITH_LANG_LIST="$(WITH_LANG_LIST)" $(SRCDIR)/solenv/bin/ooinstall $(TESTINSTALLDIR)
368 ifeq ($(OS),MACOSX)
370 # Create Resources/*.lproj directories for languages supported by macOS
371 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 \
372 lproj=$(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Resources/$$lang.lproj; \
373 mkdir "$$lproj"; \
374 done
376 # Remove unnecessary executables in the LibreOfficePython framework
377 rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/bin
379 # Remove the python.o object file which is weird and interferes with app store uploading
380 # And with it removed, presumably the other stuff in the Python lib/python3.3/config-3.3m probably does not make sense either.
381 rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/lib/python[1-9]*/config-[1-9]*
383 ifneq ($(ENABLE_MACOSX_SANDBOX),)
385 # Remove the gengal binary that we hardly need and the shell scripts
386 # for which code signatures (stored as extended attributes) won't
387 # survive upload to the App Store anyway. See
388 # https://developer.apple.com/library/content/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-TNTAG201
389 # We could put the shell scripts somewhere in Resources instead, but
390 # no 3rd-party code that would be interested in them would look there
391 # anyway.
392 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/gengal
393 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unopkg
394 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unoinfo
395 endif
396 ifneq ($(MACOSX_PROVISIONING_PROFILE),)
397 cp "$(MACOSX_PROVISIONING_PROFILE)" $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/embedded.provisionprofile
398 endif
399 ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
400 # Then use the macosx-codesign-app-bundle script
401 @$(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app
402 endif
403 endif
404 endif
405 @$(call gb_Top_InstallFinished,Test Installation,$(TESTINSTALLDIR))
407 # target to bypass the packaging steps/to only assemble the package
408 mac-app-store-package.prepare: $(BUILDDIR)/$(PLATFORMID)/done
410 # shorthand target to build a complete package for the currently building architecture
411 mac-app-store-package: mac-app-store-package.$(PLATFORMID)
413 # recipe/targets to do the actual packaging
414 # the symbolication switch to productbuild unfortunately is undocumented, but that is what XCode
415 # uses when it creates a package with symbols for uploading to the appstore
416 mac-app-store-package.$(PLATFORMID) mac-app-store-package.universal: mac-app-store-package.%: $(BUILDDIR)/%/done
417 ifneq ($(MACOSX_PACKAGE_SIGNING_IDENTITY),)
418 $(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $*/"$(PRODUCTNAME)".app
419 productbuild $(if $(ENABLE_SYMBOLS_FOR),--symbolication $*/Symbols) --component $*/"$(PRODUCTNAME)".app /Applications --sign $(MACOSX_PACKAGE_SIGNING_IDENTITY) $(PRODUCTNAME_WITHOUT_SPACES).pkg
420 else
421 @echo You did not provide an installer signing identity with --enable-macosx-package-signing
422 @exit 1
423 endif
425 # the builds need to persist a standard "make clean" to be able to combine them into a universal
426 # binary, so provide an additional target that can be used standalone or via make distclean
427 mac-app-store-package.clean:
428 rm -rf \
429 $(BUILDDIR)/macosx_x86_64 \
430 $(BUILDDIR)/macosx_aarch64 \
431 $(BUILDDIR)/universal \
432 $(BUILDDIR)/$(PRODUCTNAME_WITHOUT_SPACES).pkg
434 # used by the mac-app-store targets
435 $(BUILDDIR)/$(PLATFORMID)/done: test-install
436 rm -rf $(PLATFORMID)
437 mkdir -p $(PLATFORMID)/Symbols
438 mv $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app $(PLATFORMID)/"$(PRODUCTNAME)".app
439 ifneq ($(ENABLE_SYMBOLS_FOR),)
440 symbols -arch all -symbolsPackageDir $(PLATFORMID)/Symbols $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/Frameworks/[^L]* $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/MacOS/*
441 strip -S $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/Frameworks/[^L]* $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/MacOS/*
442 endif
443 touch $@
445 # build one arch using the mac-app-store-package.prepare target, make clean and change the autogen.input
446 # to build for the other target, then use mac-app-store-package.universal to build for the other arch and
447 # combine the two into a universal binary
448 $(BUILDDIR)/universal/done: $(BUILDDIR)/macosx_x86_64/done $(BUILDDIR)/macosx_aarch64/done
449 rm -rf universal
450 mkdir -p universal/Symbols
451 ifneq ($(ENABLE_SYMBOLS_FOR),)
452 cp -a macosx_x86_64/Symbols/* macosx_aarch64/Symbols/* universal/Symbols/
453 endif
454 $(SRCDIR)/bin/merge-app-bundles macosx_x86_64/"$(PRODUCTNAME)".app macosx_aarch64/"$(PRODUCTNAME)".app universal/"$(PRODUCTNAME)".app
455 touch $@
457 distro-pack-install: install
458 WITH_LANG_LIST="$(WITH_LANG_LIST)" WITH_POOR_HELP_LOCALIZATIONS="$(WITH_POOR_HELP_LOCALIZATIONS)" $(SRCDIR)/bin/distro-install-clean-up
459 $(SRCDIR)/bin/distro-install-desktop-integration
460 $(SRCDIR)/bin/distro-install-sdk
461 WITH_LANG_LIST="$(WITH_LANG_LIST)" $(SRCDIR)/bin/distro-install-file-lists
463 install-package-%:
464 $(MAKE) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
467 @$(SRCDIR)/solenv/bin/create-ids
469 tags:
470 @$(SRCDIR)/solenv/bin/create-tags
472 etags:
473 @$(SRCDIR)/solenv/bin/create-tags -e
475 docs:
476 @$(SRCDIR)/solenv/bin/mkdocs.sh $(SRCDIR)/docs $(SRCDIR)/solenv/inc/doxygen.cfg
478 findunusedheaders:
479 $(SRCDIR)/bin/find-unusedheaders.py
481 symbols:
482 rm -fr $(WORKDIR)/symbols/
483 mkdir -p $(WORKDIR)/symbols/
484 ifeq ($(OS),WNT)
485 $(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/windows/dump_syms/Release/dump_syms.exe $(WORKDIR)/symbols/ $(INSTDIR)/program/
486 $(SRCDIR)/bin/symstore.sh
487 else
488 $(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/linux/dump_syms/dump_syms $(WORKDIR)/symbols/ $(INSTDIR)/program/*
489 endif
491 cd $(WORKDIR)/symbols/ && zip -r $(WORKDIR)/symbols.zip *
493 create-mar:
494 rm -fr $(WORKDIR)/installation/mar/
495 rm -fr $(WORKDIR)/installation/temp/
496 mkdir -p $(WORKDIR)/installation/temp/
497 mkdir -p $(WORKDIR)/installation/mar/
498 tar -xzf $(WORKDIR)/installation/LibreOfficeDev/archive/install/en-US/LibreOffice* -C $(WORKDIR)/installation/temp/
499 $(SRCDIR)/bin/update/make_full_update.sh $(WORKDIR)/installation/mar/test.mar $(WORKDIR)/installation/temp/*/
501 upload-symbols:
502 $(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-symbols
504 create-update-info:
505 $(MAKE) -f $(SRCDIR)/Makefile.gbuild create-update-info
507 create-partial-info:
508 $(MAKE) -f $(SRCDIR)/Makefile.gbuild create-partial-info
510 dump-deps:
511 @$(SRCDIR)/bin/module-deps.pl $(if $(verbose),-v) $(MAKE) $(SRCDIR)/Makefile.gbuild
513 dump-deps-png:
514 @$(SRCDIR)/bin/module-deps.pl $(if $(verbose),-v) $(MAKE) $(SRCDIR)/Makefile.gbuild | dot -Tpng -o lo.png
516 dump-deps-sort:
517 @$(SRCDIR)/bin/module-deps.pl -t $(if $(verbose),-v) $(MAKE) $(SRCDIR)/Makefile.gbuild
519 clang-format-check:
520 @$(SRCDIR)/solenv/clang-format/check-last-commit
522 define gb_Top_GbuildToIdeIntegration
523 $(1)-ide-integration: gbuildtojson $(if $(filter MACOSX,$(OS_FOR_BUILD)),python3.allbuild)
524 cd $(SRCDIR) && \
525 $(if $(filter MACOSX,$(OS_FOR_BUILD)),PATH="$(INSTROOT_FOR_BUILD)/Frameworks/LibreOfficePython.framework/Versions/Current/bin:$(PATH)") \
526 $(if $(filter WNT,$(OS_FOR_BUILD)$(PYTHON_FOR_BUILD)),$(INSTROOT_FOR_BUILD)/program/python.exe) \
527 bin/gbuild-to-ide --ide $(1) --make $(MAKE)
529 endef
531 $(foreach ide,\
532 codelite \
533 vs \
534 kdevelop \
535 vim \
536 qtcreator \
537 xcode \
538 eclipsecdt,\
539 $(eval $(call gb_Top_GbuildToIdeIntegration,$(ide))))
541 # vscode integration is based on compile_commands.json, which is generated by vim-ide-integration
542 # the workspace template created by configure doesn't provide advanced/fine grained targets but
543 # rather supplies some useful settings and basic examples for run/debug configurations
544 # this target is provided primarily for consistency with the other ide-integrations
545 vscode-ide-integration: $(BUILDDIR)/vs-code.code-workspace vim-ide-integration
547 # ToDo: there probably is a way to have it at least create the compile-commands.json file
548 # for the vim/vs-code integration without building the registry stuff
549 Rdb:| fetch
550 gbuildtojson: Rdb
552 $(BUILDDIR)/vs-code.code-workspace: $(BUILDDIR)/vs-code.code-workspace.template
553 @test -e $@ || cp $< $@ && \
554 cmp -s $@ $< || echo "ATTN: $(@F) differs from $(<F), please check yourself for changes"
556 endif # MAKE_RESTARTS
558 # vim: set noet sw=4 ts=4: