tdf#153972 Fix color filter when cells have no content
[LibreOffice.git] / Makefile.in
blobf15ed75d8acfff76e259762b498898b4dc3f6aa7
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 internal.clean $(gb_Top_MODULE_CHECK_TARGETS)
14 MAKECMDGOALS?=build
15 build_goal:=$(if $(filter build build-nocheck 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 $(BUILDDIR)/config_host.mk : $(wildcard \
42 $(SRCDIR)/config_host.mk.in \
43 $(SRCDIR)/config_host_lang.mk.in \
44 $(SRCDIR)/Makefile.in \
45 $(SRCDIR)/instsetoo_native/util/openoffice.lst.in \
46 $(SRCDIR)/configure.ac \
47 $(SRCDIR)/config_host/*.h.in \
48 $(SRCDIR)/download.lst \
49 $(BUILDDIR)/autogen.input \
50 $(BUILDDIR)/autogen.lastrun \
51 $(BUILDDIR)/autogen.sh \
52 ) \
53 $(shell . $(SRCDIR)/bin/get_config_variables JAVA_HOME && \
54 if test -n "$${JAVA_HOME}" -a ! -d "$${JAVA_HOME}/bin"; then echo force-restart; fi)
55 sh -c $(SRCDIR)/autogen.sh
57 else # MAKE_RESTARTS
59 .DEFAULT_GOAL := build
61 # Nested test is to check if the systemd-detect-virt command doesn't exist or it reports we're not
62 # in a container:
63 check-if-root:
64 @if test ! `uname` = 'Haiku' -a `id -u` = 0; then \
65 if test ! -x "$$(command -v systemd-detect-virt)" || ! systemd-detect-virt -c -q; then \
66 echo; \
67 echo 'Building LibreOffice as root is a very bad idea, use a regular user.'; \
68 echo; \
69 exit 1; \
70 fi \
73 gb_Side ?= host
75 include $(BUILDDIR)/config_$(gb_Side).mk
77 export GMAKE_OPTIONS?=-r$(if $(verbose),,s)$(value $(MAKEFLAGS))
79 PARALLELISM_OPTION := $(if $(filter-out 0,$(PARALLELISM)),-j $(PARALLELISM),)
81 IWYU_OPTION := $(if $(IWYU_PATH),-k CC=$(IWYU_PATH) CXX=$(IWYU_PATH),)
83 # don't want to have a dependency to iwyudummy.generate because it's
84 # useful to manually edit the generated StaticLibrary_iwyudummy.mk
85 iwyudummy: bootstrap fetch
86 $(if $(wildcard $(BUILDDIR)/iwyudummy),,$(error first call "make iwyudummy.generate"))
87 cd $(BUILDDIR)/iwyudummy && $(MAKE) $(IWYU_OPTION) $(GMAKE_OPTIONS)
89 iwyudummy.generate:
90 $(SRCDIR)/bin/gen-iwyu-dummy-lib
93 # Partial Build
95 define gb_Top_GbuildModuleRules
96 .PHONY: $(1) $(1).build $(1).all $(1).check $(1).clean $(1).showdeliverables $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target))
98 $(1): bootstrap fetch
99 cd $(SRCDIR)/$(2) && $$(MAKE) $(IWYU_OPTION) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS)
101 $(1).build $(1).check $(foreach target,$(gb_Top_MODULE_CHECK_TARGETS),$(1).$(target)): bootstrap fetch
102 cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
104 $(1).clean $(1).showdeliverables:
105 cd $(SRCDIR)/$(2) && $$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) $$(patsubst $(1).%,%,$$@)
107 $(1).all: bootstrap fetch
108 $$(MAKE) $(PARALLELISM_OPTION) $(IWYU_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(WORKDIR)/Module/$(1) $(WORKDIR)/Module/check/$(1) $(WORKDIR)/Module/slowcheck/$(1)
110 endef
112 define gb_Top_GbuildModulesRules
113 $(foreach m,$(1),$(call gb_Top_GbuildModuleRules,$(notdir $(m)),$(m)))
114 endef
116 gbuild_modules := $(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk $(SRCDIR)/external/*/Module_*.mk)))
118 gbuild_internal_modules := $(filter-out odk external,$(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk))))
120 internal.clean: $(addsuffix .clean,$(gbuild_internal_modules))
123 $(eval $(call gb_Top_GbuildModulesRules,$(gbuild_modules)))
125 gbuild_TARGETS := AllLangHelp \
126 AllLangMoTarget \
127 AllLangPackage \
128 AutoInstall \
129 CliLibrary \
130 CliNativeLibrary \
131 CliUnoApi \
132 CompilerTest \
133 Configuration \
134 CppunitTest \
135 CustomTarget \
136 Dictionary \
137 Executable \
138 Extension \
139 ExtensionPackage \
140 ExtensionPackageSet \
141 ExternalPackage \
142 ExternalProject \
143 Gallery \
144 GeneratedPackage \
145 InstallModule \
146 InstallScript \
147 InternalUnoApi \
148 Jar \
149 JunitTest \
150 Library \
151 Module \
152 Package \
153 PackageSet \
154 Pagein \
155 Postprocess \
156 Pyuno \
157 PythonTest \
158 Rdb \
159 SdiTarget \
160 StaticLibrary \
161 UIConfig \
162 UITest \
163 UnoApi \
164 UnpackedTarball \
165 WinResTarget \
166 Zip \
168 # build a generic gbuild target
169 $(foreach target,$(gbuild_TARGETS),$(target)_% $(foreach module,$(gbuild_modules),$(target)_$(module)/%)) UIConfig_modules/% %.genpatch: bootstrap fetch
170 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
172 $(gbuild_TARGETS):
173 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
176 # Clean
178 clean: clean-host clean-build
180 clean-host:
181 rm -fr $(TESTINSTALLDIR)
182 rm -fr $(INSTDIR)
183 rm -fr $(WORKDIR)
185 clean-build:
186 ifneq ($(CROSS_COMPILING),)
187 rm -fr $(INSTDIR_FOR_BUILD)
188 rm -fr $(WORKDIR_FOR_BUILD)
189 ifeq ($(OS),ANDROID)
190 rm -fr $(BUILDDIR)/android/obj
191 rm -fr $(BUILDDIR)/android/jniLibs
192 rm -fr $(SRCDIR)/android/source/build
193 rm -fr $(SRCDIR)/android/source/assets
194 rm -fr $(SRCDIR)/android/source/assets_fullUI
195 rm -fr $(SRCDIR)/android/source/assets_strippedUI
196 endif
197 endif
199 include $(SRCDIR)/compilerplugins/Makefile.mk
202 # Distclean
204 distclean : clean compilerplugins-clean mac-app-store-package.clean
205 rm -fr \
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)/lo.xcent \
229 $(BUILDDIR)/sysui/desktop/macosx/Info.plist \
230 $(BUILDDIR)/vs-code-template.code-workspace
231 $(if $(filter WNT,$(OS)),env -i PATH="$$PATH") $(FIND) $(SRCDIR)/solenv/gdb -name \*.pyc -exec rm {} \;
234 # custom command
236 cmd:
237 $(if $(verbose),echo "custom cmd" &&) ( $(cmd) )
240 # Fetch
242 ifneq ($(DO_FETCH_TARBALLS),)
243 include $(SRCDIR)/Makefile.fetch
244 fetch: download
245 fetch: get-submodules
247 ifneq (,$(wildcard $(SRCDIR)/.git))
248 get-submodules:
249 ifneq ($(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git),$(wildcard $(foreach i,$(GIT_NEEDED_SUBMODULES),$(SRCDIR)/$(i)/.git)))
250 cd $(SRCDIR) && ./g -f clone
251 endif
252 ifeq ($(shell test -d $(SRCDIR)/.git; echo $$?),0)
253 @cd $(SRCDIR) && ./g -z # make sure the git hooks are in place even if no submodules are needed
254 endif
256 else # these sources are from a tarball, so get the other source tarballs
257 gb_LO_VER := $(shell . $(SRCDIR)/sources.ver && echo $$lo_sources_ver)
258 $(if $(gb_LO_VER),,$(error Error while retrieving $$lo_sources_ver from $(SRCDIR)/sources.ver))
260 get-submodules: | download
261 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))))
262 $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
263 $(call fetch_Download_item_unchecked,http://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))
264 $(SRCDIR)/bin/unpack-sources $(SRCDIR) $(foreach i,$(subst helpcontent2,help,$(GIT_NEEDED_SUBMODULES)),\
265 $(TARFILE_LOCATION)/libreoffice-$(i)-$(gb_LO_VER).tar.xz)
266 endif
268 endif
270 else
271 fetch:
272 @echo "Automatic fetching of external tarballs is disabled."
274 endif
277 # Bootstrap
279 bootstrap: check-if-root compilerplugins
282 # Build
284 # Note: this will pipe through all gbuild targets to ... gbuild
285 # with some translations like "check"->"unitcheck subsequentcheck uicheck" for historic reasons
287 build: bootstrap fetch $(if $(CROSS_COMPILING),cross-toolset,install-gdb-printers) \
288 $(if $(filter check,$(MAKECMDGOALS)),$(if $(COMPILER_PLUGINS),$(if $(LODE_HOME),clang-format-check)))
289 $(MAKE) $(PARALLELISM_OPTION) $(IWYU_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $(build_goal)
290 ifeq ($(OS),iOS)
291 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) ios
292 endif
294 build-non-l10n-only build-l10n-only build-nocheck check debugrun translations packageinfo $(gb_Top_MODULE_CHECK_TARGETS): build
296 help showmodules gbuildtojson:
297 $(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
299 cross-toolset: bootstrap fetch install-gdb-printers
300 # fetch again in case there are externals only needed on build platform
301 ifneq ($(OS),iOS)
302 $(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(BUILDDIR)/Makefile fetch
303 endif
304 $(MAKE) gb_Side=build $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild build-tools
306 install-gdb-printers:
307 ifneq ($(filter-out WNT MACOSX iOS,$(OS)),)
308 ifneq ($(INSTDIR_FOR_BUILD),$(INSTDIR))
309 mkdir -p $(INSTDIR_FOR_BUILD)
310 $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR_FOR_BUILD) -c
311 endif
312 mkdir -p $(INSTDIR)
313 $(SRCDIR)/solenv/bin/install-gdb-printers -a $(INSTDIR) -c
314 endif
318 # Install
321 define gb_Top_DoInstall
322 echo "$(1) in $(INSTALLDIR) ..." && \
323 $(SRCDIR)/solenv/bin/ooinstall $(2) "$(INSTALLDIR)"
325 endef
327 ifneq ($(OS),MACOSX)
328 define gb_Top_InstallFinished
329 echo && echo "If you want to edit the .ui files with glade first execute:" && \
330 echo && echo "export GLADE_CATALOG_SEARCH_PATH=$(2)/share/glade" && \
331 echo && echo "$(1) finished, you can now execute:" && \
332 echo "$(2)/program/soffice"
334 endef
335 else
336 define gb_Top_InstallFinished
337 echo && echo "$(1) finished, you can now run: " && \
338 echo "open $(2)/$(PRODUCTNAME).app" && \
339 echo "" && \
340 echo "To debug: gdb $(2)/$(PRODUCTNAME).app/Contents/MacOS/soffice"
342 endef
343 endif
345 ifneq ($(OS),MACOSX)
346 install:
347 @$(call gb_Top_DoInstall,Installing,)
348 @$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
350 install-strip:
351 @$(call gb_Top_DoInstall,Installing and stripping binaries,--strip)
352 @$(call gb_Top_InstallFinished,Installation,$(INSTALLDIR))
353 endif # !MACOSX
355 test-install: build
356 @rm -rf $(TESTINSTALLDIR)
357 @mkdir -p $(TESTINSTALLDIR)
358 ifeq ($(OS_FOR_BUILD),WNT)
359 cd $(SRCDIR)/instsetoo_native && $(MAKE) LIBO_TEST_INSTALL=TRUE $(GMAKE_OPTIONS)
360 else
361 @$(SRCDIR)/solenv/bin/ooinstall $(TESTINSTALLDIR)
362 ifeq ($(OS),MACOSX)
364 # Create Resources/*.lproj directories for languages supported by macOS
365 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 \
366 lproj=$(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Resources/$$lang.lproj; \
367 mkdir "$$lproj"; \
368 done
370 # Remove unnecessary executables in the LibreOfficePython framework
371 rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/bin
373 # Remove the python.o object file which is weird and interferes with app store uploading
374 # And with it removed, presumably the other stuff in the Python lib/python3.3/config-3.3m probably does not make sense either.
375 rm -rf $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/Frameworks/LibreOfficePython.framework/Versions/[1-9]*/lib/python[1-9]*/config-[1-9]*
377 ifneq ($(ENABLE_MACOSX_SANDBOX),)
379 # Remove the gengal binary that we hardly need and the shell scripts
380 # for which code signatures (stored as extended attributes) won't
381 # survive upload to the App Store anyway. See
382 # https://developer.apple.com/library/content/documentation/Security/Conceptual/CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4-TNTAG201
383 # We could put the shell scripts somewhere in Resources instead, but
384 # no 3rd-party code that would be interested in them would look there
385 # anyway.
386 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/gengal
387 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unopkg
388 rm $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/MacOS/unoinfo
389 endif
390 ifneq ($(MACOSX_PROVISIONING_PROFILE),)
391 cp "$(MACOSX_PROVISIONING_PROFILE)" $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app/Contents/embedded.provisionprofile
392 endif
393 ifneq ($(MACOSX_CODESIGNING_IDENTITY),)
394 # Then use the macosx-codesign-app-bundle script
395 @$(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app
396 endif
397 endif
398 endif
399 @$(call gb_Top_InstallFinished,Test Installation,$(TESTINSTALLDIR))
401 # target to bypass the packaging steps/to only assemble the package
402 mac-app-store-package.prepare: $(BUILDDIR)/$(PLATFORMID)/done
404 # shorthand target to build a complete package for the currently building architecture
405 mac-app-store-package: mac-app-store-package.$(PLATFORMID)
407 # recipe/targets to do the actual packaging
408 # the symbolication switch to productbuild unfortunately is undocumented, but that is what XCode
409 # uses when it creates a package with symbols for uploading to the appstore
410 mac-app-store-package.$(PLATFORMID) mac-app-store-package.universal: mac-app-store-package.%: $(BUILDDIR)/%/done
411 ifneq ($(MACOSX_PACKAGE_SIGNING_IDENTITY),)
412 $(SRCDIR)/solenv/bin/macosx-codesign-app-bundle $*/"$(PRODUCTNAME)".app
413 productbuild $(if $(ENABLE_SYMBOLS_FOR),--symbolication $*/Symbols) --component $*/"$(PRODUCTNAME)".app /Applications --sign $(MACOSX_PACKAGE_SIGNING_IDENTITY) $(PRODUCTNAME_WITHOUT_SPACES).pkg
414 else
415 @echo You did not provide an installer signing identity with --enable-macosx-package-signing
416 @exit 1
417 endif
419 # the builds need to persist a standard "make clean" to be able to combine them into an universal
420 # binary, so provide an additional target that can be used standalone or via make distclean
421 mac-app-store-package.clean:
422 rm -rf \
423 $(BUILDDIR)/macosx_x86_64 \
424 $(BUILDDIR)/macosx_aarch64 \
425 $(BUILDDIR)/universal \
426 $(BUILDDIR)/$(PRODUCTNAME_WITHOUT_SPACES).pkg
428 # used by the mac-app-store targets
429 $(BUILDDIR)/$(PLATFORMID)/done: test-install
430 rm -rf $(PLATFORMID)
431 mkdir -p $(PLATFORMID)/Symbols
432 mv $(TESTINSTALLDIR)/$(PRODUCTNAME_WITHOUT_SPACES).app $(PLATFORMID)/"$(PRODUCTNAME)".app
433 ifneq ($(ENABLE_SYMBOLS_FOR),)
434 symbols -arch all -symbolsPackageDir $(PLATFORMID)/Symbols $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/Frameworks/[^L]* $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/MacOS/*
435 strip -S $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/Frameworks/[^L]* $(PLATFORMID)/"$(PRODUCTNAME)".app/Contents/MacOS/*
436 endif
437 touch $@
439 # build one arch using the mac-app-store-package.prepare target, make clean and change the autogen.input
440 # to build for the other target, then use mac-app-store-package.universal to build for the other arch and
441 # combine the two into a universal binary
442 $(BUILDDIR)/universal/done: $(BUILDDIR)/macosx_x86_64/done $(BUILDDIR)/macosx_aarch64/done
443 rm -rf universal
444 mkdir -p universal/Symbols
445 ifneq ($(ENABLE_SYMBOLS_FOR),)
446 cp -a macosx_x86_64/Symbols/* macosx_aarch64/Symbols/* universal/Symbols/
447 endif
448 $(SRCDIR)/bin/merge-app-bundles macosx_x86_64/"$(PRODUCTNAME)".app macosx_aarch64/"$(PRODUCTNAME)".app universal/"$(PRODUCTNAME)".app
449 touch $@
451 distro-pack-install: install
452 $(SRCDIR)/bin/distro-install-clean-up
453 $(SRCDIR)/bin/distro-install-desktop-integration
454 $(SRCDIR)/bin/distro-install-sdk
455 $(SRCDIR)/bin/distro-install-file-lists
457 install-package-%:
458 $(MAKE) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
461 @$(SRCDIR)/solenv/bin/create-ids
463 tags:
464 @$(SRCDIR)/solenv/bin/create-tags
466 etags:
467 @$(SRCDIR)/solenv/bin/create-tags -e
469 docs:
470 @$(SRCDIR)/solenv/bin/mkdocs.sh $(SRCDIR)/docs $(SRCDIR)/solenv/inc/doxygen.cfg
472 findunusedheaders:
473 $(SRCDIR)/bin/find-unusedheaders.py
475 symbols:
476 rm -fr $(WORKDIR)/symbols/
477 mkdir -p $(WORKDIR)/symbols/
478 ifeq ($(OS),WNT)
479 $(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/windows/dump_syms/Release/dump_syms.exe $(WORKDIR)/symbols/ $(INSTDIR)/program/
480 $(SRCDIR)/bin/symstore.sh
481 else
482 $(SRCDIR)/bin/symbolstore.py $(WORKDIR)/UnpackedTarball/breakpad/src/tools/linux/dump_syms/dump_syms $(WORKDIR)/symbols/ $(INSTDIR)/program/*
483 endif
485 cd $(WORKDIR)/symbols/ && zip -r $(WORKDIR)/symbols.zip *
487 create-mar:
488 rm -fr $(WORKDIR)/installation/mar/
489 rm -fr $(WORKDIR)/installation/temp/
490 mkdir -p $(WORKDIR)/installation/temp/
491 mkdir -p $(WORKDIR)/installation/mar/
492 tar -xzf $(WORKDIR)/installation/LibreOfficeDev/archive/install/en-US/LibreOffice* -C $(WORKDIR)/installation/temp/
493 $(SRCDIR)/bin/update/make_full_update.sh $(WORKDIR)/installation/mar/test.mar $(WORKDIR)/installation/temp/*/
495 upload-symbols:
496 $(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-symbols
498 create-update-info:
499 $(MAKE) -f $(SRCDIR)/Makefile.gbuild create-update-info
501 upload-update-info:
502 $(MAKE) -f $(SRCDIR)/Makefile.gbuild upload-update-info
504 create-partial-info:
505 $(MAKE) -f $(SRCDIR)/Makefile.gbuild create-partial-info
507 dump-deps:
508 @$(SRCDIR)/bin/module-deps.pl $(MAKE) $(SRCDIR)/Makefile.gbuild
510 dump-deps-png:
511 @$(SRCDIR)/bin/module-deps.pl $(MAKE) $(SRCDIR)/Makefile.gbuild | dot -Tpng -o lo.png
513 dump-deps-sort:
514 @$(SRCDIR)/bin/module-deps.pl -t $(MAKE) $(SRCDIR)/Makefile.gbuild
516 clang-format-check:
517 @$(SRCDIR)/solenv/clang-format/check-last-commit
519 define gb_Top_GbuildToIdeIntegration
520 $(1)-ide-integration: gbuildtojson $(if $(filter MACOSX,$(OS_FOR_BUILD)),python3.all)
521 cd $(SRCDIR) && \
522 $(if $(filter MACOSX,$(OS_FOR_BUILD)),PATH="$(INSTROOT_FOR_BUILD)/Frameworks/LibreOfficePython.framework/Versions/Current/bin:$(PATH)") \
523 $(SRCDIR)/bin/gbuild-to-ide --ide $(1) --make $(MAKE)
525 endef
527 $(foreach ide,\
528 codelite \
529 vs \
530 kdevelop \
531 vim \
532 qtcreator \
533 xcode \
534 eclipsecdt,\
535 $(eval $(call gb_Top_GbuildToIdeIntegration,$(ide))))
537 fuzzers: StaticLibrary_dtoa StaticLibrary_zlib StaticLibrary_libjpeg-turbo Library_sal Library_salhelper Library_reg Library_store Library_unoidl codemaker Library_cppu Library_i18nlangtag Library_cppuhelper Library_comphelper StaticLibrary_ulingu StaticLibrary_findsofficepath Library_tl Library_basegfx Library_canvastools Library_cppcanvas Library_dbtools Library_deploymentmisc Library_editeng Library_i18nutil Library_localebe1 Library_sax Library_sofficeapp Library_ucbhelper Rdb_services udkapi offapi Library_icg Library_reflection Library_invocadapt Library_bootstrap Library_introspection Library_stocservices Library_xmlreader Library_gcc3_uno instsetoo_native StaticLibrary_boost_locale StaticLibrary_fuzzerstubs StaticLibrary_fuzzer_core StaticLibrary_fuzzer_calc StaticLibrary_fuzzer_draw StaticLibrary_fuzzer_writer StaticLibrary_fuzzer_math Library_forui Library_binaryurp Library_io Library_invocation Library_namingservice Library_proxyfac Library_uuresolver Module_ure Library_wpftwriter Library_sb Library_file Executable_pptfuzzer Executable_cgmfuzzer Executable_ww2fuzzer Executable_ww6fuzzer Executable_ww8fuzzer Executable_qpwfuzzer Executable_slkfuzzer Executable_fodtfuzzer Executable_fodsfuzzer Executable_fodpfuzzer Executable_xlsfuzzer Executable_scrtffuzzer Executable_wksfuzzer Executable_diffuzzer Executable_docxfuzzer Executable_xlsxfuzzer Executable_pptxfuzzer Executable_htmlfuzzer Executable_rtffuzzer Executable_mmlfuzzer Executable_mtpfuzzer Executable_olefuzzer Executable_lwpfuzzer Executable_hwpfuzzer Executable_wmffuzzer Executable_dxffuzzer Executable_sftfuzzer Executable_svmfuzzer Executable_tiffuzzer Executable_epsfuzzer Executable_jpgfuzzer Executable_metfuzzer Executable_bmpfuzzer Executable_giffuzzer Executable_pngfuzzer Executable_602fuzzer Executable_tgafuzzer Executable_pcxfuzzer Executable_psdfuzzer Executable_ppmfuzzer Executable_pcdfuzzer Executable_rasfuzzer Executable_pctfuzzer Executable_xpmfuzzer Executable_xbmfuzzer Executable_dbffuzzer
539 endif # MAKE_RESTARTS
541 # vim: set noet sw=4 ts=4: