Commit 7635c93a authored by Ghislain MARY's avatar Ghislain MARY

Use CMake to build ortp, ms2 and linphone only when compiling with MSVC.

parent ba9ecc7b
......@@ -23,11 +23,11 @@
set(EP_linphone_GIT_REPOSITORY "git://git.linphone.org/linphone.git")
set(EP_linphone_GIT_TAG "0c68cdcfbae933c0d6895f05733069cf37f2c547") # Branch 'master'
if(WIN32)
if(MSVC)
# Use temporary CMake build scripts for Windows. TODO: Port fully to CMake.
set(EP_linphone_DEPENDENCIES EP_bellesip EP_ortp EP_ms2 EP_xml2)
set(EP_linphone_EXTRA_LDFLAGS "/SAFESEH:NO")
else(WIN32)
else()
set(EP_linphone_BUILD_METHOD "autotools")
set(EP_linphone_USE_AUTOGEN "yes")
set(EP_linphone_CROSS_COMPILATION_OPTIONS
......@@ -72,4 +72,4 @@ else(WIN32)
else(${ENABLE_UNIT_TESTS})
list(APPEND EP_linphone_CONFIGURE_OPTIONS "--disable-tests")
endif(${ENABLE_UNIT_TESTS})
endif(WIN32)
endif()
......@@ -23,11 +23,11 @@
set(EP_ms2_GIT_REPOSITORY "git://git.linphone.org/mediastreamer2.git")
set(EP_ms2_GIT_TAG "e51c106c7e48cfc961fbd74b5c8d5a0588a21080") # Branch 'master'
if(WIN32)
if(MSVC)
# Use temporary CMake build scripts for Windows. TODO: Port fully to CMake.
set(EP_ms2_DEPENDENCIES EP_ortp EP_opus EP_speex EP_ffmpeg EP_vpx)
set(EP_ms2_EXTRA_LDFLAGS "/SAFESEH:NO")
else(WIN32)
else()
set(EP_ms2_BUILD_METHOD "autotools")
set(EP_ms2_USE_AUTOGEN "yes")
set(EP_ms2_CONFIG_H_FILE mediastreamer-config.h)
......@@ -83,4 +83,4 @@ else(WIN32)
else(${ENABLE_UNIT_TESTS})
list(APPEND EP_ms2_CONFIGURE_OPTIONS "--disable-tests")
endif(${ENABLE_UNIT_TESTS})
endif(WIN32)
endif()
......@@ -23,11 +23,11 @@
set(EP_ortp_GIT_REPOSITORY "git://git.linphone.org/ortp.git")
set(EP_ortp_GIT_TAG "393857c0e8e5cab10a8d647cc89c8390355745a7") # Branch 'master'
if(WIN32)
if(MSVC)
# Use temporary CMake build scripts for Windows. TODO: Port fully to CMake.
set(EP_ortp_DEPENDENCIES EP_srtp)
set(EP_ortp_EXTRA_LDFLAGS "/SAFESEH:NO")
else(WIN32)
else()
set(EP_ortp_BUILD_METHOD "autotools")
set(EP_ortp_USE_AUTOGEN "yes")
set(EP_ortp_CONFIG_H_FILE ortp-config.h)
......@@ -52,4 +52,4 @@ else(WIN32)
else(${ENABLE_ZRTP})
list(APPEND EP_ortp_CONFIGURE_OPTIONS "--disable-zrtp")
endif(${ENABLE_ZRTP})
endif(WIN32)
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