Commit c0f5ea1f authored by Ghislain MARY's avatar Ghislain MARY

Complete implementation of compilation using CMake.

parent 99f33a0f
############################################################################
# CMakeLists.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
cmake_minimum_required(VERSION 2.6)
project(ORTP C)
option(ORTP_ENABLE_SRTP "Build oRTP with the SRTP transport support." ON)
set(ORTP_MAJOR_VERSION "0")
set(ORTP_MINOR_VERSION 23)
set(ORTP_MICRO_VERSION 0)
set(ORTP_VERSION "${ORTP_MAJOR_VERSION}.${ORTP_MINOR_VERSION}.${ORTP_MICRO_VERSION}")
set(ORTP_SO_VERSION 9)
option(ENABLE_STATIC "Build static library (default is shared library)." NO)
option(ENABLE_NTP_TIMESTAMP "Turn on NTP timestamping on packet reception." NO)
option(ENABLE_PERF "Disable costly features to reduce cpu consumtion and increase performance." NO)
option(ENABLE_SRTP "Build oRTP with the SRTP transport support." YES)
option(ENABLE_TESTS "Enable compilation of test programs." NO)
option(ENABLE_ZRTP "Build oRTP with the ZRTP transport support." YES)
set(CACHE WITH_THREAD_STACK_SIZE "0" CACHE STRING "Set thread stack size (0 is the OS default).")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_PREFIX_PATH}/share/cmake/Modules)
if(ENABLE_SRTP)
find_package(SRTP)
if(NOT SRTP_FOUND)
message(WARNING "Could not find SRTP library, oRTP will be compiled without SRTP support.")
set(ENABLE_SRTP OFF CACHE BOOL "Build oRTP with the SRTP transport support." FORCE)
endif()
endif()
if(ENABLE_ZRTP)
find_package(BZRTP)
if(NOT BZRTP_FOUND)
message(WARNING "Could not find bzrtp library, oRTP will be compiled without ZRTP support.")
set(ENABLE_ZRTP OFF CACHE BOOL "Build oRTP with the ZRTP transport support." FORCE)
endif()
endif()
include(CheckCSourceCompiles)
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CheckFunctionExists)
if("${CMAKE_VERSION}" VERSION_GREATER "2.8.5")
include(CMakePushCheckState)
endif()
if(MSVC)
list(APPEND CMAKE_REQUIRED_INCLUDES ${CMAKE_PREFIX_PATH}/include/MSVC)
endif()
find_package(Threads)
check_include_file(inttypes.h HAVE_INTTYPES_H)
check_include_file(memory.h HAVE_MEMORY_H)
check_include_file(stdint.h HAVE_STDINT_H)
check_include_file(stdlib.h HAVE_STDLIB_H)
check_include_file(strings.h HAVE_STRINGS_H)
check_include_file(string.h HAVE_STRING_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
check_include_file(poll.h HAVE_POLL_H)
check_include_file(sys/poll.h HAVE_SYS_POLL_H)
check_include_file(sys/uio.h HAVE_SYS_UIO_H)
check_include_file(fcntl.h HAVE_FCNTL_H)
check_include_file(sys/time.h HAVE_SYS_TIME_H)
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(sys/audio.h HAVE_SYS_AUDIO_H)
check_include_file(linux/soundcard.h HAVE_LINUX_SOUNDCARD_H)
check_include_file(sys/shm.h HAVE_SYS_SHM_H)
check_include_file(windows.h HAVE_WINDOWS_H)
if(HAVE_WINDOWS_H)
check_include_file(winsock2.h HAVE_WINSOCK2_H)
endif()
if(MSVC)
if("${CMAKE_VERSION}" VERSION_GREATER "2.8.5")
cmake_push_check_state(RESET)
else()
set(SAVE_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
endif()
set(CMAKE_REQUIRED_LIBRARIES ws2_32)
check_c_source_compiles("#include <winsock2.h>
int main(int argc, char *argv[]) {
select(0, 0, 0, 0, 0);
return 0;
}"
HAVE_SELECT)
check_c_source_compiles("#include <winsock2.h>
int main(int argc, char *argv[]) {
socket(0, 0, 0);
return 0;
}"
HAVE_SOCKET)
check_c_source_compiles("#include <winsock2.h>
int main(int argc, char *argv[]) {
strerror(0);
return 0;
}"
HAVE_STRERROR)
if("${CMAKE_VERSION}" VERSION_GREATER "2.8.5")
cmake_pop_check_state()
else()
set(CMAKE_REQUIRED_LIBRARIES ${SAVE_CMAKE_REQUIRED_LIBRARIES})
endif()
else()
check_function_exists("select" HAVE_SELECT)
check_function_exists("socket" HAVE_SOCKET)
check_function_exists("strerror" HAVE_STRERROR)
endif()
if(NOT HAVE_SELECT)
message(FATAL_ERROR "select has not been found")
endif()
if(NOT HAVE_SOCKET)
message(FATAL_ERROR "socket has not been found")
endif()
if(NOT HAVE_STRERROR)
message(FATAL_ERROR "strerror has not been found")
endif()
check_function_exists(seteuid HAVE_SETEUID)
check_function_exists(arc4random HAVE_ARC4RANDOM)
check_library_exists("rt" "clock_gettime" "" HAVE_LIBRT)
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
if(WORDS_BIGENDIAN)
set(ORTP_BIGENDIAN 1)
endif()
include_directories(
include/
src/
${CMAKE_CURRENT_BINARY_DIR}
)
if(SRTP_FOUND)
include_directories(${SRTP_INCLUDE_DIRS})
endif()
if(BZRTP_FOUND)
include_directories(${BZRTP_INCLUDE_DIRS})
endif()
if(MSVC)
include_directories(${CMAKE_PREFIX_PATH}/include/MSVC)
endif()
if(SRTP_FOUND)
set(HAVE_SRTP 1)
endif()
if(ENABLE_PERF)
set(PERF 1)
endif()
if(ENABLE_NTP_TIMESTAMP)
set(ORTP_TIMESTAMP 1)
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(ORTP_DEBUG_MODE 1)
endif()
if(CMAKE_USE_PTHREADS_INIT)
set(ORTP_DEFAULT_THREAD_STACK_SIZE ${WITH_THREAD_STACK_SIZE})
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ortp-config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/ortp-config.h)
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/config.h PROPERTIES GENERATED ON)
add_definitions(-DHAVE_CONFIG_H)
include_directories(${CMAKE_INSTALL_PREFIX}/include)
if(ORTP_ENABLE_SRTP)
find_library(LIBSRTP NAMES srtp)
endif(ORTP_ENABLE_SRTP)
if(WIN32)
include_directories(build/wp8/oRTP)
endif(WIN32)
set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${prefix}/bin)
set(libdir ${prefix}/lib)
set(includedir ${prefix}/include)
set(ORTP_PKGCONFIG_VERSION "0.23.0")
if(ORTP_ENABLE_SRTP)
set(ORTPDEPS_LIBS "-lsrtp")
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ortp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/ortp.pc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ortp.pc DESTINATION lib/pkgconfig)
add_subdirectory(include)
add_subdirectory(src)
......@@ -49,7 +49,7 @@
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\..\win32-bin\include;..\..\include;..\..\include\ortp;..\..\src;..\..\build\win32native\include;..\..\build\vsx\ortp\ortp;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;ORTP_INET6;WIN32;_DEBUG;_WINDOWS;_USRDLL;ORTP_EXPORTS;WINDOW_NATIVE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;ORTP_INET6;WIN32;_DEBUG;_WINDOWS;_USRDLL;ORTP_EXPORTS;WINDOW_NATIVE;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
......@@ -79,7 +79,7 @@
<ClCompile>
<Optimization>MaxSpeed</Optimization>
<AdditionalIncludeDirectories>..\..\..\win32-bin\include;..\..\include;..\..\include\ortp;..\..\src;..\..\build\win32native\include;..\..\build\vsx\ortp\ortp;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;ORTP_INET6;WIN32;NDEBUG;_WINDOWS;_USRDLL;ORTP_EXPORTS;WINDOW_NATIVE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;ORTP_INET6;WIN32;NDEBUG;_WINDOWS;_USRDLL;ORTP_EXPORTS;WINDOW_NATIVE;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
......@@ -145,7 +145,7 @@
<ClInclude Include="..\..\include\ortp\event.h" />
<ClInclude Include="..\..\src\jitterctl.h" />
<ClInclude Include="..\..\include\ortp\logging.h" />
<ClInclude Include="..\..\src\ortp-config-win32.h" />
<ClInclude Include="ortp-config.h" />
<ClInclude Include="..\..\include\ortp\ortp.h" />
<ClInclude Include="..\..\include\ortp\ortp_srtp.h" />
<ClInclude Include="..\..\include\ortp\payloadtype.h" />
......
############################################################################
# CMakeLists.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
file(GLOB HEADER_FILES "ortp/*.h")
install(FILES ${HEADER_FILES}
......
/***************************************************************************
* config.h.cmake
* Copyright (C) 2014 Belledonne Communications, Grenoble France
*
****************************************************************************
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
****************************************************************************/
#define ORTP_MAJOR_VERSION ${ORTP_MAJOR_VERSION}
#define ORTP_MINOR_VERSION ${ORTP_MINOR_VERSION}
#define ORTP_MICRO_VERSION ${ORTP_MICRO_VERSION}
#define ORTP_VERSION "${ORTP_VERSION}"
#cmakedefine HAVE_INTTYPES_H
#cmakedefine HAVE_MEMORY_H
#cmakedefine HAVE_STDINT_H
#cmakedefine HAVE_STDLIB_H
#cmakedefine HAVE_STRINGS_H
#cmakedefine HAVE_STRING_H
#cmakedefine HAVE_SYS_STAT_H
#cmakedefine HAVE_SYS_TYPES_H
#cmakedefine HAVE_POLL_H
#cmakedefine HAVE_SYS_POLL_H
#cmakedefine HAVE_SYS_UIO_H
#cmakedefine HAVE_FCNTL_H
#cmakedefine HAVE_SYS_TIME_H
#cmakedefine HAVE_UNISTD_H
#cmakedefine HAVE_SYS_AUDIO_H
#cmakedefine HAVE_LINUX_SOUNDCARD_H
#cmakedefine HAVE_SYS_SHM_H
#cmakedefine HAVE_SELECT
#cmakedefine HAVE_SOCKET
#cmakedefine HAVE_STRERROR
#cmakedefine HAVE_SETEUID
#cmakedefine HAVE_ARC4RANDOM
#cmakedefine ORTP_BIGENDIAN
#cmakedefine PERF
#cmakedefine ORTP_TIMESTAMP
#cmakedefine ORTP_DEBUG_MODE
#cmakedefine ORTP_DEFAULT_THREAD_STACK_SIZE ${ORTP_DEFAULT_THREAD_STACK_SIZE}
#cmakedefine HAVE_SRTP
############################################################################
# CMakeLists.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
set(LIBS ${CMAKE_THREAD_LIBS_INIT})
if(HAVE_RT)
list(APPEND LIBS rt)
endif()
if(SRTP_FOUND)
list(APPEND LIBS ${SRTP_LIBRARIES})
endif()
if(BZRTP_FOUND)
list(APPEND LIBS ${BZRTP_LIBRARIES})
endif()
set(SOURCE_FILES
avprofile.c
b64.c
......@@ -31,33 +64,34 @@ set(SOURCE_FILES
)
if(WIN32)
set(SOURCE_FILES
${SOURCE_FILES}
dll_entry.c
)
endif(WIN32)
list(APPEND SOURCE_FILES dll_entry.c)
endif()
add_definitions(
-DORTP_EXPORTS
)
if(WIN32)
add_definitions(
-DWINDOWS_NATIVE
)
set(LIBS ws2_32 delayimp Winmm)
endif(WIN32)
if(ORTP_ENABLE_SRTP)
add_definitions(-DHAVE_SRTP)
list(APPEND LIBS ${LIBSRTP})
endif(ORTP_ENABLE_SRTP)
add_library(ortp SHARED ${SOURCE_FILES})
set_target_properties(ortp PROPERTIES VERSION 0.23.0 SOVERSION 9)
add_definitions(-DWINDOWS_NATIVE)
list(APPEND LIBS ws2_32 delayimp Winmm Qwave)
endif()
target_link_libraries(ortp ${LIBS})
if(ENABLE_STATIC)
add_library(ortp STATIC ${SOURCE_FILES})
target_link_libraries(ortp ${LIBS})
else()
add_library(ortp SHARED ${SOURCE_FILES})
set_target_properties(ortp PROPERTIES VERSION ${ORTP_VERSION} SOVERSION ${ORTP_SO_VERSION})
target_link_libraries(ortp ${LIBS})
if(MSVC)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/ortp.pdb
DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
endif()
endif()
endif()
install(TARGETS ortp
RUNTIME DESTINATION bin
......@@ -66,11 +100,6 @@ install(TARGETS ortp
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
if(WIN32)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/ortp.pdb
DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
if(ENABLE_TESTS)
add_subdirectory(tests)
endif()
endif(WIN32)
EXTRA_DIST=ortp-config-win32.h dll_entry.c master system winrttimer.cpp winrttimer.h
EXTRA_DIST=dll_entry.c master system winrttimer.cpp winrttimer.h
AM_CPPFLAGS=\
-I$(top_srcdir)/include/ \
......
#ifdef WIN32
#include "ortp-config-win32.h"
#else
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/ortp.h"
......
......@@ -17,6 +17,9 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/logging.h"
......
......@@ -18,9 +18,7 @@
*/
#ifdef _MSC_VER
#include "ortp-config-win32.h"
#elif HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/ortp.h"
......
......@@ -17,9 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if defined(_MSC_VER) && (defined(WIN32) || defined(_WIN32_WCE))
#include "ortp-config-win32.h"
#elif HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/ortp.h"
......
......@@ -17,6 +17,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/logging.h"
#include "ortp/payloadtype.h"
#include "ortp/str_utils.h"
......
......@@ -19,9 +19,7 @@
*/
#if defined(WIN32) || defined(_WIN32_WCE)
#include "ortp-config-win32.h"
#elif HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/logging.h"
......
......@@ -17,9 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if defined(WIN32) || defined(_WIN32_WCE)
#include "ortp-config-win32.h"
#elif HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
......
......@@ -18,6 +18,10 @@
*/
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/ortp.h"
#include "jitterctl.h"
#include "utils.h"
......
......@@ -18,9 +18,7 @@
*/
#if defined(WIN32) || defined(_WIN32_WCE)
#include "ortp-config-win32.h"
#elif HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
......
......@@ -22,9 +22,7 @@
#define _GNU_SOURCE
#endif
#if defined(WIN32) || defined(_WIN32_WCE)
#include "ortp-config-win32.h"
#elif HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "ortp-config.h" /*needed for HAVE_SYS_UIO_H and HAVE_ARC4RANDOM */
#endif
#include "ortp/ortp.h"
......
......@@ -17,6 +17,10 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#endif
#include "ortp/str_utils.h"
......
############################################################################
# CMakeLists.txt
# Copyright (C) 2014 Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
############################################################################
set(RTPSEND_SOURCES rtpsend.c)
add_executable(rtpsend ${RTPSEND_SOURCES})
target_link_libraries(rtpsend ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
set(RTPRECV_SOURCES rtprecv.c)
add_executable(rtprecv ${RTPRECV_SOURCES})
target_link_libraries(rtprecv ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
set(MRTPSEND_SOURCES mrtpsend.c)
add_executable(mrtpsend ${MRTPSEND_SOURCES})
target_link_libraries(mrtpsend ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
set(MRTPRECV_SOURCES mrtprecv.c)
add_executable(mrtprecv ${RTPRECV_SOURCES})
target_link_libraries(mrtprecv ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
set(TEST_TIMER_SOURCES test_timer.c)
add_executable(test_timer ${TEST_TIMER_SOURCES})
target_link_libraries(test_timer ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
set(TEVRTPSEND_SOURCES tevrtpsend.c)
add_executable(tevrtpsend ${TEVRTPSEND_SOURCES})
target_link_libraries(tevrtpsend ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
set(TEVRTPRECV_SOURCES tevrtprecv.c)
add_executable(tevrtprecv ${TEVRTPRECV_SOURCES})
target_link_libraries(tevrtprecv ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
set(RTPSEND_STUPID_SOURCES rtpsend_stupid.c)
add_executable(rtpsend_stupid ${RTPSEND_STUPID_SOURCES})
target_link_libraries(rtpsend_stupid ${SRTP_LIBRARIES} ${ZRTP_LIBRARIES} ortp)
......@@ -17,9 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if defined(_MSC_VER) && (defined(WIN32) || defined(_WIN32_WCE))
#include "ortp-config-win32.h"
#elif HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "ortp-config.h"
#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