From 91c0df0689e49f6be32da2103405f61310b6962f Mon Sep 17 00:00:00 2001
From: Lasse Holmstedt <lasse.holmstedt@nokia.com>
Date: Wed, 29 Sep 2010 10:56:34 +0200
Subject: [PATCH] Build QMLObserver and qmldump only in debug mode

The problem is that we actually should have both debug & release builds,
but we don't have detection at the moment which binary to use.
See QTCREATORBUG-2496

Reviewed-by: Thomas Hartmann
---
 share/qtcreator/qml/qmldump/qmldump.pro         | 4 ++++
 share/qtcreator/qml/qmlobserver/qmlobserver.pro | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/share/qtcreator/qml/qmldump/qmldump.pro b/share/qtcreator/qml/qmldump/qmldump.pro
index ea1fb42c0fe..1b86e6a2ebf 100644
--- a/share/qtcreator/qml/qmldump/qmldump.pro
+++ b/share/qtcreator/qml/qmldump/qmldump.pro
@@ -8,6 +8,10 @@ TARGET = qmldump
 QT += declarative
 CONFIG += console
 
+### FIXME: only debug plugins are now supported.
+CONFIG -= release
+CONFIG += debug
+
 TEMPLATE = app
 
 SOURCES += main.cpp
diff --git a/share/qtcreator/qml/qmlobserver/qmlobserver.pro b/share/qtcreator/qml/qmlobserver/qmlobserver.pro
index e4f765c21d6..06df9ecaccd 100644
--- a/share/qtcreator/qml/qmlobserver/qmlobserver.pro
+++ b/share/qtcreator/qml/qmlobserver/qmlobserver.pro
@@ -1,6 +1,10 @@
 TEMPLATE = app
 DEFINES += QMLOBSERVER
 
+### FIXME: only debug plugins are now supported.
+CONFIG -= release
+CONFIG += debug
+
 include(qml.pri)
 
 SOURCES += main.cpp
-- 
GitLab