diff options
Diffstat (limited to 'vcpkg/ports/qt3d')
| -rw-r--r-- | vcpkg/ports/qt3d/portfile.cmake | 36 | ||||
| -rw-r--r-- | vcpkg/ports/qt3d/vcpkg.json | 114 |
2 files changed, 150 insertions, 0 deletions
diff --git a/vcpkg/ports/qt3d/portfile.cmake b/vcpkg/ports/qt3d/portfile.cmake new file mode 100644 index 0000000..07bdc47 --- /dev/null +++ b/vcpkg/ports/qt3d/portfile.cmake @@ -0,0 +1,36 @@ +set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase") +include("${SCRIPT_PATH}/qt_install_submodule.cmake") + +# General features: +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS +FEATURES + "qml" CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick + "vulkan" CMAKE_REQUIRE_FIND_PACKAGE_Vulkan + "vulkan" FEATURE_qt3d_vulkan + "rhi" FEATURE_qt3d_rhi_renderer + "render" FEATURE_qt3d_render + "input" FEATURE_qt3d_input + "logic" FEATURE_qt3d_logic + "extras" FEATURE_qt3d_extras + "animation" FEATURE_qt3d_animation +INVERTED_FEATURES + "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick + "vulkan" CMAKE_DISABLE_FIND_PACKAGE_Vulkan + ) + +if("assimp" IN_LIST FEATURES) + list(APPEND FEATURE_OPTIONS -DINPUT_assimp=system) +else() + list(APPEND FEATURE_OPTIONS -DINPUT_assimp=no) +endif() + +qt_install_submodule(PATCHES ${${PORT}_PATCHES} + CONFIGURE_OPTIONS + ${FEATURE_OPTIONS} + #-DINPUT_fbxsdk=no + -DFEATURE_qt3d_fbxsdk=OFF # OpenFBX? Probably not! + -DCMAKE_FIND_PACKAGE_TARGETS_GLOBAL=ON + CONFIGURE_OPTIONS_RELEASE + -DCMAKE_TRY_COMPILE_CONFIGURATION=Release + CONFIGURE_OPTIONS_DEBUG + ) diff --git a/vcpkg/ports/qt3d/vcpkg.json b/vcpkg/ports/qt3d/vcpkg.json new file mode 100644 index 0000000..2f67c0b --- /dev/null +++ b/vcpkg/ports/qt3d/vcpkg.json @@ -0,0 +1,114 @@ +{ + "name": "qt3d", + "version": "6.9.1", + "description": "Qt wrapper for existing OPC UA stacks", + "homepage": "https://www.qt.io/", + "license": null, + "dependencies": [ + "assimp", + { + "name": "qtbase", + "default-features": false, + "features": [ + "concurrent", + "gui", + "network", + "widgets" + ] + } + ], + "default-features": [ + "animation", + "assimp", + "extras", + "input", + "logic", + "render" + ], + "features": { + "animation": { + "description": "Use the 3D Animation Aspect library", + "dependencies": [ + { + "name": "qt3d", + "default-features": false, + "features": [ + "render" + ] + } + ] + }, + "assimp": { + "description": "Build with assimp", + "dependencies": [ + "assimp" + ] + }, + "extras": { + "description": "Use the 3D Extra library", + "dependencies": [ + { + "name": "qt3d", + "default-features": false, + "features": [ + "input", + "logic", + "render" + ] + } + ] + }, + "input": { + "description": "Use the 3D Input Aspect library" + }, + "logic": { + "description": "Use the 3D Logic Aspect library" + }, + "qml": { + "description": "Build QML imports", + "dependencies": [ + { + "name": "qtbase", + "default-features": false, + "features": [ + "gui" + ] + }, + { + "name": "qtdeclarative", + "default-features": false + } + ] + }, + "render": { + "description": "Use the 3D Render Aspect library" + }, + "rhi": { + "description": "Enable RHI renderer", + "dependencies": [ + "qtshadertools" + ] + }, + "vulkan": { + "description": "Build with vulkan support", + "dependencies": [ + { + "name": "qt3d", + "default-features": false, + "features": [ + "render", + "rhi" + ] + }, + { + "name": "qtbase", + "default-features": false, + "features": [ + "vulkan" + ] + }, + "vulkan" + ] + } + } +} |