Commit 6b06e681 authored by Ghislain MARY's avatar Ghislain MARY

Fix some link flags for IOS build with CMake.

parent 7319e26b
......@@ -37,8 +37,10 @@ else()
set(ENABLE_FIXED_POINT_DEFAULT_VALUE NO)
endif()
if(IOS)
set(ENABLE_MACSND_DEFAULT_VALUE NO)
set(ENABLE_MACAQSND_DEFAULT_VALUE YES)
else()
set(ENABLE_MACSND_DEFAULT_VALUE YES)
set(ENABLE_MACAQSND_DEFAULT_VALUE NO)
endif()
set(ENABLE_GLX_DEFAULT_VALUE NO)
......@@ -71,7 +73,7 @@ cmake_dependent_option(ENABLE_ZRTP "Build with ZRTP support." YES "ENABLE_SRTP"
option(ENABLE_SOUND "Can be used to turn off all possible sound backends." YES)
cmake_dependent_option(ENABLE_ALSA "Enable ALSA support." YES "ENABLE_SOUND;LINUX_OR_BSD" NO)
cmake_dependent_option(ENABLE_ARTSC "Enable artsc (KDE<4) sound input/output." NO "ENABLE_SOUND;LINUX_OR_BSD" NO)
cmake_dependent_option(ENABLE_MACSND "Enable MAC OS X Audio Units sound support." YES "ENABLE_SOUND;APPLE" NO)
cmake_dependent_option(ENABLE_MACSND "Enable MAC OS X Audio Units sound support." ${ENABLE_MACSND_DEFAULT_VALUE} "ENABLE_SOUND;APPLE" NO)
cmake_dependent_option(ENABLE_MACAQSND "Enable native MAC OS X Audio Queue sound support." ${ENABLE_MACAQSND_DEFAULT_VALUE} "ENABLE_SOUND;APPLE" NO)
cmake_dependent_option(ENABLE_QSA "Enable QSA (QNX Sound Architecture) support." NO "ENABLE_SOUND" NO)
cmake_dependent_option(ENABLE_OSS "Enable OSS support." YES "ENABLE_SOUND;LINUX_OR_BSD" NO)
......@@ -381,12 +383,18 @@ else()
endif()
set(LINK_FLAGS )
if(APPLE)
list(APPEND LINK_FLAGS "-framework CoreFoundation" "-framework AudioToolbox" "-framework CoreAudio")
if(IOS)
list(APPEND LINK_FLAGS "-framework Foundation" "-framework QuartzCore" "-framework OpenGLES" "-framework UIKit" "-framework AVFoundation")
else()
list(APPEND LINK_FLAGS "-framework AppKit")
if(ENABLE_MACSND)
list(APPEND LINK_FLAGS "-framework Carbon" "-framework AudioUnit")
endif()
endif()
if(ENABLE_VIDEO)
list(APPEND LINK_FLAGS "-framework Cocoa" "-framework OpenGL" "-framework QuartzCore" "-framework QTKit")
endif()
if(ENABLE_MACSND)
list(APPEND LINK_FLAGS "-framework Carbon" "-framework AudioUnit" "-framework CoreAudio" "-framework CoreServices")
endif()
set(PLUGINS_EXT ".dylib")
add_definitions(-DTARGET_OS_MAC=1)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment