Techt3o commited on
Commit
db2729d
·
verified ·
1 Parent(s): bc3054b

d588043d1ef11ea9b8af4d6a4136321177a279068a187c929c8d2b43c1ae1fba

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtapplicationmanager/vcpkg.json +30 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtapplicationmanager/wrapper-fixes.patch +56 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/allow_outside_prefix.patch +22 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/clang-cl_source_location.patch +14 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_install_copyright.cmake +18 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_install_submodule.cmake +300 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_port_details-latest.cmake +112 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_port_details.cmake +132 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/config_install.patch +13 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/dont_force_cmakecache.patch +58 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/env.patch +16 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/fix_cmake_build.patch +15 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/fix_egl.patch +12 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/harfbuzz.patch +13 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/portfile.cmake +411 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/qmake.debug.bat +2 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/qt.conf.in +31 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/vcpkg.json +357 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcharts/portfile.cmake +17 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcharts/vcpkg.json +37 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcoap/portfile.cmake +10 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcoap/vcpkg.json +16 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtconnectivity/portfile.cmake +10 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtconnectivity/vcpkg.json +18 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdatavis3d/portfile.cmake +10 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdatavis3d/vcpkg.json +21 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeclarative/portfile.cmake +31 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeclarative/vcpkg.json +25 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeviceutilities/portfile.cmake +13 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeviceutilities/vcpkg.json +18 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdoc/portfile.cmake +13 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdoc/vcpkg.json +13 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtimageformats/no_target_promotion.patch +22 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtimageformats/portfile.cmake +40 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtimageformats/vcpkg.json +45 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtinterfaceframework/fix-taglib-search.patch +13 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtinterfaceframework/portfile.cmake +99 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtinterfaceframework/vcpkg.json +35 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain-qt6/portfile.cmake +48 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain-qt6/vcpkg.json +27 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain/portfile.cmake +37 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain/vcpkg.json +33 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlocation/portfile.cmake +24 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlocation/vcpkg.json +22 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlottie/portfile.cmake +18 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlottie/vcpkg.json +27 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmqtt/portfile.cmake +10 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmqtt/vcpkg.json +16 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmultimedia/fix_windows_header_include.patch +13 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmultimedia/portfile.cmake +52 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtapplicationmanager/vcpkg.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtapplicationmanager",
3
+ "version": "6.2.4",
4
+ "description": "Qt component for application lifecycle management",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "supports": "!(windows & arm)",
8
+ "dependencies": [
9
+ "libarchive",
10
+ "libyaml",
11
+ {
12
+ "name": "qtapplicationmanager",
13
+ "host": true,
14
+ "default-features": false
15
+ },
16
+ {
17
+ "name": "qtbase",
18
+ "default-features": false
19
+ },
20
+ {
21
+ "name": "qtdeclarative",
22
+ "default-features": false
23
+ },
24
+ {
25
+ "name": "qtwayland",
26
+ "default-features": false,
27
+ "platform": "!windows"
28
+ }
29
+ ]
30
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtapplicationmanager/wrapper-fixes.patch ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/FindWrapLibArchive.cmake b/cmake/FindWrapLibArchive.cmake
2
+ index 67e4ce0..887b766 100644
3
+ --- a/cmake/FindWrapLibArchive.cmake
4
+ +++ b/cmake/FindWrapLibArchive.cmake
5
+ @@ -16,3 +16,24 @@ add_library(WrapLibArchive::WrapLibArchive INTERFACE IMPORTED)
6
+ target_link_libraries(WrapLibArchive::WrapLibArchive INTERFACE ${LibArchive_LIBRARIES})
7
+ target_include_directories(WrapLibArchive::WrapLibArchive INTERFACE ${LibArchive_INCLUDE_DIRS})
8
+ set(WrapLibArchive_FOUND TRUE)
9
+ +if(TARGET BZip2::BZip2)
10
+ + set_property(TARGET BZip2::BZip2 PROPERTY _qt_no_promote_global TRUE)
11
+ +endif()
12
+ +if(TARGET Threads::Threads)
13
+ + set_property(TARGET Threads::Threads PROPERTY _qt_no_promote_global TRUE)
14
+ +endif()
15
+ +if(TARGET OpenSSL::Crypto)
16
+ + set_property(TARGET OpenSSL::Crypto PROPERTY _qt_no_promote_global TRUE)
17
+ +endif()
18
+ +if(TARGET zstd::libzstd)
19
+ + set_property(TARGET zstd::libzstd PROPERTY _qt_no_promote_global TRUE)
20
+ +endif()
21
+ +if(TARGET zstd::libzstd_shared)
22
+ + set_property(TARGET zstd::libzstd_shared PROPERTY _qt_no_promote_global TRUE)
23
+ +endif()
24
+ +if(TARGET zstd::libzstd_static)
25
+ + set_property(TARGET zstd::libzstd_static PROPERTY _qt_no_promote_global TRUE)
26
+ +endif()
27
+ +if(TARGET ZLIB::ZLIB)
28
+ + set_property(TARGET ZLIB::ZLIB PROPERTY _qt_no_promote_global TRUE)
29
+ +endif()
30
+ diff --git a/cmake/FindWrapLibYaml.cmake b/cmake/FindWrapLibYaml.cmake
31
+ index 1dab912..c09e97f 100644
32
+ --- a/cmake/FindWrapLibYaml.cmake
33
+ +++ b/cmake/FindWrapLibYaml.cmake
34
+ @@ -10,10 +10,17 @@ pkg_check_modules(pc_libyaml yaml-0.1 IMPORTED_TARGET)
35
+
36
+
37
+ if (NOT pc_libyaml_FOUND)
38
+ - set(WrapLibYaml_FOUND FALSE)
39
+ - return()
40
+ + find_package(yaml)
41
+ + if(yaml_FOUND)
42
+ + add_library(WrapLibYaml::WrapLibYaml INTERFACE IMPORTED)
43
+ + target_link_libraries(WrapLibYaml::WrapLibYaml INTERFACE ${yaml_LIBRARIES})
44
+ + else()
45
+ + set(WrapLibYaml_FOUND FALSE)
46
+ + return()
47
+ + endif()
48
+ +else()
49
+ + add_library(WrapLibYaml::WrapLibYaml INTERFACE IMPORTED)
50
+ + target_link_libraries(WrapLibYaml::WrapLibYaml INTERFACE PkgConfig::pc_libyaml)
51
+ endif()
52
+ -
53
+ -add_library(WrapLibYaml::WrapLibYaml INTERFACE IMPORTED)
54
+ -target_link_libraries(WrapLibYaml::WrapLibYaml INTERFACE ${pc_libyaml_LIBRARIES})
55
+ set(WrapLibYaml_FOUND TRUE)
56
+ +
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/allow_outside_prefix.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
2
+ index bd186c28b..2c1994d2e 100644
3
+ --- a/cmake/QtBuild.cmake
4
+ +++ b/cmake/QtBuild.cmake
5
+ @@ -28,11 +28,13 @@ function(qt_configure_process_path name default docstring)
6
+ elseif(rel_path MATCHES "^\.\./")
7
+ # INSTALL_SYSCONFDIR is allowed to be outside the prefix.
8
+ if(NOT name STREQUAL "INSTALL_SYSCONFDIR")
9
+ - message(FATAL_ERROR
10
+ - "Path component '${name}' is outside computed install prefix: ${rel_path} ")
11
+ - return()
12
+ + #message(FATAL_ERROR
13
+ + # "Path component '${name}' is outside computed install prefix: ${rel_path} ")
14
+ + #return()
15
+ + set("${name}" "${rel_path}" CACHE STRING "${docstring}" FORCE)
16
+ + else()
17
+ + set("${name}" "${${name}}" CACHE STRING "${docstring}" FORCE)
18
+ endif()
19
+ - set("${name}" "${${name}}" CACHE STRING "${docstring}" FORCE)
20
+ else()
21
+ set("${name}" "${rel_path}" CACHE STRING "${docstring}" FORCE)
22
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/clang-cl_source_location.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h
2
+ index 823b2057b..4a8cd4fa8 100644
3
+ --- a/src/corelib/kernel/qproperty.h
4
+ +++ b/src/corelib/kernel/qproperty.h
5
+ @@ -49,8 +49,8 @@
6
+
7
+ #include <QtCore/qpropertyprivate.h>
8
+
9
+ -#if __has_include(<source_location>) && __cplusplus >= 202002L && !defined(Q_CLANG_QDOC)
10
+ +#if __has_include(<source_location>) && __cplusplus >= 202002L && !defined(Q_CLANG_QDOC) && defined(__cpp_consteval)
11
+ #include <source_location>
12
+ #if defined(__cpp_lib_source_location)
13
+ #define QT_SOURCE_LOCATION_NAMESPACE std
14
+ #define QT_PROPERTY_COLLECT_BINDING_LOCATION
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_install_copyright.cmake ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Could probably be the beginning of a vcpkg_install_copyright?
2
+ function(qt_install_copyright SOURCE_PATH)
3
+ #Find the relevant license file and install it
4
+ if(EXISTS "${SOURCE_PATH}/LICENSE.LGPLv3")
5
+ set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.LGPLv3")
6
+ elseif(EXISTS "${SOURCE_PATH}/LICENSE.LGPL3")
7
+ set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.LGPL3")
8
+ elseif(EXISTS "${SOURCE_PATH}/LICENSE.GPLv3")
9
+ set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.GPLv3")
10
+ elseif(EXISTS "${SOURCE_PATH}/LICENSE.GPL3")
11
+ set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.GPL3")
12
+ elseif(EXISTS "${SOURCE_PATH}/LICENSE.GPL3-EXCEPT")
13
+ set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.GPL3-EXCEPT")
14
+ elseif(EXISTS "${SOURCE_PATH}/LICENSE.FDL")
15
+ set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.FDL")
16
+ endif()
17
+ file(INSTALL "${LICENSE_PATH}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
18
+ endfunction()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_install_submodule.cmake ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ include("${CURRENT_HOST_INSTALLED_DIR}/share/vcpkg-cmake/vcpkg-port-config.cmake")
2
+ include("${CURRENT_HOST_INSTALLED_DIR}/share/vcpkg-cmake-config/vcpkg-port-config.cmake")
3
+ include("${CMAKE_CURRENT_LIST_DIR}/qt_install_copyright.cmake")
4
+
5
+ if(QT_IS_LATEST AND PORT STREQUAL "qtbase")
6
+ include("${CMAKE_CURRENT_LIST_DIR}/qt_port_details-latest.cmake")
7
+ else()
8
+ include("${CMAKE_CURRENT_LIST_DIR}/qt_port_details.cmake")
9
+ endif()
10
+ #set(PORT_DEBUG ON)
11
+
12
+ if(NOT DEFINED QT6_DIRECTORY_PREFIX)
13
+ set(QT6_DIRECTORY_PREFIX "Qt6/")
14
+ endif()
15
+
16
+ macro(qt_stop_on_update)
17
+ if(QT_UPDATE_VERSION)
18
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled CACHE INTERNAL "")
19
+ return()
20
+ endif()
21
+ endmacro()
22
+
23
+ function(qt_download_submodule)
24
+ cmake_parse_arguments(PARSE_ARGV 0 "_qarg" ""
25
+ ""
26
+ "PATCHES")
27
+
28
+ if(QT_UPDATE_VERSION)
29
+ set(VCPKG_USE_HEAD_VERSION ON)
30
+ set(UPDATE_PORT_GIT_OPTIONS
31
+ HEAD_REF "${QT_GIT_TAG}")
32
+ endif()
33
+
34
+ vcpkg_from_git(
35
+ OUT_SOURCE_PATH SOURCE_PATH
36
+ URL "https://code.qt.io/qt/${PORT}.git"
37
+ REF "${${PORT}_REF}"
38
+ ${UPDATE_PORT_GIT_OPTIONS}
39
+ ${QT_FETCH_REF}
40
+ PATCHES ${_qarg_PATCHES}
41
+ )
42
+
43
+ if(QT_UPDATE_VERSION)
44
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled CACHE INTERNAL "")
45
+ message(STATUS "VCPKG_HEAD_VERSION:${VCPKG_HEAD_VERSION}")
46
+ file(APPEND "${VCPKG_ROOT_DIR}/ports/qtbase/cmake/qt_new_refs.cmake" "set(${PORT}_REF ${VCPKG_HEAD_VERSION})\n")
47
+ endif()
48
+ set(SOURCE_PATH "${SOURCE_PATH}" PARENT_SCOPE)
49
+ endfunction()
50
+
51
+
52
+ function(qt_cmake_configure)
53
+ cmake_parse_arguments(PARSE_ARGV 0 "_qarg" "DISABLE_NINJA;DISABLE_PARALLEL_CONFIGURE"
54
+ ""
55
+ "TOOL_NAMES;OPTIONS;OPTIONS_DEBUG;OPTIONS_RELEASE;OPTIONS_MAYBE_UNUSED")
56
+
57
+ vcpkg_find_acquire_program(PERL) # Perl is probably required by all qt ports for syncqt
58
+ get_filename_component(PERL_PATH ${PERL} DIRECTORY)
59
+ vcpkg_add_to_path(${PERL_PATH})
60
+ if(NOT PORT STREQUAL "qtwebengine") # qtwebengine requires python2
61
+ vcpkg_find_acquire_program(PYTHON3) # Python is required by some qt ports
62
+ get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY)
63
+ vcpkg_add_to_path(${PYTHON3_PATH})
64
+ endif()
65
+
66
+ if(NOT PORT MATCHES "^qtbase")
67
+ list(APPEND _qarg_OPTIONS "-DQT_SYNCQT:PATH=${CURRENT_HOST_INSTALLED_DIR}/tools/Qt6/bin/syncqt.pl")
68
+ endif()
69
+ set(PERL_OPTION "-DHOST_PERL:PATH=${PERL}")
70
+
71
+ set(ninja_option "")
72
+ if(_qarg_DISABLE_NINJA)
73
+ set(ninja_option WINDOWS_USE_MSBUILD)
74
+ endif()
75
+
76
+ set(disable_parallel "")
77
+ if(_qarg_DISABLE_PARALLEL_CONFIGURE)
78
+ set(disable_parallel DISABLE_PARALLEL_CONFIGURE)
79
+ endif()
80
+
81
+ if(VCPKG_CROSSCOMPILING)
82
+ list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH=${CURRENT_HOST_INSTALLED_DIR}")
83
+ list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH_CMAKE_DIR:PATH=${CURRENT_HOST_INSTALLED_DIR}/share")
84
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 AND VCPKG_TARGET_IS_WINDOWS) # Remove if PR #16111 is merged
85
+ list(APPEND _qarg_OPTIONS -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_PROCESSOR:STRING=ARM64 -DCMAKE_SYSTEM_NAME:STRING=Windows)
86
+ endif()
87
+ endif()
88
+
89
+ # Disable warning for CMAKE_(REQUIRE|DISABLE)_FIND_PACKAGE_<packagename>
90
+ string(REGEX MATCHALL "CMAKE_DISABLE_FIND_PACKAGE_[^:=]+" disabled_find_package "${_qarg_OPTIONS}")
91
+ list(APPEND _qarg_OPTIONS_MAYBE_UNUSED ${disabled_find_package})
92
+
93
+ string(REGEX MATCHALL "CMAKE_REQUIRE_FIND_PACKAGE_[^:=]+(:BOOL)?=OFF" require_find_package "${_qarg_OPTIONS}")
94
+ list(TRANSFORM require_find_package REPLACE "(:BOOL)?=OFF" "")
95
+ list(APPEND _qarg_OPTIONS_MAYBE_UNUSED ${require_find_package})
96
+
97
+ # Disable unused warnings for disabled features. Qt might decide to not emit the feature variables if other features are deactivated.
98
+ string(REGEX MATCHALL "(QT_)?FEATURE_[^:=]+(:BOOL)?=OFF" disabled_features "${_qarg_OPTIONS}")
99
+ list(TRANSFORM disabled_features REPLACE "(:BOOL)?=OFF" "")
100
+ list(APPEND _qarg_OPTIONS_MAYBE_UNUSED ${disabled_features})
101
+
102
+ vcpkg_cmake_configure(
103
+ SOURCE_PATH "${SOURCE_PATH}"
104
+ ${ninja_option}
105
+ ${disable_parallel}
106
+ OPTIONS
107
+ -DQT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS:BOOL=ON # We don't want Qt to screw with users toolchain settings.
108
+ #-DQT_HOST_PATH=<somepath> # For crosscompiling
109
+ #-DQT_PLATFORM_DEFINITION_DIR=mkspecs/win32-msvc
110
+ #-DQT_QMAKE_TARGET_MKSPEC=win32-msvc
111
+ #-DQT_USE_CCACHE
112
+ -DQT_BUILD_EXAMPLES:BOOL=OFF
113
+ -DQT_BUILD_TESTS:BOOL=OFF
114
+ -DQT_BUILD_BENCHMARKS:BOOL=OFF
115
+ ${PERL_OPTION}
116
+ -DINSTALL_BINDIR:STRING=bin
117
+ -DINSTALL_LIBEXECDIR:STRING=bin
118
+ -DINSTALL_PLUGINSDIR:STRING=${qt_plugindir}
119
+ -DINSTALL_QMLDIR:STRING=${qt_qmldir}
120
+ ${_qarg_OPTIONS}
121
+ OPTIONS_RELEASE
122
+ ${_qarg_OPTIONS_RELEASE}
123
+ -DINSTALL_DOCDIR:STRING=doc/${QT6_DIRECTORY_PREFIX}
124
+ -DINSTALL_INCLUDEDIR:STRING=include/${QT6_DIRECTORY_PREFIX}
125
+ -DINSTALL_DESCRIPTIONSDIR:STRING=share/Qt6/modules
126
+ -DINSTALL_MKSPECSDIR:STRING=share/Qt6/mkspecs
127
+ -DINSTALL_TRANSLATIONSDIR:STRING=translations/${QT6_DIRECTORY_PREFIX}
128
+ OPTIONS_DEBUG
129
+ # -DFEATURE_debug:BOOL=ON only needed by qtbase and auto detected?
130
+ -DINSTALL_DOCDIR:STRING=../doc/${QT6_DIRECTORY_PREFIX}
131
+ -DINSTALL_INCLUDEDIR:STRING=../include/${QT6_DIRECTORY_PREFIX}
132
+ -DINSTALL_TRANSLATIONSDIR:STRING=../translations/${QT6_DIRECTORY_PREFIX}
133
+ -DINSTALL_DESCRIPTIONSDIR:STRING=../share/Qt6/modules
134
+ -DINSTALL_MKSPECSDIR:STRING=../share/Qt6/mkspecs
135
+ ${_qarg_OPTIONS_DEBUG}
136
+ MAYBE_UNUSED_VARIABLES
137
+ INSTALL_BINDIR
138
+ INSTALL_DOCDIR
139
+ INSTALL_LIBEXECDIR
140
+ INSTALL_QMLDIR # No qml files
141
+ INSTALL_TRANSLATIONSDIR # No translations
142
+ INSTALL_PLUGINSDIR # No plugins
143
+ INSTALL_DESCRIPTIONSDIR
144
+ INSTALL_INCLUDEDIR
145
+ HOST_PERL
146
+ QT_SYNCQT
147
+ ${_qarg_OPTIONS_MAYBE_UNUSED}
148
+ )
149
+ set(Z_VCPKG_CMAKE_GENERATOR "${Z_VCPKG_CMAKE_GENERATOR}" PARENT_SCOPE)
150
+ endfunction()
151
+
152
+ function(qt_fix_prl_files)
153
+ file(TO_CMAKE_PATH "${CURRENT_PACKAGES_DIR}/lib" package_dir)
154
+ file(TO_CMAKE_PATH "${package_dir}/lib" lib_path)
155
+ file(TO_CMAKE_PATH "${package_dir}/include/Qt6" include_path)
156
+ file(TO_CMAKE_PATH "${CURRENT_INSTALLED_DIR}" install_prefix)
157
+ file(GLOB_RECURSE prl_files "${CURRENT_PACKAGES_DIR}/*.prl")
158
+ foreach(prl_file IN LISTS prl_files)
159
+ file(READ "${prl_file}" _contents)
160
+ string(REPLACE "${lib_path}" "\$\$[QT_INSTALL_LIBS]" _contents "${_contents}")
161
+ string(REPLACE "${include_path}" "\$\$[QT_INSTALL_HEADERS]" _contents "${_contents}")
162
+ string(REPLACE "${install_prefix}" "\$\$[QT_INSTALL_PREFIX]" _contents "${_contents}")
163
+ string(REPLACE "[QT_INSTALL_PREFIX]/lib/objects-Debug" "[QT_INSTALL_LIBS]/objects-Debug" _contents "${_contents}")
164
+ string(REPLACE "[QT_INSTALL_PREFIX]/Qt6/qml" "[QT_INSTALL_QML]" _contents "${_contents}")
165
+ #Note: This only works without an extra if case since QT_INSTALL_PREFIX is the same for debug and release
166
+ file(WRITE "${prl_file}" "${_contents}")
167
+ endforeach()
168
+ endfunction()
169
+
170
+ function(qt_fixup_and_cleanup)
171
+ cmake_parse_arguments(PARSE_ARGV 0 "_qarg" ""
172
+ ""
173
+ "TOOL_NAMES")
174
+ vcpkg_copy_pdbs()
175
+
176
+ ## Handle PRL files
177
+ qt_fix_prl_files()
178
+
179
+ ## Handle CMake files.
180
+ set(COMPONENTS)
181
+ file(GLOB COMPONENTS_OR_FILES LIST_DIRECTORIES true "${CURRENT_PACKAGES_DIR}/share/Qt6*")
182
+ list(REMOVE_ITEM COMPONENTS_OR_FILES "${CURRENT_PACKAGES_DIR}/share/Qt6")
183
+ foreach(_glob IN LISTS COMPONENTS_OR_FILES)
184
+ if(IS_DIRECTORY "${_glob}")
185
+ string(REPLACE "${CURRENT_PACKAGES_DIR}/share/Qt6" "" _component "${_glob}")
186
+ debug_message("Adding cmake component: '${_component}'")
187
+ list(APPEND COMPONENTS ${_component})
188
+ endif()
189
+ endforeach()
190
+
191
+ foreach(_comp IN LISTS COMPONENTS)
192
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/share/Qt6${_comp}")
193
+ vcpkg_cmake_config_fixup(PACKAGE_NAME "Qt6${_comp}" CONFIG_PATH "share/Qt6${_comp}" TOOLS_PATH "tools/Qt6/bin")
194
+ # Would rather put it into share/cmake as before but the import_prefix correction in vcpkg_cmake_config_fixup is working against that.
195
+ else()
196
+ message(STATUS "WARNING: Qt component ${_comp} not found/built!")
197
+ endif()
198
+ endforeach()
199
+ #fix debug plugin paths (should probably be fixed in vcpkg_cmake_config_fixup)
200
+ file(GLOB_RECURSE DEBUG_CMAKE_TARGETS "${CURRENT_PACKAGES_DIR}/share/**/*Targets-debug.cmake")
201
+ debug_message("DEBUG_CMAKE_TARGETS:${DEBUG_CMAKE_TARGETS}")
202
+ foreach(_debug_target IN LISTS DEBUG_CMAKE_TARGETS)
203
+ vcpkg_replace_string("${_debug_target}" "{_IMPORT_PREFIX}/${qt_plugindir}" "{_IMPORT_PREFIX}/debug/${qt_plugindir}")
204
+ vcpkg_replace_string("${_debug_target}" "{_IMPORT_PREFIX}/${qt_qmldir}" "{_IMPORT_PREFIX}/debug/${qt_qmldir}")
205
+ endforeach()
206
+
207
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
208
+ file(GLOB_RECURSE STATIC_CMAKE_TARGETS "${CURRENT_PACKAGES_DIR}/share/Qt6Qml/QmlPlugins/*.cmake")
209
+ foreach(_plugin_target IN LISTS STATIC_CMAKE_TARGETS)
210
+ # restore a single get_filename_component which was remove by vcpkg_cmake_config_fixup
211
+ vcpkg_replace_string("${_plugin_target}"
212
+ [[get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)]]
213
+ "get_filename_component(_IMPORT_PREFIX \"\${CMAKE_CURRENT_LIST_FILE}\" PATH)\nget_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)")
214
+ endforeach()
215
+ endif()
216
+
217
+ set(qt_tooldest "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin")
218
+ set(qt_searchdir "${CURRENT_PACKAGES_DIR}/bin")
219
+ ## Handle Tools
220
+ foreach(_tool IN LISTS _qarg_TOOL_NAMES)
221
+ if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/bin/${_tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
222
+ debug_message("Removed '${_tool}' from copy tools list since it was not found!")
223
+ list(REMOVE_ITEM _qarg_TOOL_NAMES ${_tool})
224
+ endif()
225
+ endforeach()
226
+ if(_qarg_TOOL_NAMES)
227
+ set(tool_names ${_qarg_TOOL_NAMES})
228
+ vcpkg_copy_tools(TOOL_NAMES ${tool_names} SEARCH_DIR "${qt_searchdir}" DESTINATION "${qt_tooldest}" AUTO_CLEAN)
229
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/${qt_plugindir}")
230
+ file(COPY "${CURRENT_PACKAGES_DIR}/${qt_plugindir}/" DESTINATION "${qt_tooldest}")
231
+ endif()
232
+ endif()
233
+
234
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
235
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/")
236
+ file(COPY "${CURRENT_PACKAGES_DIR}/bin/" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin")
237
+ endif()
238
+ file(GLOB_RECURSE _installed_dll_files RELATIVE "${CURRENT_INSTALLED_DIR}/tools/Qt6/bin" "${CURRENT_INSTALLED_DIR}/tools/Qt6/bin/*.dll")
239
+ foreach(_dll_to_remove IN LISTS _installed_dll_files)
240
+ file(GLOB_RECURSE _packaged_dll_file "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${_dll_to_remove}")
241
+ if(EXISTS "${_packaged_dll_file}")
242
+ file(REMOVE "${_packaged_dll_file}")
243
+ endif()
244
+ endforeach()
245
+ file(GLOB_RECURSE _folders LIST_DIRECTORIES true "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/**/")
246
+ file(GLOB_RECURSE _files "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/**/")
247
+ if(_files)
248
+ list(REMOVE_ITEM _folders ${_files})
249
+ endif()
250
+ foreach(_dir IN LISTS _folders)
251
+ if(NOT "${_remaining_dll_files}" MATCHES "${_dir}")
252
+ file(REMOVE_RECURSE "${_dir}")
253
+ endif()
254
+ endforeach()
255
+ endif()
256
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake/"
257
+ "${CURRENT_PACKAGES_DIR}/debug/share"
258
+ "${CURRENT_PACKAGES_DIR}/lib/cmake/"
259
+ )
260
+
261
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
262
+ file(GLOB_RECURSE _bin_files "${CURRENT_PACKAGES_DIR}/bin/*")
263
+ debug_message("Files in bin: '${_bin_files}'")
264
+ if(NOT _bin_files) # Only clean if empty otherwise let vcpkg throw and error.
265
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/" "${CURRENT_PACKAGES_DIR}/debug/bin/")
266
+ endif()
267
+ endif()
268
+
269
+ endfunction()
270
+
271
+ function(qt_install_submodule)
272
+ cmake_parse_arguments(PARSE_ARGV 0 "_qis" "DISABLE_NINJA"
273
+ ""
274
+ "PATCHES;TOOL_NAMES;CONFIGURE_OPTIONS;CONFIGURE_OPTIONS_DEBUG;CONFIGURE_OPTIONS_RELEASE;CONFIGURE_OPTIONS_MAYBE_UNUSED")
275
+
276
+ set(qt_plugindir ${QT6_DIRECTORY_PREFIX}plugins)
277
+ set(qt_qmldir ${QT6_DIRECTORY_PREFIX}qml)
278
+
279
+ qt_download_submodule(PATCHES ${_qis_PATCHES})
280
+ if(QT_UPDATE_VERSION)
281
+ return()
282
+ endif()
283
+
284
+ if(_qis_DISABLE_NINJA)
285
+ set(_opt DISABLE_NINJA)
286
+ endif()
287
+ qt_cmake_configure(${_opt}
288
+ OPTIONS ${_qis_CONFIGURE_OPTIONS}
289
+ OPTIONS_DEBUG ${_qis_CONFIGURE_OPTIONS_DEBUG}
290
+ OPTIONS_RELEASE ${_qis_CONFIGURE_OPTIONS_RELEASE}
291
+ OPTIONS_MAYBE_UNUSED ${_qis_CONFIGURE_OPTIONS_MAYBE_UNUSED}
292
+ )
293
+
294
+ vcpkg_cmake_install(ADD_BIN_TO_PATH)
295
+
296
+ qt_fixup_and_cleanup(TOOL_NAMES ${_qis_TOOL_NAMES})
297
+
298
+ qt_install_copyright("${SOURCE_PATH}")
299
+ set(SOURCE_PATH "${SOURCE_PATH}" PARENT_SCOPE)
300
+ endfunction()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_port_details-latest.cmake ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(QT_VERSION 6.2.0)
2
+
3
+ if(PORT MATCHES "qtquickcontrols2")
4
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
5
+ message(STATUS "qtquickcontrols2 is integrated in qtdeclarative since Qt 6.2. Please remove your dependency on it!")
6
+ return()
7
+ endif()
8
+ set(QT_GIT_TAG v${QT_VERSION})
9
+
10
+ #set(QT_UPDATE_VERSION TRUE)
11
+ if(QT_UPDATE_VERSION)
12
+ function(vcpkg_extract_source_archive)
13
+ endfunction()
14
+ endif()
15
+ set(QT_IS_LATEST 1)
16
+
17
+ set(QT_PORTS qt
18
+ qtbase
19
+ qttools
20
+ qtdeclarative
21
+ qtsvg
22
+ qt5compat
23
+ qtshadertools
24
+ qtquicktimeline
25
+ qtquick3d
26
+ qttranslations
27
+ qtwayland
28
+ qtdoc
29
+ qtcoap
30
+ qtopcua
31
+ qtimageformats
32
+ qtmqtt
33
+ qtnetworkauth
34
+ # qtquickcontrols2 -> moved into qtdeclarative
35
+ ## New in 6.1
36
+ qtactiveqt
37
+ qtdatavis3d
38
+ #qtdeviceutils
39
+ qtlottie
40
+ qtscxml
41
+ qtvirtualkeyboard
42
+ qtcharts
43
+ ## New in 6.2
44
+ qtconnectivity
45
+ qtlocation
46
+ qtmultimedia
47
+ qtremoteobjects
48
+ qtsensors
49
+ qtserialbus
50
+ qtserialport
51
+ qtwebchannel
52
+ qtwebengine
53
+ qtwebsockets
54
+ qtwebview
55
+ )
56
+
57
+ foreach(_port IN LISTS QT_PORTS)
58
+ set(${_port}_TAG ${QT_GIT_TAG})
59
+ endforeach()
60
+ set(qtbase_REF 0c2d00de3488116db9f9d657fe18bcb972a83792)
61
+ set(qtshadertools_REF 119cd6e9c9e89f93b74db28f261382a2fcfe504e)
62
+ set(qtdeclarative_REF 37da36c97d9d557945abca3cea5c68d9985a06e3)
63
+ set(qt5compat_REF 291993c7813ec706e54069c7de339edfdd385c0d)
64
+ set(qttools_REF 00efbf90f978afefdcece314d19b79459eee2211) # Additional refs in portfile due to submodule
65
+ set(qtcoap_REF be7822dc920a3e3eb252d5693a7153aa606d3dc1)
66
+ set(qtdoc_REF 48a1fbab30a9f57f011fdea8ec2b47048dce4069)
67
+ set(qtimageformats_REF 7bb9dc839c0dd0806445fd475b027a82c961f686)
68
+ set(qtmqtt_REF 4fd647e23d95c522c45d86be584d18578f894823)
69
+ set(qtnetworkauth_REF aa23db40ca552d60383dea17d703b1cc0cbeace4)
70
+ set(qtopcua_REF cfb3767b2a6785e0437b99c015cb6aef7f40189c)
71
+ set(qtquicktimeline_REF e9578a6949f6192440df1cb261ed9de98a9de7d7)
72
+ set(qtquick3d_REF eaf9c60073b95b03c006279f08d4947699c32a4b)
73
+ set(qtsvg_REF cceecea040ca1247db0212217d07ec2c331004ba)
74
+ set(qttranslations_REF 03a146236e69ee41c0405a8b5707104b4ac0c6e8)
75
+ set(qtwayland_REF 8c4900dda393752faab14e39e60aec6b545c8a0f)
76
+ # set(qtquickcontrols2_REF 0) # Moved into qtdeclarative since Qt 6.2
77
+ ### New in 6.1
78
+ set(qtactiveqt_REF 94c924a8501dba7487bf2648bdf06aefc33e726d)
79
+ set(qtcharts_REF d56b9f3de193cbf561f4b1ec332d8598dbdaaaca)
80
+ set(qtdatavis3d_REF 5c90e6642882b3b7440608f71b96ce28908f0ee8)
81
+ #set(qtdeviceutils_REF 0) #missing tag
82
+ set(qtlottie_REF 48df4f1067514a3ae8b895b5f78fca09029d9288)
83
+ set(qtscxml_REF 68ac6986b9a9b3acfcab1e445edc7c198bbf7344)
84
+ set(qtvirtualkeyboard_REF 0e49e057777cd6c3f93d123e59a9399a2cf0040f)
85
+ ### New in 6.2
86
+ set(qtconnectivity_REF 78e7ffbe16469a19fa34cad711e0898d91bd2f30)
87
+ set(qtlocation_REF 47a945b0d054539eab3ba1cf3a1d7bf5977051d6)
88
+ set(qtmultimedia_REF d7d0e676abd4b280feb0d5105846378b64782487)
89
+ set(qtremoteobjects_REF 58932ba10420faa1cc989ed5bf101ff06475a4fc)
90
+ set(qtsensors_REF 192ca0fd252066101eb0456b957fdb51618fa7db)
91
+ set(qtserialbus_REF ce089bef29ca55d7fe46508d92d3e498eb5bb847)
92
+ set(qtserialport_REF 14dc155f3640af94c6ecff2de1489e14cd5b0047)
93
+ set(qtwebchannel_REF 09315a8d626e106953723ce68e68d6b4b97c2c52)
94
+ set(qtwebengine_REF 261d72c8afc72faf23d169a64749db216db68859) # Additional refs in portfile due to submodule
95
+ set(qtwebsockets_REF a01c2d6638fad700db23863258b7fc4a1ecdd542)
96
+ set(qtwebview_REF ca0053b6a5320046508e9ba205df775a62c1a211)
97
+
98
+ if(QT_UPDATE_VERSION)
99
+ message(STATUS "Running Qt in automatic version port update mode!")
100
+ set(_VCPKG_INTERNAL_NO_HASH_CHECK 1)
101
+ if("${PORT}" MATCHES "qtbase")
102
+ file(REMOVE "${CMAKE_CURRENT_LIST_DIR}/cmake/qt_new_refs.cmake")
103
+ foreach(_current_qt_port IN LISTS QT_PORTS)
104
+ set(_current_control "${VCPKG_ROOT_DIR}/ports/${_current_qt_port}/vcpkg.json")
105
+ file(READ "${_current_control}" _control_contents)
106
+ string(REGEX REPLACE "\"version-(string|semver)\": [^\n]+\n" "\"version-semver\": \"${QT_VERSION}\",\n" _control_contents "${_control_contents}")
107
+ string(REGEX REPLACE "\"port-version\": [^\n]+\n" "" _control_contents "${_control_contents}")
108
+ file(WRITE "${_current_control}" "${_control_contents}")
109
+ #need to run a vcpkg format-manifest --all after update once
110
+ endforeach()
111
+ endif()
112
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/cmake/qt_port_details.cmake ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(QT_VERSION 6.2.4)
2
+
3
+ if(PORT MATCHES "qtquickcontrols2")
4
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
5
+ message(STATUS "qtquickcontrols2 is integrated in qtdeclarative since Qt 6.2. Please remove your dependency on it!")
6
+ return()
7
+ endif()
8
+
9
+ ### Setting up the git tag.
10
+ set(QT_FETCH_REF "")
11
+ set(QT_GIT_TAG "v${QT_VERSION}")
12
+ if(PORT MATCHES "qtdeviceutilities|qtlocation|qtinterfaceframework|qtapplicationmanager")
13
+ # So much for consistency ....
14
+ set(QT_FETCH_REF FETCH_REF "${QT_VERSION}")
15
+ set(QT_GIT_TAG "${QT_VERSION}")
16
+ endif()
17
+
18
+ #set(QT_UPDATE_VERSION TRUE)
19
+ if(QT_UPDATE_VERSION)
20
+ function(vcpkg_extract_source_archive)
21
+ endfunction()
22
+ endif()
23
+
24
+ set(QT_PORTS qt
25
+ qtbase
26
+ qttools
27
+ qtdeclarative
28
+ qtsvg
29
+ qt5compat
30
+ qtshadertools
31
+ qtquicktimeline
32
+ qtquick3d
33
+ qttranslations
34
+ qtwayland
35
+ qtdoc
36
+ qtcoap
37
+ qtopcua
38
+ qtimageformats
39
+ qtmqtt
40
+ qtnetworkauth
41
+ # qtquickcontrols2 -> moved into qtdeclarative
42
+ ## New in 6.1
43
+ qtactiveqt
44
+ qtdatavis3d
45
+ qtdeviceutilities
46
+ qtlottie
47
+ qtscxml
48
+ qtvirtualkeyboard
49
+ qtcharts
50
+ ## New in 6.2
51
+ qtconnectivity
52
+ qtpositioning
53
+ qtlocation
54
+ qtmultimedia
55
+ qtremoteobjects
56
+ qtsensors
57
+ qtserialbus
58
+ qtserialport
59
+ qtwebchannel
60
+ qtwebengine
61
+ qtwebsockets
62
+ qtwebview
63
+ ## New in 6.2.2
64
+ qtinterfaceframework
65
+ qtapplicationmanager
66
+ )
67
+
68
+ foreach(_port IN LISTS QT_PORTS)
69
+ set(${_port}_TAG ${QT_GIT_TAG})
70
+ endforeach()
71
+ set(qtbase_REF 597359f7d0736917123842dee63a7ae45522eb8e )
72
+ set(qtshadertools_REF d954aeb073375ee1edda4d6b2956c3c79b26b386 )
73
+ set(qtdeclarative_REF 614d85d460fa46e947eeb4281609ce5453a29e5c )
74
+ set(qt5compat_REF c5dab10ba77dd2701dbd2d7b69998fbee90557f2 )
75
+ set(qttools_REF a60e0e5dfb2af83ffb1adda28028b24e21fe9131 ) # Additional refs below
76
+ set(qtcoap_REF 29df645fc165087e74b603e7ad20033381006fb5 )
77
+ set(qtdoc_REF 5c70158a15f23224a76b6919ab06eefee6ed187e )
78
+ set(qtimageformats_REF 356fb7846b5bc002b2d34e23253fda1dffed7932 )
79
+ set(qtmqtt_REF 9ad6c48474c2b94c62a518dc3dc7e65d30a6309e )
80
+ set(qtnetworkauth_REF d5ffb7549dd1e6139b746021c4d40053d0f15950 )
81
+ set(qtopcua_REF 4a0dd4334d98bea48acda1e203ab2c31f207bad3 )
82
+ set(qtquicktimeline_REF 6a06bdbaa55d1c165e992732f2e3dc923846b921 )
83
+ set(qtquick3d_REF d126dea81f48386ef24e8b30e1328c40e72c4861 )
84
+ set(qtsvg_REF 77ea18adfb91c591f249f442e0ffc0079023e431 )
85
+ set(qttranslations_REF 87f95df09b1fc388ea15ce208a349d6b1deac2a4 )
86
+ set(qtwayland_REF 6bdaed8301336750dda95823ed0dfac4828ebab6 )
87
+ ### New in 6.1
88
+ set(qtactiveqt_REF 5dd7acd1395627e6bd0d87beb148957059c1a3c6 )
89
+ set(qtcharts_REF 7184ea521d04ec13587562c3275ae698fa9a722e )
90
+ set(qtdatavis3d_REF 74c469d4926f59264c5cbc47fe301fe4713aa358 )
91
+ set(qtdeviceutilities_REF f7333510b4dcfe32eb9065a63c434704750d4fb6 )
92
+ set(qtlottie_REF fd61d8e92cfacbd3d10f31b176a7cde911525632 )
93
+ set(qtscxml_REF 63455c888e012fdc682c32fd3d0de96127721bd4 )
94
+ set(qtvirtualkeyboard_REF ffe9bba23ae45662d25ac3d90167d794e0d6c828 )
95
+ ### New in 6.2
96
+ set(qtconnectivity_REF f0ac95d1685f4f0f2e72fb42800b17d7738ccefb )
97
+ set(qtmultimedia_REF 3423c7172f948f27ff0512d1d2db4ea97fc0e9c0 )
98
+ set(qtremoteobjects_REF 2d0f27e736211e2a6b9d08345f65c736a17a67eb )
99
+ set(qtserialport_REF c7dc6737a2e98af81900f55f814cf79a6d579779 )
100
+ set(qtsensors_REF 32dda47f507e74ef7ed33290545b762a0c20e532 )
101
+ set(qtserialbus_REF 1ebbf87cbc90c22817785bffc563d4bb86525abc )
102
+ set(qtlocation_REF 0 ) # Currently empty port
103
+ set(qtwebchannel_REF e1014dcf9a924d3b8fd3450a3360381a0a8fc6ab )
104
+ set(qtwebengine_REF cc7181c12d1d1605ecab6c448df4a684278d01d8 ) # Additional refs below
105
+ set(qtwebsockets_REF fd509016da201ed63122c5ec79355930f2489ee8 )
106
+ set(qtwebview_REF aade84c30fbbc85fe5a8c5e49172a02a7522623d )
107
+ set(qtpositioning_REF 3a68165bc88f9ddd165567d30887147d2d71915b )
108
+ ### New in Qt 6.2.2
109
+ set(qtapplicationmanager_REF 2626ae6e9ce84aebd88a163153719c07d7f65b7d )
110
+ set(qtinterfaceframework_REF 71512be8758c75b4b6b0130d6b623f564c6bf227 )
111
+
112
+ #Submodule stuff:
113
+ set(qttools_qlitehtml_REF 4931b7aa30f256c20573d283561aa432fecf8f38)
114
+ set(qttools_litehtml_REF 6236113734bb0a28467e5999e86fdd2834be8e01)
115
+ set(qttools_litehtml_HASH 38effe92aaebd7113ad3bf3b70c1b3564d6226a766aa968c80ab35fa90ae78d601486226f97d16fa5bd3abf314db19f9f0c90e31de91e87bda82cde27f0a57dc)
116
+ set(qtwebengine_chromium_REF b33b4266df8c333d3d273ae4665d6b322eee33c6)
117
+
118
+ if(QT_UPDATE_VERSION)
119
+ message(STATUS "Running Qt in automatic version port update mode!")
120
+ set(_VCPKG_INTERNAL_NO_HASH_CHECK 1)
121
+ if("${PORT}" MATCHES "qtbase")
122
+ file(REMOVE "${CMAKE_CURRENT_LIST_DIR}/cmake/qt_new_refs.cmake")
123
+ foreach(_current_qt_port IN LISTS QT_PORTS)
124
+ set(_current_control "${VCPKG_ROOT_DIR}/ports/${_current_qt_port}/vcpkg.json")
125
+ file(READ "${_current_control}" _control_contents)
126
+ string(REGEX REPLACE "\"version(-(string|semver))?\": [^\n]+\n" "\"version\": \"${QT_VERSION}\",\n" _control_contents "${_control_contents}")
127
+ string(REGEX REPLACE "\"port-version\": [^\n]+\n" "" _control_contents "${_control_contents}")
128
+ file(WRITE "${_current_control}" "${_control_contents}")
129
+ #need to run a vcpkg format-manifest --all after update once
130
+ endforeach()
131
+ endif()
132
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/config_install.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
2
+ index bd186c28b..edee52e8b 100644
3
+ --- a/cmake/QtBuild.cmake
4
+ +++ b/cmake/QtBuild.cmake
5
+ @@ -194,7 +194,7 @@ function(qt_internal_set_up_global_paths)
6
+ if(QT_CONFIG_INSTALL_DIR)
7
+ string(APPEND QT_CONFIG_INSTALL_DIR "/")
8
+ endif()
9
+ - string(APPEND QT_CONFIG_INSTALL_DIR ${__config_path_part})
10
+ + string(APPEND QT_CONFIG_INSTALL_DIR "share")
11
+
12
+ set(QT_BUILD_DIR "${QT_BUILD_DIR}" PARENT_SCOPE)
13
+ set(QT_INSTALL_DIR "${QT_INSTALL_DIR}" PARENT_SCOPE)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/dont_force_cmakecache.patch ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/QtPostProcessHelpers.cmake b/cmake/QtPostProcessHelpers.cmake
2
+ index 4f8106dfa..bec5c402e 100644
3
+ --- a/cmake/QtPostProcessHelpers.cmake
4
+ +++ b/cmake/QtPostProcessHelpers.cmake
5
+ @@ -472,7 +472,7 @@ function(qt_generate_install_prefixes out_var)
6
+
7
+ foreach(var ${vars})
8
+ get_property(docstring CACHE "${var}" PROPERTY HELPSTRING)
9
+ - string(APPEND content "set(${var} \"${${var}}\" CACHE STRING \"${docstring}\" FORCE)\n")
10
+ + string(APPEND content "set(${var} \"${${var}}\" CACHE STRING \"${docstring}\" )\n")
11
+ endforeach()
12
+
13
+ set(${out_var} "${content}" PARENT_SCOPE)
14
+ @@ -528,7 +528,7 @@ qt_internal_force_set_cmake_build_type_conditionally(
15
+ endif()
16
+ if(CMAKE_CONFIGURATION_TYPES)
17
+ string(APPEND multi_config_specific
18
+ - " set(CMAKE_CONFIGURATION_TYPES \"${CMAKE_CONFIGURATION_TYPES}\" CACHE STRING \"\" FORCE)\n")
19
+ + " set(CMAKE_CONFIGURATION_TYPES \"${CMAKE_CONFIGURATION_TYPES}\" CACHE STRING \"\")\n")
20
+ endif()
21
+ if(CMAKE_TRY_COMPILE_CONFIGURATION)
22
+ string(APPEND multi_config_specific
23
+ @@ -655,7 +655,7 @@ endif()\n")
24
+ # find_package(Qt6Core) is called in case if the feature was disabled.
25
+ string(APPEND QT_EXTRA_BUILD_INTERNALS_VARS "
26
+ if(NOT QT_SKIP_BUILD_INTERNALS_PKG_CONFIG_FEATURE)
27
+ - set(FEATURE_pkg_config \"${FEATURE_pkg_config}\" CACHE STRING \"Using pkg-config\" FORCE)
28
+ + set(FEATURE_pkg_config \"${FEATURE_pkg_config}\" CACHE STRING \"Using pkg-config\")
29
+ endif()\n")
30
+
31
+ # The OpenSSL root dir needs to be saved so that repos other than qtbase (like qtopcua) can
32
+ diff --git a/cmake/QtBuildInternalsExtra.cmake.in b/cmake/QtBuildInternalsExtra.cmake.in
33
+ index cadf3847c..6ec51fd63 100644
34
+ --- a/cmake/QtBuildInternalsExtra.cmake.in
35
+ +++ b/cmake/QtBuildInternalsExtra.cmake.in
36
+ @@ -41,11 +41,11 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND
37
+ AND "${CMAKE_STAGING_PREFIX}" STREQUAL ""
38
+ AND NOT QT_BUILD_INTERNALS_NO_FORCE_SET_STAGING_PREFIX)
39
+ set(CMAKE_STAGING_PREFIX "${qtbi_new_prefix}" CACHE PATH
40
+ - "Staging path prefix, prepended onto install directories on the host machine." FORCE)
41
+ + "Staging path prefix, prepended onto install directories on the host machine." )
42
+ set(qtbi_new_prefix "${qtbi_orig_prefix}")
43
+ endif()
44
+ set(CMAKE_INSTALL_PREFIX "${qtbi_new_prefix}" CACHE PATH
45
+ - "Install path prefix, prepended onto install directories." FORCE)
46
+ + "Install path prefix, prepended onto install directories." )
47
+ unset(qtbi_orig_prefix)
48
+ unset(qtbi_real_orig_prefix)
49
+ unset(qtbi_new_prefix)
50
+ @@ -138,7 +138,7 @@ function(qt_internal_force_set_cmake_build_type_conditionally value)
51
+ AND NOT __qt_toolchain_cmake_build_type_before_project_call
52
+ AND NOT QT_NO_FORCE_SET_CMAKE_BUILD_TYPE
53
+ AND NOT __qt_internal_extras_is_multi_config)
54
+ - set(CMAKE_BUILD_TYPE "${value}" CACHE STRING "Choose the type of build." FORCE)
55
+ + set(CMAKE_BUILD_TYPE "${value}" CACHE STRING "Choose the type of build.")
56
+ endif()
57
+ endfunction()
58
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/env.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake
2
+ index 279ab07dd..951fd3d36 100644
3
+ --- a/cmake/QtTestHelpers.cmake
4
+ +++ b/cmake/QtTestHelpers.cmake
5
+ @@ -653,9 +653,9 @@ function(qt_internal_collect_command_environment out_path out_plugin_path)
6
+ # The regular CMAKE_INSTALL_PREFIX can be different for example when building standalone tests.
7
+ # Any given CMAKE_INSTALL_PREFIX takes priority over qt_relocatable_install_prefix for the
8
+ # PATH environment variable.
9
+ - set(install_prefixes "${CMAKE_INSTALL_PREFIX}")
10
+ + set(install_prefixes "${CMAKE_INSTALL_PREFIX}$<$<CONFIG:DEBUG>:/debug>")
11
+ if(QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX)
12
+ - list(APPEND install_prefixes "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}")
13
+ + list(APPEND install_prefixes "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}$<$<CONFIG:DEBUG>:/debug>")
14
+ endif()
15
+
16
+ file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}" test_env_path)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/fix_cmake_build.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/QtBuildInternalsExtra.cmake.in b/cmake/QtBuildInternalsExtra.cmake.in
2
+ index ffc9d90f8..0b3a7d59e 100644
3
+ --- a/cmake/QtBuildInternalsExtra.cmake.in
4
+ +++ b/cmake/QtBuildInternalsExtra.cmake.in
5
+ @@ -51,8 +51,8 @@ endif()
6
+ set(QT_WILL_INSTALL @QT_WILL_INSTALL@ CACHE BOOL
7
+ "Boolean indicating if doing a Qt prefix build (vs non-prefix build)." FORCE)
8
+
9
+ -set(QT_SOURCE_TREE "@QT_SOURCE_TREE@" CACHE PATH
10
+ -"A path to the source tree of the previously configured QtBase project." FORCE)
11
+ +# set(QT_SOURCE_TREE "@QT_SOURCE_TREE@" CACHE PATH
12
+ +# "A path to the source tree of the previously configured QtBase project." FORCE)
13
+
14
+ # Propagate decision of building tests and examples to other repositories.
15
+ set(QT_BUILD_TESTS @QT_BUILD_TESTS@ CACHE BOOL "Build the testing tree.")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/fix_egl.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake
2
+ index eafbc1ff9..dd4068838 100644
3
+ --- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake
4
+ +++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake
5
+ @@ -82,6 +82,7 @@ find_path(EGL_INCLUDE_DIR
6
+ find_library(EGL_LIBRARY
7
+ NAMES
8
+ EGL
9
+ + libEGL # required to find angle on windows within vcpkg.
10
+ HINTS
11
+ ${PKG_EGL_LIBRARY_DIRS}
12
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/harfbuzz.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/FindWrapSystemHarfbuzz.cmake b/cmake/FindWrapSystemHarfbuzz.cmake
2
+ index 3cb44aa76..9bf0d7165 100644
3
+ --- a/cmake/FindWrapSystemHarfbuzz.cmake
4
+ +++ b/cmake/FindWrapSystemHarfbuzz.cmake
5
+ @@ -6,7 +6,7 @@ if(TARGET WrapSystemHarfbuzz::WrapSystemHarfbuzz)
6
+ endif()
7
+ set(WrapSystemHarfbuzz_REQUIRED_VARS __harfbuzz_found)
8
+
9
+ -find_package(harfbuzz ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} QUIET)
10
+ +find_package(harfbuzz QUIET) # VCPKG is missing the version file for harfbuzz.
11
+
12
+ # Gentoo has some buggy version of a harfbuzz Config file. Check if include paths are valid.
13
+ set(__harfbuzz_target_name "harfbuzz::harfbuzz")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/portfile.cmake ADDED
@@ -0,0 +1,411 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Reminder for myself and everybody else:
2
+ # Qt cross module dependency information within the Qt respository is wrong and/or incomplete.
3
+ # Always check the toplevel CMakeLists.txt for the find_package call and search for linkage against the Qt:: targets
4
+ # Often enough certain (bigger) dependencies are only used to build examples and/or tests.
5
+ # As such getting the correct dependency information relevant for vcpkg requires a manual search/check
6
+
7
+ #set(QT_IS_LATEST ON)
8
+
9
+ ## All above goes into the qt_port_hashes in the future
10
+ include("${CMAKE_CURRENT_LIST_DIR}/cmake/qt_install_submodule.cmake")
11
+
12
+ set(${PORT}_PATCHES
13
+ allow_outside_prefix.patch
14
+ clang-cl_source_location.patch
15
+ config_install.patch
16
+ dont_force_cmakecache.patch
17
+ fix_cmake_build.patch
18
+ harfbuzz.patch
19
+ fix_egl.patch
20
+ )
21
+
22
+ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
23
+ list(APPEND ${PORT}_PATCHES env.patch)
24
+ endif()
25
+
26
+ if(NOT VCPKG_USE_HEAD_VERSION AND NOT QT_IS_LATEST)
27
+ list(APPEND ${PORT}_PATCHES
28
+ )
29
+ endif()
30
+
31
+ if(VCPKG_TARGET_IS_WINDOWS AND NOT "doubleconversion" IN_LIST FEATURES)
32
+ message(FATAL_ERROR "${PORT} requires feature doubleconversion on windows!" )
33
+ endif()
34
+
35
+ # Features can be found via searching for qt_feature in all configure.cmake files in the source:
36
+ # The files also contain information about the Platform for which it is searched
37
+ # Always use FEATURE_<feature> in vcpkg_cmake_configure
38
+ # (using QT_FEATURE_X overrides Qts condition check for the feature.)
39
+ # Theoretically there is a feature for every widget to enable/disable it but that is way to much for vcpkg
40
+
41
+ set(input_vars doubleconversion freetype harfbuzz libb2 jpeg libmd4c png sql-sqlite)
42
+ set(INPUT_OPTIONS)
43
+ foreach(_input IN LISTS input_vars)
44
+ if(_input MATCHES "(png|jpeg)" )
45
+ list(APPEND INPUT_OPTIONS -DINPUT_lib${_input}:STRING=)
46
+ elseif(_input MATCHES "(sql-sqlite)") # Not yet used by the cmake build
47
+ else()
48
+ list(APPEND INPUT_OPTIONS -DINPUT_${_input}:STRING=)
49
+ endif()
50
+ if("${_input}" IN_LIST FEATURES)
51
+ string(APPEND INPUT_OPTIONS system)
52
+ elseif(_input STREQUAL "libb2" AND NOT VCPKG_TARGET_IS_WINDOWS)
53
+ string(APPEND INPUT_OPTIONS system)
54
+ elseif(_input STREQUAL "libmd4c")
55
+ string(APPEND INPUT_OPTIONS qt) # libmd4c is not yet in VCPKG (but required by qtdeclarative)
56
+ else()
57
+ string(APPEND INPUT_OPTIONS no)
58
+ endif()
59
+ endforeach()
60
+
61
+ # General features:
62
+
63
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
64
+ FEATURES
65
+ "appstore-compliant" FEATURE_appstore_compliant
66
+ "zstd" FEATURE_zstd
67
+ "framework" FEATURE_framework
68
+ "concurrent" FEATURE_concurrent
69
+ "concurrent" FEATURE_future
70
+ "concurrent" FEATURE_thread
71
+ "dbus" FEATURE_dbus
72
+ "gui" FEATURE_gui
73
+ "network" FEATURE_network
74
+ "sql" FEATURE_sql
75
+ "widgets" FEATURE_widgets
76
+ #"xml" FEATURE_xml # Required to build moc
77
+ "testlib" FEATURE_testlib
78
+ "zstd" CMAKE_REQUIRE_FIND_PACKAGE_zstd
79
+ ${require_features}
80
+ INVERTED_FEATURES
81
+ "zstd" CMAKE_DISABLE_FIND_PACKAGE_ZSTD
82
+ "dbus" CMAKE_DISABLE_FIND_PACKAGE_WrapDBus1
83
+ )
84
+
85
+ list(APPEND FEATURE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libudev:BOOL=ON)
86
+ list(APPEND FEATURE_OPTIONS -DFEATURE_xml:BOOL=ON)
87
+
88
+ if(VCPKG_QT_NAMESPACE)
89
+ list(APPEND FEATURE_OPTIONS "-DQT_NAMESPACE:STRING=${VCPKG_QT_NAMESPACE}")
90
+ endif()
91
+
92
+ # Corelib features:
93
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_CORE_OPTIONS
94
+ FEATURES
95
+ "doubleconversion" FEATURE_doubleconversion
96
+ "glib" FEATURE_glib
97
+ "icu" FEATURE_icu
98
+ "pcre2" FEATURE_pcre2
99
+ #"icu" CMAKE_REQUIRE_FIND_PACKAGE_ICU
100
+ "glib" CMAKE_REQUIRE_FIND_PACKAGE_GLIB2
101
+ INVERTED_FEATURES
102
+ #"doubleconversion" CMAKE_DISABLE_FIND_PACKAGE_WrapDoubleConversion # Required
103
+ #"pcre2" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemPCRE2 # Bug in qt cannot be deactivated
104
+ "icu" CMAKE_DISABLE_FIND_PACKAGE_ICU
105
+ "glib" CMAKE_DISABLE_FIND_PACKAGE_GLIB2
106
+ )
107
+
108
+ list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_LTTngUST:BOOL=ON)
109
+ list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_PPS:BOOL=ON)
110
+ list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Slog2:BOOL=ON)
111
+ list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libsystemd:BOOL=ON)
112
+
113
+ # Network features:
114
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_NET_OPTIONS
115
+ FEATURES
116
+ "openssl" FEATURE_openssl
117
+ "brotli" FEATURE_brotli
118
+ #"brotli" CMAKE_REQUIRE_FIND_PACKAGE_WrapBrotli
119
+ #"openssl" CMAKE_REQUIRE_FIND_PACKAGE_WrapOpenSSL
120
+ INVERTED_FEATURES
121
+ "brotli" CMAKE_DISABLE_FIND_PACKAGE_WrapBrotli
122
+ "openssl" CMAKE_DISABLE_FIND_PACKAGE_WrapOpenSSL
123
+ )
124
+
125
+ if("openssl" IN_LIST FEATURES)
126
+ list(APPEND FEATURE_NET_OPTIONS -DINPUT_openssl=linked)
127
+ else()
128
+ list(APPEND FEATURE_NET_OPTIONS -DINPUT_openssl=no)
129
+ endif()
130
+
131
+ list(APPEND FEATURE_NET_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libproxy:BOOL=ON)
132
+ list(APPEND FEATURE_NET_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_GSSAPI:BOOL=ON)
133
+
134
+ # Gui features:
135
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_GUI_OPTIONS
136
+ FEATURES
137
+ "freetype" FEATURE_freetype # required on windows
138
+ "harfbuzz" FEATURE_harfbuzz
139
+ "fontconfig" FEATURE_fontconfig # NOT WINDOWS
140
+ "jpeg" FEATURE_jpeg
141
+ "png" FEATURE_png
142
+ #"opengl" INPUT_opengl=something
143
+ "xlib" FEATURE_xlib
144
+ "xkb" FEATURE_xkbcommon
145
+ "xcb" FEATURE_xcb
146
+ "xcb-xlib" FEATURE_xcb_xlib
147
+ "xkbcommon-x11" FEATURE_xkbcommon_x11
148
+ "xrender" FEATURE_xrender # requires FEATURE_xcb_native_painting; otherwise disabled.
149
+ "xrender" FEATURE_xcb_native_painting # experimental
150
+ #"vulkan" CMAKE_REQUIRE_FIND_PACKAGE_Vulkan
151
+ #"egl" CMAKE_REQUIRE_FIND_PACKAGE_EGL
152
+ #"fontconfig" CMAKE_REQUIRE_FIND_PACKAGE_Fontconfig
153
+ #"harfbuzz" CMAKE_REQUIRE_FIND_PACKAGE_WrapSystemHarfbuzz
154
+ #"jpeg" CMAKE_REQUIRE_FIND_PACKAGE_JPEG
155
+ #"png" CMAKE_REQUIRE_FIND_PACKAGE_PNG
156
+ #"xlib" CMAKE_REQUIRE_FIND_PACKAGE_X11
157
+ #"xkb" CMAKE_REQUIRE_FIND_PACKAGE_XKB
158
+ #"xcb" CMAKE_REQUIRE_FIND_PACKAGE_XCB
159
+ #"xcb-xlib" CMAKE_REQUIRE_FIND_PACKAGE_X11_XCB
160
+ #"xkbcommon-x11" CMAKE_REQUIRE_FIND_PACKAGE_XKB_COMMON_X11
161
+ #"xrender" CMAKE_REQUIRE_FIND_PACKAGE_XRender
162
+ INVERTED_FEATURES
163
+ "vulkan" CMAKE_DISABLE_FIND_PACKAGE_Vulkan
164
+ "egl" CMAKE_DISABLE_FIND_PACKAGE_EGL
165
+ "fontconfig" CMAKE_DISABLE_FIND_PACKAGE_Fontconfig
166
+ #"freetype" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemFreetype # Bug in qt cannot be deactivated
167
+ "harfbuzz" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemHarfbuzz
168
+ "jpeg" CMAKE_DISABLE_FIND_PACKAGE_JPEG
169
+ "png" CMAKE_DISABLE_FIND_PACKAGE_PNG
170
+ "xlib" CMAKE_DISABLE_FIND_PACKAGE_X11
171
+ "xkb" CMAKE_DISABLE_FIND_PACKAGE_XKB
172
+ "xcb" CMAKE_DISABLE_FIND_PACKAGE_XCB
173
+ "xcb-xlib" CMAKE_DISABLE_FIND_PACKAGE_X11_XCB
174
+ "xkbcommon-x11" CMAKE_DISABLE_FIND_PACKAGE_XKB_COMMON_X11
175
+ "xrender" CMAKE_DISABLE_FIND_PACKAGE_XRender
176
+ # There are more X features but I am unsure how to safely disable them! Most of them seem to be found automaticall with find_package(X11)
177
+ )
178
+
179
+ if("xcb" IN_LIST FEATURES)
180
+ list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xcb=yes)
181
+ else()
182
+ list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xcb=no)
183
+ endif()
184
+ if("xkb" IN_LIST FEATURES)
185
+ list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xkbcommon=yes)
186
+ else()
187
+ list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xkbcommon=no)
188
+ endif()
189
+ list(APPEND FEATURE_GUI_OPTIONS )
190
+
191
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_ATSPI2:BOOL=ON)
192
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_DirectFB:BOOL=ON)
193
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libdrm:BOOL=ON)
194
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_gbm:BOOL=ON)
195
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libinput:BOOL=ON)
196
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Mtdev:BOOL=ON)
197
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_GLESv2:BOOL=ON) # only used if INPUT_opengl is correctly set
198
+ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Tslib:BOOL=ON)
199
+ # sql-drivers features:
200
+
201
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_SQLDRIVERS_OPTIONS
202
+ FEATURES
203
+ "sql-sqlite" FEATURE_system_sqlite
204
+ #"sql-psql" CMAKE_REQUIRE_FIND_PACKAGE_PostgreSQL
205
+ #"sql-sqlite" CMAKE_REQUIRE_FIND_PACKAGE_SQLite3
206
+ INVERTED_FEATURES
207
+ "sql-psql" CMAKE_DISABLE_FIND_PACKAGE_PostgreSQL
208
+ "sql-sqlite" CMAKE_DISABLE_FIND_PACKAGE_SQLite3
209
+ # "sql-db2" FEATURE_sql-db2
210
+ # "sql-ibase" FEATURE_sql-ibase
211
+ # "sql-mysql" FEATURE_sql-mysql
212
+ # "sql-oci" FEATURE_sql-oci
213
+ # "sql-odbc" FEATURE_sql-odbc
214
+ )
215
+
216
+ set(DB_LIST DB2 MySQL Oracle ODBC)
217
+ foreach(_db IN LISTS DB_LIST)
218
+ list(APPEND FEATURE_SQLDRIVERS_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_${_db}:BOOL=ON)
219
+ endforeach()
220
+
221
+ # printsupport features:
222
+ # vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_PRINTSUPPORT_OPTIONS
223
+ # )
224
+ list(APPEND FEATURE_PRINTSUPPORT_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_CUPS:BOOL=ON)
225
+
226
+ # widgets features:
227
+ # vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_WIDGETS_OPTIONS
228
+ # "gtk3" FEATURE_gtk3
229
+ # There are a lot of additional features here to deactivate parts of widgets.
230
+ # )
231
+ list(APPEND FEATURE_WIDGETS_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_GTK3:BOOL=ON)
232
+
233
+ set(TOOL_NAMES
234
+ androiddeployqt
235
+ androidtestrunner
236
+ cmake_automoc_parser
237
+ moc
238
+ qdbuscpp2xml
239
+ qdbusxml2cpp
240
+ qlalr
241
+ qmake
242
+ qmake6
243
+ qvkgen
244
+ rcc
245
+ tracegen
246
+ uic
247
+ qtpaths
248
+ qtpaths6
249
+ )
250
+
251
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
252
+ TOOL_NAMES ${TOOL_NAMES}
253
+ CONFIGURE_OPTIONS
254
+ #--trace-expand
255
+ ${FEATURE_OPTIONS}
256
+ ${FEATURE_CORE_OPTIONS}
257
+ ${FEATURE_NET_OPTIONS}
258
+ ${FEATURE_GUI_OPTIONS}
259
+ ${FEATURE_SQLDRIVERS_OPTIONS}
260
+ ${FEATURE_PRINTSUPPORT_OPTIONS}
261
+ ${FEATURE_WIDGETS_OPTIONS}
262
+ ${INPUT_OPTIONS}
263
+ -DQT_USE_BUNDLED_BundledFreetype:BOOL=FALSE
264
+ -DQT_USE_BUNDLED_BundledHarfbuzz:BOOL=FALSE
265
+ -DQT_USE_BUNDLED_BundledLibpng:BOOL=FALSE
266
+ -DQT_USE_BUNDLED_BundledPcre2:BOOL=FALSE
267
+ -DINPUT_bundled_xcb_xinput:STRING=no
268
+ -DFEATURE_force_debug_info:BOOL=ON
269
+ -DFEATURE_relocatable:BOOL=ON
270
+ CONFIGURE_OPTIONS_RELEASE
271
+ CONFIGURE_OPTIONS_DEBUG
272
+ -DFEATURE_debug:BOOL=ON
273
+ CONFIGURE_OPTIONS_MAYBE_UNUSED
274
+ FEATURE_appstore_compliant # only used for android/ios
275
+ )
276
+
277
+ # Install CMake helper scripts
278
+ if(QT_IS_LATEST)
279
+ set(port_details "${CMAKE_CURRENT_LIST_DIR}/cmake/qt_port_details-latest.cmake")
280
+ else()
281
+ set(port_details "${CMAKE_CURRENT_LIST_DIR}/cmake/qt_port_details.cmake")
282
+ endif()
283
+ file(INSTALL
284
+ "${port_details}"
285
+ DESTINATION
286
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}"
287
+ RENAME
288
+ "qt_port_details.cmake"
289
+ )
290
+ file(COPY
291
+ "${CMAKE_CURRENT_LIST_DIR}/cmake/qt_install_copyright.cmake"
292
+ "${CMAKE_CURRENT_LIST_DIR}/cmake/qt_install_submodule.cmake"
293
+ DESTINATION
294
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}"
295
+ )
296
+
297
+ qt_stop_on_update()
298
+
299
+ set(script_files qt-cmake qt-cmake-private qt-cmake-standalone-test qt-configure-module qt-internal-configure-tests)
300
+ if(CMAKE_HOST_WIN32)
301
+ set(script_suffix .bat)
302
+ else()
303
+ set(script_suffix)
304
+ endif()
305
+ set(other_files
306
+ target_qt.conf
307
+ qt-cmake-private-install.cmake
308
+ syncqt.pl
309
+ android_cmakelist_patcher.sh
310
+ android_emulator_launcher.sh
311
+ ensure_pro_file.cmake
312
+ )
313
+ foreach(_config debug release)
314
+ if(_config MATCHES "debug")
315
+ set(path_suffix debug/)
316
+ else()
317
+ set(path_suffix)
318
+ endif()
319
+ if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/${path_suffix}bin")
320
+ continue()
321
+ endif()
322
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${path_suffix}")
323
+ foreach(script IN LISTS script_files)
324
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/${path_suffix}bin/${script}${script_suffix}")
325
+ set(target_script "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${path_suffix}${script}${script_suffix}")
326
+ file(RENAME "${CURRENT_PACKAGES_DIR}/${path_suffix}bin/${script}${script_suffix}" "${target_script}")
327
+ file(READ "${target_script}" _contents)
328
+ if(_config MATCHES "debug")
329
+ string(REPLACE "\\..\\share\\" "\\..\\..\\..\\..\\share\\" _contents "${_contents}")
330
+ else()
331
+ string(REPLACE "\\..\\share\\" "\\..\\..\\..\\share\\" _contents "${_contents}")
332
+ endif()
333
+ file(WRITE "${target_script}" "${_contents}")
334
+ endif()
335
+ endforeach()
336
+ foreach(other IN LISTS other_files)
337
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/${path_suffix}bin/${other}")
338
+ file(RENAME "${CURRENT_PACKAGES_DIR}/${path_suffix}bin/${other}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${path_suffix}${other}")
339
+ endif()
340
+ endforeach()
341
+ endforeach()
342
+
343
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
344
+ if(VCPKG_CROSSCOMPILING)
345
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/qmake" "${CURRENT_PACKAGES_DIR}/debug/bin/qmake") # qmake has been moved so this is the qmake helper script
346
+ endif()
347
+ file(GLOB_RECURSE _bin_files "${CURRENT_PACKAGES_DIR}/bin/*")
348
+ if(NOT _bin_files) # Only clean if empty otherwise let vcpkg throw and error.
349
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/" "${CURRENT_PACKAGES_DIR}/debug/bin/")
350
+ endif()
351
+ endif()
352
+
353
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Qt6/QtBuildInternals")
354
+
355
+ if(NOT VCPKG_TARGET_IS_OSX)
356
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Qt6/macos")
357
+ endif()
358
+ if(NOT VCPKG_TARGET_IS_IOS)
359
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Qt6/ios")
360
+ endif()
361
+
362
+ file(RELATIVE_PATH installed_to_host "${CURRENT_INSTALLED_DIR}" "${CURRENT_HOST_INSTALLED_DIR}")
363
+ file(RELATIVE_PATH host_to_installed "${CURRENT_HOST_INSTALLED_DIR}" "${CURRENT_INSTALLED_DIR}")
364
+ if(installed_to_host)
365
+ string(APPEND installed_to_host "/")
366
+ string(APPEND host_to_installed "/")
367
+ endif()
368
+ set(_file "${CMAKE_CURRENT_LIST_DIR}/qt.conf.in")
369
+ set(REL_PATH "")
370
+ set(REL_HOST_TO_DATA "\${CURRENT_INSTALLED_DIR}/")
371
+ configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/qt_release.conf" @ONLY) # For vcpkg-qmake
372
+ set(BACKUP_CURRENT_INSTALLED_DIR "${CURRENT_INSTALLED_DIR}")
373
+ set(BACKUP_CURRENT_HOST_INSTALLED_DIR "${CURRENT_HOST_INSTALLED_DIR}")
374
+ set(CURRENT_INSTALLED_DIR "./../../../")
375
+ set(CURRENT_HOST_INSTALLED_DIR "${CURRENT_INSTALLED_DIR}${installed_to_host}")
376
+
377
+ ## Configure installed qt.conf
378
+ set(REL_HOST_TO_DATA "${host_to_installed}")
379
+ configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/qt.conf")
380
+ set(REL_PATH debug/)
381
+ configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/qt.debug.conf")
382
+
383
+ set(CURRENT_INSTALLED_DIR "${BACKUP_CURRENT_INSTALLED_DIR}")
384
+ set(CURRENT_HOST_INSTALLED_DIR "${BACKUP_CURRENT_HOST_INSTALLED_DIR}")
385
+ set(REL_HOST_TO_DATA "\${CURRENT_INSTALLED_DIR}/")
386
+ configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/qt_debug.conf" @ONLY) # For vcpkg-qmake
387
+
388
+ if(VCPKG_TARGET_IS_WINDOWS)
389
+ set(_DLL_FILES brotlicommon brotlidec bz2 freetype harfbuzz libpng16)
390
+ set(DLLS_TO_COPY)
391
+ foreach(_file IN LISTS _DLL_FILES)
392
+ if(EXISTS "${CURRENT_INSTALLED_DIR}/bin/${_file}.dll")
393
+ list(APPEND DLLS_TO_COPY "${CURRENT_INSTALLED_DIR}/bin/${_file}.dll")
394
+ endif()
395
+ endforeach()
396
+ file(COPY ${DLLS_TO_COPY} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin")
397
+ endif()
398
+
399
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/qmake.debug.bat" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin")
400
+ set(hostinfofile "${CURRENT_PACKAGES_DIR}/share/Qt6HostInfo/Qt6HostInfoConfig.cmake")
401
+ file(READ "${hostinfofile}" _contents)
402
+ string(REPLACE [[set(QT6_HOST_INFO_LIBEXECDIR "bin")]] [[set(QT6_HOST_INFO_LIBEXECDIR "tools/Qt6/bin")]] _contents "${_contents}")
403
+ string(REPLACE [[set(QT6_HOST_INFO_BINDIR "bin")]] [[set(QT6_HOST_INFO_BINDIR "tools/Qt6/bin")]] _contents "${_contents}")
404
+ file(WRITE "${hostinfofile}" "${_contents}")
405
+
406
+ set(coretools "${CURRENT_PACKAGES_DIR}/share/Qt6CoreTools/Qt6CoreTools.cmake")
407
+ if(EXISTS "${coretools}")
408
+ file(READ "${coretools}" _contents)
409
+ string(REPLACE [[ "${_IMPORT_PREFIX}/tools/Qt6/bin/qmake.exe"]] [["${_IMPORT_PREFIX}/tools/Qt6/bin/qmake.debug.bat"]] _contents "${_contents}")
410
+ file(WRITE "${coretools}" "${_contents}")
411
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/qmake.debug.bat ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ @echo off
2
+ "%0\..\qmake.exe" -qtconf "%0\..\qt.debug.conf" %*
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/qt.conf.in ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [DevicePaths]
2
+ Prefix=${CURRENT_INSTALLED_DIR}
3
+ Headers=include/@QT6_DIRECTORY_PREFIX@
4
+ Libraries=@REL_PATH@lib
5
+ Plugins=@REL_PATH@@QT6_DIRECTORY_PREFIX@plugins
6
+ Qml2Imports=@REL_PATH@@QT6_DIRECTORY_PREFIX@qml
7
+ Documentation=doc/@QT6_DIRECTORY_PREFIX@
8
+ Binaries=@REL_PATH@bin
9
+ LibraryExecutables=tools/Qt6/bin
10
+ ArchData=share/Qt6
11
+ Data=share/Qt6
12
+ Translations=translations/@QT6_DIRECTORY_PREFIX@
13
+ Examples=share/examples/@QT6_DIRECTORY_PREFIX@
14
+ [Paths]
15
+ Prefix=${CURRENT_INSTALLED_DIR}
16
+ Headers=include/@QT6_DIRECTORY_PREFIX@
17
+ Libraries=@REL_PATH@lib
18
+ Plugins=@REL_PATH@@QT6_DIRECTORY_PREFIX@plugins
19
+ Qml2Imports=@REL_PATH@@QT6_DIRECTORY_PREFIX@qml
20
+ Documentation=doc/@QT6_DIRECTORY_PREFIX@
21
+ Binaries=@REL_PATH@bin
22
+ LibraryExecutables=tools/Qt6/bin
23
+ ArchData=share/Qt6
24
+ Data=share/Qt6
25
+ Translations=translations/@QT6_DIRECTORY_PREFIX@
26
+ Examples=share/examples/@QT6_DIRECTORY_PREFIX@
27
+ HostPrefix=${CURRENT_HOST_INSTALLED_DIR}
28
+ HostData=@REL_HOST_TO_DATA@share/Qt6
29
+ HostBinaries=@REL_PATH@bin
30
+ HostLibraries=@REL_PATH@lib
31
+ HostLibraryExecutables=tools/Qt6/bin
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtbase/vcpkg.json ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtbase",
3
+ "version": "6.2.4",
4
+ "description": "Qt Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ "freetype",
9
+ {
10
+ "name": "libb2",
11
+ "platform": "!windows"
12
+ },
13
+ "pcre2",
14
+ {
15
+ "name": "qtbase",
16
+ "host": true,
17
+ "default-features": false
18
+ },
19
+ {
20
+ "name": "qtbase",
21
+ "default-features": false,
22
+ "features": [
23
+ "doubleconversion"
24
+ ],
25
+ "platform": "windows"
26
+ },
27
+ {
28
+ "name": "qtbase",
29
+ "default-features": false,
30
+ "features": [
31
+ "pcre2"
32
+ ],
33
+ "platform": "windows & static"
34
+ },
35
+ {
36
+ "name": "vcpkg-cmake",
37
+ "host": true
38
+ },
39
+ {
40
+ "name": "vcpkg-cmake-config",
41
+ "host": true
42
+ },
43
+ "zlib"
44
+ ],
45
+ "default-features": [
46
+ "brotli",
47
+ "concurrent",
48
+ "dbus",
49
+ "default-features",
50
+ "doubleconversion",
51
+ "freetype",
52
+ "gui",
53
+ "harfbuzz",
54
+ "icu",
55
+ "jpeg",
56
+ "network",
57
+ "openssl",
58
+ "pcre2",
59
+ "png",
60
+ "sql",
61
+ "sql-psql",
62
+ "sql-sqlite",
63
+ "testlib",
64
+ "widgets",
65
+ "zstd"
66
+ ],
67
+ "features": {
68
+ "appstore-compliant": {
69
+ "description": "Disable code that is not allowed in platform app stores. This is on by default for platforms which require distribution through an app store by default, in particular Android, iOS, tvOS, and watchOS."
70
+ },
71
+ "brotli": {
72
+ "description": "Support for downloading and decompressing resources compressed with Brotli through QNetworkAccessManager.",
73
+ "dependencies": [
74
+ "brotli",
75
+ {
76
+ "name": "qtbase",
77
+ "default-features": false,
78
+ "features": [
79
+ "network"
80
+ ]
81
+ }
82
+ ]
83
+ },
84
+ "concurrent": {
85
+ "description": "Provides a high-level multi-threading API. Qt Concurrent"
86
+ },
87
+ "dbus": {
88
+ "description": "Qt D-Bus"
89
+ },
90
+ "default-features": {
91
+ "description": "Platform-dependent default features",
92
+ "dependencies": [
93
+ {
94
+ "name": "qtbase",
95
+ "default-features": false,
96
+ "features": [
97
+ "appstore-compliant"
98
+ ],
99
+ "platform": "uwp"
100
+ },
101
+ {
102
+ "name": "qtbase",
103
+ "default-features": false,
104
+ "features": [
105
+ "egl",
106
+ "fontconfig",
107
+ "xcb",
108
+ "xcb-xlib",
109
+ "xrender"
110
+ ],
111
+ "platform": "linux"
112
+ }
113
+ ]
114
+ },
115
+ "doubleconversion": {
116
+ "description": "Enable double conversion support",
117
+ "dependencies": [
118
+ "double-conversion"
119
+ ]
120
+ },
121
+ "egl": {
122
+ "description": "EGL",
123
+ "dependencies": [
124
+ "egl-registry"
125
+ ]
126
+ },
127
+ "fontconfig": {
128
+ "description": "Use fontconfig",
129
+ "dependencies": [
130
+ "fontconfig",
131
+ {
132
+ "name": "qtbase",
133
+ "default-features": false,
134
+ "features": [
135
+ "gui"
136
+ ]
137
+ }
138
+ ]
139
+ },
140
+ "framework": {
141
+ "$platform": "osx",
142
+ "description": "MAC framework build"
143
+ },
144
+ "freetype": {
145
+ "description": "Supports the FreeType 2 font engine (and its supported font formats).",
146
+ "dependencies": [
147
+ {
148
+ "name": "freetype",
149
+ "default-features": false
150
+ }
151
+ ]
152
+ },
153
+ "glib": {
154
+ "description": "GLib",
155
+ "dependencies": [
156
+ "glib"
157
+ ]
158
+ },
159
+ "gui": {
160
+ "description": "Qt Gui",
161
+ "dependencies": [
162
+ {
163
+ "name": "qtbase",
164
+ "default-features": false,
165
+ "features": [
166
+ "freetype"
167
+ ]
168
+ }
169
+ ]
170
+ },
171
+ "harfbuzz": {
172
+ "description": "Use harfbuzz",
173
+ "dependencies": [
174
+ "harfbuzz",
175
+ {
176
+ "name": "qtbase",
177
+ "default-features": false,
178
+ "features": [
179
+ "gui"
180
+ ]
181
+ }
182
+ ]
183
+ },
184
+ "icu": {
185
+ "description": "Enable ICU support",
186
+ "dependencies": [
187
+ "icu"
188
+ ]
189
+ },
190
+ "jpeg": {
191
+ "description": "Enable JPEG",
192
+ "dependencies": [
193
+ "libjpeg-turbo",
194
+ {
195
+ "name": "qtbase",
196
+ "default-features": false,
197
+ "features": [
198
+ "gui"
199
+ ]
200
+ }
201
+ ]
202
+ },
203
+ "network": {
204
+ "description": "Qt Network"
205
+ },
206
+ "openssl": {
207
+ "description": "Enable OpenSSL",
208
+ "dependencies": [
209
+ "openssl",
210
+ {
211
+ "name": "qtbase",
212
+ "default-features": false,
213
+ "features": [
214
+ "network"
215
+ ]
216
+ }
217
+ ]
218
+ },
219
+ "pcre2": {
220
+ "description": "Enable PCRE2 support",
221
+ "dependencies": [
222
+ "pcre2"
223
+ ]
224
+ },
225
+ "png": {
226
+ "description": "Enable PNG",
227
+ "dependencies": [
228
+ "libpng",
229
+ {
230
+ "name": "qtbase",
231
+ "default-features": false,
232
+ "features": [
233
+ "gui"
234
+ ]
235
+ }
236
+ ]
237
+ },
238
+ "sql": {
239
+ "description": "Qt Sql",
240
+ "dependencies": [
241
+ {
242
+ "name": "qtbase",
243
+ "default-features": false,
244
+ "features": [
245
+ "concurrent"
246
+ ]
247
+ }
248
+ ]
249
+ },
250
+ "sql-psql": {
251
+ "description": "Enable SQL Driver psql",
252
+ "dependencies": [
253
+ "libpq",
254
+ {
255
+ "name": "qtbase",
256
+ "default-features": false,
257
+ "features": [
258
+ "sql"
259
+ ]
260
+ }
261
+ ]
262
+ },
263
+ "sql-sqlite": {
264
+ "description": "Enable SQL Driver sqlite",
265
+ "dependencies": [
266
+ {
267
+ "name": "qtbase",
268
+ "default-features": false,
269
+ "features": [
270
+ "sql"
271
+ ]
272
+ },
273
+ "sqlite3"
274
+ ]
275
+ },
276
+ "testlib": {
277
+ "description": "Qt Testlib"
278
+ },
279
+ "vulkan": {
280
+ "description": "Enable Vulkan support"
281
+ },
282
+ "widgets": {
283
+ "description": "Qt Widgets",
284
+ "dependencies": [
285
+ {
286
+ "name": "qtbase",
287
+ "default-features": false,
288
+ "features": [
289
+ "gui"
290
+ ]
291
+ }
292
+ ]
293
+ },
294
+ "xcb": {
295
+ "description": "XCB",
296
+ "dependencies": [
297
+ {
298
+ "name": "qtbase",
299
+ "default-features": false,
300
+ "features": [
301
+ "concurrent",
302
+ "xkbcommon-x11",
303
+ "xlib"
304
+ ]
305
+ }
306
+ ]
307
+ },
308
+ "xcb-xlib": {
309
+ "description": "xcb-xlib",
310
+ "dependencies": [
311
+ {
312
+ "name": "qtbase",
313
+ "default-features": false,
314
+ "features": [
315
+ "xlib"
316
+ ]
317
+ }
318
+ ]
319
+ },
320
+ "xkb": {
321
+ "description": "XKB"
322
+ },
323
+ "xkbcommon-x11": {
324
+ "description": "xkbcommon_x11",
325
+ "dependencies": [
326
+ {
327
+ "name": "qtbase",
328
+ "default-features": false,
329
+ "features": [
330
+ "xkb"
331
+ ]
332
+ }
333
+ ]
334
+ },
335
+ "xlib": {
336
+ "description": "XLib"
337
+ },
338
+ "xrender": {
339
+ "description": "XRender for native painting",
340
+ "dependencies": [
341
+ {
342
+ "name": "qtbase",
343
+ "default-features": false,
344
+ "features": [
345
+ "xcb"
346
+ ]
347
+ }
348
+ ]
349
+ },
350
+ "zstd": {
351
+ "description": "Zstandard support",
352
+ "dependencies": [
353
+ "zstd"
354
+ ]
355
+ }
356
+ }
357
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcharts/portfile.cmake ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
7
+ FEATURES
8
+ "qml" CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick
9
+ INVERTED_FEATURES
10
+ "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick
11
+ )
12
+
13
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
14
+ CONFIGURE_OPTIONS ${FEATURE_OPTIONS}
15
+ CONFIGURE_OPTIONS_RELEASE
16
+ CONFIGURE_OPTIONS_DEBUG
17
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcharts/vcpkg.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtcharts",
3
+ "version": "6.2.4",
4
+ "description": "QtCharts module",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "gui",
13
+ "widgets"
14
+ ]
15
+ }
16
+ ],
17
+ "features": {
18
+ "designer": {
19
+ "description": "Build Designer plugin",
20
+ "dependencies": [
21
+ {
22
+ "name": "qttools",
23
+ "default-features": false
24
+ }
25
+ ]
26
+ },
27
+ "qml": {
28
+ "description": "Build QML imports",
29
+ "dependencies": [
30
+ {
31
+ "name": "qtdeclarative",
32
+ "default-features": false
33
+ }
34
+ ]
35
+ }
36
+ }
37
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcoap/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
7
+ CONFIGURE_OPTIONS
8
+ CONFIGURE_OPTIONS_RELEASE
9
+ CONFIGURE_OPTIONS_DEBUG
10
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtcoap/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtcoap",
3
+ "version": "6.2.4",
4
+ "description": "Qt CoAP client module",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "network"
13
+ ]
14
+ }
15
+ ]
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtconnectivity/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
7
+ CONFIGURE_OPTIONS
8
+ CONFIGURE_OPTIONS_RELEASE
9
+ CONFIGURE_OPTIONS_DEBUG
10
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtconnectivity/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtconnectivity",
3
+ "version": "6.2.4",
4
+ "description": "Qt Connectivity",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "dbus",
13
+ "gui",
14
+ "network"
15
+ ]
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdatavis3d/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
7
+ CONFIGURE_OPTIONS
8
+ CONFIGURE_OPTIONS_RELEASE
9
+ CONFIGURE_OPTIONS_DEBUG
10
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdatavis3d/vcpkg.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtdatavis3d",
3
+ "version": "6.2.4",
4
+ "description": "Qt 3D data visualization framework",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "gui",
13
+ "testlib"
14
+ ]
15
+ },
16
+ {
17
+ "name": "qtdeclarative",
18
+ "default-features": false
19
+ }
20
+ ]
21
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeclarative/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(TOOL_NAMES
5
+ qml
6
+ qmlcachegen
7
+ qmleasing
8
+ qmlformat
9
+ qmlimportscanner
10
+ qmllint
11
+ qmlplugindump
12
+ qmlpreview
13
+ qmlprofiler
14
+ qmlscene
15
+ qmltestrunner
16
+ qmltime
17
+ qmltyperegistrar
18
+ qmldom
19
+ )
20
+
21
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
22
+ TOOL_NAMES ${TOOL_NAMES}
23
+ CONFIGURE_OPTIONS
24
+ CONFIGURE_OPTIONS_RELEASE
25
+ CONFIGURE_OPTIONS_DEBUG
26
+ )
27
+
28
+ # remove `${SOURCE_PATH}` from the front of `#line` directives
29
+ if(NOT QT_UPDATE_VERSION)
30
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/Qt6/QtQml/${QT_VERSION}/QtQml/private/qqmljsparser_p.h" "${SOURCE_PATH}" "")
31
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeclarative/vcpkg.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtdeclarative",
3
+ "version": "6.2.4",
4
+ "description": "Qt Declarative (Quick 2)",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "testlib"
13
+ ]
14
+ },
15
+ {
16
+ "name": "qtdeclarative",
17
+ "host": true,
18
+ "default-features": false
19
+ },
20
+ {
21
+ "name": "qtshadertools",
22
+ "default-features": false
23
+ }
24
+ ]
25
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeviceutilities/portfile.cmake ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+ set(TOOL_NAMES settingsui)
7
+
8
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
9
+ TOOL_NAMES ${TOOL_NAMES}
10
+ CONFIGURE_OPTIONS
11
+ CONFIGURE_OPTIONS_RELEASE
12
+ CONFIGURE_OPTIONS_DEBUG
13
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdeviceutilities/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtdeviceutilities",
3
+ "version": "6.2.4",
4
+ "description": "Utils for Boot2Qt",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "supports": "linux",
8
+ "dependencies": [
9
+ {
10
+ "name": "qtdeclarative",
11
+ "default-features": false
12
+ },
13
+ {
14
+ "name": "qttools",
15
+ "default-features": false
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdoc/portfile.cmake ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
7
+ CONFIGURE_OPTIONS
8
+ CONFIGURE_OPTIONS_RELEASE
9
+ CONFIGURE_OPTIONS_DEBUG
10
+ )
11
+
12
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
13
+ set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtdoc/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtdoc",
3
+ "version": "6.2.4",
4
+ "description": "Qt Documentation",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false
11
+ }
12
+ ]
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtimageformats/no_target_promotion.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 7fdd7ddbd..f189c472c 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -9,7 +9,16 @@ project(QtImageFormats # special case
6
+ HOMEPAGE_URL "https://qt.io/"
7
+ LANGUAGES CXX C
8
+ )
9
+ -
10
+ +find_package(Threads)
11
+ +set_property(TARGET Threads::Threads PROPERTY _qt_no_promote_global TRUE)
12
+ +find_package(ZLIB)
13
+ +if(TARGET ZLIB::ZLIB)
14
+ + set_property(TARGET ZLIB::ZLIB PROPERTY _qt_no_promote_global TRUE)
15
+ +endif()
16
+ +find_package(JPEG)
17
+ +if(TARGET JPEG::JPEG)
18
+ + set_property(TARGET JPEG::JPEG PROPERTY _qt_no_promote_global TRUE)
19
+ +endif()
20
+ # special case begin
21
+ # Make sure we only use latest private CMake API, aka no compatibility wrappers.
22
+ set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtimageformats/portfile.cmake ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) # Only plugins
2
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
3
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
4
+
5
+ set(${PORT}_PATCHES no_target_promotion.patch)
6
+
7
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
8
+ FEATURES
9
+ #"jasper" CMAKE_REQUIRE_FIND_PACKAGE_WrapJasper
10
+ #"webp" CMAKE_REQUIRE_FIND_PACKAGE_WrapWebP
11
+ #"tiff" CMAKE_REQUIRE_FIND_PACKAGE_TIFF
12
+ INVERTED_FEATURES
13
+ "jasper" CMAKE_DISABLE_FIND_PACKAGE_WrapJasper
14
+ "webp" CMAKE_DISABLE_FIND_PACKAGE_WrapWebP
15
+ "tiff" CMAKE_DISABLE_FIND_PACKAGE_TIFF
16
+ )
17
+
18
+ if("jasper" IN_LIST FEATURES)
19
+ list(APPEND FEATURE_OPTIONS -DINPUT_jasper=system)
20
+ else()
21
+ list(APPEND FEATURE_OPTIONS -DINPUT_jasper=no)
22
+ endif()
23
+ if("webp" IN_LIST FEATURES)
24
+ list(APPEND FEATURE_OPTIONS -DINPUT_webp=system)
25
+ else()
26
+ list(APPEND FEATURE_OPTIONS -DINPUT_webp=no)
27
+ endif()
28
+ if("tiff" IN_LIST FEATURES)
29
+ list(APPEND FEATURE_OPTIONS -DINPUT_tiff=system)
30
+ else()
31
+ list(APPEND FEATURE_OPTIONS -DINPUT_tiff=no)
32
+ endif()
33
+ list(APPEND FEATURE_OPTIONS -DINPUT_mng=no) # marked as FIXME
34
+
35
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
36
+ CONFIGURE_OPTIONS
37
+ ${FEATURE_OPTIONS}
38
+ CONFIGURE_OPTIONS_RELEASE
39
+ CONFIGURE_OPTIONS_DEBUG
40
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtimageformats/vcpkg.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtimageformats",
3
+ "version": "6.2.4",
4
+ "description": "Additional Image Format plugins for Qt",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "gui"
13
+ ]
14
+ }
15
+ ],
16
+ "default-features": [
17
+ "default-features",
18
+ "jasper",
19
+ "tiff",
20
+ "webp"
21
+ ],
22
+ "features": {
23
+ "default-features": {
24
+ "description": "Platform-dependent default features"
25
+ },
26
+ "jasper": {
27
+ "description": "Use jasper",
28
+ "dependencies": [
29
+ "jasper"
30
+ ]
31
+ },
32
+ "tiff": {
33
+ "description": "Use TIFF",
34
+ "dependencies": [
35
+ "tiff"
36
+ ]
37
+ },
38
+ "webp": {
39
+ "description": "Use WebP",
40
+ "dependencies": [
41
+ "libwebp"
42
+ ]
43
+ }
44
+ }
45
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtinterfaceframework/fix-taglib-search.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/FindWrapSystemTagLib.cmake b/cmake/FindWrapSystemTagLib.cmake
2
+ index e82d2c1a9..14463c791 100644
3
+ --- a/cmake/FindWrapSystemTagLib.cmake
4
+ +++ b/cmake/FindWrapSystemTagLib.cmake
5
+ @@ -4,7 +4,7 @@ if(TARGET WrapSystemTagLib::WrapSystemTagLib)
6
+ set(WrapSystemTagLib_FOUND ON)
7
+ return()
8
+ endif()
9
+ -
10
+ +unset(PKG_CONFIG_EXECUTABLE CACHE)
11
+ find_package(PkgConfig)
12
+
13
+ pkg_check_modules(TagLib taglib IMPORTED_TARGET)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtinterfaceframework/portfile.cmake ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ function(vcpkg_get_python_package PYTHON_DIR ) # From mesa
5
+ cmake_parse_arguments(PARSE_ARGV 0 _vgpp "" "PYTHON_EXECUTABLE" "PACKAGES")
6
+
7
+ if(NOT _vgpp_PYTHON_EXECUTABLE)
8
+ message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} requires parameter PYTHON_EXECUTABLE!")
9
+ endif()
10
+ if(NOT _vgpp_PACKAGES)
11
+ message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} requires parameter PACKAGES!")
12
+ endif()
13
+ if(NOT _vgpp_PYTHON_DIR)
14
+ get_filename_component(_vgpp_PYTHON_DIR "${_vgpp_PYTHON_EXECUTABLE}" DIRECTORY)
15
+ endif()
16
+
17
+ if (WIN32)
18
+ set(PYTHON_OPTION "")
19
+ else()
20
+ set(PYTHON_OPTION "--user")
21
+ endif()
22
+
23
+ if("${_vgpp_PYTHON_DIR}" MATCHES "${DOWNLOADS}") # inside vcpkg
24
+ if(NOT EXISTS "${_vgpp_PYTHON_DIR}/easy_install${VCPKG_HOST_EXECUTABLE_SUFFIX}")
25
+ if(NOT EXISTS "${_vgpp_PYTHON_DIR}/Scripts/pip${VCPKG_HOST_EXECUTABLE_SUFFIX}")
26
+ vcpkg_from_github(
27
+ OUT_SOURCE_PATH PYFILE_PATH
28
+ REPO pypa/get-pip
29
+ REF 309a56c5fd94bd1134053a541cb4657a4e47e09d #2019-08-25
30
+ SHA512 bb4b0745998a3205cd0f0963c04fb45f4614ba3b6fcbe97efe8f8614192f244b7ae62705483a5305943d6c8fedeca53b2e9905aed918d2c6106f8a9680184c7a
31
+ HEAD_REF master
32
+ )
33
+ execute_process(COMMAND "${_vgpp_PYTHON_EXECUTABLE}" "${PYFILE_PATH}/get-pip.py" ${PYTHON_OPTION})
34
+ endif()
35
+ foreach(_package IN LISTS _vgpp_PACKAGES)
36
+ execute_process(COMMAND "${_vgpp_PYTHON_DIR}/Scripts/pip${VCPKG_HOST_EXECUTABLE_SUFFIX}" install ${_package} ${PYTHON_OPTION})
37
+ endforeach()
38
+ else()
39
+ foreach(_package IN LISTS _vgpp_PACKAGES)
40
+ execute_process(COMMAND "${_vgpp_PYTHON_DIR}/easy_install${VCPKG_HOST_EXECUTABLE_SUFFIX}" ${_package})
41
+ endforeach()
42
+ endif()
43
+ if(NOT VCPKG_TARGET_IS_WINDOWS)
44
+ execute_process(COMMAND pip3 install ${_vgpp_PACKAGES})
45
+ endif()
46
+ else() # outside vcpkg
47
+ foreach(_package IN LISTS _vgpp_PACKAGES)
48
+ execute_process(COMMAND ${_vgpp_PYTHON_EXECUTABLE} -c "import ${_package}" RESULT_VARIABLE HAS_ERROR)
49
+ if(HAS_ERROR)
50
+ message(FATAL_ERROR "Python package '${_package}' needs to be installed for port '${PORT}'.\nComplete list of required python packages: ${_vgpp_PACKAGES}")
51
+ endif()
52
+ endforeach()
53
+ endif()
54
+ endfunction()
55
+
56
+ set(${PORT}_PATCHES fix-taglib-search.patch) # Strictly this is only required if qt does not use pkg-config since it forces it to off.
57
+ set(TOOL_NAMES
58
+ ifmedia-simulation-server
59
+ ifvehiclefunctions-simulation-server
60
+ )
61
+
62
+ qt_download_submodule(PATCHES ${${PORT}_PATCHES})
63
+ if(QT_UPDATE_VERSION)
64
+ return()
65
+ endif()
66
+
67
+ if(_qis_DISABLE_NINJA)
68
+ set(_opt DISABLE_NINJA)
69
+ endif()
70
+
71
+ vcpkg_find_acquire_program(PKGCONFIG)
72
+ vcpkg_find_acquire_program(PYTHON3)
73
+ get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY )
74
+ vcpkg_add_to_path(PREPEND "${PYTHON3_DIR}")
75
+ vcpkg_add_to_path(PREPEND "${PYTHON3_DIR}/Scripts")
76
+ vcpkg_get_python_package(PYTHON_EXECUTABLE "${PYTHON3}" PACKAGES virtualenv qface)
77
+
78
+ if(VCPKG_CROSSCOMPILING)
79
+ list(APPEND FEATURE_OPTIONS "-DVCPKG_HOST_TRIPLET=${_HOST_TRIPLET}")
80
+ endif()
81
+
82
+ set(qt_plugindir ${QT6_DIRECTORY_PREFIX}plugins)
83
+ set(qt_qmldir ${QT6_DIRECTORY_PREFIX}qml)
84
+ qt_cmake_configure(${_opt}
85
+ OPTIONS ${FEATURE_OPTIONS}
86
+ "-DPython3_EXECUTABLE=${PYTHON3}" # Otherwise a VS installation might be found.
87
+ OPTIONS_DEBUG ${_qis_CONFIGURE_OPTIONS_DEBUG}
88
+ OPTIONS_RELEASE ${_qis_CONFIGURE_OPTIONS_RELEASE})
89
+
90
+ vcpkg_cmake_install(ADD_BIN_TO_PATH)
91
+
92
+ qt_fixup_and_cleanup(TOOL_NAMES ${TOOL_NAMES})
93
+
94
+ qt_install_copyright("${SOURCE_PATH}")
95
+
96
+ if(NOT VCPKG_CROSSCOMPILING)
97
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/ifcodegen")
98
+ file(RENAME "${CURRENT_PACKAGES_DIR}/bin/ifcodegen" "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/ifcodegen")
99
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtinterfaceframework/vcpkg.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtinterfaceframework",
3
+ "version": "6.2.4",
4
+ "description": "Qt Interface Framework",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "pkgconf",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "qtdeclarative",
14
+ "default-features": false
15
+ },
16
+ {
17
+ "name": "qtinterfaceframework",
18
+ "host": true,
19
+ "default-features": false
20
+ },
21
+ {
22
+ "name": "qtmultimedia",
23
+ "default-features": false
24
+ },
25
+ {
26
+ "name": "qtremoteobjects",
27
+ "default-features": false
28
+ },
29
+ {
30
+ "name": "qttools",
31
+ "default-features": false
32
+ },
33
+ "taglib"
34
+ ]
35
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain-qt6/portfile.cmake ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ message(WARNING "qtkeychain is a third-party extension to Qt and is not affiliated with The Qt Company")
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO frankosterfeld/qtkeychain
6
+ REF v0.13.2
7
+ SHA512 10f8b1c959a126ba14614b797ea5640404a0b95c71e452225c74856eae90e966aac581ca393508a2106033c3d5ad70427ea6f7ef3f2997eddf6d09a7b4fa26eb
8
+ HEAD_REF master
9
+ )
10
+
11
+ if(VCPKG_CROSSCOMPILING)
12
+ list(APPEND QTKEYCHAIN_OPTIONS -DQT_HOST_PATH=${CURRENT_HOST_INSTALLED_DIR})
13
+ list(APPEND QTKEYCHAIN_OPTIONS -DQT_HOST_PATH_CMAKE_DIR:PATH=${CURRENT_HOST_INSTALLED_DIR}/share)
14
+ # remove when https://github.com/microsoft/vcpkg/pull/16111 is merged
15
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 AND VCPKG_TARGET_IS_WINDOWS)
16
+ list(APPEND QTKEYCHAIN_OPTIONS -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_PROCESSOR:STRING=ARM64 -DCMAKE_SYSTEM_NAME:STRING=Windows)
17
+ endif()
18
+ endif()
19
+
20
+ list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TEST_APPLICATION:BOOL=OFF)
21
+
22
+ # FIXME: Why does build translations fail on arm64-windows?
23
+ if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
24
+ list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TRANSLATIONS:BOOL=OFF)
25
+ else()
26
+ list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TRANSLATIONS:BOOL=ON)
27
+ endif()
28
+
29
+ vcpkg_cmake_configure(
30
+ DISABLE_PARALLEL_CONFIGURE
31
+ SOURCE_PATH ${SOURCE_PATH}
32
+ OPTIONS
33
+ -DBUILD_WITH_QT6=ON
34
+ ${QTKEYCHAIN_OPTIONS}
35
+ )
36
+ vcpkg_cmake_install()
37
+
38
+ vcpkg_copy_pdbs()
39
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Qt6Keychain PACKAGE_NAME Qt6Keychain)
40
+
41
+ # Remove unneeded dirs
42
+ file(REMOVE_RECURSE
43
+ "${CURRENT_PACKAGES_DIR}/debug/include"
44
+ "${CURRENT_PACKAGES_DIR}/debug/share"
45
+ )
46
+
47
+ # Handle copyright
48
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain-qt6/vcpkg.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtkeychain-qt6",
3
+ "version": "0.13.2",
4
+ "description": "(Unaffiliated with Qt) Platform-independent Qt6 API for storing passwords securely",
5
+ "homepage": "https://github.com/frankosterfeld/qtkeychain",
6
+ "license": "BSD-3-Clause",
7
+ "dependencies": [
8
+ {
9
+ "name": "libsecret",
10
+ "platform": "!(windows | uwp | osx)"
11
+ },
12
+ {
13
+ "name": "qttools",
14
+ "features": [
15
+ "linguist"
16
+ ]
17
+ },
18
+ {
19
+ "name": "vcpkg-cmake",
20
+ "host": true
21
+ },
22
+ {
23
+ "name": "vcpkg-cmake-config",
24
+ "host": true
25
+ }
26
+ ]
27
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain/portfile.cmake ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ message(WARNING "qtkeychain is a third-party extension to Qt and is not affiliated with The Qt Company")
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO frankosterfeld/qtkeychain
6
+ REF v0.13.2
7
+ SHA512 10f8b1c959a126ba14614b797ea5640404a0b95c71e452225c74856eae90e966aac581ca393508a2106033c3d5ad70427ea6f7ef3f2997eddf6d09a7b4fa26eb
8
+ HEAD_REF master
9
+ )
10
+
11
+ # Opportunity to build without dependency on qt5-tools/qt5-declarative
12
+ set(BUILD_TRANSLATIONS OFF)
13
+ if("translations" IN_LIST FEATURES)
14
+ set(BUILD_TRANSLATIONS ON)
15
+ endif()
16
+
17
+ vcpkg_cmake_configure(
18
+ DISABLE_PARALLEL_CONFIGURE
19
+ SOURCE_PATH ${SOURCE_PATH}
20
+ OPTIONS
21
+ -DBUILD_WITH_QT6=OFF
22
+ -DBUILD_TEST_APPLICATION=OFF
23
+ -DBUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
24
+ )
25
+ vcpkg_cmake_install()
26
+
27
+ vcpkg_copy_pdbs()
28
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Qt5Keychain PACKAGE_NAME Qt5Keychain)
29
+
30
+ # Remove unneeded dirs
31
+ file(REMOVE_RECURSE
32
+ "${CURRENT_PACKAGES_DIR}/debug/include"
33
+ "${CURRENT_PACKAGES_DIR}/debug/share"
34
+ )
35
+
36
+ # Handle copyright
37
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtkeychain/vcpkg.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtkeychain",
3
+ "version": "0.13.2",
4
+ "port-version": 1,
5
+ "description": "(Unaffiliated with Qt) Platform-independent Qt5 API for storing passwords securely",
6
+ "homepage": "https://github.com/frankosterfeld/qtkeychain",
7
+ "license": "BSD-3-Clause",
8
+ "dependencies": [
9
+ {
10
+ "name": "libsecret",
11
+ "platform": "!(windows | uwp | osx)"
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ }
21
+ ],
22
+ "default-features": [
23
+ "translations"
24
+ ],
25
+ "features": {
26
+ "translations": {
27
+ "description": "Build qtkeychain translations",
28
+ "dependencies": [
29
+ "qt5-tools"
30
+ ]
31
+ }
32
+ }
33
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlocation/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
2
+ message(STATUS "Upstream decided to split this into qtpositioning and qtlocation. qtlocation however is currently empty!")
3
+ # set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
4
+ # include("${SCRIPT_PATH}/qt_install_submodule.cmake")
5
+
6
+ # set(${PORT}_PATCHES)
7
+
8
+ # vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
9
+ # FEATURES
10
+ # INVERTED_FEATURES
11
+ # "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick
12
+ # "nmea" CMAKE_DISABLE_FIND_PACKAGE_Qt6SerialPort
13
+ # "nmea" CMAKE_DISABLE_FIND_PACKAGE_Qt6Network
14
+ # )
15
+
16
+ # list(APPEND FEATURE_OPTIONS "-DCMAKE_DISABLE_FIND_PACKAGE_Gypsy=ON"
17
+ # "-DCMAKE_DISABLE_FIND_PACKAGE_Gconf=ON"
18
+ # )
19
+
20
+ # qt_install_submodule(PATCHES ${${PORT}_PATCHES}
21
+ # CONFIGURE_OPTIONS ${FEATURE_OPTIONS}
22
+ # CONFIGURE_OPTIONS_RELEASE
23
+ # CONFIGURE_OPTIONS_DEBUG
24
+ # )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlocation/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtlocation",
3
+ "version": "6.2.4",
4
+ "description": "Qt Location",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false
11
+ },
12
+ {
13
+ "name": "qtbase",
14
+ "default-features": false,
15
+ "features": [
16
+ "dbus"
17
+ ],
18
+ "platform": "linux"
19
+ },
20
+ "qtpositioning"
21
+ ]
22
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlottie/portfile.cmake ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+
7
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
8
+ FEATURES
9
+ "qml" CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick
10
+ INVERTED_FEATURES
11
+ "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick
12
+ )
13
+
14
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
15
+ CONFIGURE_OPTIONS ${FEATURE_OPTIONS}
16
+ CONFIGURE_OPTIONS_RELEASE
17
+ CONFIGURE_OPTIONS_DEBUG
18
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtlottie/vcpkg.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtlottie",
3
+ "version": "6.2.4",
4
+ "description": "Lottie is a family of player software for a certain json-based file format for describing 2d vector graphics animations. These files are created/exported directly from After Effects by a plugin called Bodymovin.",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "gui"
13
+ ]
14
+ }
15
+ ],
16
+ "features": {
17
+ "qml": {
18
+ "description": "Build QML imports",
19
+ "dependencies": [
20
+ {
21
+ "name": "qtdeclarative",
22
+ "default-features": false
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmqtt/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES)
5
+
6
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
7
+ CONFIGURE_OPTIONS
8
+ CONFIGURE_OPTIONS_RELEASE
9
+ CONFIGURE_OPTIONS_DEBUG
10
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmqtt/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qtmqtt",
3
+ "version": "6.2.4",
4
+ "description": "Qt Module to implement MQTT protocol version 3.1 and 3.1.1 http://mqtt.org/",
5
+ "homepage": "https://www.qt.io/",
6
+ "license": null,
7
+ "dependencies": [
8
+ {
9
+ "name": "qtbase",
10
+ "default-features": false,
11
+ "features": [
12
+ "network"
13
+ ]
14
+ }
15
+ ]
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmultimedia/fix_windows_header_include.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/multimedia/platform/windows/qwindowsmediadevices_p.h b/src/multimedia/platform/windows/qwindowsmediadevices_p.h
2
+ index 23e349e02..233a816d4 100644
3
+ --- a/src/multimedia/platform/windows/qwindowsmediadevices_p.h
4
+ +++ b/src/multimedia/platform/windows/qwindowsmediadevices_p.h
5
+ @@ -56,7 +56,7 @@
6
+ #include <qset.h>
7
+ #include <qaudio.h>
8
+ #include <qaudiodevice.h>
9
+ -#include <windows.h>
10
+ +#include <QtCore/qt_windows.h>
11
+
12
+ struct IMMDeviceEnumerator;
13
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/qtmultimedia/portfile.cmake ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
2
+ include("${SCRIPT_PATH}/qt_install_submodule.cmake")
3
+
4
+ set(${PORT}_PATCHES fix_windows_header_include.patch
5
+ remove_unistd.patch
6
+ )
7
+
8
+ #Maybe TODO: ALSA + PulseAudio? (Missing Ports) -> check ALSA since it was added
9
+
10
+ # qt_find_package(ALSA PROVIDED_TARGETS ALSA::ALSA MODULE_NAME multimedia QMAKE_LIB alsa)
11
+ # qt_find_package(AVFoundation PROVIDED_TARGETS AVFoundation::AVFoundation MODULE_NAME multimedia QMAKE_LIB avfoundation)
12
+ # qt_find_package(WrapPulseAudio PROVIDED_TARGETS WrapPulseAudio::WrapPulseAudio MODULE_NAME multimedia QMAKE_LIB pulseaudio)
13
+ # qt_find_package(WMF PROVIDED_TARGETS WMF::WMF MODULE_NAME multimedia QMAKE_LIB wmf)
14
+
15
+ # qt_configure_add_summary_section(NAME "Qt Multimedia")
16
+ # qt_configure_add_summary_entry(ARGS "alsa")
17
+ # qt_configure_add_summary_entry(ARGS "gstreamer_1_0")
18
+ # qt_configure_add_summary_entry(ARGS "linux_v4l")
19
+ # qt_configure_add_summary_entry(ARGS "pulseaudio")
20
+ # qt_configure_add_summary_entry(ARGS "mmrenderer")
21
+ # qt_configure_add_summary_entry(ARGS "avfoundation")
22
+ # qt_configure_add_summary_entry(ARGS "wmf")
23
+
24
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
25
+ FEATURES
26
+ "qml" CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick
27
+ "widgets" CMAKE_REQUIRE_FIND_PACKAGE_Qt6Widgets
28
+ #"gstreamer" CMAKE_REQUIRE_FIND_PACKAGE_GStreamer
29
+ INVERTED_FEATURES
30
+ "qml" CMAKE_DISABLE_FIND_PACKAGE_Qt6Quick
31
+ "widgets" CMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets
32
+ "gstreamer" CMAKE_DISABLE_FIND_PACKAGE_GStreamer
33
+ )
34
+
35
+ if("gstreamer" IN_LIST FEATURES)
36
+ list(APPEND FEATURE_OPTIONS "-DINPUT_gstreamer='yes'")
37
+ else()
38
+ list(APPEND FEATURE_OPTIONS "-DINPUT_gstreamer='no'")
39
+ endif()
40
+
41
+ if(VCPKG_TARGET_IS_LINUX)
42
+ list(APPEND FEATURE_OPTIONS "-DFEATURE_alsa=ON")
43
+ list(APPEND FEATURE_OPTIONS "-DCMAKE_REQUIRE_FIND_PACKAGE_ALSA=ON")
44
+ else()
45
+ list(APPEND FEATURE_OPTIONS "-DCMAKE_DISABLE_FIND_PACKAGE_ALSA=ON")
46
+ endif()
47
+
48
+ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
49
+ CONFIGURE_OPTIONS ${FEATURE_OPTIONS}
50
+ CONFIGURE_OPTIONS_RELEASE
51
+ CONFIGURE_OPTIONS_DEBUG
52
+ )