From 8f01df64d2240f8230cd3bf1a9f14d2dfba147f9 Mon Sep 17 00:00:00 2001
From: Tasuku Suzuki <tasuku.suzuki@nokia.com>
Date: Fri, 18 May 2012 16:35:20 +0900
Subject: [PATCH] Honor -nomake for examples and demos

Don't build or install examples when they are disabled.

Change-Id: I0da1a1e63899103549a425e14eb64d6f4a10f136
Reviewed-by: Honglei Zhang <honglei.zhang@nokia.com>
---
 qtxmlpatterns.pro | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/qtxmlpatterns.pro b/qtxmlpatterns.pro
index effac282..bd5da3cb 100644
--- a/qtxmlpatterns.pro
+++ b/qtxmlpatterns.pro
@@ -10,6 +10,9 @@ module_qtxmlpatterns_tools.depends = module_qtxmlpatterns_src
 module_qtxmlpatterns_examples.subdir = examples/xmlpatterns
 module_qtxmlpatterns_examples.target = module-qtxmlpatterns-examples
 module_qtxmlpatterns_examples.depends = module_qtxmlpatterns_src
+!contains(QT_BUILD_PARTS,examples) {
+    module_qtxmlpatterns_examples.CONFIG = no_default_target no_default_install
+}
 
 module_qtxmlpatterns_tests.subdir = tests
 module_qtxmlpatterns_tests.target = module-qtxmlpatterns-tests
-- 
GitLab