Commit 119c0365 authored by Ghislain MARY's avatar Ghislain MARY

Add CMake option to enable/disable decoder.

parent 8a8116cf
......@@ -35,6 +35,7 @@ set(PACKAGE_URL "")
set(VERSION "${PACKAGE_VERSION}")
option(ENABLE_DECODER "Enable the openh264 decoder" Yes)
set(WITH_MS2 "${CMAKE_INSTALL_PREFIX}" CACHE STRING "Set prefix where the mediastreamer libraries can be found (ex:/usr or /usr/local)")
set(WITH_OPENH264 "${CMAKE_INSTALL_PREFIX}" CACHE STRING "Set prefix where libopenh264 can be found (ex:/usr or /usr/local)")
set(WITH_ORTP "${CMAKE_INSTALL_PREFIX}" CACHE STRING "Set prefix where the oRTP library can be found (ex:/usr or /usr/local)")
......
......@@ -32,6 +32,10 @@ set(SOURCE_FILES
msopenh264enc.cpp
)
if(ENABLE_DECODER)
add_definitions(-DOPENH264_DECODER_ENABLED)
endif()
add_library(msopenh264 SHARED ${SOURCE_FILES})
set_target_properties(msopenh264 PROPERTIES VERSION ${PACKAGE_VERSION} SOVERSION 0)
if(MSVC)
......
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