From 589f4fc025f608590c5a364c7f154809a2f5d2dc Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Tue, 21 Sep 2021 13:29:14 +0200 Subject: Add Chromium attributions target Pick-to: 6.2 Change-Id: I4e659dffa119a8c9f41a266cd71e9afb9c36362e Reviewed-by: Allan Sandfeld Jensen --- src/core/api/CMakeLists.txt | 13 +++++++++++++ src/core/doc/about_credits.tmpl | 1 + src/core/doc/about_credits_entry.tmpl | 12 ++++++++++++ tools/about_credits.tmpl | 1 - tools/about_credits_entry.tmpl | 12 ------------ 5 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 src/core/doc/about_credits.tmpl create mode 100644 src/core/doc/about_credits_entry.tmpl delete mode 100644 tools/about_credits.tmpl delete mode 100644 tools/about_credits_entry.tmpl 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 +*/ diff --git a/tools/about_credits.tmpl b/tools/about_credits.tmpl deleted file mode 100644 index 57fae9e78..000000000 --- a/tools/about_credits.tmpl +++ /dev/null @@ -1 +0,0 @@ -{{entries}} diff --git a/tools/about_credits_entry.tmpl b/tools/about_credits_entry.tmpl deleted file mode 100644 index 2bb9cff4e..000000000 --- a/tools/about_credits_entry.tmpl +++ /dev/null @@ -1,12 +0,0 @@ -/*! -\page qtwebengine-3rdparty-{{name-sanitized}}.html attribution -\ingroup qtwebengine-licensing -\brief {{license-type}} -\title {{name}} - -\l{{{url}}}{Project Homepage} - -\badcode -{{license}} -\endcode -*/ -- cgit v1.2.3