Fix phonon compilation and detection of VideoCaptureDevice class.
Reviewer: Lauro Moura <lauro.neto@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
26d6f4a39e
commit
7d80ac8e29
3 changed files with 9 additions and 10 deletions
5
PySide/phonon/optional/VideoCaptureDevice.xml
Normal file
5
PySide/phonon/optional/VideoCaptureDevice.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<value-type name="VideoCaptureDevice">
|
||||||
|
<modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
|
||||||
|
<modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
|
||||||
|
<modify-function signature="fromIndex(int)" remove="all"/>
|
||||||
|
</value-type>
|
||||||
|
|
@ -184,11 +184,6 @@
|
||||||
<modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
|
<modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
|
||||||
<modify-function signature="fromIndex(int)" remove="all"/>
|
<modify-function signature="fromIndex(int)" remove="all"/>
|
||||||
</value-type>
|
</value-type>
|
||||||
<value-type name="VideoCaptureDevice">
|
|
||||||
<modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
|
|
||||||
<modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
|
|
||||||
<modify-function signature="fromIndex(int)" remove="all"/>
|
|
||||||
</value-type>
|
|
||||||
<value-type name="AudioChannelDescription">
|
<value-type name="AudioChannelDescription">
|
||||||
<modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
|
<modify-function signature="operator==(Phonon::ObjectDescription)const" remove="all"/>
|
||||||
<modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
|
<modify-function signature="operator!=(Phonon::ObjectDescription)const" remove="all"/>
|
||||||
|
|
|
||||||
|
|
@ -63,15 +63,15 @@ endmacro()
|
||||||
#macro(check_qt_class_with_namespace module namespace class global_sources commom_xml class_xml [namespace] [module])
|
#macro(check_qt_class_with_namespace module namespace class global_sources commom_xml class_xml [namespace] [module])
|
||||||
macro(check_qt_class module class global_sources commom_xml)
|
macro(check_qt_class module class global_sources commom_xml)
|
||||||
if (${ARGC} GREATER 4)
|
if (${ARGC} GREATER 4)
|
||||||
set (namespace ${ARGV3})
|
set (namespace ${ARGV4})
|
||||||
string(TOLOWER ${namespace} _namespace)
|
string(TOLOWER ${namespace} _namespace)
|
||||||
else ()
|
else ()
|
||||||
set (namespace "")
|
set (namespace "")
|
||||||
endif ()
|
endif ()
|
||||||
if (${ARGC} GREATER 5)
|
if (${ARGC} GREATER 5)
|
||||||
set (include_file ${ARGV4})
|
set (include_file ${ARGV5})
|
||||||
else ()
|
else ()
|
||||||
set (include_file ${module})
|
set (include_file ${class})
|
||||||
endif ()
|
endif ()
|
||||||
string(TOLOWER ${class} _class)
|
string(TOLOWER ${class} _class)
|
||||||
string(TOUPPER ${module} _module)
|
string(TOUPPER ${module} _module)
|
||||||
|
|
@ -93,9 +93,8 @@ macro(check_qt_class module class global_sources commom_xml)
|
||||||
set(SRC_FILE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/test${class}.cxx)
|
set(SRC_FILE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/test${class}.cxx)
|
||||||
file(WRITE ${SRC_FILE}
|
file(WRITE ${SRC_FILE}
|
||||||
"#include <${include_file}>\n"
|
"#include <${include_file}>\n"
|
||||||
"#include <typeinfo>\n"
|
|
||||||
"${NAMESPACE_USE}\n"
|
"${NAMESPACE_USE}\n"
|
||||||
"int main() { typeid(${class}); }\n"
|
"int main() { sizeof(${class}); }\n"
|
||||||
)
|
)
|
||||||
try_compile(Q_WORKS ${CMAKE_BINARY_DIR}
|
try_compile(Q_WORKS ${CMAKE_BINARY_DIR}
|
||||||
${SRC_FILE}
|
${SRC_FILE}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue