Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Qt Simulator support #108

Open
wants to merge 705 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
705 commits
Select commit Hold shift + click to select a range
597d3ab
Increment reference for functions used on QtCore.Property.
Jul 11, 2011
4e5b5b2
Created unit test for bug #899.
Jul 11, 2011
3a4369c
Removed polymorphic-id-expression from QDeclarativeItem.
Jul 12, 2011
eaae6e4
Fixed QThreadPool globalInstance ownership rules.
Jul 12, 2011
d18945f
Created unit test for bug #927.
Jul 12, 2011
f66c09e
Fix bug 929 - "pkg-config files do not know about Python version tags"
hugopl Jul 14, 2011
1112473
Fixed QGraphicsView.scene return policy.
Jul 14, 2011
50e4abe
Created unit test for bug #915.
Jul 14, 2011
2859241
Fix argument name on QStyle functions, and modify default value.
Jul 14, 2011
6591448
Created unit test for bug #919.
Jul 14, 2011
6dea41c
Fix bug 920 - "Cannot use same slot for two signals"
hugopl Jul 14, 2011
2fd0e8f
Fix bug 924 - "Allow QScriptValue to be accessed via []"
hugopl Jul 15, 2011
107ee51
Update copyright year of license boiler plate.
hugopl Jul 18, 2011
b10a254
Disconnect signals during the class destroy.
Jul 15, 2011
628f203
Created unit test for bug #921.
Jul 15, 2011
58e3040
Renamed PySide.Signal instance class to PySide.SignalInstance.
Jul 18, 2011
33301b9
Created unit test for bug #931.
Jul 18, 2011
b6e0977
Fix memory leak on GlobalReceiver.
Jul 19, 2011
0a41e33
Fix bug 926 - "qmlRegisterType does not work with QObject"
hugopl Jul 20, 2011
f893043
Fix bug 916 - "Missing info about when is possible to use keyword arg…
hugopl Jul 20, 2011
33bf956
Add a comma.
hugopl Jul 20, 2011
2e98f87
Fixes bug #910 - installEventFilter() increments reference count on t…
Jul 19, 2011
0c2b68c
Fix bug 821 - "Mapping interface for QPixmapCache"
hugopl Jul 20, 2011
a69b5ad
Moved test for bug #921 from QtCore's directory to QtGui's.
Jul 21, 2011
b2ec5cf
Fix bug 890 - "Add signal connection example for valueChanged(int) on…
hugopl Jul 21, 2011
239ae99
Fix bug 934 - "A __getitem__ of QByteArray behaves strange"
hugopl Jul 21, 2011
f1b3302
Fix bug 937 - "missing pid method in QProcess"
hugopl Jul 21, 2011
3c2505a
Fix bug 938 - "QTemporaryFile JPEG problem"
hugopl Jul 21, 2011
55fb3a1
Fixed unit test for bug_847 mandelbug.
Jul 21, 2011
2535688
Update unit test for max signals.
Jul 21, 2011
6abeac0
Update QMetaObject test to test optimization changes.
Jul 21, 2011
d9ce3c5
Update unit test for static metaobjet to work with new optimizations
Jul 21, 2011
38e6275
Implemented DynamicMetaObject optiomizations.
Jul 21, 2011
11b3bd6
Use realloc functions on MetaObject functions.
Jul 22, 2011
b16f252
Fix typo on function modification signature.
Jul 22, 2011
85e5866
Updated shiboken version dependency.
Jul 22, 2011
b355cfc
Bumped version to 1.0.5
Jul 22, 2011
5644a87
Implemented Property decorator support.
Jul 22, 2011
af629d1
Created unit test for property decorator.
Jul 22, 2011
be2e956
Small optimizations on libpyside.
hugopl Jul 22, 2011
9c2a629
Use linked lists instead of lists to speed up a bit.
hugopl Jul 25, 2011
017fbee
Implemented meta type for PySideSignal.
Jul 25, 2011
ac1b61d
Update bug_931 unit test to check for isinstance.
Jul 25, 2011
c1ece5e
Implemented 'QGLShaderProgram' array functions support.
Jul 26, 2011
74f8e9a
Implement a more detailed __repr__ function for QScriptValue.
Jul 27, 2011
57ff5a5
Created unit test for QScriptValue __repr__ function.
Jul 27, 2011
4f873e6
Fixed windows compilation.
Jul 28, 2011
f918fdb
Fix bug 941 - "Signals with QtCore.Qt types as arguments has invalid …
hugopl Jul 27, 2011
81beeae
Fixes the support for QGLShaderProgram's array functions.
Jul 28, 2011
11356a1
Removed the remaining unnecessary QTextStream::operator>> methods.
Jul 25, 2011
3a8ee64
Removed the "default-constructor" from some QtCore type entries.
Jul 21, 2011
d38ba8c
New CSS style for PySide docs.
hugopl Jul 29, 2011
20af27c
Fix bug 923 - "Make QScriptValue (or QScriptValueIterator) implement …
hugopl Jul 28, 2011
12fe2a4
Replaced hard coded variables by type system variables in QtCore and …
Aug 1, 2011
74754b1
Created template code for added QObject's trUtf8 methods.
Aug 1, 2011
774f017
Cosmetic changes on docs.
hugopl Jul 29, 2011
5b27607
Translate QHistoryState code snippet to Python.
hugopl Aug 2, 2011
22e4c53
Better looking module listing page.
hugopl Aug 2, 2011
8bf041b
Don't color links black.
hugopl Aug 2, 2011
39d9b90
Moved AutoArrayPointer from libpyside to libshiboken.
Aug 3, 2011
7ecfb3e
DynamicMetaObject optimizations.
Aug 3, 2011
1650d80
Fixes Bug #944: Segfault on QIcon(None).pixmap()
Aug 8, 2011
96b4196
Fixes in QtWebkit
lauromoura Aug 8, 2011
aea22e9
Add test for qml plugin.
lauromoura Aug 8, 2011
038b184
Fix plugin test
lauromoura Aug 8, 2011
ca1c387
Removing uneeded file
lauromoura Aug 9, 2011
d64e0a5
Added test for signal with typedef
lauromoura Aug 9, 2011
8a28ab0
Update pysidedocs theme to rely more on sphinx's base theme:
OdyX Aug 8, 2011
405c26c
Bump version to 1.0.6.
hugopl Aug 10, 2011
9d4b14d
Fix links on rel bar.
hugopl Aug 10, 2011
f40f69f
Updated qmlRegisterType to register.
Aug 11, 2011
5cc288b
Created unit test for bug #951.
Aug 11, 2011
01b90a3
Deprecated functions marked as deprecated.
hugopl Aug 10, 2011
b261ff4
Fix bug 953 - "Segfault when QObject is garbage collected after QTime…
hugopl Aug 12, 2011
0e0b99f
Created unit test for bug #965.
Aug 12, 2011
612b271
Removed return policy from QUiLoader.load return object.
Aug 15, 2011
44eab23
Remove obscure code from QUiLoader inject code.
Aug 15, 2011
6f1d896
Created unit test for bug #958.
Aug 15, 2011
bea3664
Implemented QColor.__repr__ and QColor.__str__ functions.
Aug 16, 2011
530ec26
Created unit test for QColor.__repr__ and QColor.__str__ functions.
Aug 16, 2011
6cdd438
Fixed QColor.__reduce__ function.
Aug 16, 2011
0293a3c
Fix bug 950 - "implement Q_INVOKABLE"
hugopl Aug 16, 2011
c495e61
Fix bug 964 - "QAbstractItemView.moveCursor() method is missing"
hugopl Aug 16, 2011
990d1b3
Updated QtCore's type system.
Aug 11, 2011
dda8cdc
Updated QtGui's type system.
Aug 11, 2011
d01a8a8
Updated QtXmlPattern's type system.
Aug 11, 2011
f4e0aae
Updated QtWebKit's type system.
Aug 11, 2011
660e5e2
Updated QtDeclarative's type system.
Aug 18, 2011
caec341
Updated QtNetwork's type system.
Aug 18, 2011
f9c9eff
Fixed conversion rules for QWebPage.javaScriptPrompt method.
Aug 18, 2011
cccee9c
Do not generate QTest::qt_snprintf function.
Aug 18, 2011
ad3a8ed
Implemented GlobalReceiverV2.
Aug 18, 2011
4ab3bc3
Fix QSettings code snippet.
hugopl Aug 19, 2011
ceb3d27
Fix QGraphicsProxyWidget.setWidget return policy.
Aug 19, 2011
3b4b9e4
Created unitest for bug #972.
Aug 19, 2011
6311d46
Fix QColor __reduce__ function.
Aug 22, 2011
ef09666
Created unit test for __reduce__ of empty QColor.
Aug 22, 2011
e6ac715
Dependency version update.
Aug 22, 2011
703b460
Fixed build for Qt 4.6.
Aug 23, 2011
2fe55fe
Implement support to pyside debug mode on documentation generator.
Aug 23, 2011
321cd62
Created unit test for bug #959.
Aug 24, 2011
9ff7b38
Register QVariantMap on TypeManager.
Aug 24, 2011
2f66271
Fixex return policy on QNetworkAccessManager.createRequest.
Aug 24, 2011
7b48cd5
Fixed QMenu, QMenuBar, QToolBar clear function.
Aug 24, 2011
4e91c66
Created unit test for QMenu, QMenuBar, QToolBar clear function.
Aug 24, 2011
a8f22c1
Fix complation warning relative to PyDateTime_IMPORT.
Aug 25, 2011
94636bf
Created utility function to call a python method usign args received in
Aug 26, 2011
804c3c5
Implemented inject code for function QWebPage.qt_metacall.
Aug 26, 2011
3528eba
Removed debug messages from the test.
Aug 26, 2011
1cf8ce8
Created unit test for bug #973.
Aug 26, 2011
3212d97
Fix white space.
hugopl Aug 25, 2011
657f9d5
Added missing primitive types on QtCore type system.
hugopl Aug 25, 2011
fe821e1
Fixed SignalManager bug during anonymous signal connection.
Aug 26, 2011
e3d93bc
Fail during the signal connection or disconnection raises exception.
Aug 26, 2011
606c442
Created unit test for bug #987.
Aug 26, 2011
562d889
Fixed gcc warning during QDate conversion compilation.
Aug 29, 2011
779a1c7
Created unit test for repr function.
Aug 30, 2011
472f8b7
Optimize my dumb code that do stuff with a QByteArray without knowing…
hugopl Aug 30, 2011
93d87b2
Fix bug 988 - "The type supplied with currentChanged signal in QTabWi…
hugopl Aug 30, 2011
20d74f8
Created test for bug #979.
Aug 30, 2011
9097911
Unit test for bug 967, a side effect of bug 988.
hugopl Aug 31, 2011
5d34c3b
Fixed QColor reduce function.
Aug 31, 2011
ed3093d
Created unit test for QColor reduce function.
Aug 31, 2011
a98933b
Fix bug 966 - "QX11Info.display() missing"
hugopl Aug 31, 2011
1261f29
Fix bug 944 - "QIODevice.readData must use qmemcpy instead of qstrncpy"
hugopl Aug 31, 2011
5c39c42
Add extra test on QByteArray explicit conversion
lauromoura Sep 1, 2011
abadd50
Fix other QIODevice read functions stopping at null bytes.
hugopl Sep 1, 2011
56fc423
Fix QAbstractFileEngine read and readLine methods to accept data with…
hugopl Sep 1, 2011
175f5c8
Fix bug 981 - "QSettings docs should empathize the behavior changes o…
hugopl Sep 1, 2011
b7a5572
Changed QStringList from container to primitive type.
Aug 31, 2011
18f8609
Fixed problems in function that return None, and was not verified.
Sep 6, 2011
d01f3bd
Create unit test for bug #998.
Sep 6, 2011
8ddf35d
Fixed segfault during the connection fail.
Sep 7, 2011
6d3932b
Avoid register property twice during the object instaciation.
Sep 7, 2011
8b159a1
Created unit test for bug #997.
Sep 8, 2011
57dbef1
Fixed QWidget.window() return policy.
Sep 9, 2011
de31fbd
Created unit test for bug #1002.
Sep 9, 2011
60f657f
Unit test for bug 995 - "QDeclarativeView.itemAt returns faulty refer…
hugopl Sep 13, 2011
332770d
Fix QLayout.itemAt and QGridLayout.itemAtPosition return policy.
Sep 19, 2011
a67d557
Created unit test for bug #1006.
Sep 19, 2011
1e11f67
Fixed layout policy.
Sep 20, 2011
227f4a7
Created unit test for layout policy.
Sep 20, 2011
5803851
Version bumped.
Sep 21, 2011
bc1fb8c
QHostAddress::setAddress(quint8*) signature was removed.
Sep 21, 2011
fe21474
Fixes argument and return type for method "QScriptString::toArrayInde…
Sep 21, 2011
89be62d
Fixes argument and return type of a couple of QtDeclarative methods.
Sep 21, 2011
93dc734
Fixed compilation with python3.
Sep 19, 2011
a50b4fb
Created pyside QFlags compat class.
Oct 3, 2011
5525de2
Initia QtCore port to python3.
Oct 3, 2011
d450084
Updated QtDeclarative modue to works with python 2.x and 3.x
Oct 6, 2011
e2eaf4f
Updated QtCore modue to works with python 2.x and 3.x
Oct 6, 2011
0647ae2
Updated QtGui modue to works with python 2.x and 3.x
Oct 6, 2011
78540b7
Updated QtScript modue to works with python 2.x and 3.x
Oct 6, 2011
7ccc40d
Updated QtNetwork modue to works with python 2.x and 3.x
Oct 6, 2011
30b0b91
Updated QtOpenGL modue to works with python 2.x and 3.x
Oct 6, 2011
9850849
Updated QtSql modue to works with python 2.x and 3.x
Oct 6, 2011
6cda8a5
Updated QtUiTools modue to works with python 2.x and 3.x
Oct 6, 2011
1a3c2cf
Updated QtWebKit modue to works with python 2.x and 3.x
Oct 6, 2011
5ace130
Updated phonon modue to works with python 2.x and 3.x
Oct 6, 2011
e7f9b64
Updated pyside and signals tests to works with python 2.x and 3.x
Oct 6, 2011
cbd5c15
Updated __init__.py file to works with python 2.x and 3.x
Oct 6, 2011
229d076
Slplited python compat file for python 2.x and 3.x
Oct 6, 2011
d41aff3
Updated Cmake files.
Oct 6, 2011
6ec8f68
Fixed unittest to work with python3.
Oct 7, 2011
90f7dda
Change String::convertible to String::isConvertible.
hugopl Oct 7, 2011
4f20582
Fixed unittest to work with python3.
Oct 7, 2011
41f66d6
Fix qglbuffer test on Python3.
hugopl Oct 7, 2011
ec04e5e
Avoid using uninitialized variable.
hugopl Oct 10, 2011
81a4cb2
Use sbkpython.h instead of Python.h to avoid problems with Python2.5.
hugopl Oct 10, 2011
89baf69
Fixes win32's HWND converter.
Oct 13, 2011
aa8519d
Fix getTypeName check order.
lauromoura Oct 18, 2011
5e8a7ef
Initial update typesystem for support Qt 4.8 (beta).
Aug 5, 2011
d68c6b9
Only removes actions bounded to PyObjects on QMenu::clear.
hugopl Oct 17, 2011
74ad07f
Fix bug 1022 - "RuntimeError: maximum recursion depth exceeded while …
Oct 19, 2011
5b51ad9
Fix bug 1019 - "Overriding QWidget.show or QWidget.hide do not work"
hugopl Oct 19, 2011
fee6535
Version bump to 1.0.8.
hugopl Oct 20, 2011
69e2171
Fix unit test of bug 829.
hugopl Oct 20, 2011
65b1748
Fix code style and add license headers.
hugopl Oct 26, 2011
987f3ec
Optimize PySide::getMetaDataFromQObject function avoiding some str co…
hugopl Oct 26, 2011
0571914
Fix bug 1016 - "Calling of Q_INVOKABLE method returning not QVariant …
hugopl Oct 26, 2011
ce98b29
Unify the code used to do QObject meta calls.
hugopl Oct 26, 2011
1c135f7
Reduce the memory used by PySideMetaFunction instances.
hugopl Oct 26, 2011
f3672a7
Fix bug 1011 - "PySide cygwin patch"
hugopl Oct 27, 2011
3b70d65
Fix bug 1013 - "connect to QSqlTableModel.primeInsert() causes crash"
hugopl Oct 28, 2011
f9a7144
Creates QFlags types at runtime.
hugopl Oct 14, 2011
07092b2
Fix bug 1036 - "Qt.KeyboardModifiers always evaluates to zero"
hugopl Oct 28, 2011
77a011a
Fix bug 1012 - "FTBFS with hardening flags enabled"
hugopl Oct 31, 2011
c698162
Strip the text received from message handler.
hugopl Oct 31, 2011
0c7399f
Fix phonon unit test when there are device aliases reported by phonon.
hugopl Oct 31, 2011
5e56336
Fixed compilation error for gcc versions < 4
jkozera Oct 20, 2011
2a19232
Fix BUG #1031
Oct 31, 2011
8e5f570
Fix bug 1029 - "qmlRegisterType Fails to Increase the Ref Count"
hugopl Nov 1, 2011
f1fe0a3
Remove unused code in bug 844 unit test.
hugopl Nov 1, 2011
9367d9e
Fix PYSIDE_LIBRARY in CMake export.
lauromoura Nov 3, 2011
a357fbb
Fix BUG #1052
Nov 23, 2011
c3fc078
Fix BUG #1058 - "Strange code in PySide/QtUiTools/glue/plugins.h"
Nov 23, 2011
6a1e70e
Fix BUG #1048
Nov 25, 2011
4e47b32
Bumping to revision 1.0.9
Nov 29, 2011
e20060d
Fix BUG #1069 - "QtCore.QDataStream silently fails on writing Python …
Nov 29, 2011
f2b0c68
Fix BUG #1034 - "Error compiling PySide with Python 3.2.2 32bit on Wi…
Dec 1, 2011
e1a897d
Fix BUG #1077 - "Application exit crash when call QSyntaxHighlighter.…
Dec 5, 2011
3aef0d3
Replace private.py file by an inject code.
hugopl Dec 6, 2011
4f9fde5
Fix bug 1083 - "winId returns a PyCObject making it impossible to com…
hugopl Dec 9, 2011
0a4d2f2
Fix BUG #1063
Dec 8, 2011
aef499e
pysidesignal: trivial fixes
Dec 8, 2011
0b36404
pysidesignal: don't use C's cast
Dec 8, 2011
5cbd9c7
Don't double decref variable causing an assertion error on debug builds.
hugopl Dec 9, 2011
4f5ac5f
Makes test for QtCore's bug #1063 compliant with Python 3.
Dec 9, 2011
9468253
pysidesignal: more trivial fixes
Dec 9, 2011
b6b5212
Signature of various added and modified functions modified to use non…
Aug 4, 2011
601cb84
Turned QStyleOptionViewItem into value type, for it has a public copy…
Jul 18, 2011
49cbabd
Added default constructor to QTextStreamManipulator.
Jul 25, 2011
3c4dff5
Added new style conversions for QDate, QTime and QDateTime objects.
Aug 4, 2011
7003636
New converters for primitive types.
Aug 12, 2011
0473276
New containers for container types.
Aug 31, 2011
8ea0365
Updated various function removals and modifications.
Sep 16, 2011
92675c4
Some method signatures were removed.
Sep 21, 2011
1c109e3
Fixes conversion rule for QGraphicsView::drawItems array argument.
Oct 17, 2011
c1a0865
Added converter for primitive type QModelIndexList.
Oct 20, 2011
c6e8f51
Modified PySideQFlags based on Hugo's design.
Oct 21, 2011
f2c78ea
Fixes the test for a QFlag value returned in a QVariant.
Oct 21, 2011
0b3b94d
Fixes type converter for Win32's HWND.
Oct 24, 2011
9662247
Fixed custom code for QScriptValueIterator.__next__ function.
Nov 30, 2011
e7d76b1
Fixed code for setting QtCore.__version_info__ to not use Shiboken::m…
Nov 30, 2011
55ac5ba
Fixed code for QUdpSocket.readDatagram method to remove usage of Shib…
Nov 30, 2011
c93001f
Removed the remaining occurrences of Shiboken::makeTuple.
Dec 1, 2011
0f38019
Replaced TypeResolver by SbkConverter and SpecificConverter.
Nov 1, 2011
00b4b81
Fix compilation of conversion branch against Python3k.
hugopl Dec 5, 2011
ba94b0b
Fixed converter for win32's WId type.
Dec 9, 2011
eb4a6ab
Removed the QAbstractVideoBuffer::map method.
Dec 9, 2011
60cf602
Fixed QtCore's HWND converter for win32.
Dec 9, 2011
651cadc
Qt::HANDLE is declared only in QtCore, and its specifics depend on th…
Dec 9, 2011
35a92c1
Fixes custom code for QtCore's HWND on win32.
Dec 9, 2011
c535327
Added a type system file for Maemo's QtCore.
Dec 10, 2011
85cf748
No more training wheels. The last occurrences of the old template Con…
Dec 12, 2011
fe16e86
Updated the custom widget plugin to use the new converters.
Dec 12, 2011
72edc8b
Added type system entries to the primitive types used by QtOpenGL.
Dec 12, 2011
8f8a991
Add GC support to PySide Property type.
hugopl Dec 12, 2011
4551766
Small code style changes.
hugopl Dec 13, 2011
82d0862
Fixes the QSettings related QVariant's save/load bug.
Dec 14, 2011
ebf5e4f
The temporary file used in the test for bug #829 must not be deleted …
Dec 15, 2011
86c6261
Fix BUG #1084 - "Crash (segfault) when writing unicode string on socket"
Dec 16, 2011
689c31a
Fix BUG #1091 - "PixmapFragment and drawPixmapFragments are not bound"
Dec 21, 2011
ace1372
Fix BUG #1060 - "Subclassing of QUiLoader leads to "Internal C++ object
Dec 21, 2011
4b89fa8
Declares Python types using the new "<custom-type>" tag.
Dec 23, 2011
b98a916
Version bump to 1.1.0.
Dec 30, 2011
17970c4
Version bump to 1.1.1.
Dec 30, 2011
d1b97f2
Fix BUG #1088 - "Compilation error in QtWebKit module for Qt Simulator"
igor-bogomolov Jan 2, 2012
deb873d
Fixed compilation error in QtCore module for Qt Simulator
igor-bogomolov Jan 2, 2012
9c5fc03
Updated QtGui type system files for Qt Simulator
igor-bogomolov Jan 2, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 33 additions & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ project(pysidebindings)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Macros/
${CMAKE_MODULE_PATH})
find_package(GeneratorRunner 0.6.3 REQUIRED)
find_package(Shiboken 1.0.0 REQUIRED)
find_package(GeneratorRunner 0.6.16 REQUIRED)
find_package(Shiboken 1.1.0 REQUIRED)
find_package(Qt4 4.5.0 REQUIRED)
find_file(GL_H "gl.h" PATH_SUFFIXES "GL")
include(FindQt4Extra)

