early-access version 2853
This commit is contained in:
33
externals/vcpkg/ports/spirv-reflect/CMakeLists.txt
vendored
Executable file
33
externals/vcpkg/ports/spirv-reflect/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
project(spirv-reflect)
|
||||
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
|
||||
add_library(spirv-reflect ${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.c)
|
||||
if (SPIRV_REFLECT_ENABLE_ASSERTS)
|
||||
target_compile_definitions(spirv-reflect PRIVATE SPIRV_REFLECT_ENABLE_ASSERTS)
|
||||
endif()
|
||||
set_target_properties(spirv-reflect PROPERTIES CXX_STANDARD 11)
|
||||
target_include_directories(spirv-reflect PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
if(WIN32)
|
||||
target_compile_definitions(spirv-reflect PRIVATE _CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
target_include_directories(spirv-reflect INTERFACE $<INSTALL_INTERFACE:include>)
|
||||
|
||||
install(
|
||||
TARGETS spirv-reflect EXPORT unofficial-spirv-reflect-config
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
)
|
||||
|
||||
install(
|
||||
EXPORT unofficial-spirv-reflect-config
|
||||
NAMESPACE unofficial::spirv-reflect::
|
||||
DESTINATION share/unofficial-spirv-reflect
|
||||
)
|
||||
|
||||
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.h" DESTINATION include)
|
||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include" DESTINATION include)
|
||||
22
externals/vcpkg/ports/spirv-reflect/portfile.cmake
vendored
Executable file
22
externals/vcpkg/ports/spirv-reflect/portfile.cmake
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KhronosGroup/SPIRV-Reflect
|
||||
REF sdk-1.3.204.1
|
||||
SHA512 af0bfcb7a8565cbd981034900760d304792e9dfb0a166b712e3506475fdeff282e0ba0f02d82d671ee05e7ed0792815eba654b66af0739404bf38c9e12ebf4f5
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/spirv-reflect" RENAME copyright)
|
||||
18
externals/vcpkg/ports/spirv-reflect/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/spirv-reflect/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "spirv-reflect",
|
||||
"version": "1.3.204.1",
|
||||
"description": "SPIRV-Reflect is a lightweight library that provides a C/C++ reflection API for SPIR-V shader bytecode in Vulkan applications.",
|
||||
"homepage": "https://github.com/KhronosGroup/SPIRV-Reflect",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
"vulkan"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user