From fac400a9218b34b4ca37a228c1150f30e90a39cc Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Date: Wed, 6 Feb 2013 15:06:52 +0100
Subject: [PATCH] use qt_tool.prf for xmlpatterns tools

Change-Id: I254cc020c81bcf7d2803ef686b9f450be4d09a39
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
---
 tools/xmlpatterns/xmlpatterns.pro               | 17 ++---------------
 .../xmlpatternsvalidator.pro                    | 16 ++--------------
 2 files changed, 4 insertions(+), 29 deletions(-)

diff --git a/tools/xmlpatterns/xmlpatterns.pro b/tools/xmlpatterns/xmlpatterns.pro
index d295efc8..d349a913 100644
--- a/tools/xmlpatterns/xmlpatterns.pro
+++ b/tools/xmlpatterns/xmlpatterns.pro
@@ -1,17 +1,4 @@
-TEMPLATE = app
-TARGET = xmlpatterns
-QT -= gui
-QT += xmlpatterns-private
-
-DESTDIR = $$QT.xmlpatterns.bins
-target.path = $$[QT_INSTALL_BINS]
-INSTALLS += target
-
-# This ensures we get stderr and stdout on Windows.
-CONFIG += console
-
-# This ensures that this is a command-line program on OS X and not a GUI application.
-CONFIG -= app_bundle
+QT = core xmlpatterns-private
 
 # Note that qcoloroutput.cpp and qcoloringmessagehandler.cpp are also used internally
 # in libQtXmlPatterns. See src/xmlpatterns/api/api.pri.
@@ -24,4 +11,4 @@ HEADERS = main.h                            \
           qapplicationargument.cpp          \
           qapplicationargumentparser.cpp    
 
-
+load(qt_tool)
diff --git a/tools/xmlpatternsvalidator/xmlpatternsvalidator.pro b/tools/xmlpatternsvalidator/xmlpatternsvalidator.pro
index d5ab0709..af9469f3 100644
--- a/tools/xmlpatternsvalidator/xmlpatternsvalidator.pro
+++ b/tools/xmlpatternsvalidator/xmlpatternsvalidator.pro
@@ -1,18 +1,6 @@
-TEMPLATE = app
-TARGET = xmlpatternsvalidator
-QT -= gui
-QT += xmlpatterns
-
-DESTDIR = $$QT.xmlpatterns.bins
-target.path = $$[QT_INSTALL_BINS]
-INSTALLS += target
-
-# This ensures we get stderr and stdout on Windows.
-CONFIG += console
-
-# This ensures that this is a command-line program on OS X and not a GUI application.
-CONFIG -= app_bundle
+QT = core xmlpatterns
 
 SOURCES = main.cpp
 HEADERS = main.h
 
+load(qt_tool)
-- 
GitLab