set(XVFB_EXEC "")
option(USE_XVFB "Uses xvfb-run with the unit tests to avoid QtGui tests popping windows on the screen." FALSE)
if(USE_XVFB)
find_program(XVFB_RUN NAMES xvfb-run)
if (NOT ${XVFB_RUN} MATCHES "XVFB_RUN-NOTFOUND")
set(XVFB_EXEC ${XVFB_RUN})
set(XVFB_EXEC ${XVFB_RUN} -a)
message(STATUS "Using xvfb-run to perform QtGui tests.")
endif()
endif()

option(BUILD_TESTS "Build tests." TRUE)
option(ENABLE_VERSION_SUFFIX "Used to use current version in suffix to generated files. This is used to allow multiples versions installed simultaneous." FALSE)
set(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)" )
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is /lib${LIB_SUFFIX})" FORCE)
Expand All @@ -30,7 +32,7 @@ endif()
if(MSVC)
set(CMAKE_CXX_FLAGS "/Zc:wchar_t- /GR /EHsc /DNOCOLOR /DWIN32 /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS")
else()
if(CMAKE_HOST_UNIX)
if(CMAKE_HOST_UNIX AND NOT CYGWIN)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fvisibility=hidden -Wno-strict-aliasing")
endif()
set(CMAKE_CXX_FLAGS_DEBUG "-g")
Expand All @@ -55,14 +57,23 @@ else()
endif()

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_BUILD_TYPE ${SHIBOKEN_BUILD_TYPE})
endif()

