early-access version 2853
This commit is contained in:
42
externals/vcpkg/ports/spirv-cross/portfile.cmake
vendored
Executable file
42
externals/vcpkg/ports/spirv-cross/portfile.cmake
vendored
Executable file
@@ -0,0 +1,42 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KhronosGroup/SPIRV-Cross
|
||||
REF 2021-01-15
|
||||
SHA512 f934ef61602223f6fe6d9c826ed5beb129beb7a30b18b389625d4fc0b1efa1b8df930a2a2d2a0b4f377ef2899e8e034239819a4c6629a78c666f72004464da93
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_IOS)
|
||||
message(STATUS "Using iOS trplet. Executables won't be created...")
|
||||
set(BUILD_CLI OFF)
|
||||
else()
|
||||
set(BUILD_CLI ON)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS=OFF
|
||||
-DSPIRV_CROSS_CLI=${BUILD_CLI}
|
||||
-DSPIRV_CROSS_SKIP_INSTALL=OFF
|
||||
-DSPIRV_CROSS_ENABLE_C_API=ON
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
foreach(COMPONENT core c cpp glsl hlsl msl reflect util)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH share/spirv_cross_${COMPONENT}/cmake PACKAGE_NAME spirv_cross_${COMPONENT})
|
||||
endforeach()
|
||||
|
||||
if(BUILD_CLI)
|
||||
vcpkg_copy_tools(TOOL_NAMES spirv-cross AUTO_CLEAN)
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
||||
18
externals/vcpkg/ports/spirv-cross/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/spirv-cross/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "spirv-cross",
|
||||
"version-date": "2021-01-15",
|
||||
"port-version": 2,
|
||||
"description": "SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.",
|
||||
"homepage": "https://github.com/KhronosGroup/SPIRV-Cross",
|
||||
"dependencies": [
|
||||
"spirv-headers",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user