summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-09 18:05:20 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-09 18:05:20 -0300
commit06755f06ba70288912893bbbd213f5458047cea8 (patch)
tree6d6d46d01b2549648e46582ac85a783b6e311c34
parent5a87a51c119395cd12633d02a3c9558c32a73a43 (diff)
downloadpyside-06755f06ba70288912893bbbd213f5458047cea8.tar.gz
pyside-06755f06ba70288912893bbbd213f5458047cea8.tar.xz
pyside-06755f06ba70288912893bbbd213f5458047cea8.zip
Updated phonon typesystem to use the new pyside cmake macro syntax.
-rw-r--r--PySide/phonon/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/PySide/phonon/CMakeLists.txt b/PySide/phonon/CMakeLists.txt
index 0452d1b..a3f32d2 100644
--- a/PySide/phonon/CMakeLists.txt
+++ b/PySide/phonon/CMakeLists.txt
@@ -44,7 +44,11 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/phonon/phonon_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/phonon/phonon_backendcapabilities_notifierwrapper_wrapper.cpp
)
-check_qt_class("phonon" "VideoCaptureDevice" phonon_SRC "Phonon" "ObjectDescription")
+set(TARGET_TYPESYSTEM "${CMAKE_CURRENT_BINARY_DIR}/typesystem_phonon.xml")
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/typesystem_phonon.xml"
+ "${TARGET_TYPESYSTEM}" @ONLY)
+
+check_qt_class("phonon" "VideoCaptureDevice" phonon_SRC ${TARGET_TYPESYSTEM} "Phonon" "ObjectDescription")
set(phonon_typesystem_path "${QtCore_SOURCE_DIR}${PATH_SEP}${QtGui_SOURCE_DIR}${PATH_SEP}${phonon_SOURCE_DIR}${PATH_SEP}${QtGui_BINARY_DIR}")
set(phonon_include_dirs ${CMAKE_CURRENT_SOURCE_DIR}
@@ -70,4 +74,4 @@ create_pyside_module(phonon
phonon_deps
phonon_typesystem_path
phonon_SRC
- "")
+ ${TARGET_TYPESYSTEM})