set(BINDING_NAME PySide)
set(BINDING_API_MAJOR_VERSION "1")
set(BINDING_API_MINOR_VERSION "0")
set(BINDING_API_MICRO_VERSION "0")
set(BINDING_API_MINOR_VERSION "1")
set(BINDING_API_MICRO_VERSION "1")
set(BINDING_API_RELEASE_LEVEL "final") # alpha, beta, rc, or final
set(BINDING_API_SERIAL 1) # leave as 0 when release level is final
set(BINDING_API_VERSION "${BINDING_API_MAJOR_VERSION}.${BINDING_API_MINOR_VERSION}.${BINDING_API_MICRO_VERSION}" CACHE STRING "PySide version" FORCE)
if (BINDING_API_RELEASE_LEVEL STREQUAL "final")
set(BINDING_API_VERSION_FULL "${BINDING_API_MAJOR_VERSION}.${BINDING_API_MINOR_VERSION}.${BINDING_API_MICRO_VERSION}"
CACHE STRING "PySide version [full]" FORCE)
else()
set(BINDING_API_VERSION_FULL "${BINDING_API_MAJOR_VERSION}.${BINDING_API_MINOR_VERSION}.${BINDING_API_MICRO_VERSION}~${BINDING_API_RELEASE_LEVEL}${BINDING_API_SERIAL}"
CACHE STRING "PySide version [full]" FORCE)
endif()
set(PYSIDE_QT_VERSION "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}" CACHE STRING "Qt version used to compile PySide" FORCE)
if(ENABLE_VERSION_SUFFIX)
set(pyside_SUFFIX "-${BINDING_API_MAJOR_VERSION}.${BINDING_API_MINOR_VERSION}")
Expand Down Expand Up @@ -106,11 +117,7 @@ else()
endif()

