Commit 8b1dde87 authored by François Grisez's avatar François Grisez

Fix build on iOS and MacOS

parent e19035d1
......@@ -420,7 +420,7 @@ endif()
set(LINK_FLAGS )
if(APPLE)
list(APPEND LINK_FLAGS "-framework CoreFoundation" "-framework AudioToolbox" "-framework CoreAudio")
if(IOS)
if(IOS) # Necessary for Mediastreamer's tools and testers
list(APPEND LINK_FLAGS "-framework Foundation" "-framework QuartzCore" "-framework OpenGLES" "-framework UIKit" "-framework AVFoundation")
else()
list(APPEND LINK_FLAGS "-framework AppKit")
......@@ -430,6 +430,9 @@ if(APPLE)
endif()
if(ENABLE_VIDEO)
list(APPEND LINK_FLAGS "-framework Cocoa" "-framework OpenGL" "-framework QuartzCore" "-framework QTKit")
if(IOS AND ENABLE_VT_H264) # Necessary for Mediastreamer's tools and testers
list(APPEND LINK_FLAGS "-framework VideoToolbox")
endif()
endif()
set(PLUGINS_EXT ".dylib")
add_definitions(-DTARGET_OS_MAC=1)
......
......@@ -136,6 +136,8 @@ set(VOIP_SOURCE_FILES
utils/g722.h
utils/g722_decode.c
utils/g722_encode.c
utils/h264utils.h
utils/h264utils.c
utils/kiss_fft.c
utils/kiss_fft.h
utils/kiss_fftr.c
......
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