summaryrefslogtreecommitdiffstats
path: root/src/webengine/webengine.pro
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-09-27 14:37:35 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-10-02 08:40:32 +0000
commit6077f02dfb4228ea43f1a2a4ec632c016d80379e (patch)
treea8f46945cb94e0012438d5bf4b324d0bff81f3ba /src/webengine/webengine.pro
parent7d19f3b647f4e5ac4b5f0d2278703476f5a9ed1c (diff)
Automate generation of Chromium attribution documentation
Change-Id: I34edcc1638cdd0e0e714e247700034b517394323 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/webengine/webengine.pro')
-rw-r--r--src/webengine/webengine.pro18
1 files changed, 18 insertions, 0 deletions
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)