From e7f150abaa8e81d3e404e9631a49341a7f7623d1 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 30 Aug 2017 12:28:29 +0200 Subject: Allow examples to be built without module sources qwebchannel.js is used by examples, which so far tried to copy it directly from the library source directory. However, in the case of an installed prefix build of Qt, the library sources are not available. This patches therefore moves the qwebchannel.js file to the examples directory, which is installed including sources. The obvious alternative would be copying the file inside the source tree, but that causes code duplication and a maintenance burden that we want to avoid. Another alternative would have been to install qwebchannel.js into QT_INSTALL_DATA, or extract the file at build time from the Qt library. However, this requires bigger changes, and is also dubious because the use case are in particular applications _not_ using Qt. Task-number: QTBUG-57654 Change-Id: I96bc93b6e3d248e4b4facdd582d9fa53ae562924 Reviewed-by: Oswald Buddenhagen Reviewed-by: Milian Wolff --- src/webchannel/resources.qrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webchannel/resources.qrc') diff --git a/src/webchannel/resources.qrc b/src/webchannel/resources.qrc index 319c07a..3e6476b 100644 --- a/src/webchannel/resources.qrc +++ b/src/webchannel/resources.qrc @@ -1,5 +1,5 @@ - qwebchannel.js + ../../examples/webchannel/shared/qwebchannel.js -- cgit v1.2.1