0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

libobs-d3d11: Remove CMake legacy code path

This commit is contained in:
PatTheMav 2024-08-21 18:02:04 +02:00 committed by Ryan Foster
parent 2f1379aa64
commit b825399d48
2 changed files with 0 additions and 52 deletions

View File

@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.24...3.25)
legacy_check()
add_library(libobs-d3d11 MODULE)
add_library(OBS::libobs-d3d11 ALIAS libobs-d3d11)

View File

@ -1,50 +0,0 @@
project(libobs-d3d11)
add_library(libobs-d3d11 MODULE)
add_library(OBS::libobs-d3d11 ALIAS libobs-d3d11)
target_sources(
libobs-d3d11
PRIVATE d3d11-indexbuffer.cpp
d3d11-samplerstate.cpp
d3d11-shader.cpp
d3d11-shaderprocessor.cpp
d3d11-shaderprocessor.hpp
d3d11-stagesurf.cpp
d3d11-subsystem.cpp
d3d11-subsystem.hpp
d3d11-texture2d.cpp
d3d11-texture3d.cpp
d3d11-vertexbuffer.cpp
d3d11-duplicator.cpp
d3d11-rebuild.cpp
d3d11-zstencilbuffer.cpp)
set(MODULE_DESCRIPTION "OBS Library D3D11 wrapper")
configure_file(${CMAKE_SOURCE_DIR}/cmake/bundle/windows/obs-module.rc.in libobs-d3d11.rc)
target_include_directories(libobs-d3d11 PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_sources(libobs-d3d11 PRIVATE libobs-d3d11.rc)
target_compile_features(libobs-d3d11 PRIVATE cxx_std_17)
target_compile_definitions(libobs-d3d11 PRIVATE UNICODE _UNICODE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS)
if(NOT DEFINED GPU_PRIORITY_VAL
OR "x${GPU_PRIORITY_VAL}x" STREQUAL "xx"
OR "${GPU_PRIORITY_VAL}" STREQUAL "0")
target_compile_definitions(libobs-d3d11 PRIVATE GPU_PRIORITY_VAL=0)
else()
target_compile_definitions(libobs-d3d11 PRIVATE USE_GPU_PRIORITY=TRUE GPU_PRIORITY_VAL=${GPU_PRIORITY_VAL})
endif()
target_link_libraries(libobs-d3d11 PRIVATE OBS::libobs d3d9 d3d11 d3dcompiler dxgi shcore)
set_target_properties(
libobs-d3d11
PROPERTIES OUTPUT_NAME libobs-d3d11
FOLDER "core"
PREFIX "")
setup_binary_target(libobs-d3d11)