From 5521bb2fd048be3cd74c427f7965926b816f82d8 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Wed, 18 Nov 2009 16:47:12 -0200 Subject: Added inject codes for methods like QString::toDouble, QByteArray::toFloat, etc. --- CMakeLists.txt | 2 - PySide/CMakeLists.txt | 3 +- PySide/QtCore/typesystem_core.xml | 84 ++++++++++++++++++++++++++++++++++----- PySide/typesystem_templates.xml | 12 ++++++ 4 files changed, 88 insertions(+), 13 deletions(-) create mode 100644 PySide/typesystem_templates.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index 312898da7..99e19315d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,5 @@ include(icecc.cmake) # this must be the first line! -project(pyside) - cmake_minimum_required(VERSION 2.6) set(CMAKE_CXX_FLAGS_RELEASE "-Wall -DNDEBUG -Os -Wl,-O1 -Wl,--hash-style=gnu -Wno-strict-aliasing") diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt index 1d7c38006..08cc795ee 100644 --- a/PySide/CMakeLists.txt +++ b/PySide/CMakeLists.txt @@ -1,3 +1,4 @@ +project(pyside) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/__init__.py DESTINATION ${SITE_PACKAGE}/${BINDING_NAME}) @@ -6,7 +7,7 @@ add_custom_command(OUTPUT ${${sources}} COMMAND ${GENERATOR} ${GENERATOR_EXTRA_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/../global.h --include-paths=${QT_INCLUDE_DIR} - --typesystem-paths=${typesystem_SOURCE_DIR} + --typesystem-paths=${pyside_SOURCE_DIR} --output-directory=${CMAKE_CURRENT_BINARY_DIR} --license-file=${CMAKE_CURRENT_SOURCE_DIR}/../licensecomment.txt ${CMAKE_CURRENT_SOURCE_DIR}/typesystem_${module}.xml diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index e210d527e..d165ed29f 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1,5 +1,6 @@ + + - - + + + + + + + + + + + + + + + + @@ -1215,11 +1230,46 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1415,8 +1465,22 @@ - - + + + + + + + + + + + + + + + + diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml new file mode 100644 index 000000000..a7e209738 --- /dev/null +++ b/PySide/typesystem_templates.xml @@ -0,0 +1,12 @@ + + + + + + + + -- cgit v1.2.3