From 0a9c2f21b4f86d514e1354ae99d8797296f8aa0c Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Sun, 3 Mar 2024 14:22:13 -0800 Subject: [PATCH] video_core: Build spv generators when vulkan is enabled --- src/video_core/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index 46aa843e0..e888c3d3c 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt @@ -77,10 +77,6 @@ add_library(video_core STATIC shader/generator/shader_gen.h shader/generator/shader_uniforms.cpp shader/generator/shader_uniforms.h - shader/generator/spv_fs_shader_gen.cpp - shader/generator/spv_fs_shader_gen.h - shader/generator/spv_shader_gen.h - shader/generator/spv_shader_gen.cpp shader/shader.cpp shader/shader.h shader/shader_interpreter.cpp @@ -199,6 +195,8 @@ if (ENABLE_VULKAN) renderer_vulkan/vk_texture_runtime.h shader/generator/spv_fs_shader_gen.cpp shader/generator/spv_fs_shader_gen.h + shader/generator/spv_shader_gen.h + shader/generator/spv_shader_gen.cpp ) target_link_libraries(video_core PRIVATE vulkan-headers vma sirit SPIRV glslang) endif()