Spaces:
Sleeping
Sleeping
23fb202b8b610789212669057e4b675d58f00f1f4fb24dc9a1c581ca7c4749be
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/gstreamer-disable-no-unused.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugin-base-disable-no-unused.patch +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugins-base-use-zlib.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugins-good-use-zlib.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugins-ugly-disable-doc.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/portfile.cmake +307 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/vcpkg.json +142 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/clang-tidy-no-lint.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/fix-main-lib-path.patch +59 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/portfile.cmake +59 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/remove-werror.patch +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/usage +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/0001-build.patch +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/0002-windows-build.patch +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/0004-macos-build.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/portfile.cmake +127 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/vcpkg.json +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtkmm/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtkmm/vcpkg.json +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtl/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtl/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/fix-M_PI-in-windows.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/fix-pkgconfig.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/glib2.patch +54 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/support-unix.patch +190 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/CMakeLists.txt +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/butteraugli.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/guilite/portfile.cmake +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/guilite/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gumbo/CMakeLists.txt +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gumbo/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gumbo/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gzip-hpp/portfile.cmake +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gzip-hpp/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/h3/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/h3/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/0001-disable-H5PLget_plugin-api.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/CMakeLists.txt +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/halide/portfile.cmake +74 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/halide/usage.in +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/halide/vcpkg.json +206 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/happly/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/happly/vcpkg.json +6 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/gstreamer-disable-no-unused.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/meson.build b/meson.build
|
2 |
+
index bed8c4e..772809e 100644
|
3 |
+
--- a/meson.build
|
4 |
+
+++ b/meson.build
|
5 |
+
@@ -435,8 +435,9 @@ if cc.has_header('execinfo.h')
|
6 |
+
endif
|
7 |
+
endif
|
8 |
+
|
9 |
+
+build_system = build_machine.system()
|
10 |
+
gst_debug = get_option('gst_debug')
|
11 |
+
-if not gst_debug
|
12 |
+
+if not gst_debug and build_system != 'windows'
|
13 |
+
add_project_arguments(['-Wno-unused'], language: 'c')
|
14 |
+
endif
|
15 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugin-base-disable-no-unused.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/meson.build b/meson.build
|
2 |
+
index 9b00253..495671e 100644
|
3 |
+
--- a/meson.build
|
4 |
+
+++ b/meson.build
|
5 |
+
@@ -388,10 +388,11 @@ int32x4_t testfunc(int16_t *a, int16_t *b) {
|
6 |
+
endif
|
7 |
+
endif
|
8 |
+
|
9 |
+
+build_system = build_machine.system()
|
10 |
+
if gst_dep.type_name() == 'internal'
|
11 |
+
gst_proj = subproject('gstreamer')
|
12 |
+
|
13 |
+
- if not gst_proj.get_variable('gst_debug')
|
14 |
+
+ if not gst_proj.get_variable('gst_debug') and build_system != 'windows'
|
15 |
+
message('GStreamer debug system is disabled')
|
16 |
+
add_project_arguments('-Wno-unused', language: 'c')
|
17 |
+
else
|
18 |
+
@@ -404,7 +405,7 @@ else
|
19 |
+
#include <gst/gstconfig.h>
|
20 |
+
#ifdef GST_DISABLE_GST_DEBUG
|
21 |
+
#error "debugging disabled, make compiler fail"
|
22 |
+
-#endif''' , dependencies: gst_dep)
|
23 |
+
+#endif''' , dependencies: gst_dep) and build_system != 'windows'
|
24 |
+
message('GStreamer debug system is disabled')
|
25 |
+
add_project_arguments('-Wno-unused', language: 'c')
|
26 |
+
else
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugins-base-use-zlib.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gst-libs/gst/tag/meson.build b/gst-libs/gst/tag/meson.build
|
2 |
+
index 5ec3739..a6cff8d 100644
|
3 |
+
--- a/gst-libs/gst/tag/meson.build
|
4 |
+
+++ b/gst-libs/gst/tag/meson.build
|
5 |
+
@@ -70,7 +70,7 @@ endif
|
6 |
+
core_conf.set('HAVE_ISO_CODES', have_iso_codes)
|
7 |
+
|
8 |
+
# could drop optional zlib dep and use g_zlib_decompressor_new()
|
9 |
+
-zlib_dep = dependency('zlib', required : false)
|
10 |
+
+zlib_dep = dependency('zlib', required : true)
|
11 |
+
if not zlib_dep.found()
|
12 |
+
zlib_dep = cc.find_library('z', required : false)
|
13 |
+
if not zlib_dep.found() or not cc.has_header('zlib.h')
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugins-good-use-zlib.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/meson.build b/meson.build
|
2 |
+
index 9de3b01..091a7f0 100644
|
3 |
+
--- a/meson.build
|
4 |
+
+++ b/meson.build
|
5 |
+
@@ -326,7 +326,7 @@ if have_gstgl
|
6 |
+
endif
|
7 |
+
endif
|
8 |
+
|
9 |
+
-zlib_dep = dependency('zlib', required : false)
|
10 |
+
+zlib_dep = dependency('zlib', required : true)
|
11 |
+
if not zlib_dep.found()
|
12 |
+
zlib_dep = cc.find_library('z', required : false)
|
13 |
+
if not zlib_dep.found() or not cc.has_header('zlib.h')
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/plugins-ugly-disable-doc.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/meson.build b/meson.build
|
2 |
+
index c5c78fc..14be48c 100644
|
3 |
+
--- a/meson.build
|
4 |
+
+++ b/meson.build
|
5 |
+
@@ -281,7 +281,11 @@ if find_program('xgettext', required : get_option('nls')).found()
|
6 |
+
cdata.set('ENABLE_NLS', 1)
|
7 |
+
subdir('po')
|
8 |
+
endif
|
9 |
+
+
|
10 |
+
+enable_doc = get_option('doc')
|
11 |
+
+if enable_doc.enabled()
|
12 |
+
subdir('docs')
|
13 |
+
+endif
|
14 |
+
subdir('scripts')
|
15 |
+
|
16 |
+
# Set release date
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/portfile.cmake
ADDED
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH GST_BUILD_SOURCE_PATH
|
3 |
+
REPO gstreamer/gst-build
|
4 |
+
REF 1.19.2
|
5 |
+
SHA512 d6b8e9fc195a60dfb83fe8a49040c21ca5603e3ada2036d56851e6e61a1cd2653ad45f33e39388bde859dfb4806f4a60d9dbfac5fe41b6d2a8b395c44d4525e3
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES gstreamer-disable-hot-doc.patch
|
8 |
+
)
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH GST_SOURCE_PATH
|
11 |
+
REPO gstreamer/gstreamer
|
12 |
+
REF 1.19.2
|
13 |
+
SHA512 6070f1febf2a1bcc6e68f1e03c1b76891db210773065696e26fac20f0bd3ff47e1634222a49f93a10f6e47717ff21084c9ae0feed6a20facb9650aeb879cc380
|
14 |
+
HEAD_REF master
|
15 |
+
PATCHES gstreamer-disable-no-unused.patch
|
16 |
+
)
|
17 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
18 |
+
list(APPEND PLUGIN_BASE_PATCHES plugins-base-use-zlib.patch plugin-base-disable-no-unused.patch)
|
19 |
+
list(APPEND PLUGIN_GOOD_PATCHES plugins-good-use-zlib.patch)
|
20 |
+
list(APPEND PLUGIN_UGLY_PATCHES plugins-ugly-disable-doc.patch)
|
21 |
+
endif()
|
22 |
+
vcpkg_from_github(
|
23 |
+
OUT_SOURCE_PATH GST_PLUGIN_BASE_SOURCE_PATH
|
24 |
+
REPO gstreamer/gst-plugins-base
|
25 |
+
REF 1.19.2
|
26 |
+
SHA512 d2005e6a3bda5f08395b131347e8f4054c2469e04e65d1acc1a1572bf10d81d4dad4e43d6a8600346b6175a2310f81157a0cd27398ef69b5363b16346febfb39
|
27 |
+
HEAD_REF master
|
28 |
+
PATCHES ${PLUGIN_BASE_PATCHES}
|
29 |
+
)
|
30 |
+
vcpkg_from_github(
|
31 |
+
OUT_SOURCE_PATH GST_PLUGIN_GOOD_SOURCE_PATH
|
32 |
+
REPO gstreamer/gst-plugins-good
|
33 |
+
REF 1.19.2
|
34 |
+
SHA512 71e9f36d407db3b75d9a68f6447093aa011b2b586b06e0a1bb79c7db37c9114de505699e99a4dad06d8d9c742e91f48dd35457283babe440f88a9e40d3da465b
|
35 |
+
HEAD_REF master
|
36 |
+
PATCHES ${PLUGIN_GOOD_PATCHES}
|
37 |
+
)
|
38 |
+
vcpkg_from_github(
|
39 |
+
OUT_SOURCE_PATH GST_PLUGIN_BAD_SOURCE_PATH
|
40 |
+
REPO gstreamer/gst-plugins-bad
|
41 |
+
REF 1.19.2
|
42 |
+
SHA512 f63ca3abf380bba92dca4ac3a51cba5ea95093693cf64d167a7a9c0bf6341c35a74fd42332673dbd1581ea70da0a35026aa3e2ce99b5e573268ccb55b5491c1d
|
43 |
+
HEAD_REF master
|
44 |
+
)
|
45 |
+
vcpkg_from_github(
|
46 |
+
OUT_SOURCE_PATH GST_PLUGIN_UGLY_SOURCE_PATH
|
47 |
+
REPO gstreamer/gst-plugins-ugly
|
48 |
+
REF 1.19.2
|
49 |
+
SHA512 70dcd4a36d3bd35f680eaa3c980842fbb57f55f17d1453c6a95640709b1b33a263689bf54caa367154267d281e5474686fedaa980de24094de91886a57b6547a
|
50 |
+
HEAD_REF master
|
51 |
+
PATCHES ${PLUGIN_UGLY_PATCHES}
|
52 |
+
)
|
53 |
+
vcpkg_from_gitlab(
|
54 |
+
GITLAB_URL https://gitlab.freedesktop.org
|
55 |
+
OUT_SOURCE_PATH GST_MESON_PORTS_SOURCE_PATH
|
56 |
+
REPO gstreamer/meson-ports/gl-headers
|
57 |
+
REF 5c8c7c0d3ca1f0b783272dac0b95e09414e49bc8 # master commit. Date 2021-04-21
|
58 |
+
SHA512 d001535e1c1b5bb515ac96c7d15b25ca51460a5af0c858df53b11c7bae87c4a494e4a1b1b9c3c41a5989001db083645dde2054b82acbbeab7f9939308b676f9c
|
59 |
+
HEAD_REF master
|
60 |
+
)
|
61 |
+
|
62 |
+
if (NOT EXISTS "${GST_BUILD_SOURCE_PATH}/subprojects/gstreamer")
|
63 |
+
file(RENAME "${GST_SOURCE_PATH}" "${GST_BUILD_SOURCE_PATH}/subprojects/gstreamer")
|
64 |
+
endif()
|
65 |
+
if (NOT EXISTS "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-base")
|
66 |
+
file(RENAME "${GST_PLUGIN_BASE_SOURCE_PATH}" "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-base")
|
67 |
+
endif()
|
68 |
+
if (NOT EXISTS "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-good")
|
69 |
+
file(RENAME "${GST_PLUGIN_GOOD_SOURCE_PATH}" "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-good")
|
70 |
+
endif()
|
71 |
+
if (NOT EXISTS "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-bad")
|
72 |
+
file(RENAME "${GST_PLUGIN_BAD_SOURCE_PATH}" "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-bad")
|
73 |
+
endif()
|
74 |
+
if (NOT EXISTS "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-ugly")
|
75 |
+
file(RENAME "${GST_PLUGIN_UGLY_SOURCE_PATH}" "${GST_BUILD_SOURCE_PATH}/subprojects/gst-plugins-ugly")
|
76 |
+
endif()
|
77 |
+
if (NOT EXISTS "${GST_BUILD_SOURCE_PATH}/subprojects/gl-headers")
|
78 |
+
file(RENAME "${GST_MESON_PORTS_SOURCE_PATH}" "${GST_BUILD_SOURCE_PATH}/subprojects/gl-headers")
|
79 |
+
endif()
|
80 |
+
|
81 |
+
if(VCPKG_TARGET_IS_OSX)
|
82 |
+
# In Darwin platform, there can be an old version of `bison`,
|
83 |
+
# Which can't be used for `gst-build`. It requires 2.4+
|
84 |
+
vcpkg_find_acquire_program(BISON)
|
85 |
+
execute_process(
|
86 |
+
COMMAND ${BISON} --version
|
87 |
+
OUTPUT_VARIABLE BISON_OUTPUT
|
88 |
+
)
|
89 |
+
string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" BISON_VERSION "${BISON_OUTPUT}")
|
90 |
+
set(BISON_MAJOR ${CMAKE_MATCH_1})
|
91 |
+
set(BISON_MINOR ${CMAKE_MATCH_2})
|
92 |
+
message(STATUS "Using bison: ${BISON_MAJOR}.${BISON_MINOR}.${CMAKE_MATCH_3}")
|
93 |
+
if(NOT (BISON_MAJOR GREATER_EQUAL 2 AND BISON_MINOR GREATER_EQUAL 4))
|
94 |
+
message(WARNING "'bison' upgrade is required. Please check the https://stackoverflow.com/a/35161881")
|
95 |
+
endif()
|
96 |
+
endif()
|
97 |
+
|
98 |
+
# make tools like 'glib-mkenums' visible
|
99 |
+
get_filename_component(GLIB_TOOL_DIR "${CURRENT_INSTALLED_DIR}/tools/glib" ABSOLUTE)
|
100 |
+
message(STATUS "Using glib tools: ${GLIB_TOOL_DIR}")
|
101 |
+
vcpkg_add_to_path(PREPEND "${GLIB_TOOL_DIR}")
|
102 |
+
|
103 |
+
if ("x264" IN_LIST FEATURES)
|
104 |
+
set(PLUGIN_UGLY_X264 enabled)
|
105 |
+
else()
|
106 |
+
set(PLUGIN_UGLY_X264 disabled)
|
107 |
+
endif()
|
108 |
+
|
109 |
+
if("plugins-base" IN_LIST FEATURES)
|
110 |
+
set(PLUGIN_BASE_SUPPORT enabled)
|
111 |
+
else()
|
112 |
+
set(PLUGIN_BASE_SUPPORT disabled)
|
113 |
+
endif()
|
114 |
+
if("plugins-bad" IN_LIST FEATURES)
|
115 |
+
# requires 'libdrm', 'dssim', 'libmicrodns'
|
116 |
+
message(FATAL_ERROR "The feature 'plugins-bad' is not supported in this port version")
|
117 |
+
set(PLUGIN_BAD_SUPPORT enabled)
|
118 |
+
else()
|
119 |
+
set(PLUGIN_BAD_SUPPORT disabled)
|
120 |
+
endif()
|
121 |
+
if("plugins-ugly" IN_LIST FEATURES)
|
122 |
+
set(PLUGIN_UGLY_SUPPORT enabled)
|
123 |
+
else()
|
124 |
+
set(PLUGIN_UGLY_SUPPORT disabled)
|
125 |
+
endif()
|
126 |
+
|
127 |
+
if ("gl-graphene" IN_LIST FEATURES)
|
128 |
+
set(GL_GRAPHENE enabled)
|
129 |
+
else()
|
130 |
+
set(GL_GRAPHENE disabled)
|
131 |
+
endif()
|
132 |
+
|
133 |
+
if ("flac" IN_LIST FEATURES)
|
134 |
+
set(PLUGIN_GOOD_FLAC enabled)
|
135 |
+
else()
|
136 |
+
set(PLUGIN_GOOD_FLAC disabled)
|
137 |
+
endif()
|
138 |
+
|
139 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
140 |
+
set(LIBRARY_LINKAGE "shared")
|
141 |
+
else()
|
142 |
+
set(LIBRARY_LINKAGE "static")
|
143 |
+
endif()
|
144 |
+
|
145 |
+
# gst-build's meson configuration needs git. Make the tool visible.
|
146 |
+
vcpkg_find_acquire_program(GIT)
|
147 |
+
get_filename_component(GIT_DIR "${GIT}" DIRECTORY)
|
148 |
+
vcpkg_add_to_path("${GIT_DIR}")
|
149 |
+
|
150 |
+
#
|
151 |
+
# check scripts/cmake/vcpkg_configure_meson.cmake
|
152 |
+
# --wrap-mode=nodownload
|
153 |
+
#
|
154 |
+
# References
|
155 |
+
# https://github.com/GStreamer/gst-build/blob/1.18.4/meson_options.txt
|
156 |
+
# https://github.com/GStreamer/gst-plugins-base/blob/1.18.4/meson_options.txt
|
157 |
+
# https://github.com/GStreamer/gst-plugins-good/blob/1.18.4/meson_options.txt
|
158 |
+
# https://github.com/GStreamer/gst-plugins-bad/blob/1.18.4/meson_options.txt
|
159 |
+
# https://github.com/GStreamer/gst-plugins-ugly/blob/1.18.4/meson_options.txt
|
160 |
+
#
|
161 |
+
vcpkg_configure_meson(
|
162 |
+
SOURCE_PATH "${GST_BUILD_SOURCE_PATH}"
|
163 |
+
OPTIONS
|
164 |
+
# gstreamer
|
165 |
+
-Dgstreamer:default_library=${LIBRARY_LINKAGE}
|
166 |
+
-Dgstreamer:check=disabled
|
167 |
+
-Dgstreamer:libunwind=disabled
|
168 |
+
-Dgstreamer:libdw=disabled
|
169 |
+
-Dgstreamer:dbghelp=disabled
|
170 |
+
-Dgstreamer:bash-completion=disabled
|
171 |
+
-Dgstreamer:coretracers=disabled
|
172 |
+
-Dgstreamer:examples=disabled
|
173 |
+
-Dgstreamer:tests=disabled
|
174 |
+
-Dgstreamer:benchmarks=disabled
|
175 |
+
-Dgstreamer:tools=disabled
|
176 |
+
-Dgstreamer:doc=disabled
|
177 |
+
-Dgstreamer:introspection=disabled
|
178 |
+
-Dgstreamer:nls=disabled
|
179 |
+
# gst-plugins-base
|
180 |
+
-Dbase=${PLUGIN_BASE_SUPPORT}
|
181 |
+
-Dgst-plugins-base:default_library=${LIBRARY_LINKAGE}
|
182 |
+
-Dgst-plugins-base:examples=disabled
|
183 |
+
-Dgst-plugins-base:tests=disabled
|
184 |
+
-Dgst-plugins-base:doc=disabled
|
185 |
+
-Dgst-plugins-base:tools=disabled
|
186 |
+
-Dgst-plugins-base:introspection=disabled
|
187 |
+
-Dgst-plugins-base:nls=disabled
|
188 |
+
-Dgst-plugins-base:orc=disabled
|
189 |
+
-Dgst-plugins-base:pango=disabled
|
190 |
+
-Dgst-plugins-base:gl-graphene=${GL_GRAPHENE}
|
191 |
+
# gst-plugins-good
|
192 |
+
-Dgst-plugins-good:default_library=${LIBRARY_LINKAGE}
|
193 |
+
-Dgst-plugins-good:qt5=disabled
|
194 |
+
-Dgst-plugins-good:soup=disabled
|
195 |
+
-Dgst-plugins-good:cairo=auto # cairo[gobject]
|
196 |
+
-Dgst-plugins-good:speex=auto # speex
|
197 |
+
-Dgst-plugins-good:taglib=auto # taglib
|
198 |
+
-Dgst-plugins-good:vpx=auto # libvpx
|
199 |
+
-Dgst-plugins-good:examples=disabled
|
200 |
+
-Dgst-plugins-good:tests=disabled
|
201 |
+
-Dgst-plugins-good:doc=disabled
|
202 |
+
-Dgst-plugins-good:nls=disabled
|
203 |
+
-Dgst-plugins-good:orc=disabled
|
204 |
+
-Dgst-plugins-good:flac=${PLUGIN_GOOD_FLAC}
|
205 |
+
# gst-plugins-bad
|
206 |
+
-Dbad=${PLUGIN_BAD_SUPPORT}
|
207 |
+
-Dgst-plugins-bad:default_library=${LIBRARY_LINKAGE}
|
208 |
+
-Dgst-plugins-bad:opencv=disabled
|
209 |
+
-Dgst-plugins-bad:hls-crypto=openssl
|
210 |
+
-Dgst-plugins-bad:examples=disabled
|
211 |
+
-Dgst-plugins-bad:tests=disabled
|
212 |
+
-Dgst-plugins-bad:doc=disabled
|
213 |
+
-Dgst-plugins-bad:introspection=disabled
|
214 |
+
-Dgst-plugins-bad:nls=${LIBRARY_LINKAGE}
|
215 |
+
-Dgst-plugins-bad:orc=disabled
|
216 |
+
# gst-plugins-ugly
|
217 |
+
-Dugly=${PLUGIN_UGLY_SUPPORT}
|
218 |
+
-Dgst-plugins-ugly:default_library=${LIBRARY_LINKAGE}
|
219 |
+
-Dgst-plugins-ugly:tests=disabled
|
220 |
+
-Dgst-plugins-ugly:doc=disabled
|
221 |
+
-Dgst-plugins-ugly:nls=disabled
|
222 |
+
-Dgst-plugins-ugly:orc=disabled
|
223 |
+
-Dgst-plugins-ugly:x264=${PLUGIN_UGLY_X264}
|
224 |
+
# see ${GST_BUILD_SOURCE_PATH}/meson_options.txt
|
225 |
+
-Dpython=disabled
|
226 |
+
-Dlibav=disabled
|
227 |
+
-Dlibnice=disabled # libnice
|
228 |
+
-Ddevtools=disabled
|
229 |
+
-Dges=disabled
|
230 |
+
-Drtsp_server=disabled
|
231 |
+
-Domx=disabled
|
232 |
+
-Dvaapi=disabled
|
233 |
+
-Dsharp=disabled
|
234 |
+
-Drs=disabled
|
235 |
+
-Dgst-examples=disabled
|
236 |
+
-Dtls=disabled
|
237 |
+
-Dtests=disabled # common options
|
238 |
+
-Dexamples=disabled
|
239 |
+
-Dintrospection=disabled
|
240 |
+
-Dnls=disabled
|
241 |
+
-Dorc=disabled
|
242 |
+
-Ddoc=disabled
|
243 |
+
-Dgtk_doc=disabled
|
244 |
+
-Ddevtools=disabled
|
245 |
+
OPTIONS_DEBUG
|
246 |
+
-Dgstreamer:gst_debug=true # plugins will reference this value
|
247 |
+
OPTIONS_RELEASE
|
248 |
+
-Dgstreamer:gst_debug=false
|
249 |
+
-Dgstreamer:gobject-cast-checks=disabled
|
250 |
+
-Dgstreamer:glib-asserts=disabled
|
251 |
+
-Dgstreamer:glib-checks=disabled
|
252 |
+
-Dgstreamer:extra-checks=disabled
|
253 |
+
-Dgst-plugins-base:gobject-cast-checks=disabled
|
254 |
+
-Dgst-plugins-base:glib-asserts=disabled
|
255 |
+
-Dgst-plugins-base:glib-checks=disabled
|
256 |
+
-Dgst-plugins-good:gobject-cast-checks=disabled
|
257 |
+
-Dgst-plugins-good:glib-asserts=disabled
|
258 |
+
-Dgst-plugins-good:glib-checks=disabled
|
259 |
+
-Dgst-plugins-bad:gobject-cast-checks=disabled
|
260 |
+
-Dgst-plugins-bad:glib-asserts=disabled
|
261 |
+
-Dgst-plugins-bad:glib-checks=disabled
|
262 |
+
)
|
263 |
+
|
264 |
+
vcpkg_install_meson()
|
265 |
+
|
266 |
+
# Remove duplicated GL headers (we already have `opengl-registry`)
|
267 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/KHR"
|
268 |
+
"${CURRENT_PACKAGES_DIR}/include/GL"
|
269 |
+
)
|
270 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/include/gst/gl/gstglconfig.h"
|
271 |
+
"${CURRENT_PACKAGES_DIR}/include/gstreamer-1.0/gst/gl/gstglconfig.h"
|
272 |
+
)
|
273 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
274 |
+
"${CURRENT_PACKAGES_DIR}/debug/libexec"
|
275 |
+
"${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/include"
|
276 |
+
"${CURRENT_PACKAGES_DIR}/libexec"
|
277 |
+
"${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/include"
|
278 |
+
)
|
279 |
+
|
280 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
281 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin"
|
282 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
283 |
+
)
|
284 |
+
set(PREFIX "${CMAKE_SHARED_LIBRARY_PREFIX}")
|
285 |
+
set(SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
286 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/${PREFIX}gstreamer-full-1.0${SUFFIX}"
|
287 |
+
"${CURRENT_PACKAGES_DIR}/lib/${PREFIX}gstreamer-full-1.0${SUFFIX}"
|
288 |
+
)
|
289 |
+
endif()
|
290 |
+
|
291 |
+
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
292 |
+
if (NOT VCPKG_BUILD_TYPE)
|
293 |
+
file(GLOB DBG_BINS "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/*.dll"
|
294 |
+
"${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/*.pdb"
|
295 |
+
)
|
296 |
+
file(COPY ${DBG_BINS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
297 |
+
endif()
|
298 |
+
file(GLOB REL_BINS "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/*.dll"
|
299 |
+
"${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/*.pdb"
|
300 |
+
)
|
301 |
+
file(COPY ${REL_BINS} DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
302 |
+
file(REMOVE ${DBG_BINS} ${REL_BINS})
|
303 |
+
endif()
|
304 |
+
|
305 |
+
vcpkg_fixup_pkgconfig()
|
306 |
+
|
307 |
+
file(INSTALL "${GST_BUILD_SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/vcpkg.json
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gstreamer",
|
3 |
+
"version": "1.19.2",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "GStreamer open-source multimedia framework core library",
|
6 |
+
"homepage": "https://gstreamer.freedesktop.org/",
|
7 |
+
"license": "LGPL-2.0",
|
8 |
+
"supports": "!linux & !uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "cairo",
|
12 |
+
"features": [
|
13 |
+
"gobject"
|
14 |
+
],
|
15 |
+
"platform": "windows | osx"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "freetype",
|
19 |
+
"features": [
|
20 |
+
"brotli",
|
21 |
+
"png",
|
22 |
+
"zlib"
|
23 |
+
]
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "glib",
|
27 |
+
"host": true
|
28 |
+
},
|
29 |
+
"libnice",
|
30 |
+
"libxml2",
|
31 |
+
{
|
32 |
+
"name": "opengl-registry",
|
33 |
+
"platform": "windows | osx"
|
34 |
+
},
|
35 |
+
"openssl",
|
36 |
+
{
|
37 |
+
"name": "vcpkg-tool-meson",
|
38 |
+
"host": true
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"name": "yasm-tool-helper",
|
42 |
+
"platform": "windows"
|
43 |
+
}
|
44 |
+
],
|
45 |
+
"default-features": [
|
46 |
+
"plugins-base",
|
47 |
+
"plugins-good",
|
48 |
+
"plugins-ugly"
|
49 |
+
],
|
50 |
+
"features": {
|
51 |
+
"flac": {
|
52 |
+
"description": "FLAC audio codec plugin",
|
53 |
+
"supports": "!arm",
|
54 |
+
"dependencies": [
|
55 |
+
"libflac"
|
56 |
+
]
|
57 |
+
},
|
58 |
+
"gl-graphene": {
|
59 |
+
"description": "Use Graphene in OpenGL plugin",
|
60 |
+
"supports": "!arm",
|
61 |
+
"dependencies": [
|
62 |
+
"graphene"
|
63 |
+
]
|
64 |
+
},
|
65 |
+
"plugins-bad": {
|
66 |
+
"description": "'Bad' GStreamer plugins and helper libraries",
|
67 |
+
"dependencies": [
|
68 |
+
{
|
69 |
+
"name": "gstreamer",
|
70 |
+
"default-features": false,
|
71 |
+
"features": [
|
72 |
+
"rawparse"
|
73 |
+
],
|
74 |
+
"platform": "!arm"
|
75 |
+
},
|
76 |
+
"openh264"
|
77 |
+
]
|
78 |
+
},
|
79 |
+
"plugins-base": {
|
80 |
+
"description": "'Base' GStreamer plugins and helper libraries",
|
81 |
+
"dependencies": [
|
82 |
+
{
|
83 |
+
"name": "gstreamer",
|
84 |
+
"default-features": false,
|
85 |
+
"features": [
|
86 |
+
"gl-graphene",
|
87 |
+
"rawparse"
|
88 |
+
],
|
89 |
+
"platform": "!arm"
|
90 |
+
}
|
91 |
+
]
|
92 |
+
},
|
93 |
+
"plugins-good": {
|
94 |
+
"description": "'Good' GStreamer plugins and helper libraries",
|
95 |
+
"dependencies": [
|
96 |
+
"bzip2",
|
97 |
+
{
|
98 |
+
"name": "gstreamer",
|
99 |
+
"default-features": false,
|
100 |
+
"features": [
|
101 |
+
"flac"
|
102 |
+
],
|
103 |
+
"platform": "!arm"
|
104 |
+
},
|
105 |
+
"jack2",
|
106 |
+
"libjpeg-turbo",
|
107 |
+
"libpng",
|
108 |
+
"libvpx",
|
109 |
+
"mpg123",
|
110 |
+
"speex",
|
111 |
+
"taglib"
|
112 |
+
]
|
113 |
+
},
|
114 |
+
"plugins-ugly": {
|
115 |
+
"description": "'Ugly' GStreamer plugins and helper libraries",
|
116 |
+
"dependencies": [
|
117 |
+
{
|
118 |
+
"name": "gstreamer",
|
119 |
+
"default-features": false,
|
120 |
+
"features": [
|
121 |
+
"x264"
|
122 |
+
],
|
123 |
+
"platform": "!arm"
|
124 |
+
}
|
125 |
+
]
|
126 |
+
},
|
127 |
+
"rawparse": {
|
128 |
+
"description": "Build with libraw support",
|
129 |
+
"supports": "!arm",
|
130 |
+
"dependencies": [
|
131 |
+
"libraw"
|
132 |
+
]
|
133 |
+
},
|
134 |
+
"x264": {
|
135 |
+
"description": "Colon separated list of additional x264 library paths, e.g. for 10-bit version",
|
136 |
+
"supports": "!arm",
|
137 |
+
"dependencies": [
|
138 |
+
"x264"
|
139 |
+
]
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/clang-tidy-no-lint.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/googletest/include/gtest/gtest-matchers.h b/googletest/include/gtest/gtest-matchers.h
|
2 |
+
index 2bd3dcf6..12cd60f6 100644
|
3 |
+
--- a/googletest/include/gtest/gtest-matchers.h
|
4 |
+
+++ b/googletest/include/gtest/gtest-matchers.h
|
5 |
+
@@ -403,6 +403,7 @@ class MatcherBase : private MatcherDescriberInterface {
|
6 |
+
};
|
7 |
+
|
8 |
+
void Destroy() {
|
9 |
+
+ // NOLINTNEXTLINE
|
10 |
+
if (IsShared() && buffer_.shared->Unref()) {
|
11 |
+
vtable_->shared_destroy(buffer_.shared);
|
12 |
+
}
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/fix-main-lib-path.patch
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt
|
2 |
+
index e7df8ec..1ecd596 100644
|
3 |
+
--- a/googlemock/CMakeLists.txt
|
4 |
+
+++ b/googlemock/CMakeLists.txt
|
5 |
+
@@ -120,7 +120,8 @@ endif()
|
6 |
+
########################################################################
|
7 |
+
#
|
8 |
+
# Install rules
|
9 |
+
-install_project(gmock gmock_main)
|
10 |
+
+install_project(gmock)
|
11 |
+
+install_project(gmock_main)
|
12 |
+
|
13 |
+
########################################################################
|
14 |
+
#
|
15 |
+
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
|
16 |
+
index abdd98b..7d1c01d 100644
|
17 |
+
--- a/googletest/CMakeLists.txt
|
18 |
+
+++ b/googletest/CMakeLists.txt
|
19 |
+
@@ -148,7 +148,8 @@ target_link_libraries(gtest_main PUBLIC gtest)
|
20 |
+
########################################################################
|
21 |
+
#
|
22 |
+
# Install rules
|
23 |
+
-install_project(gtest gtest_main)
|
24 |
+
+install_project(gtest)
|
25 |
+
+install_project(gtest_main)
|
26 |
+
|
27 |
+
########################################################################
|
28 |
+
#
|
29 |
+
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake
|
30 |
+
index 8d8d60a..b08ce28 100644
|
31 |
+
--- a/googletest/cmake/internal_utils.cmake
|
32 |
+
+++ b/googletest/cmake/internal_utils.cmake
|
33 |
+
@@ -315,11 +315,15 @@ function(install_project)
|
34 |
+
install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/"
|
35 |
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
36 |
+
# Install the project targets.
|
37 |
+
+ set (LIB_INSTALL_DST ${CMAKE_INSTALL_LIBDIR})
|
38 |
+
+ if (${ARGN} MATCHES "_main")
|
39 |
+
+ set (LIB_INSTALL_DST ${CMAKE_INSTALL_LIBDIR}/manual-link)
|
40 |
+
+ endif()
|
41 |
+
install(TARGETS ${ARGN}
|
42 |
+
EXPORT ${targets_export_name}
|
43 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
44 |
+
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
45 |
+
- LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
46 |
+
+ ARCHIVE DESTINATION "${LIB_INSTALL_DST}"
|
47 |
+
+ LIBRARY DESTINATION "${LIB_INSTALL_DST}")
|
48 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
49 |
+
# Install PDBs
|
50 |
+
foreach(t ${ARGN})
|
51 |
+
@@ -328,7 +332,7 @@ function(install_project)
|
52 |
+
get_target_property(t_pdb_output_directory ${t} PDB_OUTPUT_DIRECTORY)
|
53 |
+
install(FILES
|
54 |
+
"${t_pdb_output_directory}/\${CMAKE_INSTALL_CONFIG_NAME}/$<$<CONFIG:Debug>:${t_pdb_name_debug}>$<$<NOT:$<CONFIG:Debug>>:${t_pdb_name}>.pdb"
|
55 |
+
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
56 |
+
+ DESTINATION ${LIB_INSTALL_DST}
|
57 |
+
OPTIONAL)
|
58 |
+
endforeach()
|
59 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/portfile.cmake
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (EXISTS "${CURRENT_BUILDTREES_DIR}/src/.git")
|
2 |
+
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/src)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO google/googletest
|
8 |
+
REF release-1.11.0
|
9 |
+
SHA512 6fcc7827e4c4d95e3ae643dd65e6c4fc0e3d04e1778b84f6e06e390410fe3d18026c131d828d949d2f20dde6327d30ecee24dcd3ef919e21c91e010d149f3a28
|
10 |
+
HEAD_REF main
|
11 |
+
PATCHES
|
12 |
+
clang-tidy-no-lint.patch
|
13 |
+
fix-main-lib-path.patch
|
14 |
+
remove-werror.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" GTEST_FORCE_SHARED_CRT)
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
OPTIONS
|
22 |
+
-DBUILD_GMOCK=ON
|
23 |
+
-Dgtest_force_shared_crt=${GTEST_FORCE_SHARED_CRT}
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_cmake_install()
|
27 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/GTest)
|
28 |
+
|
29 |
+
file(
|
30 |
+
INSTALL
|
31 |
+
"${SOURCE_PATH}/googletest/src/gtest.cc"
|
32 |
+
"${SOURCE_PATH}/googletest/src/gtest_main.cc"
|
33 |
+
"${SOURCE_PATH}/googletest/src/gtest-all.cc"
|
34 |
+
"${SOURCE_PATH}/googletest/src/gtest-death-test.cc"
|
35 |
+
"${SOURCE_PATH}/googletest/src/gtest-filepath.cc"
|
36 |
+
"${SOURCE_PATH}/googletest/src/gtest-internal-inl.h"
|
37 |
+
"${SOURCE_PATH}/googletest/src/gtest-matchers.cc"
|
38 |
+
"${SOURCE_PATH}/googletest/src/gtest-port.cc"
|
39 |
+
"${SOURCE_PATH}/googletest/src/gtest-printers.cc"
|
40 |
+
"${SOURCE_PATH}/googletest/src/gtest-test-part.cc"
|
41 |
+
"${SOURCE_PATH}/googletest/src/gtest-typed-test.cc"
|
42 |
+
DESTINATION
|
43 |
+
${CURRENT_PACKAGES_DIR}/src
|
44 |
+
)
|
45 |
+
|
46 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
47 |
+
|
48 |
+
vcpkg_fixup_pkgconfig()
|
49 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
50 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gmock_main.pc" "libdir=\${prefix}/lib" "libdir=\${prefix}/lib/manual-link")
|
51 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gtest_main.pc" "libdir=\${prefix}/lib" "libdir=\${prefix}/lib/manual-link")
|
52 |
+
endif()
|
53 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
54 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gmock_main.pc" "libdir=\${prefix}/lib" "libdir=\${prefix}/lib/manual-link")
|
55 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gtest_main.pc" "libdir=\${prefix}/lib" "libdir=\${prefix}/lib/manual-link")
|
56 |
+
endif()
|
57 |
+
vcpkg_copy_pdbs()
|
58 |
+
|
59 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/remove-werror.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake
|
2 |
+
index 8d8d60a8..58fc9bfb 100644
|
3 |
+
--- a/googletest/cmake/internal_utils.cmake
|
4 |
+
+++ b/googletest/cmake/internal_utils.cmake
|
5 |
+
@@ -84,13 +84,13 @@ macro(config_compiler_and_linker)
|
6 |
+
# Ensure MSVC treats source files as UTF-8 encoded.
|
7 |
+
set(cxx_base_flags "${cxx_base_flags} -utf-8")
|
8 |
+
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
9 |
+
- set(cxx_base_flags "-Wall -Wshadow -Werror -Wconversion")
|
10 |
+
+ set(cxx_base_flags "-Wall -Wshadow -Wconversion")
|
11 |
+
set(cxx_exception_flags "-fexceptions")
|
12 |
+
set(cxx_no_exception_flags "-fno-exceptions")
|
13 |
+
set(cxx_strict_flags "-W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wredundant-decls")
|
14 |
+
set(cxx_no_rtti_flags "-fno-rtti")
|
15 |
+
elseif (CMAKE_COMPILER_IS_GNUCXX)
|
16 |
+
- set(cxx_base_flags "-Wall -Wshadow -Werror")
|
17 |
+
+ set(cxx_base_flags "-Wall -Wshadow")
|
18 |
+
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0)
|
19 |
+
set(cxx_base_flags "${cxx_base_flags} -Wno-error=dangling-else")
|
20 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/usage
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package gtest is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
enable_testing()
|
4 |
+
|
5 |
+
find_package(GTest CONFIG REQUIRED)
|
6 |
+
target_link_libraries(main PRIVATE GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main)
|
7 |
+
|
8 |
+
add_test(AllTestsInMain main)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtest/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gtest",
|
3 |
+
"version-semver": "1.11.0",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "GoogleTest and GoogleMock testing frameworks",
|
6 |
+
"homepage": "https://github.com/google/googletest",
|
7 |
+
"license": "BSD-3-Clause",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/0001-build.patch
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/meson.build b/meson.build
|
2 |
+
index 9fe9cd5ac..19a19e5c6 100644
|
3 |
+
--- a/meson.build
|
4 |
+
+++ b/meson.build
|
5 |
+
@@ -845,24 +845,24 @@ subdir('po-properties')
|
6 |
+
subdir('docs/tools')
|
7 |
+
subdir('docs/reference')
|
8 |
+
|
9 |
+
-if not meson.is_cross_build()
|
10 |
+
- if meson.version().version_compare('>=0.57.0')
|
11 |
+
- gnome.post_install(
|
12 |
+
- glib_compile_schemas: true,
|
13 |
+
- gio_querymodules: gio_module_dirs,
|
14 |
+
- gtk_update_icon_cache: true,
|
15 |
+
- )
|
16 |
+
- else
|
17 |
+
- meson.add_install_script('build-aux/meson/post-install.py',
|
18 |
+
- gtk_api_version,
|
19 |
+
- gtk_binary_version,
|
20 |
+
- gtk_libdir,
|
21 |
+
- gtk_datadir,
|
22 |
+
- gtk_bindir)
|
23 |
+
- endif
|
24 |
+
-else
|
25 |
+
- message('Not executing post-install steps automatically when cross compiling')
|
26 |
+
-endif
|
27 |
+
+#if not meson.is_cross_build()
|
28 |
+
+# if meson.version().version_compare('>=0.57.0')
|
29 |
+
+# gnome.post_install(
|
30 |
+
+# glib_compile_schemas: true,
|
31 |
+
+# gio_querymodules: gio_module_dirs,
|
32 |
+
+# gtk_update_icon_cache: true,
|
33 |
+
+# )
|
34 |
+
+# else
|
35 |
+
+# meson.add_install_script('build-aux/meson/post-install.py',
|
36 |
+
+# gtk_api_version,
|
37 |
+
+# gtk_binary_version,
|
38 |
+
+# gtk_libdir,
|
39 |
+
+# gtk_datadir,
|
40 |
+
+# gtk_bindir)
|
41 |
+
+# endif
|
42 |
+
+#else
|
43 |
+
+# message('Not executing post-install steps automatically when cross compiling')
|
44 |
+
+#endif
|
45 |
+
|
46 |
+
if not meson.is_subproject()
|
47 |
+
meson.add_dist_script('build-aux/meson/dist-data.py')
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/0002-windows-build.patch
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -ru /gdk/win32/gdkinput-winpointer.c b/gdk/win32/gdkinput-winpointer.c
|
2 |
+
--- a/gdk/win32/gdkinput-winpointer.c
|
3 |
+
+++ b/gdk/win32/gdkinput-winpointer.c
|
4 |
+
@@ -18,6 +18,7 @@
|
5 |
+
#include "config.h"
|
6 |
+
|
7 |
+
#include <gdk/gdk.h>
|
8 |
+
+#include "gdk-private.h"
|
9 |
+
#include "gdkwin32.h"
|
10 |
+
#include "gdkprivate-win32.h"
|
11 |
+
#include "gdkdevicemanager-win32.h"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/0004-macos-build.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -u a/gdk/macos/gdkmacoseventsource-private.h b/gdk/macos/gdkmacoseventsource-private.h
|
2 |
+
--- a/gdk/macos/gdkmacoseventsource-private.h
|
3 |
+
+++ b/gdk/macos/gdkmacoseventsource-private.h
|
4 |
+
@@ -24,6 +24,8 @@
|
5 |
+
|
6 |
+
#include "gdkmacosdisplay.h"
|
7 |
+
|
8 |
+
+#include "gdk-private.h"
|
9 |
+
+
|
10 |
+
G_BEGIN_DECLS
|
11 |
+
|
12 |
+
typedef enum
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/portfile.cmake
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(GTK_VERSION 4.6.0)
|
2 |
+
|
3 |
+
vcpkg_from_gitlab(
|
4 |
+
GITLAB_URL https://gitlab.gnome.org/
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO GNOME/gtk
|
7 |
+
REF 70cb61fb7104c76a15bc6494a10e6ff1d470f6d8 #v4.6.0
|
8 |
+
SHA512 dba6ce5a8306f9dda290f3785d6d15aee67c66329ab0756b7b7573387c1a512e96d3b53b24ed342ce7376832dcac20fb24025f2b8986f74d91a88e4fcf3de6ae
|
9 |
+
HEAD_REF master # branch name
|
10 |
+
PATCHES
|
11 |
+
0001-build.patch
|
12 |
+
0002-windows-build.patch
|
13 |
+
0004-macos-build.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
17 |
+
get_filename_component(PKGCONFIG_DIR "${PKGCONFIG}" DIRECTORY )
|
18 |
+
vcpkg_add_to_path("${PKGCONFIG_DIR}") # Post install script runs pkg-config so it needs to be on PATH
|
19 |
+
vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/glib/")
|
20 |
+
|
21 |
+
set(x11 false)
|
22 |
+
set(win32 false)
|
23 |
+
set(osx false)
|
24 |
+
if(VCPKG_TARGET_IS_LINUX)
|
25 |
+
set(OPTIONS -Dwayland-backend=false) # CI missing at least wayland-protocols
|
26 |
+
set(x11 true)
|
27 |
+
# Enable the wayland gdk backend (only when building on Unix except for macOS)
|
28 |
+
elseif(VCPKG_TARGET_IS_WINDOWS)
|
29 |
+
set(win32 true)
|
30 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
31 |
+
set(osx true)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
list(APPEND OPTIONS -Dx11-backend=${x11}) #Enable the X11 gdk backend (only when building on Unix)
|
35 |
+
list(APPEND OPTIONS -Dbroadway-backend=false) #Enable the broadway (HTML5) gdk backend
|
36 |
+
list(APPEND OPTIONS -Dwin32-backend=${win32}) #Enable the Windows gdk backend (only when building on Windows)
|
37 |
+
list(APPEND OPTIONS -Dmacos-backend=${osx}) #Enable the macOS gdk backend (only when building on macOS)
|
38 |
+
|
39 |
+
vcpkg_configure_meson(
|
40 |
+
SOURCE_PATH ${SOURCE_PATH}
|
41 |
+
OPTIONS
|
42 |
+
${OPTIONS}
|
43 |
+
-Ddemos=false
|
44 |
+
-Dbuild-examples=false
|
45 |
+
-Dbuild-tests=false
|
46 |
+
-Dinstall-tests=false
|
47 |
+
-Dgtk_doc=false
|
48 |
+
-Dman-pages=false
|
49 |
+
-Dintrospection=disabled
|
50 |
+
-Dmedia-ffmpeg=disabled # Build the ffmpeg media backend
|
51 |
+
-Dmedia-gstreamer=disabled # Build the gstreamer media backend
|
52 |
+
-Dprint-cups=disabled # Build the cups print backend
|
53 |
+
-Dvulkan=disabled # Enable support for the Vulkan graphics API
|
54 |
+
-Dcloudproviders=disabled # Enable the cloudproviders support
|
55 |
+
-Dsysprof=disabled # include tracing support for sysprof
|
56 |
+
-Dtracker=disabled # Enable Tracker3 filechooser search
|
57 |
+
-Dcolord=disabled # Build colord support for the CUPS printing backend
|
58 |
+
ADDITIONAL_NATIVE_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
59 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
60 |
+
glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
61 |
+
gdbus-codegen='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/gdbus-codegen'
|
62 |
+
glib-compile-schemas='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-schemas${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
63 |
+
sassc='${CURRENT_INSTALLED_DIR}/tools/sassc/bin/sassc${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
64 |
+
ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
65 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
66 |
+
glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
67 |
+
gdbus-codegen='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/gdbus-codegen'
|
68 |
+
glib-compile-schemas='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-schemas${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
69 |
+
sassc='${CURRENT_INSTALLED_DIR}/tools/sassc/bin/sassc${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
70 |
+
)
|
71 |
+
|
72 |
+
vcpkg_install_meson()
|
73 |
+
|
74 |
+
# If somebody finds out how to access and forward env variables to
|
75 |
+
# the meson install script be my guest. Nevertheless the script still
|
76 |
+
# needs manual execution in the crosscompiling case.
|
77 |
+
vcpkg_find_acquire_program(PYTHON3)
|
78 |
+
foreach(_config release debug)
|
79 |
+
if(_config STREQUAL "release")
|
80 |
+
set(_short rel)
|
81 |
+
set(_path_suffix)
|
82 |
+
else()
|
83 |
+
set(_short dbg)
|
84 |
+
set(_path_suffix /debug)
|
85 |
+
endif()
|
86 |
+
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}${_path_suffix}/lib")
|
87 |
+
continue()
|
88 |
+
endif()
|
89 |
+
message(STATUS "Running post install script: ${TARGET_TRIPLET}-${_short}")
|
90 |
+
|
91 |
+
set(PKGCONFIG_INSTALLED_DIR "${CURRENT_INSTALLED_DIR}${_path_suffix}/lib/pkgconfig/")
|
92 |
+
set(ENV{PKG_CONFIG_PATH} "${PKGCONFIG_INSTALLED_DIR}")
|
93 |
+
#file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}${_path_suffix}/lib/gtk-4.0/4.0.0/media")
|
94 |
+
#file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}${_path_suffix}/lib/gtk-4.0/4.0.0/immodules")
|
95 |
+
#file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}${_path_suffix}/lib/gtk-4.0/4.0.0/printbackends")
|
96 |
+
vcpkg_execute_required_process(
|
97 |
+
COMMAND "${PYTHON3}" "${SOURCE_PATH}/build-aux/meson/post-install.py" 4.0 4.0.0 "${CURRENT_PACKAGES_DIR}${_path_suffix}/lib" "${CURRENT_PACKAGES_DIR}${_path_suffix}/share" "${CURRENT_PACKAGES_DIR}${_path_suffix}/bin"
|
98 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
99 |
+
LOGNAME post-install-${TARGET_TRIPLET}-${_short}
|
100 |
+
)
|
101 |
+
unset(ENV{PKG_CONFIG_PATH})
|
102 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}${_path_suffix}/lib/gtk-4.0")
|
103 |
+
#file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}${_path_suffix}/bin/gtk-4.0")
|
104 |
+
#file(RENAME "${CURRENT_PACKAGES_DIR}${_path_suffix}/lib/gtk-4.0/" "${CURRENT_PACKAGES_DIR}${_path_suffix}/bin/gtk-4.0")
|
105 |
+
message(STATUS "Post install ${TARGET_TRIPLET}-${_short} done")
|
106 |
+
endforeach()
|
107 |
+
|
108 |
+
vcpkg_copy_pdbs()
|
109 |
+
|
110 |
+
vcpkg_fixup_pkgconfig()
|
111 |
+
|
112 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
113 |
+
|
114 |
+
set(TOOL_NAMES gtk4-builder-tool
|
115 |
+
gtk4-encode-symbolic-svg
|
116 |
+
gtk4-query-settings
|
117 |
+
gtk4-update-icon-cache)
|
118 |
+
if(VCPKG_TARGET_IS_LINUX)
|
119 |
+
list(APPEND TOOL_NAMES gtk4-launch)
|
120 |
+
endif()
|
121 |
+
vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN)
|
122 |
+
|
123 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
124 |
+
|
125 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
126 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
127 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtk/vcpkg.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gtk",
|
3 |
+
"version": "4.6.0",
|
4 |
+
"description": "Portable library for creating graphical user interfaces.",
|
5 |
+
"homepage": "https://www.gtk.org/",
|
6 |
+
"license": "LGPL-2.0-only",
|
7 |
+
"dependencies": [
|
8 |
+
"atk",
|
9 |
+
{
|
10 |
+
"name": "cairo",
|
11 |
+
"default-features": false,
|
12 |
+
"features": [
|
13 |
+
"gobject"
|
14 |
+
]
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "cairo",
|
18 |
+
"default-features": false,
|
19 |
+
"features": [
|
20 |
+
"x11"
|
21 |
+
],
|
22 |
+
"platform": "linux"
|
23 |
+
},
|
24 |
+
"gdk-pixbuf",
|
25 |
+
"gettext",
|
26 |
+
"glib",
|
27 |
+
{
|
28 |
+
"name": "glib",
|
29 |
+
"host": true
|
30 |
+
},
|
31 |
+
"graphene",
|
32 |
+
"libepoxy",
|
33 |
+
"pango",
|
34 |
+
"sassc",
|
35 |
+
{
|
36 |
+
"name": "vcpkg-tool-meson",
|
37 |
+
"host": true
|
38 |
+
}
|
39 |
+
]
|
40 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtkmm/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://ftp.gnome.org/pub/GNOME/sources/gtkmm/4.6/gtkmm-4.6.0.tar.xz"
|
3 |
+
FILENAME "gtkmm-4.6.0.tar.xz"
|
4 |
+
SHA512 d1040be44d133cfa016efc581b79c5303806d0d441b57dcc22bd84a05c3e7934f9b7b894e71d7f4a0be332daba3dd58ef558f58070b83bf8a9de7d1027d92199
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_configure_meson(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
OPTIONS
|
15 |
+
-Dmsvc14x-parallel-installable=false # Use separate DLL and LIB filenames for Visual Studio 2017 and 2019
|
16 |
+
-Dbuild-tests=false
|
17 |
+
-Dbuild-demos=false
|
18 |
+
ADDITIONAL_NATIVE_BINARIES glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
19 |
+
ADDITIONAL_CROSS_BINARIES glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_meson()
|
23 |
+
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
vcpkg_fixup_pkgconfig()
|
27 |
+
|
28 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtkmm/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gtkmm",
|
3 |
+
"version": "4.6.0",
|
4 |
+
"description": "gtkmm is the official C++ interface for the popular GUI library GTK+.",
|
5 |
+
"homepage": "https://www.gtkmm.org/",
|
6 |
+
"license": "LGPL-3.0-or-later",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"atk",
|
10 |
+
"atkmm",
|
11 |
+
"cairo",
|
12 |
+
"cairomm",
|
13 |
+
"gdk-pixbuf",
|
14 |
+
"gettext",
|
15 |
+
"glib",
|
16 |
+
{
|
17 |
+
"name": "glib",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
"glibmm",
|
21 |
+
"gtk",
|
22 |
+
"libepoxy",
|
23 |
+
"pango",
|
24 |
+
"pangomm",
|
25 |
+
{
|
26 |
+
"name": "vcpkg-tool-meson",
|
27 |
+
"host": true
|
28 |
+
}
|
29 |
+
]
|
30 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtl/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO greg7mdp/gtl
|
6 |
+
REF 1.00
|
7 |
+
SHA512 842a5e2634919a04fdd87995a8ada2f949c51a070a7c175043e0f9105a93248325023f85b28f9406276c2912a0fb4015a2e9ba30113d4a0214492da0dc5e5716
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
# Use greg7mdp/gtl's own build process, skipping examples and tests
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
)
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
# Delete redundant directories
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/doc")
|
19 |
+
|
20 |
+
# Put the licence file where vcpkg expects it
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gtl/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gtl",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "Greg's Template Library of useful classes.",
|
5 |
+
"license": "Apache-2.0",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
}
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/fix-M_PI-in-windows.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/curvature.c b/src/curvature.c
|
2 |
+
index 70f6af2..a5c0187 100644
|
3 |
+
--- a/src/curvature.c
|
4 |
+
+++ b/src/curvature.c
|
5 |
+
@@ -17,6 +17,9 @@
|
6 |
+
* Boston, MA 02111-1307, USA.
|
7 |
+
*/
|
8 |
+
|
9 |
+
+#ifdef _WIN32
|
10 |
+
+#define _USE_MATH_DEFINES
|
11 |
+
+#endif
|
12 |
+
#include <math.h>
|
13 |
+
#include "gts.h"
|
14 |
+
|
15 |
+
diff --git a/src/triangle.c b/src/triangle.c
|
16 |
+
index 1d82869..47170c6 100644
|
17 |
+
--- a/src/triangle.c
|
18 |
+
+++ b/src/triangle.c
|
19 |
+
@@ -17,6 +17,9 @@
|
20 |
+
* Boston, MA 02111-1307, USA.
|
21 |
+
*/
|
22 |
+
|
23 |
+
+#ifdef _WIN32
|
24 |
+
+#define _USE_MATH_DEFINES
|
25 |
+
+#endif
|
26 |
+
#include <math.h>
|
27 |
+
#include "gts.h"
|
28 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/fix-pkgconfig.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f458c35..8035507 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -124,3 +124,11 @@ INSTALL(FILES
|
6 |
+
src/gtsconfig.h
|
7 |
+
DESTINATION include COMPONENT Development
|
8 |
+
)
|
9 |
+
+
|
10 |
+
+set(prefix ${CMAKE_INSTALL_PREFIX})
|
11 |
+
+set(exec_prefix ${CMAKE_INSTALL_PREFIX})
|
12 |
+
+set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
|
13 |
+
+set(includedir ${CMAKE_INSTALL_PREFIX}/include)
|
14 |
+
+
|
15 |
+
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/gts.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/gts.pc" @ONLY)
|
16 |
+
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/gts.pc" DESTINATION lib/pkgconfig)
|
17 |
+
|
18 |
+
diff --git a/gts.pc.in b/gts.pc.in
|
19 |
+
index 39626d7..bcd4014 100644
|
20 |
+
--- a/gts.pc.in
|
21 |
+
+++ b/gts.pc.in
|
22 |
+
@@ -7,5 +7,5 @@ Name: GTS
|
23 |
+
Description: GNU Triangulated Surface Library
|
24 |
+
Version: @VERSION@
|
25 |
+
Requires: glib-2.0,gthread-2.0,gmodule-2.0
|
26 |
+
-Libs: -L${libdir} @LIBS@ -lgts -lm
|
27 |
+
+Libs: -L${libdir} @LIBS@ -lgts
|
28 |
+
Cflags: -I${includedir}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/glib2.patch
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 941e9b96b..ea031828d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -85,30 +85,35 @@ include_directories(
|
6 |
+
${CMAKE_CURRENT_SOURCE_DIR}/src
|
7 |
+
)
|
8 |
+
|
9 |
+
-find_library(glib_LIBRARY NAMES glib libglib glib-2.0 libglib-2.0
|
10 |
+
- HINTS ${glib_BINARY_DIR})
|
11 |
+
+find_package(PkgConfig REQUIRED)
|
12 |
+
+pkg_check_modules(GLIB2 glib-2.0 IMPORTED_TARGET)
|
13 |
+
|
14 |
+
-get_filename_component(glib_LIBRARY_DIR ${glib_LIBRARY} DIRECTORY)
|
15 |
+
-get_filename_component(glib_LIBRARY_NAME ${glib_LIBRARY} NAME)
|
16 |
+
-string(REGEX REPLACE "\\.[^.]*$" "" glib_LIBRARY_NAME ${glib_LIBRARY_NAME})
|
17 |
+
+# find_library(glib_LIBRARY NAMES glib libglib glib-2.0 libglib-2.0
|
18 |
+
+ # HINTS ${glib_BINARY_DIR})
|
19 |
+
|
20 |
+
-find_path(glib_H NAMES glib.h
|
21 |
+
- HINTS ${glib_LIBRARY_DIR}/../include)
|
22 |
+
-get_filename_component(glib_INCLUDE_DIR ${glib_H} DIRECTORY)
|
23 |
+
+# get_filename_component(glib_LIBRARY_DIR ${glib_LIBRARY} DIRECTORY)
|
24 |
+
+# get_filename_component(glib_LIBRARY_NAME ${glib_LIBRARY} NAME)
|
25 |
+
+# string(REGEX REPLACE "\\.[^.]*$" "" glib_LIBRARY_NAME ${glib_LIBRARY_NAME})
|
26 |
+
|
27 |
+
-set(glib_CONFIG_H)
|
28 |
+
-find_path(glib_CONFIG_H NAMES glibconfig.h
|
29 |
+
- HINTS ${glib_LIBRARY_DIR}/${glib_LIBRARY_NAME}/include)
|
30 |
+
+# find_path(glib_H NAMES glib.h
|
31 |
+
+ # HINTS ${glib_LIBRARY_DIR}/../include)
|
32 |
+
+# get_filename_component(glib_INCLUDE_DIR ${glib_H} DIRECTORY)
|
33 |
+
|
34 |
+
-get_filename_component(glibconfig_INCLUDE_DIR ${glib_CONFIG_H} DIRECTORY)
|
35 |
+
-include_directories(${glib_INCLUDE_DIR} ${glib_CONFIG_H})
|
36 |
+
+# set(glib_CONFIG_H)
|
37 |
+
+# find_path(glib_CONFIG_H NAMES glibconfig.h
|
38 |
+
+ # HINTS ${glib_LIBRARY_DIR}/${glib_LIBRARY_NAME}/include)
|
39 |
+
+
|
40 |
+
+# get_filename_component(glibconfig_INCLUDE_DIR ${glib_CONFIG_H} DIRECTORY)
|
41 |
+
+# include_directories(${glib_INCLUDE_DIR} ${glib_CONFIG_H})
|
42 |
+
+include_directories(${GLIB2_INCLUDE_DIRS})
|
43 |
+
|
44 |
+
if (NOT WIN32 AND BUILD_SHARED_LIBS)
|
45 |
+
add_definitions(/DGTS_COMPILATION)
|
46 |
+
endif()
|
47 |
+
|
48 |
+
add_library(${kit} SHARED ${srcs})
|
49 |
+
-target_link_libraries(${kit} ${glib_LIBRARY})
|
50 |
+
+target_include_directories(${kit} PUBLIC ${GLIB2_INCLUDE_DIRS})
|
51 |
+
+target_link_libraries(${kit} PkgConfig::GLIB2)
|
52 |
+
|
53 |
+
if(MSVC)
|
54 |
+
SET_TARGET_PROPERTIES(${kit} PROPERTIES LINK_FLAGS "/DEF:\"${CMAKE_CURRENT_SOURCE_DIR}/src/gts.def\"")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO finetjul/gts
|
6 |
+
REF c4da61ae075f355d9ecc9f2d4767acf777f54c2b #0.7.6
|
7 |
+
SHA512 e53d11213c26cbda08ae62e6388aee0a14d2884de72268ad25d10a23e77baa53a2b1151c5cc7643b059ded82b8edf0da79144c3108949fdc515168cac13ffca9
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-M_PI-in-windows.patch
|
11 |
+
support-unix.patch
|
12 |
+
fix-pkgconfig.patch
|
13 |
+
glib2.patch
|
14 |
+
)
|
15 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
16 |
+
vcpkg_configure_cmake(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
OPTIONS
|
19 |
+
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
25 |
+
|
26 |
+
vcpkg_fixup_pkgconfig()
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/support-unix.patch
ADDED
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c35100c..f458c35 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.1)
|
6 |
+
add_executable(predicates_init src/predicates_init.c)
|
7 |
+
|
8 |
+
execute_process(
|
9 |
+
- COMMAND predicates_init.exe
|
10 |
+
+ COMMAND predicates_init
|
11 |
+
OUTPUT_FILE predicates_init.h
|
12 |
+
OUTPUT_VARIABLE OUTVAR)
|
13 |
+
|
14 |
+
@@ -12,6 +12,31 @@ MESSAGE("${OUTVAR}")
|
15 |
+
set(kit gts)
|
16 |
+
project(${kit})
|
17 |
+
|
18 |
+
+if (NOT WIN32)
|
19 |
+
+ set(CPP_HAS_WARNING 1)
|
20 |
+
+ set(HAVE_DLFCN_H 1)
|
21 |
+
+ set(HAVE_FLOATINGPOINT_H 1)
|
22 |
+
+ set(HAVE_FPU_CONTROL_H 1)
|
23 |
+
+ set(HAVE_GETOPT_H 1)
|
24 |
+
+ set(HAVE_GETOPT_LONG 1)
|
25 |
+
+ set(HAVE_INTTYPES_H 1)
|
26 |
+
+ set(HAVE_MEMORY_H 1)
|
27 |
+
+ set(HAVE_STDINT_H 1)
|
28 |
+
+ set(HAVE_STDLIB_H 1)
|
29 |
+
+ set(HAVE_STRINGS_H 1)
|
30 |
+
+ set(HAVE_STRING_H 1)
|
31 |
+
+ set(HAVE_SYS_STAT_H 1)
|
32 |
+
+ set(HAVE_SYS_TYPES_H 1)
|
33 |
+
+ set(HAVE_UNISTD_H 1)
|
34 |
+
+ set(PACKAGE_BUGREPORT 0)
|
35 |
+
+ set(PACKAGE_NAME "gts")
|
36 |
+
+ set(PACKAGE_STRING "0.7.6")
|
37 |
+
+ set(PACKAGE_TARNAME "gts")
|
38 |
+
+ set(PACKAGE_URL "")
|
39 |
+
+ set(PACKAGE_VERSION "0.7.6")
|
40 |
+
+ set(STDC_HEADERS)
|
41 |
+
+endif()
|
42 |
+
+
|
43 |
+
set(srcs
|
44 |
+
src/bbtree.c
|
45 |
+
src/boolean.c
|
46 |
+
@@ -49,7 +74,11 @@ set(srcs
|
47 |
+
src/vopt.c
|
48 |
+
)
|
49 |
+
|
50 |
+
+if (WIN32)
|
51 |
+
configure_file(src/config.h.win32 config.h)
|
52 |
+
+else()
|
53 |
+
+configure_file(config.h.in config.h @ONLY)
|
54 |
+
+endif()
|
55 |
+
|
56 |
+
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
|
57 |
+
include_directories(
|
58 |
+
@@ -74,7 +103,9 @@ find_path(glib_CONFIG_H NAMES glibconfig.h
|
59 |
+
get_filename_component(glibconfig_INCLUDE_DIR ${glib_CONFIG_H} DIRECTORY)
|
60 |
+
include_directories(${glib_INCLUDE_DIR} ${glib_CONFIG_H})
|
61 |
+
|
62 |
+
+if (NOT WIN32 AND BUILD_SHARED_LIBS)
|
63 |
+
add_definitions(/DGTS_COMPILATION)
|
64 |
+
+endif()
|
65 |
+
|
66 |
+
add_library(${kit} SHARED ${srcs})
|
67 |
+
target_link_libraries(${kit} ${glib_LIBRARY})
|
68 |
+
diff --git a/config.h.in b/config.h.in
|
69 |
+
index ad95945..fe6c945 100644
|
70 |
+
--- a/config.h.in
|
71 |
+
+++ b/config.h.in
|
72 |
+
@@ -1,89 +1,89 @@
|
73 |
+
/* config.h.in. Generated from configure.ac by autoheader. */
|
74 |
+
|
75 |
+
/* Define if C preprocessor supports warning directive. */
|
76 |
+
-#undef CPP_HAS_WARNING
|
77 |
+
+#cmakedefine CPP_HAS_WARNING @CPP_HAS_WARNING@
|
78 |
+
|
79 |
+
/* Binary age */
|
80 |
+
-#undef GTS_BINARY_AGE
|
81 |
+
+#define GTS_BINARY_AGE 0
|
82 |
+
|
83 |
+
/* Interface age */
|
84 |
+
-#undef GTS_INTERFACE_AGE
|
85 |
+
+#define GTS_INTERFACE_AGE 0
|
86 |
+
|
87 |
+
/* Major version */
|
88 |
+
-#undef GTS_MAJOR_VERSION
|
89 |
+
+#define GTS_MAJOR_VERSION 0
|
90 |
+
|
91 |
+
/* Micro version */
|
92 |
+
-#undef GTS_MICRO_VERSION
|
93 |
+
+#define GTS_MICRO_VERSION 0
|
94 |
+
|
95 |
+
/* Minor version */
|
96 |
+
-#undef GTS_MINOR_VERSION
|
97 |
+
+#define GTS_MINOR_VERSION 6
|
98 |
+
|
99 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
100 |
+
-#undef HAVE_DLFCN_H
|
101 |
+
+#cmakedefine HAVE_DLFCN_H @HAVE_DLFCN_H@
|
102 |
+
|
103 |
+
/* Define to 1 if you have the <floatingpoint.h> header file. */
|
104 |
+
-#undef HAVE_FLOATINGPOINT_H
|
105 |
+
+#cmakedefine HAVE_FLOATINGPOINT_H @HAVE_FLOATINGPOINT_H@
|
106 |
+
|
107 |
+
/* Define to 1 if you have the <fpu_control.h> header file. */
|
108 |
+
-#undef HAVE_FPU_CONTROL_H
|
109 |
+
+#cmakedefine HAVE_FPU_CONTROL_H @HAVE_FPU_CONTROL_H@
|
110 |
+
|
111 |
+
/* Define to 1 if you have the <getopt.h> header file. */
|
112 |
+
-#undef HAVE_GETOPT_H
|
113 |
+
+#cmakedefine HAVE_GETOPT_H @HAVE_GETOPT_H@
|
114 |
+
|
115 |
+
/* Define to 1 if you have the `getopt_long' function. */
|
116 |
+
-#undef HAVE_GETOPT_LONG
|
117 |
+
+#cmakedefine HAVE_GETOPT_LONG @HAVE_GETOPT_LONG@
|
118 |
+
|
119 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
120 |
+
-#undef HAVE_INTTYPES_H
|
121 |
+
+#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
|
122 |
+
|
123 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
124 |
+
-#undef HAVE_MEMORY_H
|
125 |
+
+#cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@
|
126 |
+
|
127 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
128 |
+
-#undef HAVE_STDINT_H
|
129 |
+
+#cmakedefine HAVE_STDINT_H @HAVE_STDINT_H@
|
130 |
+
|
131 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
132 |
+
-#undef HAVE_STDLIB_H
|
133 |
+
+#cmakedefine HAVE_STDLIB_H @HAVE_STDLIB_H@
|
134 |
+
|
135 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
136 |
+
-#undef HAVE_STRINGS_H
|
137 |
+
+#cmakedefine HAVE_STRINGS_H @HAVE_STRINGS_H@
|
138 |
+
|
139 |
+
/* Define to 1 if you have the <string.h> header file. */
|
140 |
+
-#undef HAVE_STRING_H
|
141 |
+
+#cmakedefine HAVE_STRING_H @HAVE_STRING_H@
|
142 |
+
|
143 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
144 |
+
-#undef HAVE_SYS_STAT_H
|
145 |
+
+#cmakedefine HAVE_SYS_STAT_H @HAVE_SYS_STAT_H@
|
146 |
+
|
147 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
148 |
+
-#undef HAVE_SYS_TYPES_H
|
149 |
+
+#cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@
|
150 |
+
|
151 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
152 |
+
-#undef HAVE_UNISTD_H
|
153 |
+
+#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
|
154 |
+
|
155 |
+
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
156 |
+
*/
|
157 |
+
-#undef LT_OBJDIR
|
158 |
+
+#cmakedefine LT_OBJDIR @LT_OBJDIR@
|
159 |
+
|
160 |
+
/* Define if netpbm include files are in netpbm/. */
|
161 |
+
-#undef NETPBM_INCLUDE
|
162 |
+
+#cmakedefine NETPBM_INCLUDE @NETPBM_INCLUDE@
|
163 |
+
|
164 |
+
/* Define to the address where bug reports for this package should be sent. */
|
165 |
+
-#undef PACKAGE_BUGREPORT
|
166 |
+
+#cmakedefine PACKAGE_BUGREPORT @PACKAGE_BUGREPORT@
|
167 |
+
|
168 |
+
/* Define to the full name of this package. */
|
169 |
+
-#undef PACKAGE_NAME
|
170 |
+
+#cmakedefine PACKAGE_NAME @PACKAGE_NAME@
|
171 |
+
|
172 |
+
/* Define to the full name and version of this package. */
|
173 |
+
-#undef PACKAGE_STRING
|
174 |
+
+#cmakedefine PACKAGE_STRING @PACKAGE_STRING@
|
175 |
+
|
176 |
+
/* Define to the one symbol short name of this package. */
|
177 |
+
-#undef PACKAGE_TARNAME
|
178 |
+
+#cmakedefine PACKAGE_TARNAME @PACKAGE_TARNAME@
|
179 |
+
|
180 |
+
/* Define to the home page for this package. */
|
181 |
+
-#undef PACKAGE_URL
|
182 |
+
+#cmakedefine PACKAGE_URL @PACKAGE_URL@
|
183 |
+
|
184 |
+
/* Define to the version of this package. */
|
185 |
+
-#undef PACKAGE_VERSION
|
186 |
+
+#cmakedefine PACKAGE_VERSION @PACKAGE_VERSION@
|
187 |
+
|
188 |
+
/* Define to 1 if you have the ANSI C header files. */
|
189 |
+
-#undef STDC_HEADERS
|
190 |
+
+#cmakedefine STDC_HEADERS @STDC_HEADERS@
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gts/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gts",
|
3 |
+
"version": "0.7.6",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "A Library intended to provide a set of useful functions to deal with 3D surfaces meshed with interconnected triangles",
|
6 |
+
"homepage": "https://github.com/finetjul/gts",
|
7 |
+
"dependencies": [
|
8 |
+
"glib"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/CMakeLists.txt
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
project(guetzli)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
find_path(butteraugli_include butteraugli/butteraugli.h)
|
9 |
+
find_library(butteraugli_library NAMES butteraugli_lib)
|
10 |
+
find_package(PNG REQUIRED)
|
11 |
+
|
12 |
+
include_directories("." ${PNG_INCLUDE_DIRS} ${butteraugli_include})
|
13 |
+
|
14 |
+
file(GLOB guetzli_srcs "guetzli/*.cc")
|
15 |
+
file(GLOB guetzli_includes "guetzli/*.h")
|
16 |
+
list(REMOVE_ITEM guetzli_srcs "guetzli/guetzli.cc")
|
17 |
+
|
18 |
+
add_library(guetzli_lib ${guetzli_srcs})
|
19 |
+
|
20 |
+
target_compile_features(guetzli_lib PUBLIC cxx_std_11)
|
21 |
+
|
22 |
+
add_executable(guetzli guetzli/guetzli.cc)
|
23 |
+
|
24 |
+
target_link_libraries(guetzli_lib ${butteraugli_library} ${PNG_LIBRARIES})
|
25 |
+
target_link_libraries(guetzli guetzli_lib ${butteraugli_library} ${PNG_LIBRARIES})
|
26 |
+
|
27 |
+
|
28 |
+
install(
|
29 |
+
TARGETS guetzli_lib
|
30 |
+
RUNTIME DESTINATION bin
|
31 |
+
LIBRARY DESTINATION lib
|
32 |
+
ARCHIVE DESTINATION lib
|
33 |
+
)
|
34 |
+
|
35 |
+
if(NOT DISABLE_INSTALL_TOOLS)
|
36 |
+
install (
|
37 |
+
TARGETS guetzli
|
38 |
+
RUNTIME DESTINATION tools/guetzli
|
39 |
+
)
|
40 |
+
endif()
|
41 |
+
|
42 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
43 |
+
install(FILES ${guetzli_includes} DESTINATION include/guetzli)
|
44 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/butteraugli.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/guetzli/butteraugli_comparator.cc b/guetzli/butteraugli_comparator.cc
|
2 |
+
index 142c203..f4e710d 100644
|
3 |
+
--- a/guetzli/butteraugli_comparator.cc
|
4 |
+
+++ b/guetzli/butteraugli_comparator.cc
|
5 |
+
@@ -56,7 +56,7 @@ ButteraugliComparator::ButteraugliComparator(const int width, const int height,
|
6 |
+
height_(height),
|
7 |
+
target_distance_(target_distance),
|
8 |
+
rgb_orig_(*rgb),
|
9 |
+
- comparator_(LinearRgb(width_, height_, *rgb)),
|
10 |
+
+ comparator_(LinearRgb(width_, height_, *rgb), 1.0f),
|
11 |
+
distance_(0.0),
|
12 |
+
stats_(stats) {}
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/guetzli
|
6 |
+
REF 214f2bb42abf5a577c079d00add5d6cc470620d3 # accessed on 2020-09-14
|
7 |
+
SHA512 841cb14df4d27d3227e0ef8ecff6bd8a222d791abfc8fb593bf68996ed8861a9cc483f1a9b140023a247a5b1a350197601ca75a990507aaafa1b2dd03f8577d0
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES butteraugli.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/guetzli")
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/guetzli" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/guetzli/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "guetzli",
|
3 |
+
"version-date": "2020-09-14",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Perceptual JPEG encoder",
|
6 |
+
"homepage": "https://github.com/google/guetzli",
|
7 |
+
"dependencies": [
|
8 |
+
"butteraugli",
|
9 |
+
"libpng",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/guilite/portfile.cmake
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO "idea4good/GuiLite"
|
4 |
+
SHA512 "9132f854f2e0d517797a3b30458ac692b509cb5a2fea2bff606b6b84b60a5760311f488c77f2dc21e954a14378e8d803d555750f90d00d5655e216a2a0c83ce8"
|
5 |
+
REF "master"
|
6 |
+
)
|
7 |
+
|
8 |
+
file(INSTALL "${SOURCE_PATH}/GuiLite.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
9 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/guilite/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "guilite",
|
3 |
+
"version-date": "2021-07-31",
|
4 |
+
"description": "The smallest header-only GUI library (4 KLOC) for all platforms.",
|
5 |
+
"homepage": "https://github.com/idea4good/GuiLite"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gumbo/CMakeLists.txt
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
|
3 |
+
project(gumbo)
|
4 |
+
|
5 |
+
set(gumbo_srcs
|
6 |
+
src/attribute.c
|
7 |
+
src/char_ref.c
|
8 |
+
src/error.c
|
9 |
+
src/parser.c
|
10 |
+
src/string_buffer.c
|
11 |
+
src/string_piece.c
|
12 |
+
src/tag.c
|
13 |
+
src/tokenizer.c
|
14 |
+
src/utf8.c
|
15 |
+
src/util.c
|
16 |
+
src/vector.c
|
17 |
+
)
|
18 |
+
|
19 |
+
include_directories(src)
|
20 |
+
if (MSVC)
|
21 |
+
include_directories(visualc/include)
|
22 |
+
endif (MSVC)
|
23 |
+
|
24 |
+
add_library(gumbo ${gumbo_srcs})
|
25 |
+
|
26 |
+
install(
|
27 |
+
TARGETS gumbo
|
28 |
+
RUNTIME DESTINATION bin
|
29 |
+
LIBRARY DESTINATION lib
|
30 |
+
ARCHIVE DESTINATION lib
|
31 |
+
)
|
32 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
33 |
+
install(FILES src/gumbo.h src/tag_enum.h DESTINATION include)
|
34 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gumbo/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/gumbo-parser
|
6 |
+
REF v0.10.1
|
7 |
+
SHA512 bb1fb55cd07076ab6a9f38dc14db50397dbdca9a04ace4895dfba8b8cbc09038a96e26070c09c75fa929ada2e815affe233c1e2ecd8afe2aba6201647cf277d1
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
|
21 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/gumbo RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gumbo/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gumbo",
|
3 |
+
"version-string": "0.10.1",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "An HTML5 parsing library in pure C99",
|
6 |
+
"homepage": "https://github.com/google/gumbo-parser"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gzip-hpp/portfile.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO mapbox/gzip-hpp
|
6 |
+
REF v0.1.0
|
7 |
+
SHA512 4f332f08e842583b421932f14ee736a64d090ac22fd4e4654e5d84667c2fd6dcd73206b27b7c0c4f364104af7f4a5ad765c38125574bc239fa93b0b0ec4dad56
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${SOURCE_PATH}/include/gzip DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
12 |
+
|
13 |
+
# Handle copyright
|
14 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gzip-hpp/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gzip-hpp",
|
3 |
+
"version-string": "0.1.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Gzip header-only C++ library",
|
6 |
+
"homepage": "https://github.com/mapbox/gzip-hpp/",
|
7 |
+
"dependencies": [
|
8 |
+
"zlib"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/h3/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO uber/h3
|
6 |
+
REF 26a6409156ba8539b2b332f799486572f1f8bab2 #v3.6.3
|
7 |
+
SHA512 ee3450a5720951254fcdd9bb3acc4b33ed4a58c214e1ed8a091791674b57f0a48de76f0483b31b0b2ad9c316af6a5fcb0c3b72428b8f6380d6b6f717aaed73d7
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_BENCHMARKS=OFF
|
15 |
+
-DBUILD_FILTERS=OFF
|
16 |
+
-DBUILD_GENERATORS=OFF
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/debug/include")
|
26 |
+
|
27 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/h3/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "h3",
|
3 |
+
"version-semver": "3.7.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A Hexagonal Hierarchical Geospatial Indexing System",
|
6 |
+
"homepage": "https://github.com/uber/h3",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/0001-disable-H5PLget_plugin-api.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/lzf/lzf_filter.c b/lzf/lzf_filter.c
|
2 |
+
index 951b1e4c..b2fbffc1 100644
|
3 |
+
--- a/lzf/lzf_filter.c
|
4 |
+
+++ b/lzf/lzf_filter.c
|
5 |
+
@@ -93,9 +93,9 @@ static const H5Z_class_t filter_class = {
|
6 |
+
|
7 |
+
#include "H5PLextern.h"
|
8 |
+
|
9 |
+
-H5PL_type_t H5PLget_plugin_type(void){ return H5PL_TYPE_FILTER; }
|
10 |
+
+//H5PL_type_t H5PLget_plugin_type(void){ return H5PL_TYPE_FILTER; }
|
11 |
+
|
12 |
+
-const void *H5PLget_plugin_info(void){ return &filter_class; }
|
13 |
+
+//const void *H5PLget_plugin_info(void){ return &filter_class; }
|
14 |
+
|
15 |
+
#endif
|
16 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/CMakeLists.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.13)
|
2 |
+
project(h5py-lzf)
|
3 |
+
|
4 |
+
find_package(hdf5 CONFIG REQUIRED)
|
5 |
+
|
6 |
+
add_library(h5py-lzf STATIC lzf_filter.c lzf/lzf_c.c lzf/lzf_d.c)
|
7 |
+
target_include_directories(h5py-lzf PUBLIC $<INSTALL_INTERFACE:include>)
|
8 |
+
target_link_libraries(h5py-lzf PRIVATE libzstd $<IF:${link_hdf5_SHARED},hdf5::hdf5-shared,hdf5::hdf5-static>)
|
9 |
+
install(TARGETS h5py-lzf EXPORT h5py-lzf-config ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
|
10 |
+
install(EXPORT h5py-lzf-config DESTINATION share/cmake/h5py-lzf)
|
11 |
+
install(FILES lzf_filter.h lzf/lzf.h DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2 |
+
set(link_hdf5_SHARED 0)
|
3 |
+
else()
|
4 |
+
set(link_hdf5_SHARED 1)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
REPO h5py/h5py
|
12 |
+
REF 81ba118ee66b97a94678e8f5675c4114649dfda4
|
13 |
+
SHA512 c789abdc563f8d2535f0a2ef5e233eb862281559a9cdc3ec560dd69b4d403b6f923f5390390da54851e1bfef1be8de7f80999c25a7f3ac4962ee0620179c6420
|
14 |
+
HEAD_REF master
|
15 |
+
PATCHES
|
16 |
+
0001-disable-H5PLget_plugin-api.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/lzf)
|
20 |
+
|
21 |
+
vcpkg_configure_cmake(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}/lzf
|
23 |
+
PREFER_NINJA
|
24 |
+
OPTIONS
|
25 |
+
-Dlink_hdf5_SHARED=${link_hdf5_SHARED}
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_cmake()
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/${PORT})
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
33 |
+
|
34 |
+
configure_file(${SOURCE_PATH}/lzf/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/h5py-lzf/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "h5py-lzf",
|
3 |
+
"version-string": "2019-12-04",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "The LZF filter is an alternative DEFLATE-style compressor for HDF5 datasets, using the free LZF library by Marc Alexander Lehmann.",
|
6 |
+
"homepage": "https://github.com/h5py/h5py/tree/master/lzf",
|
7 |
+
"dependencies": [
|
8 |
+
"hdf5"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/halide/portfile.cmake
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
set(HALIDE_VERSION_TAG v13.0.2)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO halide/Halide
|
8 |
+
REF ${HALIDE_VERSION_TAG}
|
9 |
+
SHA512 d2b19934ff0d759d302428f61e4075306f79c29cc1cd8802dc1ac5f325434034e0f430c435610e58f862b87cc8ef34ddcc3d0588947eeb8e1387d0bf31b9c008
|
10 |
+
HEAD_REF release/13.x
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(
|
14 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
target-aarch64 TARGET_AARCH64
|
17 |
+
target-amdgpu TARGET_AMDGPU
|
18 |
+
target-arm TARGET_ARM
|
19 |
+
target-d3d12compute TARGET_D3D12COMPUTE
|
20 |
+
target-hexagon TARGET_HEXAGON
|
21 |
+
target-metal TARGET_METAL
|
22 |
+
target-mips TARGET_MIPS
|
23 |
+
target-nvptx TARGET_NVPTX
|
24 |
+
target-opencl TARGET_OPENCL
|
25 |
+
target-powerpc TARGET_POWERPC
|
26 |
+
target-riscv TARGET_RISCV
|
27 |
+
target-x86 TARGET_X86
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_configure(
|
31 |
+
SOURCE_PATH ${SOURCE_PATH}
|
32 |
+
OPTIONS ${FEATURE_OPTIONS}
|
33 |
+
-DWITH_DOCS=NO
|
34 |
+
-DWITH_PYTHON_BINDINGS=NO
|
35 |
+
-DWITH_TESTS=NO
|
36 |
+
-DWITH_TUTORIALS=NO
|
37 |
+
-DWITH_UTILS=NO
|
38 |
+
-DCMAKE_INSTALL_LIBDIR=bin
|
39 |
+
-DCMAKE_INSTALL_DATADIR=share/${PORT}
|
40 |
+
-DHalide_INSTALL_CMAKEDIR=share/${PORT}
|
41 |
+
-DHalide_INSTALL_HELPERSDIR=share/HalideHelpers
|
42 |
+
-DHalide_INSTALL_PLUGINDIR=bin
|
43 |
+
)
|
44 |
+
|
45 |
+
# ADD_BIN_TO_PATH needed to compile autoschedulers,
|
46 |
+
# which use Halide.dll (and deps) during the build.
|
47 |
+
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
48 |
+
|
49 |
+
vcpkg_copy_tools(
|
50 |
+
TOOL_NAMES
|
51 |
+
featurization_to_sample
|
52 |
+
get_host_target
|
53 |
+
retrain_cost_model
|
54 |
+
weightsdir_to_weightsfile
|
55 |
+
AUTO_CLEAN
|
56 |
+
)
|
57 |
+
|
58 |
+
# Release mode MODULE targets in CMake don't get PDBs.
|
59 |
+
# Exclude those to avoid warning with default globs.
|
60 |
+
vcpkg_copy_pdbs(
|
61 |
+
BUILD_PATHS
|
62 |
+
"${CURRENT_PACKAGES_DIR}/bin/Halide.dll"
|
63 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin/*.dll"
|
64 |
+
)
|
65 |
+
|
66 |
+
vcpkg_cmake_config_fixup()
|
67 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME HalideHelpers)
|
68 |
+
|
69 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
70 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
71 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/tutorial)
|
72 |
+
|
73 |
+
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
74 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage.in ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/halide/usage.in
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package halide provides CMake targets:
|
2 |
+
|
3 |
+
set(CMAKE_CXX_STANDARD 17)
|
4 |
+
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
5 |
+
set(CMAKE_CXX_EXTENSIONS NO)
|
6 |
+
|
7 |
+
find_package(Halide REQUIRED)
|
8 |
+
|
9 |
+
# JIT mode:
|
10 |
+
add_executable(my_halide_app main.cpp)
|
11 |
+
target_link_libraries(my_halide_app PRIVATE Halide::Halide)
|
12 |
+
|
13 |
+
# AOT mode:
|
14 |
+
add_executable(my_generators my_generators.cpp)
|
15 |
+
target_link_libraries(my_generators PRIVATE Halide::Generator)
|
16 |
+
add_halide_library(my_first_generator FROM my_generators)
|
17 |
+
add_halide_library(my_second_generator FROM my_generators
|
18 |
+
PARAMS parallel=false scale=3.0 rotation=ccw output.type=uint16)
|
19 |
+
add_halide_library(my_second_generator_2 FROM my_generators
|
20 |
+
GENERATOR my_second_generator
|
21 |
+
PARAMS scale=9.0 rotation=ccw output.type=float32)
|
22 |
+
add_halide_library(my_second_generator_3 FROM my_generators
|
23 |
+
GENERATOR my_second_generator
|
24 |
+
PARAMS parallel=false output.type=float64)
|
25 |
+
|
26 |
+
For more information see:
|
27 |
+
https://github.com/halide/Halide/blob/@HALIDE_VERSION_TAG@/README_cmake.md
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/halide/vcpkg.json
ADDED
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "halide",
|
3 |
+
"version": "13.0.2",
|
4 |
+
"description": "Halide is a programming language designed to make it easier to write high-performance image and array processing code on modern machines.",
|
5 |
+
"homepage": "https://github.com/halide/Halide",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "llvm",
|
10 |
+
"features": [
|
11 |
+
"clang",
|
12 |
+
"enable-rtti",
|
13 |
+
"tools"
|
14 |
+
]
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"name": "vcpkg-cmake-config",
|
22 |
+
"host": true
|
23 |
+
}
|
24 |
+
],
|
25 |
+
"default-features": [
|
26 |
+
"jit"
|
27 |
+
],
|
28 |
+
"features": {
|
29 |
+
"jit": {
|
30 |
+
"description": "Include targets required for jit compilation",
|
31 |
+
"dependencies": [
|
32 |
+
{
|
33 |
+
"name": "halide",
|
34 |
+
"default-features": false,
|
35 |
+
"features": [
|
36 |
+
"target-aarch64"
|
37 |
+
],
|
38 |
+
"platform": "arm64"
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"name": "halide",
|
42 |
+
"default-features": false,
|
43 |
+
"features": [
|
44 |
+
"target-x86"
|
45 |
+
],
|
46 |
+
"platform": "x86 | x64"
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"name": "halide",
|
50 |
+
"default-features": false,
|
51 |
+
"features": [
|
52 |
+
"target-arm"
|
53 |
+
],
|
54 |
+
"platform": "arm & !arm64"
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"name": "halide",
|
58 |
+
"features": [
|
59 |
+
"target-all"
|
60 |
+
],
|
61 |
+
"platform": "!x86 & !x64 & !arm & !arm64"
|
62 |
+
}
|
63 |
+
]
|
64 |
+
},
|
65 |
+
"target-aarch64": {
|
66 |
+
"description": "Include AArch64 target",
|
67 |
+
"dependencies": [
|
68 |
+
{
|
69 |
+
"name": "llvm",
|
70 |
+
"default-features": false,
|
71 |
+
"features": [
|
72 |
+
"target-aarch64"
|
73 |
+
]
|
74 |
+
}
|
75 |
+
]
|
76 |
+
},
|
77 |
+
"target-all": {
|
78 |
+
"description": "Include all targets",
|
79 |
+
"dependencies": [
|
80 |
+
{
|
81 |
+
"name": "halide",
|
82 |
+
"default-features": false,
|
83 |
+
"features": [
|
84 |
+
"target-aarch64",
|
85 |
+
"target-amdgpu",
|
86 |
+
"target-arm",
|
87 |
+
"target-d3d12compute",
|
88 |
+
"target-hexagon",
|
89 |
+
"target-metal",
|
90 |
+
"target-mips",
|
91 |
+
"target-nvptx",
|
92 |
+
"target-opencl",
|
93 |
+
"target-powerpc",
|
94 |
+
"target-riscv",
|
95 |
+
"target-x86"
|
96 |
+
]
|
97 |
+
}
|
98 |
+
]
|
99 |
+
},
|
100 |
+
"target-amdgpu": {
|
101 |
+
"description": "Include AMDGPU target",
|
102 |
+
"dependencies": [
|
103 |
+
{
|
104 |
+
"name": "llvm",
|
105 |
+
"default-features": false,
|
106 |
+
"features": [
|
107 |
+
"target-amdgpu"
|
108 |
+
]
|
109 |
+
}
|
110 |
+
]
|
111 |
+
},
|
112 |
+
"target-arm": {
|
113 |
+
"description": "Include ARM target",
|
114 |
+
"dependencies": [
|
115 |
+
{
|
116 |
+
"name": "llvm",
|
117 |
+
"default-features": false,
|
118 |
+
"features": [
|
119 |
+
"target-arm"
|
120 |
+
]
|
121 |
+
}
|
122 |
+
]
|
123 |
+
},
|
124 |
+
"target-d3d12compute": {
|
125 |
+
"description": "Include Direct3D 12 Compute target"
|
126 |
+
},
|
127 |
+
"target-hexagon": {
|
128 |
+
"description": "Include Hexagon target",
|
129 |
+
"dependencies": [
|
130 |
+
{
|
131 |
+
"name": "llvm",
|
132 |
+
"default-features": false,
|
133 |
+
"features": [
|
134 |
+
"target-hexagon"
|
135 |
+
]
|
136 |
+
}
|
137 |
+
]
|
138 |
+
},
|
139 |
+
"target-metal": {
|
140 |
+
"description": "Include Metal target"
|
141 |
+
},
|
142 |
+
"target-mips": {
|
143 |
+
"description": "Include Mips target",
|
144 |
+
"dependencies": [
|
145 |
+
{
|
146 |
+
"name": "llvm",
|
147 |
+
"default-features": false,
|
148 |
+
"features": [
|
149 |
+
"target-mips"
|
150 |
+
]
|
151 |
+
}
|
152 |
+
]
|
153 |
+
},
|
154 |
+
"target-nvptx": {
|
155 |
+
"description": "Include NVPTX target",
|
156 |
+
"dependencies": [
|
157 |
+
{
|
158 |
+
"name": "llvm",
|
159 |
+
"default-features": false,
|
160 |
+
"features": [
|
161 |
+
"target-nvptx"
|
162 |
+
]
|
163 |
+
}
|
164 |
+
]
|
165 |
+
},
|
166 |
+
"target-opencl": {
|
167 |
+
"description": "Include OpenCL-C target"
|
168 |
+
},
|
169 |
+
"target-powerpc": {
|
170 |
+
"description": "Include PowerPC target",
|
171 |
+
"dependencies": [
|
172 |
+
{
|
173 |
+
"name": "llvm",
|
174 |
+
"default-features": false,
|
175 |
+
"features": [
|
176 |
+
"target-powerpc"
|
177 |
+
]
|
178 |
+
}
|
179 |
+
]
|
180 |
+
},
|
181 |
+
"target-riscv": {
|
182 |
+
"description": "Include RISCV target",
|
183 |
+
"dependencies": [
|
184 |
+
{
|
185 |
+
"name": "llvm",
|
186 |
+
"default-features": false,
|
187 |
+
"features": [
|
188 |
+
"target-riscv"
|
189 |
+
]
|
190 |
+
}
|
191 |
+
]
|
192 |
+
},
|
193 |
+
"target-x86": {
|
194 |
+
"description": "Include X86 target",
|
195 |
+
"dependencies": [
|
196 |
+
{
|
197 |
+
"name": "llvm",
|
198 |
+
"default-features": false,
|
199 |
+
"features": [
|
200 |
+
"target-x86"
|
201 |
+
]
|
202 |
+
}
|
203 |
+
]
|
204 |
+
}
|
205 |
+
}
|
206 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/happly/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO nmwsharp/happly
|
4 |
+
REF 88f79725d32d78e0e637ebf42d8432d519e1c7d0
|
5 |
+
SHA512 79f2be2d4f5583bc4ea63d92af142fc1a59c91610dee5d2bbbd3fbfb6ff6cd697cd6cc6d740ac3878278257f550c739832b2ecf10887b0607045e9f09a35c92c
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(
|
10 |
+
COPY ${SOURCE_PATH}/happly.h
|
11 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
12 |
+
)
|
13 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/happly/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "happly",
|
3 |
+
"version-date": "2021-03-19",
|
4 |
+
"description": "A header-only C++ reader/writer for the PLY file format.",
|
5 |
+
"homepage": "https://github.com/nmwsharp/happly"
|
6 |
+
}
|