2014-01-20 07:58:58 -08:00
|
|
|
project(obs-outputs)
|
|
|
|
|
2014-04-01 11:55:18 -07:00
|
|
|
if(WIN32)
|
|
|
|
set(obs-outputs_PLATFORM_DEPS
|
2014-05-05 10:07:42 -07:00
|
|
|
w32-pthreads
|
2014-04-07 01:20:36 -07:00
|
|
|
ws2_32.lib
|
|
|
|
winmm.lib)
|
2014-04-01 11:55:18 -07:00
|
|
|
endif()
|
2014-01-20 07:58:58 -08:00
|
|
|
|
2014-04-01 11:55:18 -07:00
|
|
|
set(obs-outputs_librtmp_HEADERS
|
|
|
|
librtmp/amf.h
|
|
|
|
librtmp/bytes.h
|
|
|
|
librtmp/cencode.h
|
|
|
|
librtmp/dh.h
|
|
|
|
librtmp/dhgroups.h
|
|
|
|
librtmp/handshake.h
|
|
|
|
librtmp/http.h
|
|
|
|
librtmp/log.h
|
|
|
|
librtmp/md5.h
|
|
|
|
librtmp/rtmp.h
|
|
|
|
librtmp/rtmp_sys.h)
|
|
|
|
set(obs-outputs_librtmp_SOURCES
|
|
|
|
librtmp/amf.c
|
|
|
|
librtmp/cencode.c
|
|
|
|
librtmp/hashswf.c
|
|
|
|
librtmp/log.c
|
|
|
|
librtmp/md5.c
|
|
|
|
librtmp/parseurl.c
|
|
|
|
librtmp/rtmp.c)
|
|
|
|
|
2014-05-24 05:13:44 -07:00
|
|
|
if(NOT WIN32)
|
|
|
|
set_source_files_properties(${obs-outputs_librtmp_SOURCES} PROPERTIES
|
|
|
|
COMPILE_FLAGS "-fvisibility=hidden")
|
|
|
|
endif()
|
|
|
|
|
2014-04-01 11:55:18 -07:00
|
|
|
set(obs-outputs_HEADERS
|
|
|
|
obs-output-ver.h
|
|
|
|
rtmp-helpers.h
|
|
|
|
flv-mux.h
|
2014-05-16 00:18:23 -07:00
|
|
|
flv-output.h
|
2014-04-01 11:55:18 -07:00
|
|
|
librtmp)
|
2014-01-20 07:58:58 -08:00
|
|
|
set(obs-outputs_SOURCES
|
|
|
|
obs-outputs.c
|
2014-04-01 11:55:18 -07:00
|
|
|
rtmp-stream.c
|
2014-05-16 00:18:23 -07:00
|
|
|
flv-output.c
|
2014-04-01 11:55:18 -07:00
|
|
|
flv-mux.c)
|
2014-01-20 07:58:58 -08:00
|
|
|
|
|
|
|
add_library(obs-outputs MODULE
|
2014-04-01 11:55:18 -07:00
|
|
|
${obs-outputs_SOURCES}
|
|
|
|
${obs-outputs_HEADER}
|
|
|
|
${obs-outputs_librtmp_SOURCES}
|
|
|
|
${obs-outputs_librtmp_HEADERS})
|
2014-01-20 07:58:58 -08:00
|
|
|
target_link_libraries(obs-outputs
|
|
|
|
libobs
|
2014-04-01 12:06:17 -07:00
|
|
|
${obs-outputs_PLATFORM_DEPS})
|
2014-01-20 07:58:58 -08:00
|
|
|
|
|
|
|
install_obs_plugin(obs-outputs)
|
2014-05-24 05:13:44 -07:00
|
|
|
|