2016-09-25 16:19:39 -04:00
|
|
|
#############################################################################
|
|
|
|
# Name: build/cmake/lib/media/CMakeLists.txt
|
|
|
|
# Purpose: CMake file for media library
|
|
|
|
# Author: Tobias Taschner
|
|
|
|
# Created: 2016-10-03
|
|
|
|
# Copyright: (c) 2016 wxWidgets development team
|
|
|
|
# Licence: wxWindows licence
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
wx_append_sources(MEDIA_FILES MEDIA_CMN)
|
|
|
|
|
|
|
|
if(WXMSW)
|
|
|
|
wx_append_sources(MEDIA_FILES MEDIA_MSW)
|
|
|
|
elseif(WXOSX_COCOA)
|
|
|
|
wx_append_sources(MEDIA_FILES MEDIA_OSX_COCOA)
|
2020-06-18 13:56:31 -04:00
|
|
|
elseif(WXOSX_IPHONE)
|
|
|
|
wx_append_sources(MEDIA_FILES MEDIA_OSX_IPHONE)
|
2020-10-18 08:51:37 -04:00
|
|
|
elseif(WXGTK)
|
2016-09-25 16:19:39 -04:00
|
|
|
wx_append_sources(MEDIA_FILES MEDIA_UNIX)
|
2018-09-25 13:41:17 -04:00
|
|
|
elseif(WXQT)
|
|
|
|
wx_append_sources(MEDIA_FILES MEDIA_QT)
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|
|
|
|
|
2020-05-17 13:41:44 -04:00
|
|
|
wx_add_library(wxmedia ${MEDIA_FILES})
|
2020-06-18 13:56:31 -04:00
|
|
|
if(WXOSX)
|
2020-05-17 13:41:44 -04:00
|
|
|
wx_lib_link_libraries(wxmedia PUBLIC
|
2016-09-25 16:19:39 -04:00
|
|
|
"-framework AVFoundation"
|
|
|
|
"-framework CoreMedia"
|
2020-06-18 13:56:31 -04:00
|
|
|
"-weak_framework AVKit"
|
2016-09-25 16:19:39 -04:00
|
|
|
)
|
2020-10-18 08:51:37 -04:00
|
|
|
elseif(WXGTK)
|
2022-04-10 14:39:17 -04:00
|
|
|
wx_lib_include_directories(wxmedia ${GSTREAMER_INCLUDE_DIRS})
|
2018-11-04 10:03:59 -05:00
|
|
|
if(GSTREAMER_INTERFACES_INCLUDE_DIRS)
|
2022-04-10 14:39:17 -04:00
|
|
|
wx_lib_include_directories(wxmedia ${GSTREAMER_INTERFACES_INCLUDE_DIRS})
|
2018-11-04 10:03:59 -05:00
|
|
|
endif()
|
|
|
|
if(GSTREAMER_VIDEO_INCLUDE_DIRS)
|
2022-04-10 14:39:17 -04:00
|
|
|
wx_lib_include_directories(wxmedia ${GSTREAMER_VIDEO_INCLUDE_DIRS})
|
2018-11-04 10:03:59 -05:00
|
|
|
endif()
|
|
|
|
if(GSTREAMER_PLAYER_INCLUDE_DIRS)
|
2022-04-10 14:39:17 -04:00
|
|
|
wx_lib_include_directories(wxmedia ${GSTREAMER_PLAYER_INCLUDE_DIRS})
|
2018-11-04 10:03:59 -05:00
|
|
|
endif()
|
|
|
|
|
2020-05-17 13:41:44 -04:00
|
|
|
wx_lib_link_libraries(wxmedia PUBLIC ${GSTREAMER_LIBRARIES})
|
2018-11-04 10:03:59 -05:00
|
|
|
if(GSTREAMER_INTERFACES_LIBRARIES)
|
2020-05-17 13:41:44 -04:00
|
|
|
wx_lib_link_libraries(wxmedia PUBLIC ${GSTREAMER_INTERFACES_LIBRARIES})
|
2018-11-04 10:03:59 -05:00
|
|
|
endif()
|
|
|
|
if(GSTREAMER_VIDEO_LIBRARIES)
|
2020-05-17 13:41:44 -04:00
|
|
|
wx_lib_link_libraries(wxmedia PUBLIC ${GSTREAMER_VIDEO_LIBRARIES})
|
2018-11-04 10:03:59 -05:00
|
|
|
endif()
|
|
|
|
if(GSTREAMER_PLAYER_LIBRARIES)
|
2020-05-17 13:41:44 -04:00
|
|
|
wx_lib_link_libraries(wxmedia PUBLIC ${GSTREAMER_PLAYER_LIBRARIES})
|
2018-11-04 10:03:59 -05:00
|
|
|
endif()
|
2016-09-25 16:19:39 -04:00
|
|
|
endif()
|