From f2fb23f23f67db841467752c2a4c2a5cb9ebde43 Mon Sep 17 00:00:00 2001
From: Simon Hausmann <simon.hausmann@digia.com>
Date: Thu, 23 Jan 2014 12:43:57 +0100
Subject: [PATCH] Make sure examples are always built

When building against Qt 5 release binaries, QT_BUILD_PARTS does not include
examples. However we want to unconditionally build examples, until we become
part of the Qt 5 module set.

Change-Id: Ic51d105295797e80052e3808613fc16cec709773
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
---
 qtwebengine.pro | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/qtwebengine.pro b/qtwebengine.pro
index 58c33f27c..366446c7a 100644
--- a/qtwebengine.pro
+++ b/qtwebengine.pro
@@ -1 +1,8 @@
+load(qt_build_config)
+
+# As long as we are a module separate from the rest of Qt, we want to unconditionally build examples.
+# Once part of Qt 5, this should be removed and we should respect the Qt wide configuration.
+QTWEBENGINE_BUILD_PARTS = $$QT_BUILD_PARTS
+QTWEBENGINE_BUILD_PARTS *= examples
+
 load(qt_parts)
-- 
GitLab