Fix FTBFS on TQt3

pull/1/head
Timothy Pearson 12 years ago
parent ed5b57040a
commit 06500cd8e9

@ -227,7 +227,10 @@ class ConfigurePyTQt3(ConfigureBase):
if check_class("qassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"): if check_class("qassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"):
qtmod_lib = "qassistantclient" qtmod_lib = "qassistantclient"
else: else:
disabled_classes.append("TQAssistantClient") if check_class("ntqassistantclient.h", "TQAssistantClient(\"foo\")", lib="qassistantclient"):
qtmod_lib = "qassistantclient"
else:
disabled_classes.append("TQAssistantClient")
return qtmod_lib return qtmod_lib
@ -615,6 +618,9 @@ def check_module(mname, incfile, ctor, define=None, include_dir=None, lib_dir=No
if check_class(incfile, ctor, define, include_dir, lib_dir, lib, opengl): if check_class(incfile, ctor, define, include_dir, lib_dir, lib, opengl):
pyqt_modules.append(mname) pyqt_modules.append(mname)
else:
if check_class("nt" + incfile, ctor, define, include_dir, lib_dir, lib, opengl):
pyqt_modules.append(mname)
def check_class(incfile, ctor, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0): def check_class(incfile, ctor, define=None, include_dir=None, lib_dir=None, lib=None, opengl=0):
@ -762,8 +768,9 @@ int main(int argc,char **argv)
for (feat, incfile, cname) in plugins: for (feat, incfile, cname) in plugins:
if not check_plugin(cname, incfile): if not check_plugin(cname, incfile):
f.write("-x TQt_%s\n" % feat) if not check_plugin(cname, "nt" + incfile):
disabled_classes.append(cname) f.write("-x TQt_%s\n" % feat)
disabled_classes.append(cname)
f.close() f.close()
@ -1104,7 +1111,10 @@ def check_qt_installation(macros):
qglobal = os.path.join(qt_incdir, "qglobal.h") qglobal = os.path.join(qt_incdir, "qglobal.h")
if not os.access(qglobal, os.F_OK): if not os.access(qglobal, os.F_OK):
sipconfig.error("qglobal.h could not be found in %s." % qt_incdir) qglobal = os.path.join(qt_incdir, "ntqglobal.h")
if not os.access(qglobal, os.F_OK):
sipconfig.error("qglobal.h or ntqglobal.h could not be found in %s." % qt_incdir)
# Get the TQt version number. # Get the TQt version number.
global qt_version global qt_version
@ -1137,7 +1147,10 @@ def check_qt_installation(macros):
qconfig = os.path.join(qconfigdir, "qconfig.h") qconfig = os.path.join(qconfigdir, "qconfig.h")
if not os.access(qconfig,os.F_OK): if not os.access(qconfig,os.F_OK):
sipconfig.error("qconfig.h could not be found in %s." % qconfigdir) qconfig = os.path.join(qconfigdir, "ntqconfig.h")
if not os.access(qconfig,os.F_OK):
sipconfig.error("qconfig.h or ntqconfig.h could not be found in %s." % qconfigdir)
f = open(qconfig) f = open(qconfig)
l = f.readline() l = f.readline()

@ -27,7 +27,7 @@
class QextScintilla : QextScintillaBase class QextScintilla : QextScintillaBase
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintilla.h> #include <qextscintilla.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaAPIs class QextScintillaAPIs
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillaapis.h> #include <qextscintillaapis.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaBase : TQWidget class QextScintillaBase : TQWidget
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillabase.h> #include <qextscintillabase.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaCommand class QextScintillaCommand
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillacommand.h> #include <qextscintillacommand.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaCommandSet class QextScintillaCommandSet
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillacommandset.h> #include <qextscintillacommandset.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaDocument class QextScintillaDocument
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintilladocument.h> #include <qextscintilladocument.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaLexer : TQObject class QextScintillaLexer : TQObject
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexer.h> #include <qextscintillalexer.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerBash : QextScintillaLexer class QextScintillaLexerBash : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerbash.h> #include <qextscintillalexerbash.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerBatch : QextScintillaLexer class QextScintillaLexerBatch : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerbatch.h> #include <qextscintillalexerbatch.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaLexerCPP : QextScintillaLexer class QextScintillaLexerCPP : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexercpp.h> #include <qextscintillalexercpp.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaLexerCSharp : QextScintillaLexerCPP class QextScintillaLexerCSharp : QextScintillaLexerCPP
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexercsharp.h> #include <qextscintillalexercsharp.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerCSS : QextScintillaLexer class QextScintillaLexerCSS : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexercss.h> #include <qextscintillalexercss.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerDiff : QextScintillaLexer class QextScintillaLexerDiff : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerdiff.h> #include <qextscintillalexerdiff.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerHTML : QextScintillaLexer class QextScintillaLexerHTML : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerhtml.h> #include <qextscintillalexerhtml.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaLexerIDL : QextScintillaLexerCPP class QextScintillaLexerIDL : QextScintillaLexerCPP
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexeridl.h> #include <qextscintillalexeridl.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaLexerJava : QextScintillaLexerCPP class QextScintillaLexerJava : QextScintillaLexerCPP
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerjava.h> #include <qextscintillalexerjava.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaLexerJavaScript : QextScintillaLexerCPP class QextScintillaLexerJavaScript : QextScintillaLexerCPP
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerjavascript.h> #include <qextscintillalexerjavascript.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerLua : QextScintillaLexer class QextScintillaLexerLua : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerlua.h> #include <qextscintillalexerlua.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerMakefile : QextScintillaLexer class QextScintillaLexerMakefile : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexermakefile.h> #include <qextscintillalexermakefile.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerPerl : QextScintillaLexer class QextScintillaLexerPerl : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerperl.h> #include <qextscintillalexerperl.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerPOV : QextScintillaLexer class QextScintillaLexerPOV : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerpov.h> #include <qextscintillalexerpov.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerProperties : QextScintillaLexer class QextScintillaLexerProperties : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerproperties.h> #include <qextscintillalexerproperties.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaLexerPython : QextScintillaLexer class QextScintillaLexerPython : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerpython.h> #include <qextscintillalexerpython.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerRuby : QextScintillaLexer class QextScintillaLexerRuby : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexerruby.h> #include <qextscintillalexerruby.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerSQL : QextScintillaLexer class QextScintillaLexerSQL : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexersql.h> #include <qextscintillalexersql.h>
%End %End
public: public:

@ -29,7 +29,7 @@
class QextScintillaLexerTeX : QextScintillaLexer class QextScintillaLexerTeX : QextScintillaLexer
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillalexertex.h> #include <qextscintillalexertex.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaMacro : TQObject class QextScintillaMacro : TQObject
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillamacro.h> #include <qextscintillamacro.h>
%End %End
public: public:

@ -27,7 +27,7 @@
class QextScintillaPrinter : TQPrinter class QextScintillaPrinter : TQPrinter
{ {
%TypeHeaderCode %TypeHeaderCode
#include <tqextscintillaprinter.h> #include <qextscintillaprinter.h>
%End %End
public: public:

Loading…
Cancel
Save