summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-09-01 15:40:35 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-09-01 16:48:32 -0300
commit990f057b8d170509cb407f1fff3d382db6b4e9f5 (patch)
tree8c594936f2038045206d79500208110aed31fb13
parent589c40a6d60b59d90cec180bb54f8fe08a4bee17 (diff)
downloadshiboken-990f057b8d170509cb407f1fff3d382db6b4e9f5.tar.gz
shiboken-990f057b8d170509cb407f1fff3d382db6b4e9f5.tar.xz
shiboken-990f057b8d170509cb407f1fff3d382db6b4e9f5.zip
Use Cmake detected vars to generete global.h file.
This make PySide independent of Qt Macros in some cases these macros return invalid value because the module can be compiled separated from Qt. Fixes bug #326. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Lauro Neto <lauro.neto@openbossa.org>
-rw-r--r--PySide/global.h.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/PySide/global.h.in b/PySide/global.h.in
index 402de4e0..7bba8365 100644
--- a/PySide/global.h.in
+++ b/PySide/global.h.in
@@ -371,15 +371,15 @@ QT_END_HEADER
#include <QtSql/QtSql>
#include <QtSvg/QtSvg>
-#ifndef QT_NO_XMLPATTERNS
+#ifdef @QT_QTXMLPATTERNS_FOUND@
# include <QtXmlPatterns/QtXmlPatterns>
#endif
-#ifndef QT_NO_WEBKIT
+#ifdef @QT_QTWEBKIT_FOUND@
# include <QtWebKit/QtWebKit>
#endif
-#ifndef QT_NO_TEST
+#ifdef @QT_QTTEST_FOUND@
# include <QtTest/QtTest>
#endif