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:
tytan652
2024-09-11 13:24:39 -04:00
committed by Ryan Foster
parent e87593b3d4
commit 31385006d5
44 changed files with 0 additions and 95 deletions
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.24...3.25)
legacy_check()
find_package(zstd)
find_package(nlohmann_json 3 REQUIRED)
-7
View File
@@ -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)
-4
View File
@@ -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()
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.22...3.25)
legacy_check()
find_package(X11 REQUIRED)
find_package(
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.22...3.25)
legacy_check()
if(NOT ENABLE_PULSEAUDIO)
target_disable(linux-pulseaudio)
return()
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.22...3.25)
legacy_check()
find_package(MbedTLS REQUIRED)
find_package(ZLIB REQUIRED)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.22...3.25)
legacy_check()
find_package(Libx264 REQUIRED)
if(NOT TARGET OBS::opts-parser)
-2
View File
@@ -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)
-2
View File
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.22...3.25)
legacy_check()
option(ENABLE_SERVICE_UPDATES "Checks for service updates" ON)
set(
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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)
-2
View File
@@ -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()
-2
View File
@@ -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)