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
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
include(../../source_groups.cmake)
|
|
|
|
|
|
|
|
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)
|
|
|
|
elseif(UNIX)
|
|
|
|
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()
|
|
|
|
|
|
|
|
wx_add_library(media ${MEDIA_FILES})
|
|
|
|
if(WXOSX_COCOA)
|
|
|
|
# TODO: add version detection of some kind and/or wx_option
|
|
|
|
wx_lib_compile_definitions(media PRIVATE -DwxOSX_USE_QTKIT=0)
|
|
|
|
wx_lib_link_libraries(media PUBLIC
|
|
|
|
"-framework AVFoundation"
|
|
|
|
"-framework AVKit"
|
|
|
|
"-framework CoreMedia"
|
|
|
|
)
|
|
|
|
elseif(UNIX)
|
|
|
|
wx_lib_include_directories(media PUBLIC ${GSTREAMER_INCLUDE_DIRS})
|
|
|
|
wx_lib_link_libraries(media PUBLIC ${GSTREAMER_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
wx_finalize_lib(media)
|