diff options
Diffstat (limited to 'ports/spirv-cross')
| -rw-r--r-- | ports/spirv-cross/CONTROL | 4 | ||||
| -rw-r--r-- | ports/spirv-cross/portfile.cmake | 11 | ||||
| -rw-r--r-- | ports/spirv-cross/vcpkg.json | 10 |
3 files changed, 20 insertions, 5 deletions
diff --git a/ports/spirv-cross/CONTROL b/ports/spirv-cross/CONTROL deleted file mode 100644 index e7c397b5f..000000000 --- a/ports/spirv-cross/CONTROL +++ /dev/null @@ -1,4 +0,0 @@ -Source: spirv-cross
-Version: 2020-02-26
-Homepage: https://github.com/KhronosGroup/SPIRV-Cross
-Description: SPIRV-Cross is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.
diff --git a/ports/spirv-cross/portfile.cmake b/ports/spirv-cross/portfile.cmake index eb0652a2a..42fa3b234 100644 --- a/ports/spirv-cross/portfile.cmake +++ b/ports/spirv-cross/portfile.cmake @@ -9,10 +9,19 @@ vcpkg_from_github( 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_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA - OPTIONS -DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS=OFF + OPTIONS + -DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS=OFF + -DSPIRV_CROSS_CLI=${BUILD_CLI} ) vcpkg_install_cmake() diff --git a/ports/spirv-cross/vcpkg.json b/ports/spirv-cross/vcpkg.json new file mode 100644 index 000000000..61fe79d13 --- /dev/null +++ b/ports/spirv-cross/vcpkg.json @@ -0,0 +1,10 @@ +{ + "name": "spirv-cross", + "version-string": "2020-02-26", + "port-version": 1, + "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" + ] +} |