# Define supported Qt Version
if(${QT_VERSION_MAJOR} EQUAL 4 AND ${QT_VERSION_MINOR} GREATER 6)
set(SUPPORTED_QT_VERSION 4.7)
else()
set(SUPPORTED_QT_VERSION 4.6)
endif()
set(SUPPORTED_QT_VERSION "${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}")

set(BINDING_VERSION ${BINDING_API_VERSION}.${QT_VERSION_MAJOR}.${QT_VERSION_MINOR})

Expand All @@ -122,7 +129,7 @@ add_custom_target(uninstall "${CMAKE_COMMAND}"
-P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")


set(ARCHIVE_NAME pyside-qt${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}+${BINDING_API_VERSION})
set(ARCHIVE_NAME pyside-qt${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}+${BINDING_API_VERSION_FULL})
add_custom_target(dist
COMMAND mkdir -p "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}" &&
git log > "${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}/ChangeLog" &&
Expand All @@ -135,7 +142,7 @@ add_custom_target(dist
if (NOT SITE_PACKAGE)
execute_process(
COMMAND ${SHIBOKEN_PYTHON_INTERPRETER} -c "from distutils import sysconfig; \\
print sysconfig.get_python_lib(1,0,prefix='${CMAKE_INSTALL_PREFIX}')"
print(sysconfig.get_python_lib(1,0,prefix='${CMAKE_INSTALL_PREFIX}'))"
OUTPUT_VARIABLE SITE_PACKAGE
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (NOT SITE_PACKAGE)
Expand All @@ -145,17 +152,25 @@ if (NOT SITE_PACKAGE)
endif()
endif()

set(GENERATOR_EXTRA_FLAGS --generatorSet=shiboken --enable-parent-ctor-heuristic --enable-pyside-extensions --enable-return-value-heuristic)

enable_testing()
set(GENERATOR_EXTRA_FLAGS --generator-set=shiboken --enable-parent-ctor-heuristic --enable-pyside-extensions --enable-return-value-heuristic --use-isnull-as-nb_nonzero)
if(WIN32 OR DEFINED AVOID_PROTECTED_HACK)
message(STATUS "PySide will be generated avoiding the protected hack!")
set(GENERATOR_EXTRA_FLAGS ${GENERATOR_EXTRA_FLAGS} --avoid-protected-hack)
add_definitions(-DAVOID_PROTECTED_HACK)
else()
message(STATUS "PySide will be generated using the protected hack!")
endif()

add_subdirectory(libpyside)
if(QT_QTUITOOLS_FOUND AND QT_QTDESIGNER_FOUND)
add_subdirectory(plugins)
endif()
# project directories
add_subdirectory(PySide)
add_subdirectory(tests)
if (BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif ()

find_program(DOT_EXEC dot)
if (QT_SRC_DIR AND DOT_EXEC)
Expand Down
15 changes: 8 additions & 7 deletions PySide/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
project(pyside)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/__init__.py" "${CMAKE_CURRENT_BINARY_DIR}/private.py"
DESTINATION "${SITE_PACKAGE}/${BINDING_NAME}${pyside_SUFFIX}")

include(PySideModules)

# Configure include based on platform
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/global.h.in"
"${CMAKE_CURRENT_BINARY_DIR}/global.h" @ONLY)
"${CMAKE_CURRENT_BINARY_DIR}/pyside_global.h" @ONLY)

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/__init__.py.in"
"${CMAKE_CURRENT_BINARY_DIR}/__init__.py" @ONLY)

execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/private.py"
"${CMAKE_BINARY_DIR}/PySide/private.py")

