aboutsummaryrefslogtreecommitdiff
path: root/ports/magnum-plugins
diff options
context:
space:
mode:
authorJonathan Hale <Squareys@googlemail.com>2021-01-27 00:03:54 +0100
committerGitHub <noreply@github.com>2021-01-26 15:03:54 -0800
commit795588570aa5fb2d4f33a13648b8b602e9d4a52c (patch)
treec32a1727b37ecd64460694ec2ef84a89813156d8 /ports/magnum-plugins
parente72302d44237c751bcf3db8a4d5922d34d45f68f (diff)
downloadvcpkg-795588570aa5fb2d4f33a13648b8b602e9d4a52c.tar.gz
vcpkg-795588570aa5fb2d4f33a13648b8b602e9d4a52c.zip
[magnum,magnum-plugins] Add vulkan and shaderconverter features (#15163)
* [magnum,magnum-plugins] Add vulkan and shaderconverter features Signed-off-by: Squareys <squareys@googlemail.com> * [magnum,-plugins] Add warning for features unavailable in non-head version Signed-off-by: Squareys <squareys@googlemail.com> * update version record Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Diffstat (limited to 'ports/magnum-plugins')
-rw-r--r--ports/magnum-plugins/CONTROL10
-rw-r--r--ports/magnum-plugins/portfile.cmake9
2 files changed, 17 insertions, 2 deletions
diff --git a/ports/magnum-plugins/CONTROL b/ports/magnum-plugins/CONTROL
index dee9a32de..f80c0f96f 100644
--- a/ports/magnum-plugins/CONTROL
+++ b/ports/magnum-plugins/CONTROL
@@ -1,6 +1,6 @@
Source: magnum-plugins
Version: 2020.06
-Port-Version: 1
+Port-Version: 2
Build-Depends: magnum[core]
Description: Plugins for magnum, C++11/C++14 graphics middleware for games and data visualization
Homepage: https://magnum.graphics/
@@ -48,6 +48,10 @@ Feature: freetypefont
Description: FreeTypeFont plugin
Build-Depends: freetype, magnum[text]
+Feature: glslangshaderconverter
+Description: GlslangShaderConverter plugin
+Build-Depends: glslang, magnum[shadertools]
+
Feature: harfbuzzfont
Description: HarfBuzzFont plugin
Build-Depends: harfbuzz, magnum-plugins[freetypefont]
@@ -84,6 +88,10 @@ Feature: pngimporter
Description: PngImporter plugin
Build-Depends: libpng, magnum[trade]
+Feature: spirvtoolsshaderconverter
+Description: SpirvToolsShaderConverter plugin
+Build-Depends: spirv-tools, magnum[shadertools]
+
Feature: stanfordimporter
Description: StanfordImporter plugin
Build-Depends: magnum[trade]
diff --git a/ports/magnum-plugins/portfile.cmake b/ports/magnum-plugins/portfile.cmake
index 766d91cfc..07dca2902 100644
--- a/ports/magnum-plugins/portfile.cmake
+++ b/ports/magnum-plugins/portfile.cmake
@@ -44,9 +44,16 @@ else()
set(BUILD_PLUGINS_STATIC 0)
endif()
+# Head only features
+set(ALL_SUPPORTED_FEATURES ${ALL_FEATURES})
+if(NOT VCPKG_USE_HEAD_VERSION)
+ list(REMOVE_ITEM ALL_SUPPORTED_FEATURES glslangshaderconverter spirvtoolsshaderconverter)
+ message(WARNING "Features glslangshaderconverter and spirvtoolsshaderconverter are not avaliable when building non-head version.")
+endif()
+
set(_COMPONENTS "")
# Generate cmake parameters from feature names
-foreach(_feature IN LISTS ALL_FEATURES)
+foreach(_feature IN LISTS ALL_SUPPORTED_FEATURES)
# Uppercase the feature name and replace "-" with "_"
string(TOUPPER "${_feature}" _FEATURE)
string(REPLACE "-" "_" _FEATURE "${_FEATURE}")