early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/glslang/always-install-resource-limits.patch
vendored
Executable file
13
externals/vcpkg/ports/glslang/always-install-resource-limits.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/StandAlone/CMakeLists.txt b/StandAlone/CMakeLists.txt
|
||||
index 751d1cd71..0f5cf0dc0 100644
|
||||
--- a/StandAlone/CMakeLists.txt
|
||||
+++ b/StandAlone/CMakeLists.txt
|
||||
@@ -98,7 +98,7 @@ if(ENABLE_GLSLANG_INSTALL)
|
||||
install(EXPORT spirv-remapTargets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)
|
||||
endif()
|
||||
|
||||
- if(BUILD_SHARED_LIBS)
|
||||
+ if(BUILD_SHARED_LIBS OR TRUE)
|
||||
install(TARGETS glslang-default-resource-limits EXPORT glslang-default-resource-limitsTargets
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
7
externals/vcpkg/ports/glslang/glslang-config.cmake
vendored
Executable file
7
externals/vcpkg/ports/glslang/glslang-config.cmake
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
include(CMakeFindDependencyMacro)
|
||||
|
||||
find_dependency(Threads)
|
||||
|
||||
foreach(targets OGLCompiler OSDependent glslang glslang-default-resource-limits glslangValidator HLSL SPIRV spirv-remap SPVRemapper)
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/${targets}Targets.cmake" OPTIONAL)
|
||||
endforeach()
|
||||
9
externals/vcpkg/ports/glslang/ignore-crt.patch
vendored
Executable file
9
externals/vcpkg/ports/glslang/ignore-crt.patch
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
diff --git a/ChooseMSVCCRT.cmake b/ChooseMSVCCRT.cmake
|
||||
index b1561263..b6c8c3a6 100644
|
||||
--- a/ChooseMSVCCRT.cmake
|
||||
+++ b/ChooseMSVCCRT.cmake
|
||||
@@ -135,4 +135,3 @@ set(MSVC_CRT
|
||||
MT
|
||||
MTd)
|
||||
|
||||
-choose_msvc_crt(MSVC_CRT)
|
||||
55
externals/vcpkg/ports/glslang/portfile.cmake
vendored
Executable file
55
externals/vcpkg/ports/glslang/portfile.cmake
vendored
Executable file
@@ -0,0 +1,55 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KhronosGroup/glslang
|
||||
REF 11.8.0
|
||||
SHA512 b60d328fab6d5319e49fbf8aeb86c31a7c8dfb4bc75d39c081cbb72f90750fd98f2a4f3ab091614187ad9e0d2e27471f9dab7ca5547cabb856d17bff694f8c98
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
ignore-crt.patch
|
||||
always-install-resource-limits.patch
|
||||
)
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
get_filename_component(PYTHON_PATH ${PYTHON3} DIRECTORY)
|
||||
vcpkg_add_to_path("${PYTHON_PATH}")
|
||||
|
||||
if(VCPKG_TARGET_IS_IOS)
|
||||
# this case will report error since all executable will require BUNDLE DESTINATION
|
||||
set(BUILD_BINARIES OFF)
|
||||
else()
|
||||
set(BUILD_BINARIES ON)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSKIP_GLSLANG_INSTALL=OFF
|
||||
-DBUILD_EXTERNAL=OFF
|
||||
-DENABLE_GLSLANG_BINARIES=${BUILD_BINARIES}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(NOT BUILD_BINARIES)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
||||
else()
|
||||
vcpkg_copy_tools(TOOL_NAMES glslangValidator spirv-remap AUTO_CLEAN)
|
||||
endif()
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
|
||||
if(EXISTS "${CURRENT_PACKAGES_DIR}/share/glslang/glslang-config.cmake" OR EXISTS "${CURRENT_PACKAGES_DIR}/share/glslang/glslangConfig.cmake")
|
||||
message(FATAL_ERROR "glslang has been updated to provide a -config file -- please remove the vcpkg provided version from the portfile")
|
||||
endif()
|
||||
|
||||
file(COPY
|
||||
"${CMAKE_CURRENT_LIST_DIR}/glslang-config.cmake"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
16
externals/vcpkg/ports/glslang/vcpkg.json
vendored
Executable file
16
externals/vcpkg/ports/glslang/vcpkg.json
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "glslang",
|
||||
"version": "11.8.0",
|
||||
"description": "Khronos reference front-end for GLSL and ESSL, and sample SPIR-V generator",
|
||||
"homepage": "https://github.com/KhronosGroup/glslang",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user