HAS_QT_MODULE(QT_QTCORE_FOUND QtCore)
HAS_QT_MODULE(QT_QTGUI_FOUND QtGui)
HAS_QT_MODULE(QT_QTNETWORK_FOUND QtNetwork)
Expand All @@ -23,7 +18,9 @@ HAS_QT_MODULE(QT_QTXML_FOUND QtXml)
HAS_QT_MODULE(QT_QTTEST_FOUND QtTest)
HAS_QT_MODULE(QT_QTOPENGL_FOUND QtOpenGL)
HAS_QT_MODULE(QT_QTSQL_FOUND QtSql)
HAS_QT_MODULE(QT_QTUITOOLS_FOUND QtUiTools)
if(QT_QTDESIGNER_FOUND)
HAS_QT_MODULE(QT_QTUITOOLS_FOUND QtUiTools)
endif()
HAS_QT_MODULE(QT_QTHELP_FOUND QtHelp)
HAS_QT_MODULE(QT_QTXMLPATTERNS_FOUND QtXmlPatterns)
HAS_QT_MODULE(QT_QTMAEMO5_FOUND QtMaemo5)
Expand All @@ -34,6 +31,10 @@ HAS_QT_MODULE(QT_PHONON_FOUND phonon)
HAS_QT_MODULE(QT_QTDECLARATIVE_FOUND QtDeclarative)

