diff options
Diffstat (limited to 'vcpkg/ports/gz-gui')
| -rw-r--r-- | vcpkg/ports/gz-gui/dependencies.patch | 30 | ||||
| -rw-r--r-- | vcpkg/ports/gz-gui/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/gz-gui/vcpkg.json | 33 |
3 files changed, 95 insertions, 0 deletions
diff --git a/vcpkg/ports/gz-gui/dependencies.patch b/vcpkg/ports/gz-gui/dependencies.patch new file mode 100644 index 0000000..ec0be2f --- /dev/null +++ b/vcpkg/ports/gz-gui/dependencies.patch @@ -0,0 +1,30 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c7c7f509..2f2265a0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -81,10 +81,11 @@ set(GZ_TOOLS_VER 2)
+
+ #--------------------------------------
+ # Find QT
+-set(QT_MAJOR_VERSION 5)
+-set(QT_MINOR_VERSION 15)
+-gz_find_package (Qt${QT_MAJOR_VERSION}
+- VERSION ${QT_MAJOR_VERSION}.${QT_MINOR_VERSION}
++set(qt_pkgconfig "Qt5Core Qt5Quick Qt5QuickControls2 Qt5Widgets")
++if(WIN32 OR APPLE)
++set(qt_pkgconfig "")
++endif()
++gz_find_package (Qt5
+ COMPONENTS
+ Core
+ Quick
+@@ -92,8 +93,7 @@ gz_find_package (Qt${QT_MAJOR_VERSION}
+ Widgets
+ Test
+ REQUIRED
+- PKGCONFIG_VER_COMPARISON >=
+- PKGCONFIG "Qt${QT_MAJOR_VERSION}Core Qt${QT_MAJOR_VERSION}Quick Qt${QT_MAJOR_VERSION}QuickControls2 Qt${QT_MAJOR_VERSION}Widgets")
++ PKGCONFIG ${qt_pkgconfig})
+ add_compile_definitions(QT_DISABLE_DEPRECATED_UP_TO=0x050F00)
+
+ set(GZ_GUI_PLUGIN_RELATIVE_INSTALL_DIR
diff --git a/vcpkg/ports/gz-gui/portfile.cmake b/vcpkg/ports/gz-gui/portfile.cmake new file mode 100644 index 0000000..7cc2e76 --- /dev/null +++ b/vcpkg/ports/gz-gui/portfile.cmake @@ -0,0 +1,32 @@ +string(REGEX MATCH "^[0-9]+" VERSION_MAJOR ${VERSION})
+string(REGEX MATCH "^gz-([a-z-]+)" MATCHED_VALUE ${PORT})
+set(PACKAGE_NAME ${CMAKE_MATCH_1})
+
+vcpkg_find_acquire_program(PYTHON3)
+get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
+vcpkg_add_to_path("${PYTHON3_DIR}")
+
+ignition_modular_library(
+ NAME ${PACKAGE_NAME}
+ REF ${PORT}${VERSION_MAJOR}_${VERSION}
+ VERSION ${VERSION}
+ SHA512 c90c72a700889289aec71582c6484c6c7a5d06cfa2d01f3634fa194b4271fc1723c6746ed82610dc8463c0f3eb146b46111ba90e2c30f44cafc63d1fa46b56f4
+ OPTIONS
+ PATCHES
+ dependencies.patch
+)
+
+if(VCPKG_TARGET_IS_WINDOWS)
+ file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/${PORT}-${VERSION_MAJOR}/plugins/*.dll")
+ if (NOT plugins STREQUAL "")
+ file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/engine-plugins/")
+ file(REMOVE ${plugins})
+ endif()
+
+ file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}-${VERSION_MAJOR}/plugins/*.dll")
+ if (NOT plugins_debug STREQUAL "")
+ file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/engine-plugins/")
+ file(REMOVE ${plugins_debug})
+ endif()
+
+endif()
diff --git a/vcpkg/ports/gz-gui/vcpkg.json b/vcpkg/ports/gz-gui/vcpkg.json new file mode 100644 index 0000000..d328db8 --- /dev/null +++ b/vcpkg/ports/gz-gui/vcpkg.json @@ -0,0 +1,33 @@ +{ + "name": "gz-gui", + "version": "9.0.0", + "port-version": 1, + "description": "Gazebo GUI builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.", + "homepage": "https://gazebosim.org/libs/gui", + "license": "Apache-2.0", + "dependencies": [ + "gz-cmake", + "gz-common", + "gz-math", + "gz-msgs", + "gz-plugin", + "gz-rendering", + "gz-transport", + "gz-utils", + { + "name": "ignition-modularscripts", + "host": true + }, + "protobuf", + { + "name": "qt5-base", + "default-features": false + }, + { + "name": "qt5-quickcontrols2", + "default-features": false + }, + "sdformat", + "tinyxml2" + ] +} |