summaryrefslogtreecommitdiff
path: root/extras/CustomTarget_tplofficorr.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-02-10 10:31:26 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-02-16 14:49:45 +0100
commit0adc9b615f118ebb78f5f2edfe0c1c0e41270d57 (patch)
treeaa84e0793d6e95a94686b6caacc9a0b5e7e8611e /extras/CustomTarget_tplofficorr.mk
parent52c998be025563802a5056a15352e4608311be1d (diff)
GBUILD_TRACE, support for finding out where the build time is spent
See instructions in solenv/gbuild/Trace.mk . This generates a file than can be viewed e.g. in the Chromium tracing view. Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'extras/CustomTarget_tplofficorr.mk')
-rw-r--r--extras/CustomTarget_tplofficorr.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/extras/CustomTarget_tplofficorr.mk b/extras/CustomTarget_tplofficorr.mk
index cc43e22c26aa..e6337b7f03b6 100644
--- a/extras/CustomTarget_tplofficorr.mk
+++ b/extras/CustomTarget_tplofficorr.mk
@@ -37,40 +37,56 @@ $(call gb_CustomTarget_get_target,extras/source/templates/officorr) : \
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%/mimetype : $(SRCDIR)/extras/source/templates/officorr/%/mimetype
$(call gb_Output_announce,templates/officorr/$*/mimetype,$(true),CPY,1)
+ $(call gb_Trace_StartRange,templates/officorr/$*/mimetype,CPY)
cp $< $@
+ $(call gb_Trace_EndRange,templates/officorr/$*/mimetype,CPY)
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%.jpg : $(SRCDIR)/extras/source/templates/officorr/%.jpg
$(call gb_Output_announce,templates/officorr/$*.jpg,$(true),CPY,1)
+ $(call gb_Trace_StartRange,templates/officorr/$*.jpg,CPY)
cp $< $@
+ $(call gb_Trace_EndRange,templates/officorr/$*.jpg,CPY)
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%.rdf : $(SRCDIR)/extras/source/templates/officorr/%.rdf
$(call gb_Output_announce,templates/officorr/$*.rdf,$(true),CPY,1)
+ $(call gb_Trace_StartRange,templates/officorr/$*.rdf,CPY)
cp $< $@
+ $(call gb_Trace_EndRange,templates/officorr/$*.rdf,CPY)
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%.png : $(SRCDIR)/extras/source/templates/officorr/%.png
$(call gb_Output_announce,templates/officorr/$*.png,$(true),CPY,1)
+ $(call gb_Trace_StartRange,templates/officorr/$*.png,CPY)
cp $< $@
+ $(call gb_Trace_EndRange,templates/officorr/$*.png,CPY)
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%.svg : $(SRCDIR)/extras/source/templates/officorr/%.svg
$(call gb_Output_announce,templates/officorr/$*.svg,$(true),CPY,1)
+ $(call gb_Trace_StartRange,templates/officorr/$*.svg,CPY)
cp $< $@
+ $(call gb_Trace_EndRange,templates/officorr/$*.svg,CPY)
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%.svm : $(SRCDIR)/extras/source/templates/officorr/%.svm
$(call gb_Output_announce,templates/officorr/$*.svm,$(true),CPY,1)
+ $(call gb_Trace_StartRange,templates/officorr/$*.svm,CPY)
cp $< $@
+ $(call gb_Trace_EndRange,templates/officorr/$*.svm,CPY)
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%.xml : $(SRCDIR)/extras/source/templates/officorr/%.xml \
| $(call gb_ExternalExecutable_get_dependencies,xsltproc)
$(call gb_Output_announce,templates/officorr/$*.xml,$(true),XSL,1)
+ $(call gb_Trace_StartRange,templates/officorr/$*.xml,XSL)
$(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $@ $(SRCDIR)/extras/util/compact.xsl $<
+ $(call gb_Trace_EndRange,templates/officorr/$*.xml,XSL)
$(call gb_CustomTarget_get_workdir,extras/source/templates/officorr)/%.ott :
$(call gb_Output_announce,templates/officorr/$*.ott,$(true),ZIP,2)
+ $(call gb_Trace_StartRange,templates/officorr/$*.ott,ZIP)
$(call gb_Helper_abbreviate_dirs,\
cd $(EXTRAS_OFFICORR_DIR) && \
zip -q0X --filesync --must-match $@ $(EXTRAS_OFFICORR_MIMEFILES_FILTER) && \
zip -qrX --must-match $@ $(EXTRAS_OFFICORR_XMLFILES_FILTER) \
)
+ $(call gb_Trace_EndRange,templates/officorr/$*.ott,ZIP)
define extras_Tplofficorr_make_file_deps
$(call gb_CustomTarget_get_workdir,$(1))/$(2) : $(SRCDIR)/$(1)/$(2) \