# install
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/__init__.py"
DESTINATION "${SITE_PACKAGE}/${BINDING_NAME}${pyside_SUFFIX}")
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/typesystem_templates.xml
DESTINATION share/PySide${pyside_SUFFIX}/typesystems)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pyside_global.h
DESTINATION include/${BINDING_NAME}${pyside_SUFFIX})

23 changes: 19 additions & 4 deletions PySide/QtCore/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
project(QtCore)

set(QtCore_gluecode "${CMAKE_CURRENT_SOURCE_DIR}/glue/qeasingcurve_glue.cpp")

if (${QT_VERSION_MAJOR} EQUAL 4 AND ${QT_VERSION_MINOR} LESS 6)
set (QtCore_46_SRC )
else()
Expand Down Expand Up @@ -34,7 +36,14 @@ else()
)
endif()


if(ENABLE_WIN)
set(SPECIFIC_OS_FILES
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/msg_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/point_wrapper.cpp
)
else()
set(SPECIFIC_OS_FILES "")
endif()

set(QtCore_SRC
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp
Expand All @@ -60,7 +69,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qdiriterator_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qdynamicpropertychangeevent_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qevent_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qeventloop_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/${BINDING_NAME}/QtCore/qfactoryinterface_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfactoryinterface_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfile_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfileinfo_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfilesystemwatcher_wrapper.cpp
Expand Down Expand Up @@ -135,9 +144,14 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qxmlstreamreader_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qxmlstreamwriter_wrapper.cpp
${QtCore_46_SRC}
${QtCore_47_SRC}
${SPECIFIC_OS_FILES}
)

