diff --git a/plugins/rtmp-services/CMakeLists.txt b/plugins/rtmp-services/CMakeLists.txt index 5abcb571a..0cbb3567f 100644 --- a/plugins/rtmp-services/CMakeLists.txt +++ b/plugins/rtmp-services/CMakeLists.txt @@ -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 + "$") + install_obs_plugin_with_data(rtmp-services data) diff --git a/plugins/rtmp-services/lookup-config.h.in b/plugins/rtmp-services/lookup-config.h.in new file mode 100644 index 000000000..94f7c99c3 --- /dev/null +++ b/plugins/rtmp-services/lookup-config.h.in @@ -0,0 +1,3 @@ +#pragma once + +#define RTMP_SERVICES_URL "@RTMP_SERVICES_URL@"