summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2021-09-21 13:29:14 +0200
committerMichal Klocek <michal.klocek@qt.io>2021-10-14 00:05:56 +0200
commit589f4fc025f608590c5a364c7f154809a2f5d2dc (patch)
treeddcfe852257194217ed2bfacc1c0da6a875d2d6d /src
parentd155f3da5d6e8ad08fab040d8f748d3bbdb69039 (diff)
Add Chromium attributions target
Pick-to: 6.2 Change-Id: I4e659dffa119a8c9f41a266cd71e9afb9c36362e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/core/api/CMakeLists.txt13
-rw-r--r--src/core/doc/about_credits.tmpl1
-rw-r--r--src/core/doc/about_credits_entry.tmpl12
3 files changed, 26 insertions, 0 deletions
diff --git a/src/core/api/CMakeLists.txt b/src/core/api/CMakeLists.txt
index dd667df76..c74ac84ee 100644
--- a/src/core/api/CMakeLists.txt
+++ b/src/core/api/CMakeLists.txt
@@ -78,6 +78,19 @@ qt_internal_add_docs(WebEngineCore
../doc/qtwebengine.qdocconf
)
+add_custom_command(
+ OUTPUT chromium_attributions.qdoc
+ COMMAND ${Python2_EXECUTABLE} chromium/tools/licenses.py
+ --file-template ../core/doc/about_credits.tmpl
+ --entry-template ../core/doc/about_credits_entry.tmpl
+ credits ${CMAKE_CURRENT_BINARY_DIR}/chromium_attributions.qdoc
+ DEPENDS ../doc/about_credits.tmpl ../doc/about_credits_entry.tmpl
+ WORKING_DIRECTORY ${WEBENGINE_ROOT_SOURCE_DIR}/src/3rdparty
+ USES_TERMINAL
+)
+add_custom_target(generate_chromium_attributions DEPENDS chromium_attributions.qdoc)
+add_dependencies(generate_docs_WebEngineCore generate_chromium_attributions)
+
##
# WEBENGINECORE RESOURCES
##
diff --git a/src/core/doc/about_credits.tmpl b/src/core/doc/about_credits.tmpl
new file mode 100644
index 000000000..57fae9e78
--- /dev/null
+++ b/src/core/doc/about_credits.tmpl
@@ -0,0 +1 @@
+{{entries}}
diff --git a/src/core/doc/about_credits_entry.tmpl b/src/core/doc/about_credits_entry.tmpl
new file mode 100644
index 000000000..2bb9cff4e
--- /dev/null
+++ b/src/core/doc/about_credits_entry.tmpl
@@ -0,0 +1,12 @@
+/*!
+\page qtwebengine-3rdparty-{{name-sanitized}}.html attribution
+\ingroup qtwebengine-licensing
+\brief {{license-type}}
+\title {{name}}
+
+\l{{{url}}}{Project Homepage}
+
+\badcode
+{{license}}
+\endcode
+*/