set(QtCore_typesystem_path "")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/typesystem_core.xml.in"
"${CMAKE_CURRENT_BINARY_DIR}/typesystem_core.xml" @ONLY)

set(QtCore_typesystem_path "${QtCore_SOURCE_DIR}")

set(QtCore_include_dirs ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/${BINDING_NAME}/QtCore/
${QT_INCLUDE_DIR}
Expand All @@ -155,4 +169,5 @@ create_pyside_module(QtCore
""
QtCore_typesystem_path
QtCore_SRC
"")
QtCore_gluecode
${CMAKE_CURRENT_BINARY_DIR}/typesystem_core.xml)
2 changes: 1 addition & 1 deletion PySide/QtCore/glue/qbytearray_bufferprotocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static Py_ssize_t SbkQByteArray_readbufferproc(PyObject* self, Py_ssize_t segmen
if (segment || !Shiboken::Object::isValid(self))
return -1;

QByteArray* cppSelf = Shiboken::Converter<QByteArray*>::toCpp(self);
QByteArray* cppSelf = %CONVERTTOCPP[QByteArray*](self);
*ptrptr = reinterpret_cast<void*>(cppSelf->data());
return cppSelf->size();
}
Expand Down
34 changes: 7 additions & 27 deletions PySide/QtCore/glue/qcoreapplication_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,23 @@
static int QCoreApplicationArgCount;
static char** QCoreApplicationArgValues;

