yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

video_core: Add sirit as optional dependency with Vulkan

sirit is a runtime assembler for SPIR-V
This commit is contained in:
ReinUsesLisp 2019-03-14 02:17:19 -03:00
parent 97648f4841
commit 970d9e57c8
4 changed files with 13 additions and 1 deletions

3
.gitmodules vendored
View File

@ -43,3 +43,6 @@
[submodule "externals/zstd"] [submodule "externals/zstd"]
path = externals/zstd path = externals/zstd
url = https://github.com/facebook/zstd url = https://github.com/facebook/zstd
[submodule "sirit"]
path = externals/sirit
url = https://github.com/ReinUsesLisp/sirit

View File

@ -72,6 +72,11 @@ if (USE_DISCORD_PRESENCE)
target_include_directories(discord-rpc INTERFACE ./discord-rpc/include) target_include_directories(discord-rpc INTERFACE ./discord-rpc/include)
endif() endif()
# Sirit
if (ENABLE_VULKAN)
add_subdirectory(sirit)
endif()
if (ENABLE_WEB_SERVICE) if (ENABLE_WEB_SERVICE)
# LibreSSL # LibreSSL
set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "") set(LIBRESSL_SKIP_INSTALL ON CACHE BOOL "")

1
externals/sirit vendored Submodule

@ -0,0 +1 @@
Subproject commit f7c4b07a7e14edb1dcd93bc9879c823423705c2e

View File

@ -132,7 +132,7 @@ if (ENABLE_VULKAN)
renderer_vulkan/vk_swapchain.cpp renderer_vulkan/vk_swapchain.cpp
renderer_vulkan/vk_swapchain.h) renderer_vulkan/vk_swapchain.h)
target_include_directories(video_core PRIVATE ../../externals/Vulkan-Headers/include) target_include_directories(video_core PRIVATE sirit ../../externals/Vulkan-Headers/include)
target_compile_definitions(video_core PRIVATE HAS_VULKAN) target_compile_definitions(video_core PRIVATE HAS_VULKAN)
endif() endif()
@ -140,3 +140,6 @@ create_target_directory_groups(video_core)
target_link_libraries(video_core PUBLIC common core) target_link_libraries(video_core PUBLIC common core)
target_link_libraries(video_core PRIVATE glad) target_link_libraries(video_core PRIVATE glad)
if (ENABLE_VULKAN)
target_link_libraries(video_core PRIVATE sirit)
endif()