CMake: use correct media sources in WXQT build
Only check for gstreamer in Unix GTK builds. Closes #18945
This commit is contained in:
parent
6862cdd0cd
commit
0417dabdbd
@ -447,7 +447,7 @@ if(wxUSE_GUI)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(wxUSE_MEDIACTRL AND UNIX AND NOT APPLE AND NOT WIN32)
|
||||
if(wxUSE_MEDIACTRL AND WXGTK AND NOT APPLE AND NOT WIN32)
|
||||
find_package(GSTREAMER 1.0 COMPONENTS video)
|
||||
if(NOT GSTREAMER_FOUND)
|
||||
find_package(GSTREAMER 0.10 COMPONENTS interfaces)
|
||||
|
@ -17,7 +17,7 @@ elseif(WXOSX_COCOA)
|
||||
wx_append_sources(MEDIA_FILES MEDIA_OSX_COCOA)
|
||||
elseif(WXOSX_IPHONE)
|
||||
wx_append_sources(MEDIA_FILES MEDIA_OSX_IPHONE)
|
||||
elseif(UNIX)
|
||||
elseif(WXGTK)
|
||||
wx_append_sources(MEDIA_FILES MEDIA_UNIX)
|
||||
elseif(WXQT)
|
||||
wx_append_sources(MEDIA_FILES MEDIA_QT)
|
||||
@ -30,7 +30,7 @@ if(WXOSX)
|
||||
"-framework CoreMedia"
|
||||
"-weak_framework AVKit"
|
||||
)
|
||||
elseif(UNIX)
|
||||
elseif(WXGTK)
|
||||
wx_lib_include_directories(wxmedia PUBLIC ${GSTREAMER_INCLUDE_DIRS})
|
||||
if(GSTREAMER_INTERFACES_INCLUDE_DIRS)
|
||||
wx_lib_include_directories(wxmedia PUBLIC ${GSTREAMER_INTERFACES_INCLUDE_DIRS})
|
||||
|
Loading…
Reference in New Issue
Block a user