int Sbk_QCoreApplication_Init(PyObject* self, PyObject* args, PyObject*)
void QCoreApplication_constructor(PyObject* self, PyObject* args, QCoreApplicationWrapper** cptr)
{
if (Shiboken::Object::isUserType(self) && !Shiboken::ObjectType::canCallConstructor(self->ob_type, Shiboken::SbkType<QApplication >()))
return -1;


if (QCoreApplication::instance()) {
PyErr_SetString(PyExc_RuntimeError, "A QCoreApplication instance already exists.");
return -1;
return;
}

int numArgs = PyTuple_GET_SIZE(args);
if (numArgs != 1) {
if (numArgs != 1
|| !Shiboken::sequenceToArgcArgv(PyTuple_GET_ITEM(args, 0), &QCoreApplicationArgCount, &QCoreApplicationArgValues, "PySideApp")) {
PyErr_BadArgument();
return -1;
return;
}

if (!Shiboken::sequenceToArgcArgv(PyTuple_GET_ITEM(args, 0), &QCoreApplicationArgCount, &QCoreApplicationArgValues, "PySideApp")) {
PyErr_BadArgument();
return -1;
}

SbkObject* sbkSelf = reinterpret_cast<SbkObject*>(self);
QCoreApplicationWrapper* cptr = new QCoreApplicationWrapper(QCoreApplicationArgCount, QCoreApplicationArgValues);
Shiboken::Object::setCppPointer(sbkSelf,
Shiboken::SbkType<QCoreApplication>(),
cptr);

Shiboken::Object::setValidCpp(sbkSelf, true);
Shiboken::Object::setHasCppWrapper(sbkSelf, true);
Shiboken::Object::releaseOwnership(sbkSelf);

Shiboken::BindingManager::instance().registerWrapper(sbkSelf, cptr);
PySide::Signal::updateSourceObject(self);
cptr->metaObject();
*cptr = new QCoreApplicationWrapper(QCoreApplicationArgCount, QCoreApplicationArgValues);

Shiboken::Object::releaseOwnership(reinterpret_cast<SbkObject*>(self));
PySide::registerCleanupFunction(&PySide::destroyQCoreApplication);
Py_INCREF(self);
return 1;
}
Loading