rtmp-services: Add rtmp URL lookup config file

This URL is set via cmake instead of being baked in to the actual source
code.
This commit is contained in:
jp9000
2015-08-16 04:04:16 -07:00
parent 1c5a071eb8
commit 9499ffc1d2
2 changed files with 20 additions and 1 deletions

View File

@@ -7,10 +7,26 @@ set(rtmp-services_SOURCES
rtmp-custom.c
rtmp-services-main.c)
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")
add_library(rtmp-services MODULE
${rtmp-services_SOURCES})
${rtmp-services_SOURCES}
${rtmp-services_config_HEADERS})
target_link_libraries(rtmp-services
libobs
${OBS_JANSSON_IMPORT})
target_include_directories(rtmp-services
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/plugins/rtmp-services>")
install_obs_plugin_with_data(rtmp-services data)