mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-17 17:16:40 +08:00
Remove legacy_check CMake macro
The macro was not removed in 72428ccd97
waiting for submodules to be be updated to a commit where their legacy
code path is removed.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_subdirectory(obs-frontend-api)
|
||||
|
||||
option(ENABLE_UI "Enable building with UI (requires Qt)" ON)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(NOT ENABLE_AJA)
|
||||
target_disable(aja-output-ui)
|
||||
return()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(NOT ENABLE_DECKLINK)
|
||||
target_disable(decklink-captions)
|
||||
return()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(NOT ENABLE_DECKLINK)
|
||||
target_disable(decklink-output-ui)
|
||||
return()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
find_package(Qt6 REQUIRED Widgets)
|
||||
|
||||
if(OS_LINUX OR OS_FREEBSD OR OS_OPENBSD)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_library(obs-frontend-api SHARED)
|
||||
add_library(OBS::frontend-api ALIAS obs-frontend-api)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.24...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
find_package(zstd)
|
||||
find_package(nlohmann_json 3 REQUIRED)
|
||||
|
||||
|
||||
@@ -435,13 +435,6 @@ function(check_uuid uuid_string return_value)
|
||||
set(${return_value} ${valid_uuid} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
# legacy_check: Check if new CMake framework was not enabled and load legacy rules instead
|
||||
macro(legacy_check)
|
||||
if(OBS_CMAKE_VERSION VERSION_LESS 3.0.0)
|
||||
message(FATAL_ERROR "CMake version changed between CMakeLists.txt.")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# add_obs_plugin: Add plugin subdirectory if host platform is in specified list of supported platforms and architectures
|
||||
function(add_obs_plugin target)
|
||||
set(options WITH_MESSAGE)
|
||||
|
||||
@@ -25,10 +25,6 @@ if(OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_GENERATOR_PLATFORM)
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
# legacy_check: Stub macro for child architecture builds
|
||||
macro(legacy_check)
|
||||
endmacro()
|
||||
|
||||
# target_disable_feature: Stub macro for child architecture builds
|
||||
macro(target_disable_feature)
|
||||
endmacro()
|
||||
|
||||
Vendored
-2
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.24...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_library(w32-pthreads SHARED EXCLUDE_FROM_ALL)
|
||||
add_library(OBS::w32-pthreads ALIAS w32-pthreads)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_library(libobs-opengl SHARED)
|
||||
add_library(OBS::libobs-opengl ALIAS libobs-opengl)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.24...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_library(libobs-winrt-headers INTERFACE)
|
||||
add_library(OBS::winrt-headers ALIAS libobs-winrt-headers)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
include(cmake/obs-version.cmake)
|
||||
|
||||
if(OS_WINDOWS AND NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_GENERATOR_PLATFORM)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_AJA "Build OBS with aja support" ON)
|
||||
|
||||
if(NOT ENABLE_AJA)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.24...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(OS_WINDOWS)
|
||||
option(ENABLE_COREAUDIO_ENCODER "Enable building with CoreAudio encoder (Windows)" ON)
|
||||
if(NOT ENABLE_COREAUDIO_ENCODER)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_DECKLINK "Build OBS with Decklink support" ON)
|
||||
if(NOT ENABLE_DECKLINK)
|
||||
target_disable(decklink)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_library(image-source MODULE)
|
||||
add_library(OBS::image-source ALIAS image-source)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_ALSA "Build OBS with ALSA support" ON)
|
||||
|
||||
if(NOT ENABLE_ALSA)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
find_package(X11 REQUIRED)
|
||||
|
||||
find_package(
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_JACK "Build OBS with JACK support" OFF)
|
||||
if(NOT ENABLE_JACK)
|
||||
target_disable(linux-jack)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_PIPEWIRE "Enable PipeWire support" ON)
|
||||
if(NOT ENABLE_PIPEWIRE)
|
||||
target_disable(linux-pipewire)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(NOT ENABLE_PULSEAUDIO)
|
||||
target_disable(linux-pulseaudio)
|
||||
return()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_V4L2 "Build OBS with v4l2 support" ON)
|
||||
option(ENABLE_UDEV "Build linux-v4l2 with UDEV support" ON)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_FFMPEG_LOGGING "Enables obs-ffmpeg logging" OFF)
|
||||
option(ENABLE_NEW_MPEGTS_OUTPUT "Use native SRT/RIST mpegts output" ON)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_FFMPEG_MUX_DEBUG "Enable FFmpeg-mux debugging" OFF)
|
||||
|
||||
find_package(FFmpeg REQUIRED COMPONENTS avcodec avutil avformat)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.24...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
find_package(AMF 1.4.29 REQUIRED)
|
||||
|
||||
add_executable(obs-amf-test)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_library(obs-filters MODULE)
|
||||
add_library(OBS::filters ALIAS obs-filters)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_LIBFDK "Enable FDK AAC support" OFF)
|
||||
if(NOT ENABLE_LIBFDK)
|
||||
target_disable(obs-libfdk)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
find_package(MbedTLS REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_QSV11 "Build Intel QSV11 Hardware Encoder." TRUE)
|
||||
if(NOT ENABLE_QSV11)
|
||||
target_disable_feature(obs-qsv11 "Intel QSV11 Hardware Encoder")
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.24...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_executable(obs-qsv-test)
|
||||
|
||||
find_package(VPL 2.6 REQUIRED)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
add_library(obs-transitions MODULE)
|
||||
add_library(OBS::transition ALIAS obs-transitions)
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_VST "Enable building OBS with VST plugin" ON)
|
||||
|
||||
if(NOT ENABLE_VST)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_WEBRTC "Enable WebRTC Output support" ON)
|
||||
if(NOT ENABLE_WEBRTC)
|
||||
target_disable(obs-webrtc)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
find_package(Libx264 REQUIRED)
|
||||
|
||||
if(NOT TARGET OBS::opts-parser)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_OSS "Enable building with OSS audio support" ON)
|
||||
|
||||
if(NOT ENABLE_OSS)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_SERVICE_UPDATES "Checks for service updates" ON)
|
||||
|
||||
set(
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_SNDIO "Build OBS with sndio support" OFF)
|
||||
if(NOT ENABLE_SNDIO)
|
||||
target_disable(sndio)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_FREETYPE "Enable FreeType text plugin" ON)
|
||||
|
||||
if(NOT ENABLE_FREETYPE)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
macro(check_vlc_path)
|
||||
find_package(PkgConfig QUIET)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(NOT ENABLE_SCRIPTING)
|
||||
target_disable_feature(obs-scripting "Scripting support")
|
||||
return()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(POLICY CMP0078)
|
||||
cmake_policy(SET CMP0078 NEW)
|
||||
endif()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
if(POLICY CMP0078)
|
||||
cmake_policy(SET CMP0078 NEW)
|
||||
endif()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.22...3.25)
|
||||
|
||||
legacy_check()
|
||||
|
||||
option(ENABLE_TEST_INPUT "Build test sources" OFF)
|
||||
|
||||
if(NOT ENABLE_TEST_INPUT)
|
||||
|
||||
Reference in New Issue
Block a user