aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtNetwork
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-02-16 11:37:45 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:59 -0300
commit75937124c2e8b567e226d7675265a87562d4a1c7 (patch)
treec4065652837f26c4e1b63fbc0f01cd91b3b08832 /PySide/QtNetwork
parent861e26665da05bc6fbc28ed3503fdcc4b8bd9fb6 (diff)
Updated CMake files to use the "--drop-type-entries" generator option.
Instead of maintaining a complex CMake scheme to remove optional type system entries, the generation will rely on the new generator capability of dropping entries given via command line. Reviewed by Bruno Araújo <bruno.araujo@openbossa.org> Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtNetwork')
-rw-r--r--PySide/QtNetwork/CMakeLists.txt24
-rw-r--r--PySide/QtNetwork/optional/QSslCertificate.xml1
-rw-r--r--PySide/QtNetwork/optional/QSslCipher.xml1
-rw-r--r--PySide/QtNetwork/optional/QSslConfiguration.xml1
-rw-r--r--PySide/QtNetwork/optional/QSslError.xml4
-rw-r--r--PySide/QtNetwork/optional/QSslKey.xml1
-rw-r--r--PySide/QtNetwork/optional/QSslSocket.xml6
-rw-r--r--PySide/QtNetwork/typesystem_network.xml19
8 files changed, 31 insertions, 26 deletions
diff --git a/PySide/QtNetwork/CMakeLists.txt b/PySide/QtNetwork/CMakeLists.txt
index 50f8103e8..0f2273adc 100644
--- a/PySide/QtNetwork/CMakeLists.txt
+++ b/PySide/QtNetwork/CMakeLists.txt
@@ -10,6 +10,15 @@ else()
set(QtNetwork_47_SRC )
endif ()
+set(QtNetwork_OPTIONAL_SRC )
+set(QtNetwork_DROPPED_ENTRIES )
+check_qt_class(QtNetwork QSslCertificate QtNetwork_OPTIONAL_SRC QtNetwork_DROPPED_ENTRIES)
+check_qt_class(QtNetwork QSslCipher QtNetwork_OPTIONAL_SRC QtNetwork_DROPPED_ENTRIES)
+check_qt_class(QtNetwork QSslConfiguration QtNetwork_OPTIONAL_SRC QtNetwork_DROPPED_ENTRIES)
+check_qt_class(QtNetwork QSslError QtNetwork_OPTIONAL_SRC QtNetwork_DROPPED_ENTRIES)
+check_qt_class(QtNetwork QSslKey QtNetwork_OPTIONAL_SRC QtNetwork_DROPPED_ENTRIES)
+check_qt_class(QtNetwork QSslSocket QtNetwork_OPTIONAL_SRC QtNetwork_DROPPED_ENTRIES)
+
set(QtNetwork_SRC
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtNetwork/qabstractnetworkcache_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtNetwork/qabstractsocket_wrapper.cpp
@@ -44,19 +53,9 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtNetwork/qudpsocket_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtNetwork/qurlinfo_wrapper.cpp
${QtNetwork_47_SRC}
+${QtNetwork_OPTIONAL_SRC}
)
-set(TARGET_TYPESYSTEM "${CMAKE_CURRENT_BINARY_DIR}/typesystem_network.xml")
-configure_file("${CMAKE_CURRENT_SOURCE_DIR}/typesystem_network.xml"
- "${TARGET_TYPESYSTEM}" @ONLY)
-
-check_qt_class(QtNetwork QSslCertificate QtNetwork_SRC ${TARGET_TYPESYSTEM})
-check_qt_class(QtNetwork QSslCipher QtNetwork_SRC ${TARGET_TYPESYSTEM})
-check_qt_class(QtNetwork QSslConfiguration QtNetwork_SRC ${TARGET_TYPESYSTEM})
-check_qt_class(QtNetwork QSslError QtNetwork_SRC ${TARGET_TYPESYSTEM})
-check_qt_class(QtNetwork QSslKey QtNetwork_SRC ${TARGET_TYPESYSTEM})
-check_qt_class(QtNetwork QSslSocket QtNetwork_SRC ${TARGET_TYPESYSTEM})
-
set(QtNetwork_typesystem_path "${QtCore_SOURCE_DIR}")
set(QtNetwork_include_dirs ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtNetwork/
@@ -79,4 +78,5 @@ create_pyside_module(QtNetwork
QtNetwork_deps
QtNetwork_typesystem_path
QtNetwork_SRC
- ${TARGET_TYPESYSTEM})
+ ""
+ QtNetwork_DROPPED_ENTRIES)
diff --git a/PySide/QtNetwork/optional/QSslCertificate.xml b/PySide/QtNetwork/optional/QSslCertificate.xml
deleted file mode 100644
index 7acf97c36..000000000
--- a/PySide/QtNetwork/optional/QSslCertificate.xml
+++ /dev/null
@@ -1 +0,0 @@
-<value-type name="QSslCertificate"/>
diff --git a/PySide/QtNetwork/optional/QSslCipher.xml b/PySide/QtNetwork/optional/QSslCipher.xml
deleted file mode 100644
index 15ff59a23..000000000
--- a/PySide/QtNetwork/optional/QSslCipher.xml
+++ /dev/null
@@ -1 +0,0 @@
-<value-type name="QSslCipher"/>
diff --git a/PySide/QtNetwork/optional/QSslConfiguration.xml b/PySide/QtNetwork/optional/QSslConfiguration.xml
deleted file mode 100644
index 31c5e83b7..000000000
--- a/PySide/QtNetwork/optional/QSslConfiguration.xml
+++ /dev/null
@@ -1 +0,0 @@
-<value-type name="QSslConfiguration"/>
diff --git a/PySide/QtNetwork/optional/QSslError.xml b/PySide/QtNetwork/optional/QSslError.xml
deleted file mode 100644
index 0e4cf3e54..000000000
--- a/PySide/QtNetwork/optional/QSslError.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<value-type name="QSslError">
- <enum-type name="SslError"/>
-</value-type>
-
diff --git a/PySide/QtNetwork/optional/QSslKey.xml b/PySide/QtNetwork/optional/QSslKey.xml
deleted file mode 100644
index 88a6370d6..000000000
--- a/PySide/QtNetwork/optional/QSslKey.xml
+++ /dev/null
@@ -1 +0,0 @@
-<value-type name="QSslKey"/>
diff --git a/PySide/QtNetwork/optional/QSslSocket.xml b/PySide/QtNetwork/optional/QSslSocket.xml
deleted file mode 100644
index 415e68192..000000000
--- a/PySide/QtNetwork/optional/QSslSocket.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<object-type name="QSslSocket">
- <enum-type name="SslMode"/>
- <enum-type name="PeerVerifyMode"/>
- <modify-function signature="connectToHostEncrypted(const QString&amp;, quint16, QFlags&lt;QIODevice::OpenModeFlag>)" allow-thread="yes" />
- <modify-function signature="waitForEncrypted(int)" allow-thread="yes" />
-</object-type>
diff --git a/PySide/QtNetwork/typesystem_network.xml b/PySide/QtNetwork/typesystem_network.xml
index 8a677fd1f..5b0657913 100644
--- a/PySide/QtNetwork/typesystem_network.xml
+++ b/PySide/QtNetwork/typesystem_network.xml
@@ -280,4 +280,23 @@
<value-type name="QNetworkCacheMetaData"/>
<suppress-warning text="Shadowing: QAbstractSocket::*"/>
+
+
+ <!-- The following entries may be present in the system or not. Keep this section organized. -->
+ <value-type name="QSslCertificate"/>
+ <value-type name="QSslCipher"/>
+ <value-type name="QSslConfiguration"/>
+ <value-type name="QSslError">
+ <enum-type name="SslError"/>
+ </value-type>
+
+ <value-type name="QSslKey"/>
+ <object-type name="QSslSocket">
+ <enum-type name="SslMode"/>
+ <enum-type name="PeerVerifyMode"/>
+ <modify-function signature="connectToHostEncrypted(const QString&amp;, quint16, QFlags&lt;QIODevice::OpenModeFlag>)" allow-thread="yes" />
+ <modify-function signature="waitForEncrypted(int)" allow-thread="yes" />
+ </object-type>
+ <!-- The above entries may be present in the system or not. Keep this section organized. -->
</typesystem>
+