[ogre] make zziplib, freeimage, assimp, freetype and strict resource manager, optional features (#15194)

This commit is contained in:
dweckmann 2021-01-05 21:07:14 +01:00 committed by GitHub
parent 4907797add
commit 215d38b4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 15 deletions

View File

@ -30,12 +30,19 @@ endif()
# Configure features
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
d3d9 OGRE_BUILD_RENDERSYSTEM_D3D9
java OGRE_BUILD_COMPONENT_JAVA
python OGRE_BUILD_COMPONENT_PYTHON
csharp OGRE_BUILD_COMPONENT_CSHARP
d3d9 OGRE_BUILD_RENDERSYSTEM_D3D9
java OGRE_BUILD_COMPONENT_JAVA
python OGRE_BUILD_COMPONENT_PYTHON
csharp OGRE_BUILD_COMPONENT_CSHARP
overlay OGRE_BUILD_COMPONENT_OVERLAY
zziplib OGRE_CONFIG_ENABLE_ZIP
strict OGRE_RESOURCEMANAGER_STRICT
)
# OGRE_RESOURCEMANAGER_STRICT need to be 0 for OFF and 1 for ON, because it is used 'as is' in sources
string(REPLACE "OGRE_RESOURCEMANAGER_STRICT=ON" "OGRE_RESOURCEMANAGER_STRICT=1" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
string(REPLACE "OGRE_RESOURCEMANAGER_STRICT=OFF" "OGRE_RESOURCEMANAGER_STRICT=0" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA

View File

@ -1,39 +1,69 @@
{
"name": "ogre",
"version-string": "1.12.9",
"port-version": 3,
"port-version": 4,
"description": "3D Object-Oriented Graphics Rendering Engine",
"homepage": "https://github.com/OGRECave/ogre",
"dependencies": [
"assimp",
"freeimage",
"freetype",
{
"name": "imgui",
"features": [
"freetype"
]
},
"pugixml",
"sdl2",
"zlib",
"zlib"
],
"default-features": [
"assimp",
"freeimage",
"overlay",
"strict",
"zziplib"
],
"features": {
"assimp": {
"description": "Use assimp",
"dependencies": [
"assimp"
]
},
"csharp": {
"description": "Build csharp bindings"
},
"d3d9": {
"description": "Build Direct3D9 RenderSystem"
},
"freeimage": {
"description": "Build with FreeImage support",
"dependencies": [
"freeimage"
]
},
"java": {
"description": "Build Java (JNI) bindings"
},
"overlay": {
"description": "Build overlay component",
"dependencies": [
"freetype",
{
"name": "imgui",
"features": [
"freetype"
]
}
]
},
"python": {
"description": "Build Python bindings",
"dependencies": [
"python3"
]
},
"strict": {
"description": "Force Ogre resource manager to be strict with group names and resource names"
},
"zziplib": {
"description": "Build with zziplib support (GPL)",
"dependencies": [
"zziplib"
]
}
}
}