2014-04-19 20:54:18 -07:00
|
|
|
project(rtmp-services)
|
|
|
|
|
2014-07-17 09:02:43 -07:00
|
|
|
include_directories(${OBS_JANSSON_INCLUDE_DIRS})
|
|
|
|
|
2014-04-19 20:54:18 -07:00
|
|
|
set(rtmp-services_SOURCES
|
|
|
|
rtmp-common.c
|
|
|
|
rtmp-custom.c
|
|
|
|
rtmp-services-main.c)
|
|
|
|
|
2015-08-19 16:19:03 -07:00
|
|
|
set(rtmp-services_HEADERS
|
|
|
|
rtmp-format-ver.h)
|
|
|
|
|
2015-08-16 04:04:16 -07:00
|
|
|
set(RTMP_SERVICES_URL
|
|
|
|
"https://obsproject.com/obs2_update/rtmp-services"
|
|
|
|
CACHE STRING "Default services package URL")
|
|
|
|
|
|
|
|
configure_file(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/lookup-config.h.in"
|
|
|
|
"${CMAKE_BINARY_DIR}/plugins/rtmp-services/lookup-config.h")
|
|
|
|
|
|
|
|
set(rtmp-services_config_HEADERS
|
|
|
|
"${CMAKE_BINARY_DIR}/plugins/rtmp-services/lookup-config.h")
|
|
|
|
|
2014-04-19 20:54:18 -07:00
|
|
|
add_library(rtmp-services MODULE
|
2015-08-16 04:04:16 -07:00
|
|
|
${rtmp-services_SOURCES}
|
2015-08-19 16:19:03 -07:00
|
|
|
${rtmp-services_HEADERS}
|
2015-08-16 04:04:16 -07:00
|
|
|
${rtmp-services_config_HEADERS})
|
2014-04-19 20:54:18 -07:00
|
|
|
target_link_libraries(rtmp-services
|
|
|
|
libobs
|
2015-08-19 16:26:22 -07:00
|
|
|
file-updater
|
2014-07-17 09:02:43 -07:00
|
|
|
${OBS_JANSSON_IMPORT})
|
2014-04-19 20:54:18 -07:00
|
|
|
|
2015-08-16 04:04:16 -07:00
|
|
|
target_include_directories(rtmp-services
|
|
|
|
PUBLIC
|
|
|
|
"$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/plugins/rtmp-services>")
|
|
|
|
|
2014-08-19 05:24:59 -07:00
|
|
|
install_obs_plugin_with_data(rtmp-services data)
|