mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
cmake: Build D3D and D3D12 video backends
This commit is contained in:
parent
1516361d1d
commit
e55ec1ed35
@ -275,6 +275,8 @@ set(LIBS ${LIBS} ${MBEDTLS_LIBRARIES})
|
||||
if(WIN32)
|
||||
set(SRCS ${SRCS} HW/EXI/BBA-TAP/TAP_Win32.cpp HW/WiimoteReal/IOWin.cpp)
|
||||
list(APPEND LIBS
|
||||
videod3d
|
||||
videod3d12
|
||||
setupapi.lib
|
||||
iphlpapi.lib
|
||||
)
|
||||
|
@ -1,7 +1,12 @@
|
||||
add_subdirectory(OGL)
|
||||
add_subdirectory(Null)
|
||||
add_subdirectory(Software)
|
||||
if(NOT APPLE)
|
||||
add_subdirectory(Vulkan)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
add_subdirectory(D3D)
|
||||
add_subdirectory(D3D12)
|
||||
endif()
|
||||
|
||||
if(NOT APPLE)
|
||||
add_subdirectory(Vulkan)
|
||||
endif()
|
||||
# TODO: Add other backends here!
|
||||
|
50
Source/Core/VideoBackends/D3D/CMakeLists.txt
Normal file
50
Source/Core/VideoBackends/D3D/CMakeLists.txt
Normal file
@ -0,0 +1,50 @@
|
||||
set(SRCS
|
||||
BoundingBox.cpp
|
||||
BoundingBox.h
|
||||
D3DBase.cpp
|
||||
D3DBase.h
|
||||
D3DBlob.cpp
|
||||
D3DBlob.h
|
||||
D3DShader.cpp
|
||||
D3DShader.h
|
||||
D3DState.cpp
|
||||
D3DState.h
|
||||
D3DTexture.cpp
|
||||
D3DTexture.h
|
||||
D3DUtil.cpp
|
||||
D3DUtil.h
|
||||
FramebufferManager.cpp
|
||||
FramebufferManager.h
|
||||
GeometryShaderCache.cpp
|
||||
GeometryShaderCache.h
|
||||
main.cpp
|
||||
NativeVertexFormat.cpp
|
||||
PerfQuery.cpp
|
||||
PerfQuery.h
|
||||
PixelShaderCache.cpp
|
||||
PixelShaderCache.h
|
||||
PSTextureEncoder.cpp
|
||||
PSTextureEncoder.h
|
||||
Render.cpp
|
||||
Render.h
|
||||
Television.cpp
|
||||
Television.h
|
||||
TextureCache.cpp
|
||||
TextureCache.h
|
||||
TextureEncoder.h
|
||||
VertexManager.cpp
|
||||
VertexManager.h
|
||||
VertexShaderCache.cpp
|
||||
VertexShaderCache.h
|
||||
VideoBackend.h
|
||||
XFBEncoder.cpp
|
||||
XFBEncoder.h
|
||||
)
|
||||
|
||||
set(LIBS
|
||||
videocommon
|
||||
SOIL
|
||||
common
|
||||
)
|
||||
|
||||
add_dolphin_library(videod3d "${SRCS}" "${LIBS}")
|
55
Source/Core/VideoBackends/D3D12/CMakeLists.txt
Normal file
55
Source/Core/VideoBackends/D3D12/CMakeLists.txt
Normal file
@ -0,0 +1,55 @@
|
||||
set(SRCS
|
||||
BoundingBox.cpp
|
||||
BoundingBox.h
|
||||
D3DBase.cpp
|
||||
D3DBase.h
|
||||
D3DCommandListManager.cpp
|
||||
D3DCommandListManager.h
|
||||
D3DDescriptorHeapManager.cpp
|
||||
D3DDescriptorHeapManager.h
|
||||
D3DQueuedCommandList.cpp
|
||||
D3DQueuedCommandList.h
|
||||
D3DShader.cpp
|
||||
D3DShader.h
|
||||
D3DState.cpp
|
||||
D3DState.h
|
||||
D3DStreamBuffer.cpp
|
||||
D3DStreamBuffer.h
|
||||
D3DTexture.cpp
|
||||
D3DTexture.h
|
||||
D3DUtil.cpp
|
||||
D3DUtil.h
|
||||
FramebufferManager.cpp
|
||||
FramebufferManager.h
|
||||
main.cpp
|
||||
NativeVertexFormat.cpp
|
||||
NativeVertexFormat.h
|
||||
PerfQuery.cpp
|
||||
PerfQuery.h
|
||||
PSTextureEncoder.cpp
|
||||
PSTextureEncoder.h
|
||||
Render.cpp
|
||||
Render.h
|
||||
ShaderCache.cpp
|
||||
ShaderCache.h
|
||||
ShaderConstantsManager.cpp
|
||||
ShaderConstantsManager.h
|
||||
StaticShaderCache.cpp
|
||||
StaticShaderCache.h
|
||||
TextureCache.cpp
|
||||
TextureCache.h
|
||||
TextureEncoder.h
|
||||
VertexManager.cpp
|
||||
VertexManager.h
|
||||
VideoBackend.h
|
||||
XFBEncoder.cpp
|
||||
XFBEncoder.h
|
||||
)
|
||||
|
||||
set(LIBS
|
||||
videocommon
|
||||
SOIL
|
||||
common
|
||||
)
|
||||
|
||||
add_dolphin_library(videod3d12 "${SRCS}" "${LIBS}")
|
Loading…
Reference in New Issue
Block a user