[spirv-cross,spirv-tools] support iOS triplets (#16038)

* [spirv-tools] support iOS triplets

* [spirv-cross] support iOS triplets

* [spirv-cross,spirv-tools] update baseline

* [spirv-tools] fix mistyped variable name

* [spirv-tools] fix wrong git-tree SHA
This commit is contained in:
Park DongHa 2021-02-09 09:07:06 +09:00 committed by GitHub
parent 1ef255cb25
commit 7bddc2a191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 58 additions and 16 deletions

View File

@ -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.

View File

@ -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()

View File

@ -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"
]
}

View File

@ -1,5 +0,0 @@
Source: spirv-tools
Version: 2020.1-1
Homepage: https://github.com/KhronosGroup/SPIRV-Tools
Description: API and commands for processing SPIR-V modules
Build-Depends: spirv-headers

View File

@ -16,13 +16,23 @@ vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
vcpkg_add_to_path("${PYTHON3_DIR}")
if(VCPKG_TARGET_IS_IOS)
message(STATUS "Using iOS trplet. Executables won't be created...")
set(TOOLS_INSTALL OFF)
set(SKIP_EXECUTABLES ON)
else()
set(TOOLS_INSTALL ON)
set(SKIP_EXECUTABLES OFF)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DSPIRV-Headers_SOURCE_DIR=${CURRENT_INSTALLED_DIR}
-DSPIRV_WERROR=OFF
-DENABLE_SPIRV_TOOLS_INSTALL=ON
-DSPIRV_SKIP_EXECUTABLES=${SKIP_EXECUTABLES} # option SPIRV_SKIP_TESTS follows this value
-DENABLE_SPIRV_TOOLS_INSTALL=${TOOLS_INSTALL}
)
vcpkg_install_cmake()
@ -34,7 +44,9 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH share/SPIRV-Tools-reduce TARGET_PATH share
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin") # only static linkage, i.e. no need to preserve .dll/.so files
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
if(TOOLS_INSTALL)
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
endif()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -0,0 +1,10 @@
{
"name": "spirv-tools",
"version-string": "2020.1",
"port-version": 2,
"description": "API and commands for processing SPIR-V modules",
"homepage": "https://github.com/KhronosGroup/SPIRV-Tools",
"dependencies": [
"spirv-headers"
]
}

View File

@ -5534,15 +5534,15 @@
},
"spirv-cross": {
"baseline": "2020-02-26",
"port-version": 0
"port-version": 1
},
"spirv-headers": {
"baseline": "1.5.1",
"port-version": 0
},
"spirv-tools": {
"baseline": "2020.1-1",
"port-version": 0
"baseline": "2020.1",
"port-version": 2
},
"sprout": {
"baseline": "2019-06-20",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7ad1238ca2e8ac10608f992a317ee3108ddb3272",
"version-string": "2020-02-26",
"port-version": 1
},
{
"git-tree": "b1d5c5737acb40490b9cf38a538ecc91d588be03",
"version-string": "2020-02-26",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "cebc581ce190b91f63b06fd7a4807ef1cc2b9c52",
"version-string": "2020.1",
"port-version": 2
},
{
"git-tree": "f6e770ef4164d3a7a518eca97aa2e3fdbe2f79cb",
"version-string": "2020.1-1",