mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 01:12:16 +08:00
[magnum-plugins] Update head features and bundled dependency (#21307)
* [magnum-plugins] Update head features and bundled dependency * [magnum-plugins] Format vcpkg.json * [magnum-plugins] Use vcpkg_extract_source_archive * [magnum-plugins] Formatting * [magnum-plugins] Replace deprecated functions * [magnum-plugins] add zstd dependency to basisimageconverter and basisimporter * [magnum-plugins] Update version
This commit is contained in:
parent
cbc22a396c
commit
b9ca38893e
@ -9,24 +9,31 @@ vcpkg_from_github(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if("basisimporter" IN_LIST FEATURES OR "basisimageconverter" IN_LIST FEATURES)
|
if("basisimporter" IN_LIST FEATURES OR "basisimageconverter" IN_LIST FEATURES)
|
||||||
# Bundle Basis Universal, a commit that's before the UASTC support (which
|
# Bundle Basis Universal. The repo has big unrequired files in its
|
||||||
# is not implemented yet). The repo has big unrequired files in its
|
|
||||||
# history, so we're downloading just a snapshot instead of a git clone.
|
# history, so we're downloading just a snapshot instead of a git clone.
|
||||||
vcpkg_download_distfile(
|
if(VCPKG_USE_HEAD_VERSION)
|
||||||
_BASIS_UNIVERSAL_PATCHES
|
# v1_15_update2
|
||||||
URLS "https://github.com/BinomialLLC/basis_universal/commit/e9c55faac7745ebf38d08cd3b4f71aaf542f8191.diff"
|
set(_BASIS_VERSION "v1_15_update2")
|
||||||
FILENAME "e9c55faac7745ebf38d08cd3b4f71aaf542f8191.patch"
|
set(_BASIS_SHA512 "a898a057b57ac64f6c0bf5fce0b599e23421ccdd015ea7bb668bce8b9292ef55b098f3d05854a2fb5363959932b75cd0a842664ae7d4f71f3537dc11301c1b32")
|
||||||
SHA512 e5dda11de2ba8cfd39728e69c74a7656bb522e509786fe5673c94b26be9bd4bee897510096479ee6323f5276d34cba1c44c60804a515c0b35ff7b6ac9d625b88
|
else()
|
||||||
)
|
# A commit that's before the UASTC support (which is not implemented yet)
|
||||||
set(_BASIS_VERSION "8565af680d1bd2ad56ab227ca7d96c56dfbe93ed")
|
vcpkg_download_distfile(
|
||||||
|
_BASIS_UNIVERSAL_PATCHES
|
||||||
|
URLS "https://github.com/BinomialLLC/basis_universal/commit/e9c55faac7745ebf38d08cd3b4f71aaf542f8191.diff"
|
||||||
|
FILENAME "e9c55faac7745ebf38d08cd3b4f71aaf542f8191.patch"
|
||||||
|
SHA512 e5dda11de2ba8cfd39728e69c74a7656bb522e509786fe5673c94b26be9bd4bee897510096479ee6323f5276d34cba1c44c60804a515c0b35ff7b6ac9d625b88
|
||||||
|
)
|
||||||
|
set(_BASIS_VERSION "8565af680d1bd2ad56ab227ca7d96c56dfbe93ed")
|
||||||
|
set(_BASIS_SHA512 "65062ab3ba675c46760f56475a7528189ed4097fb9bab8316e25d9e23ffec2a9560eb9a6897468baf2a6ab2bd698b5907283e96deaeaef178085a47f9d371bb2")
|
||||||
|
endif()
|
||||||
vcpkg_download_distfile(
|
vcpkg_download_distfile(
|
||||||
_BASIS_UNIVERSAL_ARCHIVE
|
_BASIS_UNIVERSAL_ARCHIVE
|
||||||
URLS "https://github.com/BinomialLLC/basis_universal/archive/${_BASIS_VERSION}.tar.gz"
|
URLS "https://github.com/BinomialLLC/basis_universal/archive/${_BASIS_VERSION}.tar.gz"
|
||||||
FILENAME "basis-universal-${_BASIS_VERSION}.tar.gz"
|
FILENAME "basis-universal-${_BASIS_VERSION}.tar.gz"
|
||||||
SHA512 65062ab3ba675c46760f56475a7528189ed4097fb9bab8316e25d9e23ffec2a9560eb9a6897468baf2a6ab2bd698b5907283e96deaeaef178085a47f9d371bb2
|
SHA512 ${_BASIS_SHA512}
|
||||||
)
|
)
|
||||||
vcpkg_extract_source_archive_ex(
|
vcpkg_extract_source_archive(
|
||||||
OUT_SOURCE_PATH _BASIS_UNIVERSAL_SOURCE
|
_BASIS_UNIVERSAL_SOURCE
|
||||||
ARCHIVE ${_BASIS_UNIVERSAL_ARCHIVE}
|
ARCHIVE ${_BASIS_UNIVERSAL_ARCHIVE}
|
||||||
WORKING_DIRECTORY "${SOURCE_PATH}/src/external"
|
WORKING_DIRECTORY "${SOURCE_PATH}/src/external"
|
||||||
PATCHES
|
PATCHES
|
||||||
@ -46,8 +53,10 @@ endif()
|
|||||||
# Head only features
|
# Head only features
|
||||||
set(ALL_SUPPORTED_FEATURES ${ALL_FEATURES})
|
set(ALL_SUPPORTED_FEATURES ${ALL_FEATURES})
|
||||||
if(NOT VCPKG_USE_HEAD_VERSION)
|
if(NOT VCPKG_USE_HEAD_VERSION)
|
||||||
list(REMOVE_ITEM ALL_SUPPORTED_FEATURES glslangshaderconverter spirvtoolsshaderconverter)
|
list(REMOVE_ITEM ALL_SUPPORTED_FEATURES cgltfimporter glslangshaderconverter
|
||||||
message(WARNING "Features glslangshaderconverter and spirvtoolsshaderconverter are not avaliable when building non-head version.")
|
ktximageconverter ktximporter openexrimageconverter openexrimporter
|
||||||
|
spirvtoolsshaderconverter stbdxtimageconverter)
|
||||||
|
message(WARNING "Features cgltfimporter, glslangshaderconverter, ktximageconverter, ktximporter, openexrimageconverter, openexrimporter, spirvtoolsshaderconverter and stbdxtimageconverter are not available when building non-head version.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(_COMPONENTS "")
|
set(_COMPONENTS "")
|
||||||
@ -65,9 +74,8 @@ endforeach()
|
|||||||
|
|
||||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES ${_COMPONENTS})
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES ${_COMPONENTS})
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_cmake_configure(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
${FEATURE_OPTIONS}
|
${FEATURE_OPTIONS}
|
||||||
-DBUILD_STATIC=${BUILD_PLUGINS_STATIC}
|
-DBUILD_STATIC=${BUILD_PLUGINS_STATIC}
|
||||||
@ -76,7 +84,7 @@ vcpkg_configure_cmake(
|
|||||||
-DMAGNUM_PLUGINS_RELEASE_DIR=${CURRENT_INSTALLED_DIR}/bin/magnum
|
-DMAGNUM_PLUGINS_RELEASE_DIR=${CURRENT_INSTALLED_DIR}/bin/magnum
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_cmake_install()
|
||||||
|
|
||||||
# Debug includes and share are the same as release
|
# Debug includes and share are the same as release
|
||||||
file(REMOVE_RECURSE
|
file(REMOVE_RECURSE
|
||||||
|
@ -1,18 +1,25 @@
|
|||||||
{
|
{
|
||||||
"name": "magnum-plugins",
|
"name": "magnum-plugins",
|
||||||
"version-string": "2020.06",
|
"version-string": "2020.06",
|
||||||
"port-version": 7,
|
"port-version": 8,
|
||||||
"description": "Plugins for magnum, C++11/C++14 graphics middleware for games and data visualization",
|
"description": "Plugins for magnum, C++11/C++14 graphics middleware for games and data visualization",
|
||||||
"homepage": "https://magnum.graphics/",
|
"homepage": "https://magnum.graphics/",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
{
|
{
|
||||||
"name": "magnum",
|
"name": "magnum",
|
||||||
"default-features": false
|
"default-features": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vcpkg-cmake",
|
||||||
|
"host": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default-features": [
|
"default-features": [
|
||||||
|
"cgltfimporter",
|
||||||
"ddsimporter",
|
"ddsimporter",
|
||||||
"icoimporter",
|
"icoimporter",
|
||||||
|
"ktximageconverter",
|
||||||
|
"ktximporter",
|
||||||
"miniexrimageconverter",
|
"miniexrimageconverter",
|
||||||
"opengeximporter",
|
"opengeximporter",
|
||||||
"stanfordimporter",
|
"stanfordimporter",
|
||||||
@ -51,12 +58,33 @@
|
|||||||
"features": [
|
"features": [
|
||||||
"trade"
|
"trade"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"zstd"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"basisimporter": {
|
"basisimporter": {
|
||||||
"description": "BasisImporter plugin",
|
"description": "BasisImporter plugin",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "magnum",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [
|
||||||
|
"trade"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"zstd"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"cgltfimporter": {
|
||||||
|
"description": "CgltfImporter plugin",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "magnum",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [
|
||||||
|
"anyimageimporter"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "magnum",
|
"name": "magnum",
|
||||||
"default-features": false,
|
"default-features": false,
|
||||||
@ -204,6 +232,30 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"ktximageconverter": {
|
||||||
|
"description": "KtxImageConverter plugin",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "magnum",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [
|
||||||
|
"trade"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ktximporter": {
|
||||||
|
"description": "KtxImporter plugin",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "magnum",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [
|
||||||
|
"trade"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"meshoptimizersceneconverter": {
|
"meshoptimizersceneconverter": {
|
||||||
"description": "MeshOptimizerSceneConverter plugin",
|
"description": "MeshOptimizerSceneConverter plugin",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
@ -232,6 +284,32 @@
|
|||||||
"openddl": {
|
"openddl": {
|
||||||
"description": "OpenDdl library"
|
"description": "OpenDdl library"
|
||||||
},
|
},
|
||||||
|
"openexrimageconverter": {
|
||||||
|
"description": "OpenExrImageConverter plugin",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "magnum",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [
|
||||||
|
"trade"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"openexr"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"openexrimporter": {
|
||||||
|
"description": "OpenExrImporter plugin",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "magnum",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [
|
||||||
|
"trade"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"openexr"
|
||||||
|
]
|
||||||
|
},
|
||||||
"opengeximporter": {
|
"opengeximporter": {
|
||||||
"description": "OpenGexImporter plugin",
|
"description": "OpenGexImporter plugin",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
@ -321,6 +399,18 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"stbdxtimageconverter": {
|
||||||
|
"description": "StbDxtImageConverter plugin",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "magnum",
|
||||||
|
"default-features": false,
|
||||||
|
"features": [
|
||||||
|
"trade"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"stbimageconverter": {
|
"stbimageconverter": {
|
||||||
"description": "StbImageConverter plugin",
|
"description": "StbImageConverter plugin",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
@ -397,13 +487,6 @@
|
|||||||
"features": [
|
"features": [
|
||||||
"trade"
|
"trade"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "magnum-plugins",
|
|
||||||
"default-features": false,
|
|
||||||
"features": [
|
|
||||||
"stbimageimporter"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -4214,7 +4214,7 @@
|
|||||||
},
|
},
|
||||||
"magnum-plugins": {
|
"magnum-plugins": {
|
||||||
"baseline": "2020.06",
|
"baseline": "2020.06",
|
||||||
"port-version": 7
|
"port-version": 8
|
||||||
},
|
},
|
||||||
"mailio": {
|
"mailio": {
|
||||||
"baseline": "0.20.0",
|
"baseline": "0.20.0",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "5a4d77bfcdfaad1b288a26ad6ac7fe086e356f71",
|
||||||
|
"version-string": "2020.06",
|
||||||
|
"port-version": 8
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "241189f2a82d541c88b682f409518b5802dcb39e",
|
"git-tree": "241189f2a82d541c88b682f409518b5802dcb39e",
|
||||||
"version-string": "2020.06",
|
"version-string": "2020.06",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user