From 6077f02dfb4228ea43f1a2a4ec632c016d80379e Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Tue, 27 Sep 2016 14:37:35 +0200 Subject: Automate generation of Chromium attribution documentation Change-Id: I34edcc1638cdd0e0e714e247700034b517394323 Reviewed-by: Allan Sandfeld Jensen --- src/webengine/webengine.pro | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/webengine/webengine.pro') diff --git a/src/webengine/webengine.pro b/src/webengine/webengine.pro index e84188682..6b2285c85 100644 --- a/src/webengine/webengine.pro +++ b/src/webengine/webengine.pro @@ -65,4 +65,22 @@ isQMLTestSupportApiEnabled() { DEFINES += ENABLE_SPELLCHECK } +!build_pass { + chromium_attributions.commands = \ + cd $$shell_quote($$shell_path($$PWD/../3rdparty)) && \ + python chromium/tools/licenses.py \ + --file-template ../../tools/about_credits.tmpl \ + --entry-template ../../tools/about_credits_entry.tmpl credits \ + > $$shell_quote($$shell_path($$OUT_PWD/chromium_attributions.qdoc)) + chromium_attributions.CONFIG += phony + + QMAKE_EXTRA_TARGETS += chromium_attributions + + prepare_docs { + prepare_docs.depends += chromium_attributions + } else { + html_docs.depends += chromium_attributions + } +} + load(qt_module) -- cgit v1.2.3