mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 01:59:00 +08:00
98f2259316
* [llgi] create a new port * [llgi] update to latest * [llgi] update baseline * [llgi] create patch for cmake * [llgi] split patch to pull request * [llgi] update baseline * [llgi] fix some details * [llgi] fix vcpkg functions * [llgi] update patch file * [llgi] fix linux build * Update ports/llgi/portfile.cmake Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * Update ports/llgi/portfile.cmake Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * Update ports/llgi/vcpkg.json Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> * [llgi] update baseline * [llgi] apply upstream change * [llgi] remove working version --------- Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 30cb2da..dbc051b 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -232,8 +232,13 @@ if(BUILD_VULKAN_COMPILER OR BUILD_TOOL)
|
|
spirv-cross-util)
|
|
|
|
else()
|
|
- list(APPEND LLGI_THIRDPARTY_INCLUDES ${GLSLANG_INCLUDE_DIR}
|
|
- ${SPIRVCROSS_INCLUDE_DIR})
|
|
+ # from vcpkg
|
|
+ find_package(glslang CONFIG REQUIRED)
|
|
+ find_package(spirv_cross_core CONFIG REQUIRED)
|
|
+ find_package(spirv_cross_glsl CONFIG REQUIRED)
|
|
+ find_package(spirv_cross_hlsl CONFIG REQUIRED)
|
|
+ find_package(spirv_cross_msl CONFIG REQUIRED)
|
|
+ find_package(spirv_cross_cpp CONFIG REQUIRED)
|
|
|
|
endif()
|
|
|
|
diff --git a/tools/ShaderTranspilerCore/CMakeLists.txt b/tools/ShaderTranspilerCore/CMakeLists.txt
|
|
index 4ce40d4..d4950ce 100644
|
|
--- a/tools/ShaderTranspilerCore/CMakeLists.txt
|
|
+++ b/tools/ShaderTranspilerCore/CMakeLists.txt
|
|
@@ -24,6 +24,10 @@ else()
|
|
|
|
endif()
|
|
|
|
+target_link_libraries(ShaderTranspilerCore PUBLIC
|
|
+ glslang::glslang glslang::SPIRV glslang::OSDependent glslang::MachineIndependent glslang::GenericCodeGen glslang::glslang-default-resource-limits glslang::OGLCompiler glslang::SPVRemapper glslang::HLSL
|
|
+ spirv-cross-cpp spirv-cross-glsl spirv-cross-msl spirv-cross-hlsl
|
|
+)
|
|
if(USE_THIRDPARTY_DIRECTORY)
|
|
add_dependencies(ShaderTranspilerCore EP_glslang EP_SPIRV-Cross)
|
|
endif()
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index dbc051b..b898b4c 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -27,9 +27,6 @@ option(SPIRVCROSS_WITHOUT_INSTALL "Compile with spirv-cross without install"
|
|
OFF)
|
|
option(USE_CREATE_COMPILER_FUNCTION "Whether LLGI::CreateCompiler is used." ON)
|
|
|
|
-if(LINUX)
|
|
- set(BUILD_VULKAN TRUE)
|
|
-endif()
|
|
|
|
option(USE_MSVC_RUNTIME_LIBRARY_DLL "compile as multithreaded DLL" ON)
|
|
|