Skip to content

Commit 5e44d34

Browse files
committed
- removed phonon temporarily
- changed init.cpp to "key"_init.cpp - added solution setup bat file for windows
1 parent 5443ba2 commit 5e44d34

11 files changed

+24
-13
lines changed

Diff for: PythonQt.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
TEMPLATE = subdirs
22

33
CONFIG += ordered
4-
SUBDIRS = src extensions tests examples
4+
SUBDIRS = generator src extensions tests examples

Diff for: README

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ See http://labs.trolltech.com/page/Projects/QtScript/Generator for details of th
1818

1919
The PythonQt wrappers generated by the generator are distributed under the LGPL, they are not restriced by the GPL.
2020

21-
The generated wrappers are pre-generated and checked-in for Qt 4.5, so you only need to build and run the
21+
The generated wrappers are pre-generated and checked-in for Qt 4.4.3, so you only need to build and run the
2222
generator when you want to build additional wrappers or you want to upgrade/downgrade to an newer Qt version.
2323

2424
Documentation

Diff for: createSolution.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
qmake -tp vc -r PythonQt.pro

Diff for: extensions/PythonQt_QtAll/PythonQt_QtAll.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ void PythonQt_init_QtNetwork();
3939
void PythonQt_init_QtCore();
4040
void PythonQt_init_QtWebKit();
4141
void PythonQt_init_QtOpenGL();
42-
void PythonQt_init_QtPhonon();
4342
void PythonQt_init_QtXml();
4443
void PythonQt_init_QtXmlPatterns();
44+
//void PythonQt_init_QtPhonon();
4545

4646
namespace PythonQt_QtAll
4747
{
@@ -55,7 +55,7 @@ namespace PythonQt_QtAll
5555
PythonQt_init_QtSql();
5656
PythonQt_init_QtWebKit();
5757
PythonQt_init_QtOpenGL();
58-
PythonQt_init_QtPhonon();
58+
// PythonQt_init_QtPhonon();
5959
};
6060
};
6161

Diff for: extensions/PythonQt_QtAll/PythonQt_QtAll.pro

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ HEADERS += \
1818
SOURCES += \
1919
PythonQt_QtAll.cpp
2020

21-
QT += webkit gui svg sql network xml xmlpatterns phonon opengl
21+
QT += webkit gui svg sql network xml xmlpatterns opengl
22+
#QT += phonon
2223

2324
include (../../generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core.pri)
2425
include (../../generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui.pri)
2526
include (../../generated_cpp/com_trolltech_qt_svg/com_trolltech_qt_svg.pri)
2627
include (../../generated_cpp/com_trolltech_qt_sql/com_trolltech_qt_sql.pri)
2728
include (../../generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network.pri)
2829
include (../../generated_cpp/com_trolltech_qt_opengl/com_trolltech_qt_opengl.pri)
29-
include (../../generated_cpp/com_trolltech_qt_phonon/com_trolltech_qt_phonon.pri)
3030
include (../../generated_cpp/com_trolltech_qt_webkit/com_trolltech_qt_webkit.pri)
3131
include (../../generated_cpp/com_trolltech_qt_xml/com_trolltech_qt_xml.pri)
3232
include (../../generated_cpp/com_trolltech_qt_xmlpatterns/com_trolltech_qt_xmlpatterns.pri)
33+
34+
#include (../../generated_cpp/com_trolltech_qt_phonon/com_trolltech_qt_phonon.pri)

Diff for: generator/classgenerator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ bool ClassGenerator::isSpecialStreamingOperator(const AbstractMetaFunction *fun)
568568
operator<<() to read/write an instance of meta_class.
569569
*/
570570
static void writeStreamingOperatorCall(QTextStream &stream, const AbstractMetaFunction *fun,
571-
const AbstractMetaClass */*meta_class*/, int indent)
571+
const AbstractMetaClass * /*meta_class*/, int indent)
572572
{
573573
QString indentStr(indent, QLatin1Char(' '));
574574
QString streamClassName = fun->arguments().at(0)->type()->name();

Diff for: generator/generator

-2.67 MB
Binary file not shown.

Diff for: generator/generator.pro

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
TARGET = pythonqt_generator
2+
CONFIG -= debug
3+
CONFIG += release
4+
DESTDIR = .
5+
16
include(generator.pri)
27

8+
39
# Input
410
HEADERS += \
511
generatorsetqtscript.h \
@@ -22,6 +28,3 @@ SOURCES += \
2228
shellheadergenerator.cpp \
2329
setupgenerator.cpp \
2430
docgenerator.cpp
25-
26-
CONFIG -= debug
27-
CONFIG += release

Diff for: generator/prigenerator.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ void PriGenerator::generate()
5858
foreach (const QString &entry, list) {
5959
file.stream << " $$PWD/" << entry << " \\\n";
6060
}
61-
file.stream << " $$PWD/init.cpp\n";
61+
QString initName = pri.key();
62+
initName = initName.mid(initName.indexOf('/')+1);
63+
initName = initName.left(initName.length()-4);
64+
file.stream << " $$PWD/" + initName + "_init.cpp\n";
6265

6366
if (file.done())
6467
++m_num_generated_written;

Diff for: generator/qtscript_masterinclude.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# include <phonon/phonon>
4444
#endif
4545

46-
#include "../qtbindings/qtscript_core/qtscriptconcurrent.h"
46+
//#include "../qtbindings/qtscript_core/qtscriptconcurrent.h"
4747

4848
#ifndef QT_NO_OPENGL
4949
#define GL_ACCUM 0x0100

Diff for: generator/setupgenerator.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void SetupGenerator::generate()
4848
if (list.isEmpty())
4949
continue;
5050

51+
QString packKey = pack.key();
5152
QString packName = pack.key();
5253
QStringList components = packName.split(".");
5354
if ((components.size() > 2) && (components.at(0) == "com")
@@ -57,6 +58,7 @@ void SetupGenerator::generate()
5758
components.removeAt(0);
5859
}
5960
packName.replace(".", "_");
61+
packKey.replace(".", "_");
6062

6163
QString shortPackName;
6264
foreach (QString comp, components) {
@@ -74,7 +76,7 @@ void SetupGenerator::generate()
7476

7577

7678
{
77-
FileOut initFile(m_out_dir + "/generated_cpp/" + packName + "/init.cpp");
79+
FileOut initFile(m_out_dir + "/generated_cpp/" + packName + "/" + packKey + "_init.cpp");
7880
QTextStream &s = initFile.stream;
7981

8082
if (FileOut::license)

0 commit comments

Comments
 (0)