Spaces:
Sleeping
Sleeping
2bc77016b2d87d2d616effd03fbebf7eaaf5b889ba4466e240b95368542d8f08
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/0002-Fix-uwp-build.patch +80 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/0003-Fix-win-unicode-paths.patch +60 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/0004-Fix-uwp-tools-build.patch +116 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/Makefile +70 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/android.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/gettext-tools_woe32dll_gettextsrc-exports.c.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/install-autopoint.cmake +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/portfile.cmake +165 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/rel_path.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/uwp_remove_localcharset.patch +79 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/vcpkg-cmake-wrapper.cmake +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/vcpkg-port-config.cmake +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/CMakeLists.txt +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/LICENSE +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/gettimeofday.c +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/gettimeofday.def +2 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/gettimeofday.h +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/portfile.cmake +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/0001-patch-dir.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/fix_cmake_config.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/portfile.cmake +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/vcpkg-cmake-wrapper.cmake +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ghc-filesystem/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ghc-filesystem/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/fix-include-path.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/fix-install-error.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/CMakeLists.txt +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/disable-GifDrawBoxedText8x8-win32.patch +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/exports.def +55 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/fix-compile-error.patch +75 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/msvc-guard-unistd-h.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ginkgo/portfile.cmake +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ginkgo/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ginkgo/vcpkg.json +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl2ps/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl2ps/separate-static-dynamic-build.patch +208 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl2ps/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/0001-enable-shared-build.patch +60 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/CMakeLists.txt +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/portfile.cmake +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/glad/encoding.patch +13 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/0002-Fix-uwp-build.patch
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git "a/gettext-runtime/intl/langprefs.c" "b/gettext-runtime/intl/langprefs.c"
|
2 |
+
index aeb1c4e9..2ac531be 100644
|
3 |
+
--- "a/gettext-runtime/intl/langprefs.c"
|
4 |
+
+++ "b/gettext-runtime/intl/langprefs.c"
|
5 |
+
@@ -33,7 +33,13 @@ extern void _nl_locale_name_canonicalize (char *name);
|
6 |
+
#endif
|
7 |
+
|
8 |
+
#if defined _WIN32
|
9 |
+
-# define WIN32_NATIVE
|
10 |
+
+# if !defined(WINAPI_FAMILY)
|
11 |
+
+# define WIN32_NATIVE
|
12 |
+
+# else
|
13 |
+
+# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
14 |
+
+# define WIN32_NATIVE
|
15 |
+
+# endif
|
16 |
+
+# endif
|
17 |
+
#endif
|
18 |
+
|
19 |
+
#ifdef WIN32_NATIVE
|
20 |
+
diff --git "a/gettext-runtime/intl/localcharset.c" "b/gettext-runtime/intl/localcharset.c"
|
21 |
+
index 670b8e6c..035a96bd 100644
|
22 |
+
--- "a/gettext-runtime/intl/localcharset.c"
|
23 |
+
+++ "b/gettext-runtime/intl/localcharset.c"
|
24 |
+
@@ -36,6 +36,16 @@
|
25 |
+
# include <locale.h>
|
26 |
+
#endif
|
27 |
+
|
28 |
+
+#if defined _WIN32
|
29 |
+
+# if !defined(WINAPI_FAMILY)
|
30 |
+
+# define HAVE_ACP
|
31 |
+
+# else
|
32 |
+
+# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
33 |
+
+# define HAVE_ACP
|
34 |
+
+# endif
|
35 |
+
+# endif
|
36 |
+
+#endif
|
37 |
+
+
|
38 |
+
#if defined __EMX__
|
39 |
+
/* Assume EMX program runs on OS/2, even if compiled under DOS. */
|
40 |
+
# ifndef OS2
|
41 |
+
@@ -830,7 +830,7 @@ STATIC
|
42 |
+
const char *
|
43 |
+
locale_charset (void)
|
44 |
+
{
|
45 |
+
- const char *codeset;
|
46 |
+
+ const char *codeset = NULL;
|
47 |
+
|
48 |
+
/* This function must be multithread-safe. To achieve this without using
|
49 |
+
thread-local storage, we use a simple strcpy or memcpy to fill this static
|
50 |
+
@@ -912,7 +912,7 @@ locale_charset (void)
|
51 |
+
/* The canonical name cannot be determined. */
|
52 |
+
codeset = "";
|
53 |
+
|
54 |
+
-# elif defined WINDOWS_NATIVE
|
55 |
+
+# elif defined WINDOWS_NATIVE && defined HAVE_ACP
|
56 |
+
|
57 |
+
char buf[2 + 10 + 1];
|
58 |
+
static char resultbuf[2 + 10 + 1];
|
59 |
+
diff --git "a/gettext-runtime/intl/localename.c" "b/gettext-runtime/intl/localename.c"
|
60 |
+
index 108dd6f1..ace3aa88 100644
|
61 |
+
--- "a/gettext-runtime/intl/localename.c"
|
62 |
+
+++ "b/gettext-runtime/intl/localename.c"
|
63 |
+
@@ -75,10 +75,16 @@
|
64 |
+
#endif
|
65 |
+
|
66 |
+
#if defined _WIN32 && !defined __CYGWIN__
|
67 |
+
-# define WINDOWS_NATIVE
|
68 |
+
+# if !defined(WINAPI_FAMILY)
|
69 |
+
+# define WINDOWS_NATIVE
|
70 |
+
+# else
|
71 |
+
+# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
72 |
+
+# define WINDOWS_NATIVE
|
73 |
+
+# endif
|
74 |
+
+# endif
|
75 |
+
# if !defined IN_LIBINTL
|
76 |
+
# include "glthread/lock.h"
|
77 |
+
# endif
|
78 |
+
#endif
|
79 |
+
|
80 |
+
#if defined WINDOWS_NATIVE || defined __CYGWIN__ /* Native Windows or Cygwin */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/0003-Fix-win-unicode-paths.patch
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git "a/gettext-runtime/intl/loadmsgcat.c" "b/gettext-runtime/intl/loadmsgcat.c"
|
2 |
+
index 63351523..c078de3f 100644
|
3 |
+
--- a/gettext-runtime/intl/loadmsgcat.c
|
4 |
+
+++ b/gettext-runtime/intl/loadmsgcat.c
|
5 |
+
@@ -388,6 +388,55 @@ char *alloca ();
|
6 |
+
# define munmap(addr, len) __munmap (addr, len)
|
7 |
+
#endif
|
8 |
+
|
9 |
+
+#ifdef _WIN32
|
10 |
+
+/* Provide wrapper of "open" for Windows that supports UTF-8 filenames. */
|
11 |
+
+# ifndef WIN32_LEAN_AND_MEAN
|
12 |
+
+# define WIN32_LEAN_AND_MEAN
|
13 |
+
+# endif
|
14 |
+
+# ifndef WIN32_EXTRA_LEAN
|
15 |
+
+# define WIN32_EXTRA_LEAN
|
16 |
+
+# endif
|
17 |
+
+# undef NOMINMAX
|
18 |
+
+# define NOMINMAX
|
19 |
+
+# include <windows.h> // For: MultiByteToWideChar
|
20 |
+
+# include <io.h>
|
21 |
+
+# include <wchar.h>
|
22 |
+
+
|
23 |
+
+int _open_utf8_windows_wrapper(
|
24 |
+
+ const char *filename,
|
25 |
+
+ int flags
|
26 |
+
+)
|
27 |
+
+{
|
28 |
+
+ int wstr_len = -1;
|
29 |
+
+ wchar_t* pUtf16FileName = NULL;
|
30 |
+
+ int fh = -1;
|
31 |
+
+
|
32 |
+
+ // on Windows, convert the filename from UTF-8 to UTF-16
|
33 |
+
+ wstr_len = MultiByteToWideChar(CP_UTF8, 0, filename, -1, NULL, 0);
|
34 |
+
+ if (wstr_len <= 0)
|
35 |
+
+ {
|
36 |
+
+ // MultiByteToWideChar failed
|
37 |
+
+ errno = ENOENT;
|
38 |
+
+ return -1;
|
39 |
+
+ }
|
40 |
+
+ pUtf16FileName = malloc(wstr_len * sizeof(wchar_t));
|
41 |
+
+ if (MultiByteToWideChar(CP_UTF8, 0, filename, -1, pUtf16FileName, wstr_len) == 0)
|
42 |
+
+ {
|
43 |
+
+ // MultiByteToWideChar failed
|
44 |
+
+ free(pUtf16FileName);
|
45 |
+
+ errno = ENOENT;
|
46 |
+
+ return -1;
|
47 |
+
+ }
|
48 |
+
+
|
49 |
+
+ // and call _wopen
|
50 |
+
+ fh = _wopen(pUtf16FileName, flags);
|
51 |
+
+
|
52 |
+
+ free(pUtf16FileName);
|
53 |
+
+ return fh;
|
54 |
+
+}
|
55 |
+
+# define open(name, flags) _open_utf8_windows_wrapper(name, flags)
|
56 |
+
+#endif // #ifdef _WIN32
|
57 |
+
+
|
58 |
+
/* For those losing systems which don't have `alloca' we have to add
|
59 |
+
some additional code emulating it. */
|
60 |
+
#ifdef HAVE_ALLOCA
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/0004-Fix-uwp-tools-build.patch
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/gettext-runtime/gnulib-lib/fcntl.c 2022-01-11 11:11:28.406622100 +0700
|
2 |
+
+++ b/gettext-runtime/gnulib-lib/fcntl.c 2022-01-11 11:11:03.406190800 +0700
|
3 |
+
@@ -38,6 +38,10 @@
|
4 |
+
# define WIN32_LEAN_AND_MEAN
|
5 |
+
# include <windows.h>
|
6 |
+
|
7 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
|
8 |
+
+#define HANDLE_FLAG_INHERIT 0
|
9 |
+
+#endif
|
10 |
+
+
|
11 |
+
/* Get _get_osfhandle. */
|
12 |
+
# if GNULIB_MSVC_NOTHROW
|
13 |
+
# include "msvc-nothrow.h"
|
14 |
+
--- a/gettext-tools/gnulib-lib/fcntl.c 2022-01-11 11:11:28.406622100 +0700
|
15 |
+
+++ b/gettext-tools/gnulib-lib/fcntl.c 2022-01-11 11:11:03.406190800 +0700
|
16 |
+
@@ -38,6 +38,10 @@
|
17 |
+
# define WIN32_LEAN_AND_MEAN
|
18 |
+
# include <windows.h>
|
19 |
+
|
20 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
|
21 |
+
+#define HANDLE_FLAG_INHERIT 0
|
22 |
+
+#endif
|
23 |
+
+
|
24 |
+
/* Get _get_osfhandle. */
|
25 |
+
# if GNULIB_MSVC_NOTHROW
|
26 |
+
# include "msvc-nothrow.h"
|
27 |
+
--- a/gettext-tools/src/hostname.c 2022-01-12 01:41:13.725124300 +0700
|
28 |
+
+++ b/gettext-tools/src/hostname.c 2022-01-12 01:47:39.384274300 +0700
|
29 |
+
@@ -35,15 +35,15 @@
|
30 |
+
/* Get gethostname(). */
|
31 |
+
#include <unistd.h>
|
32 |
+
|
33 |
+
+#if !HAVE_GETHOSTNAME
|
34 |
+
#ifdef WIN32_NATIVE
|
35 |
+
/* Native Woe32 API lacks gethostname() but has GetComputerName() instead. */
|
36 |
+
# include <windows.h>
|
37 |
+
#else
|
38 |
+
/* Some systems, like early Solaris versions, lack gethostname() but
|
39 |
+
have uname() instead. */
|
40 |
+
-# if !HAVE_GETHOSTNAME
|
41 |
+
-# include <sys/utsname.h>
|
42 |
+
-# endif
|
43 |
+
+# include <sys/utsname.h>
|
44 |
+
+#endif
|
45 |
+
#endif
|
46 |
+
|
47 |
+
/* Get MAXHOSTNAMELEN. */
|
48 |
+
@@ -56,6 +56,9 @@
|
49 |
+
|
50 |
+
/* Support for using gethostbyname(). */
|
51 |
+
#if HAVE_GETHOSTBYNAME
|
52 |
+
+#if HAVE_WINSOCK2_H
|
53 |
+
+# include <winsock2.h>
|
54 |
+
+#else
|
55 |
+
# include <sys/types.h>
|
56 |
+
# include <sys/socket.h> /* defines AF_INET, AF_INET6 */
|
57 |
+
# include <netinet/in.h> /* declares ntohs(), defines struct sockaddr_in */
|
58 |
+
@@ -77,6 +80,7 @@
|
59 |
+
# endif
|
60 |
+
# include <netdb.h> /* defines struct hostent, declares gethostbyname() */
|
61 |
+
#endif
|
62 |
+
+#endif
|
63 |
+
|
64 |
+
/* Include this after <sys/socket.h>, to avoid a syntax error on BeOS. */
|
65 |
+
#include <stdbool.h>
|
66 |
+
@@ -250,7 +254,7 @@
|
67 |
+
static char *
|
68 |
+
xgethostname ()
|
69 |
+
{
|
70 |
+
-#ifdef WIN32_NATIVE
|
71 |
+
+#ifdef WIN32_NATIVE && !HAVE_GETHOSTNAME
|
72 |
+
char hostname[MAX_COMPUTERNAME_LENGTH+1];
|
73 |
+
DWORD size = sizeof (hostname);
|
74 |
+
|
75 |
+
--- a/libtextstyle/lib/fcntl.c 2020-06-27 03:00:38.000000000 +0700
|
76 |
+
+++ b/libtextstyle/lib/fcntl.c 2022-01-11 11:10:29.936269800 +0700
|
77 |
+
@@ -38,6 +38,10 @@
|
78 |
+
# define WIN32_LEAN_AND_MEAN
|
79 |
+
# include <windows.h>
|
80 |
+
|
81 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
|
82 |
+
+#define HANDLE_FLAG_INHERIT 0
|
83 |
+
+#endif
|
84 |
+
+
|
85 |
+
/* Get _get_osfhandle. */
|
86 |
+
# if GNULIB_MSVC_NOTHROW
|
87 |
+
# include "msvc-nothrow.h"
|
88 |
+
--- a/libtextstyle/lib/isatty.c 2020-06-27 03:00:40.000000000 +0700
|
89 |
+
+++ b/libtextstyle/lib/isatty.c 2022-01-11 11:19:04.852685700 +0700
|
90 |
+
@@ -99,6 +99,7 @@
|
91 |
+
BOOL result = FALSE;
|
92 |
+
ULONG processId;
|
93 |
+
|
94 |
+
+#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY != WINAPI_FAMILY_APP)
|
95 |
+
#if !(_WIN32_WINNT >= _WIN32_WINNT_VISTA)
|
96 |
+
if (!initialized)
|
97 |
+
initialize ();
|
98 |
+
@@ -137,6 +138,7 @@
|
99 |
+
CloseHandle (processHandle);
|
100 |
+
}
|
101 |
+
}
|
102 |
+
+#endif // !WINAPI_FAMILY_APP
|
103 |
+
return result;
|
104 |
+
}
|
105 |
+
|
106 |
+
--- a/libtextstyle/lib/unistd.in.h 2020-07-08 08:33:18.000000000 +0700
|
107 |
+
+++ b/libtextstyle/lib/unistd.in.h 2022-01-11 22:11:46.402435600 +0700
|
108 |
+
@@ -828,7 +828,7 @@
|
109 |
+
Null terminate it if the name is shorter than LEN.
|
110 |
+
If the host name is longer than LEN, set errno = EINVAL and return -1.
|
111 |
+
Return 0 if successful, otherwise set errno and return -1. */
|
112 |
+
-# if @UNISTD_H_HAVE_WINSOCK2_H@
|
113 |
+
+# if !@HAVE_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@
|
114 |
+
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
|
115 |
+
# undef gethostname
|
116 |
+
# define gethostname rpl_gethostname
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/Makefile
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
all: build-gettext-runtime-intl build-gettext-runtime-po build-gettext-runtime-src
|
2 |
+
all: build-gettext-tools build-gettext-tools-gnulib build-gettext-tools-its build-gettext-tools-m4 build-gettext-tools-misc build-gettext-tools-po build-gettext-tools-projects build-gettext-tools-styles
|
3 |
+
all: build-libtextstyle
|
4 |
+
|
5 |
+
install: install-gettext-runtime-intl install-gettext-runtime-po install-gettext-runtime-src
|
6 |
+
install: install-gettext-tools install-gettext-tools-gnulib install-gettext-tools-its install-gettext-tools-m4 install-gettext-tools-misc install-gettext-tools-po install-gettext-tools-projects install-gettext-tools-styles
|
7 |
+
install: install-libtextstyle
|
8 |
+
|
9 |
+
build-intl:
|
10 |
+
$(MAKE) -C intl all
|
11 |
+
install-intl:
|
12 |
+
$(MAKE) -C intl install
|
13 |
+
|
14 |
+
build-gettext-runtime-gnulib: build-gettext-runtime-intl
|
15 |
+
$(MAKE) -C gettext-runtime/gnulib-lib all
|
16 |
+
build-gettext-runtime-intl:
|
17 |
+
$(MAKE) -C gettext-runtime/intl all
|
18 |
+
build-gettext-runtime-po:
|
19 |
+
$(MAKE) -C gettext-runtime/po all
|
20 |
+
build-gettext-runtime-src: build-gettext-runtime-intl build-gettext-runtime-gnulib
|
21 |
+
$(MAKE) -C gettext-runtime/src all
|
22 |
+
build-gettext-tools: build-gettext-runtime-intl build-libtextstyle build-gettext-tools-gnulib build-gettext-tools-intl build-gettext-tools-libgrep build-gnulib-local
|
23 |
+
$(MAKE) -C gettext-tools/src all
|
24 |
+
build-gettext-tools-gnulib: build-gettext-tools-intl
|
25 |
+
$(MAKE) -C gettext-tools/gnulib-lib all
|
26 |
+
build-gettext-tools-libgrep: build-gettext-tools-gnulib
|
27 |
+
$(MAKE) -C gettext-tools/libgrep all
|
28 |
+
build-gettext-tools-intl:
|
29 |
+
$(MAKE) -C gettext-tools/intl all
|
30 |
+
build-gettext-tools-its:
|
31 |
+
$(MAKE) -C gettext-tools/its all
|
32 |
+
build-gettext-tools-m4:
|
33 |
+
$(MAKE) -C gettext-tools/m4 all
|
34 |
+
build-gettext-tools-misc:
|
35 |
+
$(MAKE) -C gettext-tools/misc all
|
36 |
+
build-gettext-tools-po:
|
37 |
+
$(MAKE) -C gettext-tools/po all
|
38 |
+
build-gettext-tools-projects:
|
39 |
+
$(MAKE) -C gettext-tools/projects all
|
40 |
+
build-gettext-tools-styles:
|
41 |
+
$(MAKE) -C gettext-tools/styles all
|
42 |
+
build-gnulib-local:
|
43 |
+
$(MAKE) -C gnulib-local all
|
44 |
+
build-libtextstyle:
|
45 |
+
$(MAKE) -C libtextstyle/lib all
|
46 |
+
|
47 |
+
install-gettext-runtime-intl:
|
48 |
+
$(MAKE) -C gettext-runtime/intl install
|
49 |
+
install-gettext-runtime-po:
|
50 |
+
$(MAKE) -C gettext-runtime/po install
|
51 |
+
install-gettext-runtime-src:
|
52 |
+
$(MAKE) -C gettext-runtime/src install
|
53 |
+
install-gettext-tools:
|
54 |
+
$(MAKE) -C gettext-tools/src install
|
55 |
+
install-gettext-tools-gnulib:
|
56 |
+
$(MAKE) -C gettext-tools/gnulib-lib install
|
57 |
+
install-gettext-tools-its:
|
58 |
+
$(MAKE) -C gettext-tools/its install
|
59 |
+
install-gettext-tools-m4:
|
60 |
+
$(MAKE) -C gettext-tools/m4 install
|
61 |
+
install-gettext-tools-misc:
|
62 |
+
$(MAKE) -C gettext-tools/misc install
|
63 |
+
install-gettext-tools-po:
|
64 |
+
$(MAKE) -C gettext-tools/po install
|
65 |
+
install-gettext-tools-projects:
|
66 |
+
$(MAKE) -C gettext-tools/projects install
|
67 |
+
install-gettext-tools-styles:
|
68 |
+
$(MAKE) -C gettext-tools/styles install
|
69 |
+
install-libtextstyle:
|
70 |
+
$(MAKE) -C libtextstyle/lib install
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/android.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --color -ruN a/gettext-runtime/intl/dcigettext.c src/gettext-runtime/intl/dcigettext.c
|
2 |
+
--- a/gettext-runtime/intl/dcigettext.c 2021-05-26 16:27:55.420544597 +0200
|
3 |
+
+++ src/gettext-runtime/intl/dcigettext.c 2021-05-26 16:29:14.546516701 +0200
|
4 |
+
@@ -143,7 +143,7 @@
|
5 |
+
# else
|
6 |
+
# if VMS
|
7 |
+
# define getcwd(buf, max) (getcwd) (buf, max, 0)
|
8 |
+
-# else
|
9 |
+
+# elif !(defined(__clang__) && defined(__BIONIC_FORTIFY))
|
10 |
+
char *getcwd ();
|
11 |
+
# endif
|
12 |
+
# endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/gettext-tools_woe32dll_gettextsrc-exports.c.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
X-Git-Url: https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blobdiff_plain;f=gettext-tools%2Fwoe32dll%2Fgettextsrc-exports.c;h=6d760895961db57e013552b6b3f248bfa8eb17c2;hp=4477ae8d4b2e887592d4019432b91ea31b84ba59;hb=7cf68dffb2adb76375bfb0781e277510523a1f3e;hpb=3564f5f885544514bd2e345c36b74e5d91cad3e8
|
2 |
+
|
3 |
+
diff --git a/gettext-tools/woe32dll/gettextsrc-exports.c b/gettext-tools/woe32dll/gettextsrc-exports.c
|
4 |
+
index 4477ae8..6d76089 100644
|
5 |
+
--- a/gettext-tools/woe32dll/gettextsrc-exports.c
|
6 |
+
+++ b/gettext-tools/woe32dll/gettextsrc-exports.c
|
7 |
+
@@ -50,6 +50,7 @@ VARIABLE(formatstring_python)
|
8 |
+
VARIABLE(formatstring_python_brace)
|
9 |
+
VARIABLE(formatstring_qt)
|
10 |
+
VARIABLE(formatstring_qt_plural)
|
11 |
+
+VARIABLE(formatstring_ruby)
|
12 |
+
VARIABLE(formatstring_scheme)
|
13 |
+
VARIABLE(formatstring_sh)
|
14 |
+
VARIABLE(formatstring_smalltalk)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/install-autopoint.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function(install_autopoint)
|
2 |
+
# variables for configuring autopoint.in
|
3 |
+
set(PACKAGE "gettext-tools")
|
4 |
+
set(VERSION "${GETTEXT_VERSION}")
|
5 |
+
set(ARCHIVE_VERSION "${GETTEXT_VERSION}")
|
6 |
+
set(ARCHIVE_FORMAT "dirgz")
|
7 |
+
set(bindir [[${prefix}/tools/gettext/bin]])
|
8 |
+
set(datadir [[${datarootdir}]])
|
9 |
+
set(exec_prefix [[${prefix}]])
|
10 |
+
set(PATH_SEPARATOR ":")
|
11 |
+
set(RELOCATABLE "yes")
|
12 |
+
|
13 |
+
file(STRINGS "${SOURCE_PATH}/gettext-tools/configure"
|
14 |
+
VERSIONS_FROM_CONFIGURE
|
15 |
+
REGEX "^ *(ARCHIVE_VERSION|VERSION)=.*$"
|
16 |
+
)
|
17 |
+
foreach(LINE IN LISTS VERSIONS_FROM_CONFIGURE)
|
18 |
+
if(LINE MATCHES "^ *(ARCHIVE_VERSION|VERSION)='?([0-9.]+)'?$")
|
19 |
+
set(${CMAKE_MATCH_1} "${CMAKE_MATCH_2}")
|
20 |
+
endif()
|
21 |
+
endforeach()
|
22 |
+
|
23 |
+
set(WORKING_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
|
24 |
+
file(MAKE_DIRECTORY "${WORKING_DIR}")
|
25 |
+
|
26 |
+
# autopoint script
|
27 |
+
configure_file("${SOURCE_PATH}/gettext-tools/misc/autopoint.in" "${WORKING_DIR}/autopoint" @ONLY)
|
28 |
+
|
29 |
+
# data tarball
|
30 |
+
if(WIN32)
|
31 |
+
vcpkg_acquire_msys(MSYS_ROOT PACKAGES gzip)
|
32 |
+
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
|
33 |
+
endif()
|
34 |
+
file(COPY "${SOURCE_PATH}/gettext-tools/misc/archive.dir.tar" DESTINATION "${WORKING_DIR}")
|
35 |
+
vcpkg_execute_required_process(
|
36 |
+
COMMAND gzip -f archive.dir.tar
|
37 |
+
WORKING_DIRECTORY "${WORKING_DIR}"
|
38 |
+
LOGNAME gzip-${TARGET_TRIPLET}
|
39 |
+
)
|
40 |
+
|
41 |
+
# installation
|
42 |
+
file(INSTALL "${WORKING_DIR}/autopoint" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin"
|
43 |
+
FILE_PERMISSIONS
|
44 |
+
OWNER_WRITE OWNER_READ OWNER_EXECUTE
|
45 |
+
GROUP_READ GROUP_EXECUTE
|
46 |
+
WORLD_READ WORLD_EXECUTE
|
47 |
+
)
|
48 |
+
file(INSTALL "${WORKING_DIR}/archive.dir.tar.gz" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gettext/gettext")
|
49 |
+
endfunction()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/portfile.cmake
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_LINUX AND NOT EXISTS "/usr/include/libintl.h")
|
2 |
+
message(FATAL_ERROR "When targeting Linux, `libintl.h` is expected to come from the C Runtime Library (glibc). "
|
3 |
+
"Please use \"sudo apt-get install libc-dev\" or the equivalent to install development files."
|
4 |
+
)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
|
8 |
+
|
9 |
+
#Based on https://github.com/winlibs/gettext
|
10 |
+
|
11 |
+
set(GETTEXT_VERSION 0.21)
|
12 |
+
|
13 |
+
vcpkg_download_distfile(ARCHIVE
|
14 |
+
URLS "https://ftp.gnu.org/pub/gnu/gettext/gettext-${GETTEXT_VERSION}.tar.gz" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gettext/gettext-${GETTEXT_VERSION}.tar.gz"
|
15 |
+
FILENAME "gettext-${GETTEXT_VERSION}.tar.gz"
|
16 |
+
SHA512 bbe590c5dd3580c75bf30ff768da99a88eb8d466ec1ac9eea20be4cab4357ecf72448e6b81b47425e39d50fa6320ba426632914d7898dfebb4f159abc39c31d1
|
17 |
+
)
|
18 |
+
set(PATCHES "")
|
19 |
+
if(VCPKG_TARGET_IS_UWP)
|
20 |
+
set(PATCHES uwp_remove_localcharset.patch)
|
21 |
+
endif()
|
22 |
+
vcpkg_extract_source_archive_ex(
|
23 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
24 |
+
ARCHIVE "${ARCHIVE}"
|
25 |
+
REF "${GETTEXT_VERSION}"
|
26 |
+
PATCHES
|
27 |
+
0002-Fix-uwp-build.patch
|
28 |
+
0003-Fix-win-unicode-paths.patch
|
29 |
+
0004-Fix-uwp-tools-build.patch
|
30 |
+
rel_path.patch
|
31 |
+
android.patch
|
32 |
+
gettext-tools_woe32dll_gettextsrc-exports.c.patch
|
33 |
+
${PATCHES}
|
34 |
+
)
|
35 |
+
vcpkg_find_acquire_program(BISON)
|
36 |
+
get_filename_component(BISON_PATH "${BISON}" DIRECTORY)
|
37 |
+
vcpkg_add_to_path("${BISON_PATH}")
|
38 |
+
|
39 |
+
set(OPTIONS
|
40 |
+
--enable-relocatable #symbol duplication with glib-init.c?
|
41 |
+
--enable-c++
|
42 |
+
--disable-acl
|
43 |
+
--disable-csharp
|
44 |
+
--disable-curses
|
45 |
+
--disable-java
|
46 |
+
--disable-openmp
|
47 |
+
)
|
48 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
49 |
+
list(APPEND OPTIONS
|
50 |
+
# Avoid unnecessary test.
|
51 |
+
--with-included-glib
|
52 |
+
# This is required. For some reason these do not get correctly identified for release builds.
|
53 |
+
ac_cv_func_wcslen=yes
|
54 |
+
ac_cv_func_memmove=yes
|
55 |
+
# The following are required for a full gettext built (libintl and tools).
|
56 |
+
gl_cv_func_printf_directive_n=no # segfaults otherwise with popup window
|
57 |
+
ac_cv_func_memset=yes # not detected in release builds
|
58 |
+
ac_cv_header_pthread_h=no
|
59 |
+
ac_cv_header_dirent_h=no
|
60 |
+
ac_cv_header_getopt_h=no
|
61 |
+
)
|
62 |
+
endif()
|
63 |
+
|
64 |
+
# These functions scope any changes to VCPKG_BUILD_TYPE
|
65 |
+
function(build_libintl_and_tools)
|
66 |
+
cmake_parse_arguments(arg "" "BUILD_TYPE" "" ${ARGN})
|
67 |
+
if(DEFINED arg_BUILD_TYPE)
|
68 |
+
set(VCPKG_BUILD_TYPE "${arg_BUILD_TYPE}")
|
69 |
+
endif()
|
70 |
+
vcpkg_configure_make(SOURCE_PATH "${SOURCE_PATH}"
|
71 |
+
DETERMINE_BUILD_TRIPLET
|
72 |
+
USE_WRAPPERS
|
73 |
+
ADD_BIN_TO_PATH # So configure can check for working iconv
|
74 |
+
ADDITIONAL_MSYS_PACKAGES gzip
|
75 |
+
OPTIONS
|
76 |
+
${OPTIONS}
|
77 |
+
)
|
78 |
+
vcpkg_install_make(MAKEFILE "${CMAKE_CURRENT_LIST_DIR}/Makefile")
|
79 |
+
endfunction()
|
80 |
+
|
81 |
+
function(build_libintl_only)
|
82 |
+
cmake_parse_arguments(arg "" "BUILD_TYPE" "" ${ARGN})
|
83 |
+
if(DEFINED arg_BUILD_TYPE)
|
84 |
+
set(VCPKG_BUILD_TYPE "${arg_BUILD_TYPE}")
|
85 |
+
endif()
|
86 |
+
vcpkg_configure_make(SOURCE_PATH "${SOURCE_PATH}/gettext-runtime"
|
87 |
+
DETERMINE_BUILD_TRIPLET
|
88 |
+
USE_WRAPPERS
|
89 |
+
ADD_BIN_TO_PATH # So configure can check for working iconv
|
90 |
+
OPTIONS
|
91 |
+
${OPTIONS}
|
92 |
+
)
|
93 |
+
vcpkg_install_make(
|
94 |
+
MAKEFILE "${CMAKE_CURRENT_LIST_DIR}/Makefile"
|
95 |
+
BUILD_TARGET build-intl
|
96 |
+
INSTALL_TARGET install-intl
|
97 |
+
)
|
98 |
+
endfunction()
|
99 |
+
|
100 |
+
if("tools" IN_LIST FEATURES)
|
101 |
+
# Minimization of gettext tools build time by:
|
102 |
+
# - building tools only for release configuration
|
103 |
+
# - custom top-level Makefile
|
104 |
+
# - configuration cache
|
105 |
+
list(APPEND OPTIONS "--cache-file=../config.cache-${TARGET_TRIPLET}")
|
106 |
+
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/config.cache-${TARGET_TRIPLET}")
|
107 |
+
build_libintl_and_tools(BUILD_TYPE "release")
|
108 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
|
109 |
+
file(GLOB tool_libs
|
110 |
+
LIST_DIRECTORIES false
|
111 |
+
"${CURRENT_PACKAGES_DIR}/bin/*"
|
112 |
+
"${CURRENT_PACKAGES_DIR}/lib/*"
|
113 |
+
)
|
114 |
+
list(FILTER tool_libs EXCLUDE REGEX "intl[^/\\\\]*$")
|
115 |
+
file(REMOVE ${tool_libs})
|
116 |
+
file(GLOB tool_includes
|
117 |
+
LIST_DIRECTORIES true
|
118 |
+
"${CURRENT_PACKAGES_DIR}/include/*"
|
119 |
+
)
|
120 |
+
list(FILTER tool_includes EXCLUDE REGEX "intl[^/\\\\]*$")
|
121 |
+
file(REMOVE_RECURSE ${tool_includes})
|
122 |
+
if(VCPKG_TARGET_IS_LINUX)
|
123 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
124 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include")
|
125 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
126 |
+
elseif(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
127 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}.release")
|
128 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}" "${CURRENT_PACKAGES_DIR}.release")
|
129 |
+
file(READ "${CURRENT_BUILDTREES_DIR}/config.cache-${TARGET_TRIPLET}" config_cache)
|
130 |
+
string(REGEX REPLACE "\nac_cv_env[^\n]*" "" config_cache "${config_cache}") # Eliminate build type flags
|
131 |
+
file(WRITE "${CURRENT_BUILDTREES_DIR}/config.cache-${TARGET_TRIPLET}" "${config_cache}")
|
132 |
+
build_libintl_only(BUILD_TYPE "debug")
|
133 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}.release/debug")
|
134 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}")
|
135 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}.release" "${CURRENT_PACKAGES_DIR}")
|
136 |
+
endif()
|
137 |
+
else()
|
138 |
+
if(VCPKG_TARGET_IS_LINUX)
|
139 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
140 |
+
else()
|
141 |
+
list(APPEND OPTIONS "--config-cache")
|
142 |
+
build_libintl_only()
|
143 |
+
endif()
|
144 |
+
# A fast installation of the autopoint tool and data, needed for autotools
|
145 |
+
include("${CMAKE_CURRENT_LIST_DIR}/install-autopoint.cmake")
|
146 |
+
install_autopoint()
|
147 |
+
endif()
|
148 |
+
|
149 |
+
# Handle copyright
|
150 |
+
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/gettext/copyright" COPYONLY)
|
151 |
+
|
152 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
153 |
+
|
154 |
+
vcpkg_copy_pdbs()
|
155 |
+
|
156 |
+
if(NOT VCPKG_TARGET_IS_LINUX)
|
157 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/intl")
|
158 |
+
endif()
|
159 |
+
if("tools" IN_LIST FEATURES AND NOT VCPKG_CROSSCOMPILING)
|
160 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gettext")
|
161 |
+
endif()
|
162 |
+
|
163 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/gettext/user-email")
|
164 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/gettext/user-email" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../..")
|
165 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/rel_path.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gettext-tools/misc/autopoint.in b/gettext-tools/misc/autopoint.in
|
2 |
+
index 3a24eee5d..56b36d5ff 100644
|
3 |
+
--- a/gettext-tools/misc/autopoint.in
|
4 |
+
+++ b/gettext-tools/misc/autopoint.in
|
5 |
+
@@ -27,8 +27,9 @@ archive_version=@ARCHIVE_VERSION@
|
6 |
+
|
7 |
+
# Set variables
|
8 |
+
# - gettext_datadir directory where the data files are stored.
|
9 |
+
-prefix="@prefix@"
|
10 |
+
-datarootdir="@datarootdir@"
|
11 |
+
+
|
12 |
+
+prefix="$(dirname "$0")/../../../"
|
13 |
+
+datarootdir="${prefix}/share/gettext"
|
14 |
+
: ${gettext_datadir="@datadir@/gettext"}
|
15 |
+
: ${AUTOM4TE=autom4te}
|
16 |
+
|
17 |
+
diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in
|
18 |
+
index c78c308bf..175ad57e7 100644
|
19 |
+
--- a/gettext-tools/misc/gettextize.in
|
20 |
+
+++ b/gettext-tools/misc/gettextize.in
|
21 |
+
@@ -27,8 +27,8 @@ archive_version=@ARCHIVE_VERSION@
|
22 |
+
|
23 |
+
# Set variables
|
24 |
+
# - gettext_datadir directory where the data files are stored.
|
25 |
+
-prefix="@prefix@"
|
26 |
+
-datarootdir="@datarootdir@"
|
27 |
+
+prefix="$(dirname "$0")/../../../"
|
28 |
+
+datarootdir="${prefix}/share/gettext"
|
29 |
+
: ${gettext_datadir="@datadir@/gettext"}
|
30 |
+
: ${AUTOM4TE=autom4te}
|
31 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/uwp_remove_localcharset.patch
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gettext-runtime/intl/Makefile.in b/gettext-runtime/intl/Makefile.in
|
2 |
+
index 7999d3456..b3ef40340 100644
|
3 |
+
--- a/gettext-runtime/intl/Makefile.in
|
4 |
+
+++ b/gettext-runtime/intl/Makefile.in
|
5 |
+
@@ -252,7 +252,7 @@ am__libgnuintl_la_SOURCES_DIST = bindtextdom.c dcgettext.c dgettext.c \
|
6 |
+
gettext.c finddomain.c hash-string.c loadmsgcat.c \
|
7 |
+
localealias.c textdomain.c l10nflist.c explodename.c \
|
8 |
+
dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \
|
9 |
+
- plural-exp.c localcharset.c threadlib.c lock.c relocatable.c \
|
10 |
+
+ plural-exp.c threadlib.c lock.c relocatable.c \
|
11 |
+
langprefs.c localename.c localename-table.c log.c printf.c \
|
12 |
+
setlocale.c setlocale-lock.c setlocale_null.c version.c \
|
13 |
+
xsize.c osdep.c intl-compat.c windows-mutex.c windows-rwlock.c \
|
14 |
+
@@ -264,7 +264,7 @@ am__objects_2 = bindtextdom.lo dcgettext.lo dgettext.lo gettext.lo \
|
15 |
+
finddomain.lo hash-string.lo loadmsgcat.lo localealias.lo \
|
16 |
+
textdomain.lo l10nflist.lo explodename.lo dcigettext.lo \
|
17 |
+
dcngettext.lo dngettext.lo ngettext.lo plural.lo plural-exp.lo \
|
18 |
+
- localcharset.lo threadlib.lo lock.lo relocatable.lo \
|
19 |
+
+ threadlib.lo lock.lo relocatable.lo \
|
20 |
+
langprefs.lo localename.lo localename-table.lo log.lo \
|
21 |
+
printf.lo setlocale.lo setlocale-lock.lo setlocale_null.lo \
|
22 |
+
version.lo xsize.lo osdep.lo intl-compat.lo $(am__objects_1)
|
23 |
+
@@ -282,7 +282,7 @@ am__libintl_la_SOURCES_DIST = bindtextdom.c dcgettext.c dgettext.c \
|
24 |
+
gettext.c finddomain.c hash-string.c loadmsgcat.c \
|
25 |
+
localealias.c textdomain.c l10nflist.c explodename.c \
|
26 |
+
dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y \
|
27 |
+
- plural-exp.c localcharset.c threadlib.c lock.c relocatable.c \
|
28 |
+
+ plural-exp.c threadlib.c lock.c relocatable.c \
|
29 |
+
langprefs.c localename.c localename-table.c log.c printf.c \
|
30 |
+
setlocale.c setlocale-lock.c setlocale_null.c version.c \
|
31 |
+
xsize.c osdep.c intl-compat.c windows-mutex.c windows-rwlock.c \
|
32 |
+
@@ -1387,7 +1387,7 @@ AUTOMAKE_OPTIONS = 1.10 gnu no-dependencies
|
33 |
+
|
34 |
+
# Miscellaneous files.
|
35 |
+
EXTRA_DIST = gmo.h gettextP.h hash-string.h loadinfo.h plural-exp.h \
|
36 |
+
- eval-plural.h localcharset.h lock.h windows-mutex.h \
|
37 |
+
+ eval-plural.h lock.h windows-mutex.h \
|
38 |
+
windows-rwlock.h windows-recmutex.h windows-once.h \
|
39 |
+
windows-initguard.h relocatable.h arg-nonnull.h attribute.h \
|
40 |
+
filename.h flexmember.h localename-table.in.h setlocale_null.h \
|
41 |
+
@@ -1543,7 +1543,7 @@ LIBINTLSOURCES = bindtextdom.c dcgettext.c dgettext.c gettext.c \
|
42 |
+
finddomain.c hash-string.c loadmsgcat.c localealias.c \
|
43 |
+
textdomain.c l10nflist.c explodename.c dcigettext.c \
|
44 |
+
dcngettext.c dngettext.c ngettext.c plural.y plural-exp.c \
|
45 |
+
- localcharset.c threadlib.c lock.c relocatable.c langprefs.c \
|
46 |
+
+ threadlib.c lock.c relocatable.c langprefs.c \
|
47 |
+
localename.c localename-table.c log.c printf.c setlocale.c \
|
48 |
+
setlocale-lock.c setlocale_null.c version.c xsize.c osdep.c \
|
49 |
+
intl-compat.c $(am__append_2)
|
50 |
+
@@ -2016,8 +2016,6 @@ plural.lo: $(srcdir)/plural.c
|
51 |
+
$(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/plural.c
|
52 |
+
plural-exp.lo: $(srcdir)/plural-exp.c
|
53 |
+
$(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/plural-exp.c
|
54 |
+
-localcharset.lo: $(srcdir)/localcharset.c
|
55 |
+
- $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/localcharset.c
|
56 |
+
threadlib.lo: $(srcdir)/threadlib.c
|
57 |
+
$(AM_V_CC)$(LTCOMPILE) -c -o $@ $(srcdir)/threadlib.c
|
58 |
+
lock.lo: $(srcdir)/lock.c
|
59 |
+
@@ -2074,7 +2072,6 @@ dngettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo
|
60 |
+
ngettext.lo: ../config.h $(srcdir)/gettextP.h libgnuintl.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h $(srcdir)/lock.h $(srcdir)/windows-mutex.h $(srcdir)/windows-rwlock.h $(srcdir)/windows-recmutex.h $(srcdir)/windows-once.h $(srcdir)/windows-initguard.h
|
61 |
+
plural.lo: ../config.h $(srcdir)/plural-exp.h $(PLURAL_DEPS)
|
62 |
+
plural-exp.lo: ../config.h $(srcdir)/plural-exp.h
|
63 |
+
-localcharset.lo: ../config.h $(srcdir)/localcharset.h
|
64 |
+
threadlib.lo: ../config.h
|
65 |
+
lock.lo: ../config.h $(srcdir)/lock.h $(srcdir)/windows-mutex.h $(srcdir)/windows-rwlock.h $(srcdir)/windows-recmutex.h $(srcdir)/windows-once.h $(srcdir)/windows-initguard.h
|
66 |
+
relocatable.lo: ../config.h $(srcdir)/relocatable.h
|
67 |
+
diff --git a/gettext-runtime/intl/localcharset.c b/gettext-runtime/intl/localcharset.c
|
68 |
+
index 1a1627888..3e6582f17 100644
|
69 |
+
--- a/gettext-runtime/intl/localcharset.c
|
70 |
+
+++ b/gettext-runtime/intl/localcharset.c
|
71 |
+
@@ -1021,7 +1021,7 @@ locale_charset (void)
|
72 |
+
|
73 |
+
# else
|
74 |
+
|
75 |
+
-# error "Add code for other platforms here."
|
76 |
+
+//# error "Add code for other platforms here."
|
77 |
+
|
78 |
+
# endif
|
79 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
|
3 |
+
if(Intl_FOUND AND Intl_LIBRARIES)
|
4 |
+
include(SelectLibraryConfigurations)
|
5 |
+
find_library(Intl_LIBRARY_DEBUG NAMES intl libintl intl-8 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH)
|
6 |
+
find_library(Intl_LIBRARY_RELEASE NAMES intl libintl intl-8 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
|
7 |
+
unset(Intl_LIBRARIES)
|
8 |
+
unset(Intl_LIBRARIES CACHE)
|
9 |
+
select_library_configurations(Intl)
|
10 |
+
find_package(Iconv) # Since CMake 3.11
|
11 |
+
if(Iconv_FOUND AND NOT Iconv_IS_BUILT_IN)
|
12 |
+
list(APPEND Intl_LIBRARIES ${Iconv_LIBRARIES})
|
13 |
+
endif()
|
14 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/vcpkg-port-config.cmake
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
get_filename_component(gettext_tools_dir "${CMAKE_CURRENT_LIST_DIR}/../../tools/gettext/bin" ABSOLUTE)
|
2 |
+
if(CMAKE_HOST_WIN32)
|
3 |
+
set(ENV{PATH} "$ENV{PATH};${gettext_tools_dir}")
|
4 |
+
else()
|
5 |
+
set(ENV{PATH} "$ENV{PATH}:${gettext_tools_dir}")
|
6 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettext/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gettext",
|
3 |
+
"version": "0.21",
|
4 |
+
"port-version": 9,
|
5 |
+
"description": "GNU gettext provides libintl and a set of tools to help produce multi-lingual messages.",
|
6 |
+
"homepage": "https://www.gnu.org/software/gettext/",
|
7 |
+
"dependencies": [
|
8 |
+
"libiconv"
|
9 |
+
],
|
10 |
+
"features": {
|
11 |
+
"tools": {
|
12 |
+
"description": "Build gettext tools"
|
13 |
+
}
|
14 |
+
}
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/CMakeLists.txt
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(gettimeofday C)
|
3 |
+
|
4 |
+
add_library(gettimeofday gettimeofday.c gettimeofday.def)
|
5 |
+
|
6 |
+
install(TARGETS gettimeofday
|
7 |
+
RUNTIME DESTINATION bin
|
8 |
+
ARCHIVE DESTINATION lib/manual-link
|
9 |
+
LIBRARY DESTINATION lib/manual-link
|
10 |
+
)
|
11 |
+
|
12 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
13 |
+
install(FILES gettimeofday.h DESTINATION include)
|
14 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/LICENSE
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Copied from PostgreSQL source:
|
3 |
+
* http://doxygen.postgresql.org/gettimeofday_8c_source.html
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
|
7 |
+
/*
|
8 |
+
* gettimeofday.c
|
9 |
+
* Win32 gettimeofday() replacement
|
10 |
+
*
|
11 |
+
* src/port/gettimeofday.c
|
12 |
+
*
|
13 |
+
* Copyright (c) 2003 SRA, Inc.
|
14 |
+
* Copyright (c) 2003 SKC, Inc.
|
15 |
+
*
|
16 |
+
* Permission to use, copy, modify, and distribute this software and
|
17 |
+
* its documentation for any purpose, without fee, and without a
|
18 |
+
* written agreement is hereby granted, provided that the above
|
19 |
+
* copyright notice and this paragraph and the following two
|
20 |
+
* paragraphs appear in all copies.
|
21 |
+
*
|
22 |
+
* IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
|
23 |
+
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
|
24 |
+
* LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
|
25 |
+
* DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED
|
26 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
27 |
+
*
|
28 |
+
* THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
|
29 |
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
30 |
+
* A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS
|
31 |
+
* IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
|
32 |
+
* SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
33 |
+
*/
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/gettimeofday.c
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Copied from PostgreSQL source:
|
3 |
+
* http://doxygen.postgresql.org/gettimeofday_8c_source.html
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
|
7 |
+
/*
|
8 |
+
* gettimeofday.c
|
9 |
+
* Win32 gettimeofday() replacement
|
10 |
+
*
|
11 |
+
* src/port/gettimeofday.c
|
12 |
+
*
|
13 |
+
* Copyright (c) 2003 SRA, Inc.
|
14 |
+
* Copyright (c) 2003 SKC, Inc.
|
15 |
+
*
|
16 |
+
* Permission to use, copy, modify, and distribute this software and
|
17 |
+
* its documentation for any purpose, without fee, and without a
|
18 |
+
* written agreement is hereby granted, provided that the above
|
19 |
+
* copyright notice and this paragraph and the following two
|
20 |
+
* paragraphs appear in all copies.
|
21 |
+
*
|
22 |
+
* IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
|
23 |
+
* INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
|
24 |
+
* LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
|
25 |
+
* DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED
|
26 |
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
27 |
+
*
|
28 |
+
* THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
|
29 |
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
30 |
+
* A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS
|
31 |
+
* IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
|
32 |
+
* SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
33 |
+
*/
|
34 |
+
|
35 |
+
#ifdef _MSC_VER
|
36 |
+
|
37 |
+
#include <winsock2.h>
|
38 |
+
|
39 |
+
|
40 |
+
/* FILETIME of Jan 1 1970 00:00:00. */
|
41 |
+
static const unsigned __int64 epoch = 116444736000000000Ui64;
|
42 |
+
|
43 |
+
/*
|
44 |
+
* timezone information is stored outside the kernel so tzp isn't used anymore.
|
45 |
+
*
|
46 |
+
* Note: this function is not for Win32 high precision timing purpose. See
|
47 |
+
* elapsed_time().
|
48 |
+
*/
|
49 |
+
int
|
50 |
+
gettimeofday(struct timeval * tp, struct timezone * tzp)
|
51 |
+
{
|
52 |
+
FILETIME file_time;
|
53 |
+
SYSTEMTIME system_time;
|
54 |
+
ULARGE_INTEGER ularge;
|
55 |
+
|
56 |
+
GetSystemTime(&system_time);
|
57 |
+
SystemTimeToFileTime(&system_time, &file_time);
|
58 |
+
ularge.LowPart = file_time.dwLowDateTime;
|
59 |
+
ularge.HighPart = file_time.dwHighDateTime;
|
60 |
+
|
61 |
+
tp->tv_sec = (long) ((ularge.QuadPart - epoch) / 10000000L);
|
62 |
+
tp->tv_usec = (long) (system_time.wMilliseconds * 1000);
|
63 |
+
|
64 |
+
return 0;
|
65 |
+
}
|
66 |
+
|
67 |
+
#endif /* _MSC_VER */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/gettimeofday.def
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
gettimeofday
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/gettimeofday.h
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef _MY_GETTIMEOFDAY_H_
|
2 |
+
#define _MY_GETTIMEOFDAY_H_
|
3 |
+
|
4 |
+
#ifdef _MSC_VER
|
5 |
+
|
6 |
+
#include <winsock2.h>
|
7 |
+
#include <time.h>
|
8 |
+
|
9 |
+
int gettimeofday(struct timeval * tp, struct timezone * tzp);
|
10 |
+
|
11 |
+
#endif /* _MSC_VER */
|
12 |
+
|
13 |
+
#endif /* _MY_GETTIMEOFDAY_H_ */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/portfile.cmake
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_configure_cmake(
|
2 |
+
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR}
|
3 |
+
PREFER_NINJA
|
4 |
+
)
|
5 |
+
|
6 |
+
vcpkg_install_cmake()
|
7 |
+
vcpkg_copy_pdbs()
|
8 |
+
|
9 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gettimeofday/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gettimeofday",
|
3 |
+
"version-string": "2017-10-14",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "An implementation of gettimeofday for WIN32"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/0001-patch-dir.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 3709073..8e919cb 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -503,7 +503,7 @@ endif ()
|
6 |
+
# ----------------------------------------------------------------------------
|
7 |
+
# installation rules
|
8 |
+
set (EXPORT_NAME ${PACKAGE_NAME}-targets)
|
9 |
+
-file (RELATIVE_PATH INSTALL_PREFIX_REL2CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/${CONFIG_INSTALL_DIR}" "${CMAKE_INSTALL_PREFIX}")
|
10 |
+
+set (INSTALL_PREFIX_REL2CONFIG_DIR "../..")
|
11 |
+
configure_file (cmake/config.cmake.in "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-config-install.cmake" @ONLY)
|
12 |
+
configure_file (cmake/version.cmake.in "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-config-version.cmake" @ONLY)
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/fix_cmake_config.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/config.cmake.in b/cmake/config.cmake.in
|
2 |
+
index a512c2a..e7f50d0 100644
|
3 |
+
--- a/cmake/config.cmake.in
|
4 |
+
+++ b/cmake/config.cmake.in
|
5 |
+
@@ -78,7 +78,7 @@ if (NOT DEFINED @PACKAGE_PREFIX@_NOTHREADS)
|
6 |
+
else ()
|
7 |
+
set (@PACKAGE_PREFIX@_NOTHREADS FALSE)
|
8 |
+
endif ()
|
9 |
+
- elseif (TARGET ${@PACKAGE_PREFIX@_TARGET_PREFIX}PACKAGE_NAME@_static OR TARGET ${@PACKAGE_PREFIX@_TARGET_PREFIX}@PACKAGE_NAME@_shared)
|
10 |
+
+ elseif (TARGET ${@PACKAGE_PREFIX@_TARGET_PREFIX}@PACKAGE_NAME@_static OR TARGET ${@PACKAGE_PREFIX@_TARGET_PREFIX}@PACKAGE_NAME@_shared)
|
11 |
+
set (@PACKAGE_PREFIX@_NOTHREADS FALSE)
|
12 |
+
else ()
|
13 |
+
set (@PACKAGE_PREFIX@_NOTHREADS TRUE)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2 |
+
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO gflags/gflags
|
8 |
+
REF v2.2.2
|
9 |
+
SHA512 98c4703aab24e81fe551f7831ab797fb73d0f7dfc516addb34b9ff6d0914e5fd398207889b1ae555bac039537b1d4677067dae403b64903577078d99c1bdb447
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
0001-patch-dir.patch # gflags was estimating a wrong relative path between the gflags-config.cmake file and the include path; "../.." goes from share/gflags/ to the triplet root
|
13 |
+
fix_cmake_config.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_configure_cmake(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
PREFER_NINJA
|
19 |
+
OPTIONS
|
20 |
+
-DGFLAGS_REGISTER_BUILD_DIR:BOOL=OFF
|
21 |
+
-DGFLAGS_REGISTER_INSTALL_PREFIX:BOOL=OFF
|
22 |
+
-DBUILD_gflags_nothreads_LIB:BOOL=OFF
|
23 |
+
-DGFLAGS_USE_TARGET_NAMESPACE:BOOL=ON
|
24 |
+
-DCMAKE_DEBUG_POSTFIX=d
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_install_cmake()
|
28 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/gflags)
|
29 |
+
|
30 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
31 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/bin)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
36 |
+
|
37 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
38 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
39 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
40 |
+
|
41 |
+
vcpkg_copy_pdbs()
|
42 |
+
|
43 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package gflags provides CMake targets:
|
2 |
+
|
3 |
+
find_package(gflags CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE gflags::gflags)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(GFLAGS_USE_TARGET_NAMESPACE ON)
|
2 |
+
|
3 |
+
_find_package(${ARGS})
|
4 |
+
|
5 |
+
foreach(tgt gflags gflags_shared gflags_static)
|
6 |
+
if (NOT TARGET ${tgt} AND TARGET "gflags::${tgt}")
|
7 |
+
add_library(${tgt} INTERFACE IMPORTED)
|
8 |
+
target_link_libraries(${tgt} INTERFACE "gflags::${tgt}")
|
9 |
+
endif()
|
10 |
+
endforeach(tgt)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gflags/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gflags",
|
3 |
+
"version-string": "2.2.2",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A C++ library that implements commandline flags processing",
|
6 |
+
"homepage": "https://github.com/gflags/gflags",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ghc-filesystem/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO gulrak/filesystem
|
4 |
+
REF v1.5.10
|
5 |
+
HEAD_REF master
|
6 |
+
SHA512 470dd9e1c4358f9d8d9f531d8c3c6716cdd156c815315748436a1dc3caf095d320e58eae2274df8c15e293cc96170752fb00aed8ad2210d417b174c13297fbac
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DGHC_FILESYSTEM_BUILD_TESTING=OFF
|
13 |
+
-DGHC_FILESYSTEM_BUILD_EXAMPLES=OFF
|
14 |
+
-DGHC_FILESYSTEM_WITH_INSTALL=ON
|
15 |
+
)
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
vcpkg_cmake_config_fixup(
|
18 |
+
PACKAGE_NAME ghc_filesystem
|
19 |
+
CONFIG_PATH lib/cmake/ghc_filesystem
|
20 |
+
)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ghc-filesystem/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ghc-filesystem",
|
3 |
+
"version": "1.5.10",
|
4 |
+
"description": "An implementation of C++17 std::filesystem for C++11/C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD",
|
5 |
+
"homepage": "https://github.com/gulrak/filesystem",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/fix-include-path.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 74b9ffb..6af4645 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -60,7 +60,7 @@ LIST(APPEND GHERKIN_SRS
|
6 |
+
)
|
7 |
+
|
8 |
+
add_library(gherkin ${GHERKIN_SRS})
|
9 |
+
-target_include_directories(gherkin PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include;${CMAKE_CURRENT_SOURCE_DIR}/src>")
|
10 |
+
+target_include_directories(gherkin PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include;${CMAKE_CURRENT_SOURCE_DIR}/src>" "$<INSTALL_INTERFACE:include/gherkin-c>")
|
11 |
+
|
12 |
+
if (BUILD_GHERKIN_TESTS)
|
13 |
+
LIST(APPEND GENERATE_TOKEN
|
14 |
+
@@ -96,7 +96,7 @@ if (BUILD_GHERKIN_TESTS)
|
15 |
+
ENDFOREACH()
|
16 |
+
endif()
|
17 |
+
|
18 |
+
-set(include_install_dir "include")
|
19 |
+
+set(include_install_dir "include/gherkin-c")
|
20 |
+
set(lib_install_dir "lib/")
|
21 |
+
set(bin_install_dir "bin/")
|
22 |
+
set(config_install_dir "lib/cmake/")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/fix-install-error.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 3227bf5..74b9ffb 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -131,7 +131,3 @@ install(
|
6 |
+
# NAMESPACE "${namespace}"
|
7 |
+
# DESTINATION "${config_install_dir}")
|
8 |
+
|
9 |
+
-add_custom_target(install_${PROJECT_NAME}
|
10 |
+
- $(MAKE) install
|
11 |
+
- DEPENDS gherkin
|
12 |
+
- COMMENT "Installing ${PROJECT_NAME}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO c-libs/gherkin-c
|
4 |
+
REF dd180edc7d092311f2e90a0c4957061156d39dd3
|
5 |
+
SHA512 c6b38ab0e7a0fd1061d86b0ff9d9140f8c3d6f15cfc1673e947254c6c03a66d3e6aae5b267b074aa10fa30ba2850190c9e9ea7c12e340e4f8c5575b9bf31bab3
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-install-error.patch
|
9 |
+
fix-include-path.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DBUILD_GHERKIN_TESTS=OFF
|
16 |
+
)
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
# Handle copyright
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/gherkin-c" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gherkin-c/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gherkin-c",
|
3 |
+
"version-date": "2019-10-07",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Gherkin parser/compiler in C",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
}
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/CMakeLists.txt
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.4)
|
2 |
+
|
3 |
+
project(giflib C)
|
4 |
+
|
5 |
+
set(GIFLIB_EXPORTS "NOTFOUND" CACHE FILEPATH "The path of the DEF file listing the DLL exports.")
|
6 |
+
|
7 |
+
set(GIFLIB_HEADERS
|
8 |
+
gif_lib.h
|
9 |
+
)
|
10 |
+
|
11 |
+
set(GIFLIB_SOURCES
|
12 |
+
dgif_lib.c
|
13 |
+
egif_lib.c
|
14 |
+
gifalloc.c
|
15 |
+
gif_err.c
|
16 |
+
gif_font.c
|
17 |
+
gif_hash.c
|
18 |
+
openbsd-reallocarray.c
|
19 |
+
)
|
20 |
+
|
21 |
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
22 |
+
|
23 |
+
include(CheckSymbolExists)
|
24 |
+
check_symbol_exists(reallocarray "stdlib.h" HAVE_REALLOCARRAY)
|
25 |
+
if(HAVE_REALLOCARRAY)
|
26 |
+
add_definitions(-DHAVE_REALLOCARRAY)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
add_library(gif ${GIFLIB_SOURCES})
|
30 |
+
if(BUILD_SHARED_LIBS AND WIN32)
|
31 |
+
target_sources(gif PRIVATE "${GIFLIB_EXPORTS}")
|
32 |
+
else()
|
33 |
+
set(UNUSED "${GIFLIB_EXPORTS}")
|
34 |
+
endif()
|
35 |
+
|
36 |
+
if (NOT GIFLIB_SKIP_HEADERS)
|
37 |
+
install(FILES ${GIFLIB_HEADERS} DESTINATION include)
|
38 |
+
endif ()
|
39 |
+
|
40 |
+
install(TARGETS gif
|
41 |
+
RUNTIME DESTINATION bin
|
42 |
+
LIBRARY DESTINATION lib
|
43 |
+
ARCHIVE DESTINATION lib
|
44 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/disable-GifDrawBoxedText8x8-win32.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gif_font.c b/gif_font.c
|
2 |
+
index d90783c..b682c7a 100644
|
3 |
+
--- a/gif_font.c
|
4 |
+
+++ b/gif_font.c
|
5 |
+
@@ -204,6 +204,7 @@ GifDrawRectangle(SavedImage *Image,
|
6 |
+
memset(bp + (i * Image->ImageDesc.Width), color, (size_t)w);
|
7 |
+
}
|
8 |
+
|
9 |
+
+#if !defined(_WIN32)
|
10 |
+
void
|
11 |
+
GifDrawBoxedText8x8(SavedImage *Image,
|
12 |
+
const int x, const int y,
|
13 |
+
@@ -257,5 +258,6 @@ GifDrawBoxedText8x8(SavedImage *Image,
|
14 |
+
border + LineCount * GIF_FONT_HEIGHT + border, fg);
|
15 |
+
}
|
16 |
+
}
|
17 |
+
+#endif
|
18 |
+
|
19 |
+
/* end */
|
20 |
+
diff --git a/gif_lib.h b/gif_lib.h
|
21 |
+
index ebdbd3c..41bf7a2 100644
|
22 |
+
--- a/gif_lib.h
|
23 |
+
+++ b/gif_lib.h
|
24 |
+
@@ -290,10 +290,12 @@ extern void GifDrawRectangle(SavedImage *Image,
|
25 |
+
const int x, const int y,
|
26 |
+
const int w, const int d, const int color);
|
27 |
+
|
28 |
+
+#if !defined(_WIN32)
|
29 |
+
extern void GifDrawBoxedText8x8(SavedImage *Image,
|
30 |
+
const int x, const int y,
|
31 |
+
const char *legend,
|
32 |
+
const int border, const int bg, const int fg);
|
33 |
+
+#endif
|
34 |
+
|
35 |
+
#ifdef __cplusplus
|
36 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/exports.def
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
DGifCloseFile @1
|
3 |
+
DGifExtensionToGCB @2
|
4 |
+
DGifGetCode @3
|
5 |
+
DGifGetCodeNext @4
|
6 |
+
DGifGetExtension @5
|
7 |
+
DGifGetExtensionNext @6
|
8 |
+
DGifGetImageDesc @7
|
9 |
+
DGifGetLZCodes @8
|
10 |
+
DGifGetLine @9
|
11 |
+
DGifGetPixel @10
|
12 |
+
DGifGetRecordType @11
|
13 |
+
DGifGetScreenDesc @12
|
14 |
+
DGifOpen @13
|
15 |
+
DGifOpenFileHandle @14
|
16 |
+
DGifOpenFileName @15
|
17 |
+
DGifSavedExtensionToGCB @16
|
18 |
+
DGifSlurp @17
|
19 |
+
EGifCloseFile @18
|
20 |
+
EGifGCBToExtension @19
|
21 |
+
EGifGCBToSavedExtension @20
|
22 |
+
EGifGetGifVersion @21
|
23 |
+
EGifOpen @22
|
24 |
+
EGifOpenFileHandle @23
|
25 |
+
EGifOpenFileName @24
|
26 |
+
EGifPutCode @25
|
27 |
+
EGifPutCodeNext @26
|
28 |
+
EGifPutComment @27
|
29 |
+
EGifPutExtension @28
|
30 |
+
EGifPutExtensionBlock @29
|
31 |
+
EGifPutExtensionLeader @30
|
32 |
+
EGifPutExtensionTrailer @31
|
33 |
+
EGifPutImageDesc @32
|
34 |
+
EGifPutLine @33
|
35 |
+
EGifPutPixel @34
|
36 |
+
EGifPutScreenDesc @35
|
37 |
+
EGifSetGifVersion @36
|
38 |
+
EGifSpew @37
|
39 |
+
FreeLastSavedImage @38
|
40 |
+
GifAddExtensionBlock @39
|
41 |
+
GifApplyTranslation @40
|
42 |
+
GifAsciiTable8x8 @41 DATA
|
43 |
+
GifBitSize @42
|
44 |
+
GifDrawBox @43
|
45 |
+
; needs strtok_r: GifDrawBoxedText8x8 @44
|
46 |
+
GifDrawRectangle @45
|
47 |
+
GifDrawText8x8 @46
|
48 |
+
GifErrorString @47
|
49 |
+
GifFreeExtensions @48
|
50 |
+
GifFreeMapObject @49
|
51 |
+
GifFreeSavedImages @50
|
52 |
+
GifMakeMapObject @51
|
53 |
+
GifMakeSavedImage @52
|
54 |
+
GifUnionColorMap @53
|
55 |
+
openbsd_reallocarray @54
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/fix-compile-error.patch
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/dgif_lib.c b/dgif_lib.c
|
2 |
+
index 82fc097..3bb302b 100644
|
3 |
+
--- a/dgif_lib.c
|
4 |
+
+++ b/dgif_lib.c
|
5 |
+
@@ -58,7 +58,7 @@ DGifOpenFileName(const char *FileName, int *Error)
|
6 |
+
int FileHandle;
|
7 |
+
GifFileType *GifFile;
|
8 |
+
|
9 |
+
- if ((FileHandle = open(FileName, O_RDONLY)) == -1) {
|
10 |
+
+ if ((FileHandle = _open(FileName, O_RDONLY)) == -1) {
|
11 |
+
if (Error != NULL)
|
12 |
+
*Error = D_GIF_ERR_OPEN_FAILED;
|
13 |
+
return NULL;
|
14 |
+
@@ -85,7 +85,7 @@ DGifOpenFileHandle(int FileHandle, int *Error)
|
15 |
+
if (GifFile == NULL) {
|
16 |
+
if (Error != NULL)
|
17 |
+
*Error = D_GIF_ERR_NOT_ENOUGH_MEM;
|
18 |
+
- (void)close(FileHandle);
|
19 |
+
+ (void)_close(FileHandle);
|
20 |
+
return NULL;
|
21 |
+
}
|
22 |
+
|
23 |
+
@@ -99,7 +99,7 @@ DGifOpenFileHandle(int FileHandle, int *Error)
|
24 |
+
if (Private == NULL) {
|
25 |
+
if (Error != NULL)
|
26 |
+
*Error = D_GIF_ERR_NOT_ENOUGH_MEM;
|
27 |
+
- (void)close(FileHandle);
|
28 |
+
+ (void)_close(FileHandle);
|
29 |
+
free((char *)GifFile);
|
30 |
+
return NULL;
|
31 |
+
}
|
32 |
+
@@ -110,7 +110,7 @@ DGifOpenFileHandle(int FileHandle, int *Error)
|
33 |
+
_setmode(FileHandle, O_BINARY); /* Make sure it is in binary mode. */
|
34 |
+
#endif /* _WIN32 */
|
35 |
+
|
36 |
+
- f = fdopen(FileHandle, "rb"); /* Make it into a stream: */
|
37 |
+
+ f = _fdopen(FileHandle, "rb"); /* Make it into a stream: */
|
38 |
+
|
39 |
+
/*@-mustfreeonly@*/
|
40 |
+
GifFile->Private = (void *)Private;
|
41 |
+
diff --git a/egif_lib.c b/egif_lib.c
|
42 |
+
index 6219af0..8ddda1b 100644
|
43 |
+
--- a/egif_lib.c
|
44 |
+
+++ b/egif_lib.c
|
45 |
+
@@ -67,10 +67,10 @@ EGifOpenFileName(const char *FileName, const bool TestExistence, int *Error)
|
46 |
+
GifFileType *GifFile;
|
47 |
+
|
48 |
+
if (TestExistence)
|
49 |
+
- FileHandle = open(FileName, O_WRONLY | O_CREAT | O_EXCL,
|
50 |
+
+ FileHandle = _open(FileName, O_WRONLY | O_CREAT | O_EXCL,
|
51 |
+
S_IREAD | S_IWRITE);
|
52 |
+
else
|
53 |
+
- FileHandle = open(FileName, O_WRONLY | O_CREAT | O_TRUNC,
|
54 |
+
+ FileHandle = _open(FileName, O_WRONLY | O_CREAT | O_TRUNC,
|
55 |
+
S_IREAD | S_IWRITE);
|
56 |
+
|
57 |
+
if (FileHandle == -1) {
|
58 |
+
@@ -80,7 +80,7 @@ EGifOpenFileName(const char *FileName, const bool TestExistence, int *Error)
|
59 |
+
}
|
60 |
+
GifFile = EGifOpenFileHandle(FileHandle, Error);
|
61 |
+
if (GifFile == (GifFileType *) NULL)
|
62 |
+
- (void)close(FileHandle);
|
63 |
+
+ (void)_close(FileHandle);
|
64 |
+
return GifFile;
|
65 |
+
}
|
66 |
+
|
67 |
+
@@ -125,7 +125,7 @@ EGifOpenFileHandle(const int FileHandle, int *Error)
|
68 |
+
_setmode(FileHandle, O_BINARY); /* Make sure it is in binary mode. */
|
69 |
+
#endif /* _WIN32 */
|
70 |
+
|
71 |
+
- f = fdopen(FileHandle, "wb"); /* Make it into a stream: */
|
72 |
+
+ f = _fdopen(FileHandle, "wb"); /* Make it into a stream: */
|
73 |
+
|
74 |
+
GifFile->Private = (void *)Private;
|
75 |
+
Private->FileHandle = FileHandle;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/msvc-guard-unistd-h.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gif_hash.h b/gif_hash.h
|
2 |
+
index 6a1b585..e6712e8 100644
|
3 |
+
--- a/gif_hash.h
|
4 |
+
+++ b/gif_hash.h
|
5 |
+
@@ -9,7 +9,9 @@ SPDX-License-Identifier: MIT
|
6 |
+
#ifndef _GIF_HASH_H_
|
7 |
+
#define _GIF_HASH_H_
|
8 |
+
|
9 |
+
+#ifndef _MSC_VER
|
10 |
+
#include <unistd.h>
|
11 |
+
+#endif
|
12 |
+
#include <stdint.h>
|
13 |
+
|
14 |
+
#define HT_SIZE 8192 /* 12bits = 4096 or twice as big! */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(GIFLIB_VERSION 5.2.1)
|
2 |
+
|
3 |
+
set(EXTRA_PATCHES "")
|
4 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
5 |
+
list(APPEND EXTRA_PATCHES fix-compile-error.patch)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
vcpkg_from_sourceforge(
|
9 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
10 |
+
REPO "giflib"
|
11 |
+
FILENAME "giflib-${GIFLIB_VERSION}.tar.gz"
|
12 |
+
SHA512 4550e53c21cb1191a4581e363fc9d0610da53f7898ca8320f0d3ef6711e76bdda2609c2df15dc94c45e28bff8de441f1227ec2da7ea827cb3c0405af4faa4736
|
13 |
+
PATCHES
|
14 |
+
msvc-guard-unistd-h.patch
|
15 |
+
disable-GifDrawBoxedText8x8-win32.patch # MSVC doesn't have strtok_r
|
16 |
+
${EXTRA_PATCHES}
|
17 |
+
)
|
18 |
+
|
19 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS
|
24 |
+
"-DGIFLIB_EXPORTS=${CMAKE_CURRENT_LIST_DIR}/exports.def"
|
25 |
+
OPTIONS_DEBUG
|
26 |
+
-DGIFLIB_SKIP_HEADERS=ON
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
|
32 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/giflib/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "giflib",
|
3 |
+
"version": "5.2.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A library for reading and writing gif images.",
|
6 |
+
"homepage": "https://sourceforge.net/projects/giflib/",
|
7 |
+
"license": "MIT",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ginkgo/portfile.cmake
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(WINDOWS_SYMBOLS_PATCH
|
2 |
+
URLS https://github.com/ginkgo-project/ginkgo/commit/7481b2fffb51d73492ef9017045450b29b820f81.diff
|
3 |
+
FILENAME 7481b2fffb51d73492ef9017045450b29b820f81.diff
|
4 |
+
SHA512 f81c57aacc30680383ccfb21ca08987d8ea19a23c0c7bbc5ae590c3c7eca4eed72cea84410357e080e5bb35f08f6b57834b3cdace6d91cc3fde0a1930aa4270a
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO ginkgo-project/ginkgo
|
10 |
+
REF v1.4.0
|
11 |
+
SHA512 9bfcb2c415c7a1a70cf8e49f20adf62d02cab83bb23b6fcecfeaeeb322b2d4e1ad8d8fa6582735073753f9a05eac8688b9bd1ff1d4203957c1a80702d117e807
|
12 |
+
HEAD_REF master
|
13 |
+
PATCHES
|
14 |
+
${WINDOWS_SYMBOLS_PATCH}
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
18 |
+
FEATURES
|
19 |
+
openmp GINKGO_BUILD_OMP
|
20 |
+
cuda GINKGO_BUILD_CUDA
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS
|
26 |
+
-DGINKGO_BUILD_REFERENCE=ON
|
27 |
+
-DGINKGO_BUILD_TESTS=OFF
|
28 |
+
-DGINKGO_BUILD_EXAMPLES=OFF
|
29 |
+
-DGINKGO_BUILD_HIP=OFF
|
30 |
+
-DGINKGO_BUILD_DPCPP=OFF
|
31 |
+
-DGINKGO_BUILD_HWLOC=OFF
|
32 |
+
-DGINKGO_BUILD_BENCHMARKS=OFF
|
33 |
+
-DGINKGO_DEVEL_TOOLS=OFF
|
34 |
+
-DGINKGO_SKIP_DEPENDENCY_UPDATE=ON
|
35 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
36 |
+
-DGinkgo_NAME=ginkgo
|
37 |
+
${FEATURE_OPTIONS}
|
38 |
+
)
|
39 |
+
|
40 |
+
vcpkg_cmake_install()
|
41 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Ginkgo)
|
42 |
+
vcpkg_fixup_pkgconfig()
|
43 |
+
|
44 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ginkgo/GinkgoConfig.cmake" [[string(REPLACE "lib/cmake/Ginkgo" "" GINKGO_INSTALL_PREFIX "${GINKGO_CONFIG_FILE_PATH}")]] "")
|
45 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ginkgo/GinkgoConfig.cmake" "GINKGO_INSTALL_PREFIX" "_IMPORT_PREFIX")
|
46 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ginkgo/GinkgoConfig.cmake" "/lib/cmake/Ginkgo\"" "/share/ginkgo\"")
|
47 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ginkgo/GinkgoConfig.cmake" "/lib/cmake/Ginkgo/Modules\"" "/share/ginkgo/Modules/Modules\"")
|
48 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/ginkgo/GinkgoConfig.cmake" "\"${SOURCE_PATH}/cmake/Modules/\"" "")
|
49 |
+
|
50 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ginkgo" RENAME copyright)
|
51 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ginkgo")
|
52 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ginkgo/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package ginkgo provides CMake targets:
|
2 |
+
|
3 |
+
find_package(Ginkgo CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE Ginkgo::ginkgo)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ginkgo/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ginkgo",
|
3 |
+
"version-semver": "1.4.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Ginkgo is a high-performance linear algebra library for manycore systems, with a focus on sparse solution of linear systems. Note that the OpenMP feature is not available on Windows.",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"cuda": {
|
18 |
+
"description": "Build the CUDA backend of Ginkgo",
|
19 |
+
"dependencies": [
|
20 |
+
"cuda"
|
21 |
+
]
|
22 |
+
},
|
23 |
+
"openmp": {
|
24 |
+
"description": "Build the OpenMP backend of Ginkgo"
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl2ps/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL http://gitlab.onelab.info
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO gl2ps/gl2ps
|
5 |
+
REF gl2ps_1_4_2
|
6 |
+
SHA512 cb4abd79f6790e229a0b05a6d12e4bd4d24885c89c4cb8644e49b0459361565c5c5379b53d85f59eeaba16144d3288dbd06c90f55a739f0928a788224ccb8085
|
7 |
+
HEAD_REF master
|
8 |
+
PATCHES separate-static-dynamic-build.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
|
19 |
+
# Handle copyright
|
20 |
+
file(INSTALL ${SOURCE_PATH}/COPYING.GL2PS DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
21 |
+
file(INSTALL ${SOURCE_PATH}/COPYING.LGPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright.LGPL)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl2ps/separate-static-dynamic-build.patch
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 0001c4f..36ec0f7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,33 +1,41 @@
|
6 |
+
# GL2PS, an OpenGL to PostScript Printing Library
|
7 |
+
# Copyright (C) 1999-2017 C. Geuzaine
|
8 |
+
+
|
9 |
+
#
|
10 |
+
# This program is free software; you can redistribute it and/or
|
11 |
+
# modify it under the terms of either:
|
12 |
+
+
|
13 |
+
#
|
14 |
+
# a) the GNU Library General Public License as published by the Free
|
15 |
+
# Software Foundation, either version 2 of the License, or (at your
|
16 |
+
# option) any later version; or
|
17 |
+
+
|
18 |
+
#
|
19 |
+
# b) the GL2PS License as published by Christophe Geuzaine, either
|
20 |
+
# version 2 of the License, or (at your option) any later version.
|
21 |
+
+
|
22 |
+
#
|
23 |
+
# This program is distributed in the hope that it will be useful, but
|
24 |
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
25 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either
|
26 |
+
# the GNU Library General Public License or the GL2PS License for
|
27 |
+
# more details.
|
28 |
+
+
|
29 |
+
#
|
30 |
+
# You should have received a copy of the GNU Library General Public
|
31 |
+
# License along with this library in the file named "COPYING.LGPL";
|
32 |
+
# if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
33 |
+
# Cambridge, MA 02139, USA.
|
34 |
+
+
|
35 |
+
#
|
36 |
+
# You should have received a copy of the GL2PS License with this
|
37 |
+
# library in the file named "COPYING.GL2PS"; if not, I will be glad
|
38 |
+
# to provide one.
|
39 |
+
+
|
40 |
+
#
|
41 |
+
# For the latest info about gl2ps and a full list of contributors,
|
42 |
+
# see http://www.geuz.org/gl2ps/.
|
43 |
+
+
|
44 |
+
#
|
45 |
+
# Please report all bugs and problems to <[email protected]>.
|
46 |
+
|
47 |
+
@@ -59,7 +67,7 @@ set(GL2PS_VERSION "${GL2PS_MAJOR_VERSION}.${GL2PS_MINOR_VERSION}")
|
48 |
+
set(GL2PS_VERSION "${GL2PS_VERSION}.${GL2PS_PATCH_VERSION}${GL2PS_EXTRA_VERSION}")
|
49 |
+
|
50 |
+
execute_process(COMMAND date "+%Y%m%d" OUTPUT_VARIABLE DATE
|
51 |
+
- OUTPUT_STRIP_TRAILING_WHITESPACE)
|
52 |
+
+OUTPUT_STRIP_TRAILING_WHITESPACE)
|
53 |
+
if(NOT DATE)
|
54 |
+
set(DATE "unknown")
|
55 |
+
endif()
|
56 |
+
@@ -138,30 +146,30 @@ if(APPLE)
|
57 |
+
endif()
|
58 |
+
endif()
|
59 |
+
|
60 |
+
-if(OPENGL_FOUND)
|
61 |
+
- add_library(lib STATIC gl2ps.c gl2ps.h)
|
62 |
+
- set_target_properties(lib PROPERTIES OUTPUT_NAME gl2ps)
|
63 |
+
-
|
64 |
+
- add_library(shared SHARED gl2ps.c gl2ps.h)
|
65 |
+
- target_link_libraries(shared ${EXTERNAL_LIBRARIES})
|
66 |
+
- set_target_properties(shared PROPERTIES OUTPUT_NAME gl2ps
|
67 |
+
- VERSION ${GL2PS_MAJOR_VERSION}.${GL2PS_MINOR_VERSION}.${GL2PS_PATCH_VERSION}
|
68 |
+
- SOVERSION ${GL2PS_MAJOR_VERSION})
|
69 |
+
- if(WIN32 OR CYGWIN)
|
70 |
+
- set_target_properties(shared PROPERTIES
|
71 |
+
- COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
|
72 |
+
- endif()
|
73 |
+
- install(TARGETS lib shared RUNTIME DESTINATION bin
|
74 |
+
- LIBRARY DESTINATION lib${LIB_SUFFIX}
|
75 |
+
- ARCHIVE DESTINATION lib${LIB_SUFFIX})
|
76 |
+
+add_library(gl2ps gl2ps.c gl2ps.h)
|
77 |
+
+target_link_libraries(gl2ps ${EXTERNAL_LIBRARIES})
|
78 |
+
+set_target_properties(gl2ps PROPERTIES
|
79 |
+
+ VERSION ${GL2PS_MAJOR_VERSION}.${GL2PS_MINOR_VERSION}.${GL2PS_PATCH_VERSION}
|
80 |
+
+SOVERSION ${GL2PS_MAJOR_VERSION})
|
81 |
+
+
|
82 |
+
+if(BUILD_SHARED_LIBS)
|
83 |
+
+ target_compile_definitions(gl2ps PRIVATE -DGL2PSDLL -DGL2PSDLL_EXPORTS)
|
84 |
+
endif()
|
85 |
+
|
86 |
+
+install(
|
87 |
+
+ TARGETS gl2ps
|
88 |
+
+ RUNTIME DESTINATION bin
|
89 |
+
+ LIBRARY DESTINATION lib
|
90 |
+
+ ARCHIVE DESTINATION lib
|
91 |
+
+)
|
92 |
+
+
|
93 |
+
if(WIN32)
|
94 |
+
- set(GL2PS_DOC .)
|
95 |
+
+ set(GL2PS_DOC share/gl2ps/docs)
|
96 |
+
else()
|
97 |
+
set(GL2PS_DOC share/doc/gl2ps)
|
98 |
+
endif()
|
99 |
+
|
100 |
+
+if(NOT DISABLE_INSTALL_HEADERS)
|
101 |
+
install(FILES gl2ps.h DESTINATION include)
|
102 |
+
install(FILES ${CMAKE_SOURCE_DIR}/README.txt DESTINATION ${GL2PS_DOC})
|
103 |
+
install(FILES ${CMAKE_SOURCE_DIR}/COPYING.LGPL DESTINATION ${GL2PS_DOC})
|
104 |
+
@@ -169,30 +177,36 @@ install(FILES ${CMAKE_SOURCE_DIR}/COPYING.GL2PS DESTINATION ${GL2PS_DOC})
|
105 |
+
install(FILES ${CMAKE_SOURCE_DIR}/gl2psTest.c DESTINATION ${GL2PS_DOC})
|
106 |
+
install(FILES ${CMAKE_SOURCE_DIR}/gl2psTestSimple.c DESTINATION ${GL2PS_DOC})
|
107 |
+
|
108 |
+
-if(GLUT_FOUND)
|
109 |
+
- add_executable(gl2psTest WIN32 gl2psTest.c)
|
110 |
+
- target_link_libraries(gl2psTest lib ${EXTERNAL_LIBRARIES})
|
111 |
+
- add_executable(gl2psTestSimple WIN32 gl2psTestSimple.c)
|
112 |
+
- target_link_libraries(gl2psTestSimple lib ${EXTERNAL_LIBRARIES})
|
113 |
+
endif()
|
114 |
+
|
115 |
+
-find_package(LATEX)
|
116 |
+
-if(PDFLATEX_COMPILER)
|
117 |
+
- add_custom_command(OUTPUT gl2ps.pdf DEPENDS gl2ps.tex
|
118 |
+
- COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
|
119 |
+
- COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
|
120 |
+
- COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
|
121 |
+
- COMMAND ${CMAKE_COMMAND} -E copy gl2ps.pdf ${CMAKE_SOURCE_DIR})
|
122 |
+
- add_custom_target(pdf ALL DEPENDS gl2ps.pdf)
|
123 |
+
- install(FILES gl2ps.pdf DESTINATION ${GL2PS_DOC})
|
124 |
+
- find_program(TTH tth)
|
125 |
+
- if(TTH)
|
126 |
+
- add_custom_command(OUTPUT gl2ps.html DEPENDS gl2ps.tex gl2ps.pdf
|
127 |
+
- COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
128 |
+
- ${CMAKE_SOURCE_DIR}/gl2ps.tex ${CMAKE_BINARY_DIR}/gl2ps.tex
|
129 |
+
- COMMAND ${TTH} ARGS -w1 gl2ps.tex)
|
130 |
+
- add_custom_target(html DEPENDS gl2ps.html)
|
131 |
+
- endif()
|
132 |
+
+if(BUILD_TESTS)
|
133 |
+
+
|
134 |
+
+ if(GLUT_FOUND)
|
135 |
+
+ add_executable(gl2psTest gl2psTest.c)
|
136 |
+
+ target_link_libraries(gl2psTest gl2ps ${EXTERNAL_LIBRARIES})
|
137 |
+
+ add_executable(gl2psTestSimple gl2psTestSimple.c)
|
138 |
+
+ target_link_libraries(gl2psTestSimple gl2ps ${EXTERNAL_LIBRARIES})
|
139 |
+
+ endif(GLUT_FOUND)
|
140 |
+
+
|
141 |
+
+ find_package(LATEX)
|
142 |
+
+ if(PDFLATEX_COMPILER)
|
143 |
+
+ add_custom_command(OUTPUT gl2ps.pdf DEPENDS gl2ps.tex
|
144 |
+
+ COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
|
145 |
+
+ COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
|
146 |
+
+ COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
|
147 |
+
+ COMMAND ${CMAKE_COMMAND} -E copy gl2ps.pdf ${CMAKE_SOURCE_DIR})
|
148 |
+
+ add_custom_target(pdf ALL DEPENDS gl2ps.pdf)
|
149 |
+
+ install(FILES gl2ps.pdf DESTINATION ${GL2PS_DOC})
|
150 |
+
+ find_program(TTH tth)
|
151 |
+
+ if(TTH)
|
152 |
+
+ add_custom_command(OUTPUT gl2ps.html DEPENDS gl2ps.tex gl2ps.pdf
|
153 |
+
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
154 |
+
+ ${CMAKE_SOURCE_DIR}/gl2ps.tex ${CMAKE_BINARY_DIR}/gl2ps.tex
|
155 |
+
+ COMMAND ${TTH} ARGS -w1 gl2ps.tex)
|
156 |
+
+ add_custom_target(html DEPENDS gl2ps.html)
|
157 |
+
+ endif(TTH)
|
158 |
+
+ endif(PDFLATEX_COMPILER)
|
159 |
+
+
|
160 |
+
endif()
|
161 |
+
|
162 |
+
set(CPACK_PACKAGE_VENDOR "Christophe Geuzaine")
|
163 |
+
@@ -201,27 +215,22 @@ set(CPACK_PACKAGE_VERSION_MINOR ${GL2PS_MINOR_VERSION})
|
164 |
+
set(CPACK_PACKAGE_VERSION_PATCH ${GL2PS_PATCH_VERSION})
|
165 |
+
set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_SOURCE_DIR}/README.txt)
|
166 |
+
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY
|
167 |
+
- "An OpenGL to PostScript (and PDF, and SVG...) printing library")
|
168 |
+
-if(GL2PS_EXTRA_VERSION MATCHES "-git.*") # so that we'll overwrite the archives
|
169 |
+
- set(CPACK_PACKAGE_FILE_NAME gl2ps-git-${GL2PS_OS})
|
170 |
+
- set(CPACK_SOURCE_PACKAGE_FILE_NAME gl2ps-git)
|
171 |
+
-else()
|
172 |
+
+ "An OpenGL to PostScript (and PDF, and SVG...) printing library")
|
173 |
+
set(CPACK_PACKAGE_FILE_NAME gl2ps-${GL2PS_VERSION}-${GL2PS_OS})
|
174 |
+
- set(CPACK_SOURCE_PACKAGE_FILE_NAME gl2ps-${GL2PS_VERSION})
|
175 |
+
-endif()
|
176 |
+
-set(CPACK_PACKAGE_INSTALL_DIRECTORY "gl2ps")
|
177 |
+
-set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING.LGPL)
|
178 |
+
-set(CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README.txt)
|
179 |
+
-set(CPACK_RESOURCE_FILE_WELCOME ${CMAKE_SOURCE_DIR}/README.txt)
|
180 |
+
-set(CPACK_PACKAGE_EXECUTABLE "gl2ps;gl2ps")
|
181 |
+
-set(CPACK_STRIP_FILES TRUE)
|
182 |
+
-set(CPACK_SOURCE_GENERATOR TGZ)
|
183 |
+
-set(CPACK_SOURCE_IGNORE_FILES "TODO.txt" "${CMAKE_BINARY_DIR}" "/CVS/"
|
184 |
+
- "/.svn" "/.git" "~$" "DS_Store$" "/tmp/" "/bin/" "/lib/")
|
185 |
+
-if(WIN32)
|
186 |
+
- set(CPACK_GENERATOR ZIP)
|
187 |
+
-else()
|
188 |
+
- set(CPACK_GENERATOR TGZ)
|
189 |
+
-endif()
|
190 |
+
-
|
191 |
+
-include(CPack)
|
192 |
+
+ set(CPACK_PACKAGE_INSTALL_DIRECTORY "gl2ps")
|
193 |
+
+ set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/COPYING.LGPL)
|
194 |
+
+ set(CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README.txt)
|
195 |
+
+ set(CPACK_RESOURCE_FILE_WELCOME ${CMAKE_SOURCE_DIR}/README.txt)
|
196 |
+
+ set(CPACK_PACKAGE_EXECUTABLE "gl2ps;gl2ps")
|
197 |
+
+ set(CPACK_STRIP_FILES TRUE)
|
198 |
+
+ set(CPACK_SOURCE_PACKAGE_FILE_NAME gl2ps-${GL2PS_VERSION}-source)
|
199 |
+
+ set(CPACK_SOURCE_GENERATOR TGZ)
|
200 |
+
+ set(CPACK_SOURCE_IGNORE_FILES "TODO.txt" "${CMAKE_BINARY_DIR}" "/CVS/"
|
201 |
+
+ "/.svn" "~$" "DS_Store$" "/tmp/" "/bin/" "/lib/")
|
202 |
+
+ if(WIN32)
|
203 |
+
+ set(CPACK_GENERATOR ZIP)
|
204 |
+
+ else(WIN32)
|
205 |
+
+ set(CPACK_GENERATOR TGZ)
|
206 |
+
+ endif(WIN32)
|
207 |
+
+
|
208 |
+
+ # include(CPack)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl2ps/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gl2ps",
|
3 |
+
"version-string": "1.4.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "OpenGL to PostScript Printing Library",
|
6 |
+
"homepage": "https://gitlab.onelab.info/gl2ps/gl2ps",
|
7 |
+
"dependencies": [
|
8 |
+
"freeglut",
|
9 |
+
"libpng",
|
10 |
+
"zlib"
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/0001-enable-shared-build.patch
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 5f482a64c642f830f1d25f8abae7cae6dd2c6c2b Mon Sep 17 00:00:00 2001
|
2 |
+
From: Stanislav Ershov <[email protected]>
|
3 |
+
Date: Mon, 8 Jan 2018 03:16:07 +0300
|
4 |
+
Subject: [PATCH] enable shared build
|
5 |
+
|
6 |
+
---
|
7 |
+
gl3w_gen.py | 18 ++++++++++++------
|
8 |
+
1 file changed, 12 insertions(+), 6 deletions(-)
|
9 |
+
|
10 |
+
diff --git a/gl3w_gen.py b/gl3w_gen.py
|
11 |
+
index 611331a..3515cf9 100755
|
12 |
+
--- a/gl3w_gen.py
|
13 |
+
+++ b/gl3w_gen.py
|
14 |
+
@@ -130,6 +130,10 @@ with open(os.path.join(args.root, 'include/GL/gl3w.h'), 'wb') as f:
|
15 |
+
|
16 |
+
#include <GL/glcorearb.h>
|
17 |
+
|
18 |
+
+#ifndef GL3W_API
|
19 |
+
+ #define GL3W_API
|
20 |
+
+#endif
|
21 |
+
+
|
22 |
+
#ifndef __gl_h_
|
23 |
+
#define __gl_h_
|
24 |
+
#endif
|
25 |
+
@@ -147,10 +151,10 @@ typedef void (*GL3WglProc)(void);
|
26 |
+
typedef GL3WglProc (*GL3WGetProcAddressProc)(const char *proc);
|
27 |
+
|
28 |
+
/* gl3w api */
|
29 |
+
-int gl3wInit(void);
|
30 |
+
-int gl3wInit2(GL3WGetProcAddressProc proc);
|
31 |
+
-int gl3wIsSupported(int major, int minor);
|
32 |
+
-GL3WglProc gl3wGetProcAddress(const char *proc);
|
33 |
+
+GL3W_API int gl3wInit(void);
|
34 |
+
+GL3W_API int gl3wInit2(GL3WGetProcAddressProc proc);
|
35 |
+
+GL3W_API int gl3wIsSupported(int major, int minor);
|
36 |
+
+GL3W_API GL3WglProc gl3wGetProcAddress(const char *proc);
|
37 |
+
|
38 |
+
/* gl3w internal state */
|
39 |
+
''')
|
40 |
+
@@ -162,7 +168,7 @@ GL3WglProc gl3wGetProcAddress(const char *proc);
|
41 |
+
write(f, r''' } gl;
|
42 |
+
};
|
43 |
+
|
44 |
+
-extern union GL3WProcs gl3wProcs;
|
45 |
+
+GL3W_API extern union GL3WProcs gl3wProcs;
|
46 |
+
|
47 |
+
/* OpenGL functions */
|
48 |
+
''')
|
49 |
+
@@ -329,7 +333,7 @@ static const char *proc_names[] = {
|
50 |
+
write(f, '\t"{0}",\n'.format(proc))
|
51 |
+
write(f, r'''};
|
52 |
+
|
53 |
+
-union GL3WProcs gl3wProcs;
|
54 |
+
+GL3W_API union GL3WProcs gl3wProcs;
|
55 |
+
|
56 |
+
static void load_procs(GL3WGetProcAddressProc proc)
|
57 |
+
{
|
58 |
+
--
|
59 |
+
2.15.0.windows.1
|
60 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/CMakeLists.txt
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(gl3w C)
|
3 |
+
|
4 |
+
find_package(OpenGL REQUIRED)
|
5 |
+
find_path(GLCOREARB_H NAMES GL/glcorearb.h)
|
6 |
+
|
7 |
+
add_library(gl3w src/gl3w.c)
|
8 |
+
|
9 |
+
target_include_directories(gl3w
|
10 |
+
PUBLIC
|
11 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
12 |
+
$<INSTALL_INTERFACE:include>
|
13 |
+
PRIVATE
|
14 |
+
${GLCOREARB_H}
|
15 |
+
${OPENGL_INCLUDE_DIR}
|
16 |
+
)
|
17 |
+
|
18 |
+
if(BUILD_SHARED_LIBS)
|
19 |
+
target_compile_definitions(gl3w PRIVATE "-DGL3W_API=__declspec(dllexport)")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
target_link_libraries(gl3w PRIVATE ${OPENGL_LIBRARIES})
|
23 |
+
|
24 |
+
install(TARGETS gl3w
|
25 |
+
EXPORT gl3wExport
|
26 |
+
RUNTIME DESTINATION bin
|
27 |
+
LIBRARY DESTINATION lib
|
28 |
+
ARCHIVE DESTINATION lib
|
29 |
+
)
|
30 |
+
|
31 |
+
install(
|
32 |
+
EXPORT gl3wExport
|
33 |
+
FILE gl3wConfig.cmake
|
34 |
+
NAMESPACE unofficial::gl3w::
|
35 |
+
DESTINATION share/gl3w
|
36 |
+
)
|
37 |
+
|
38 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
39 |
+
install(FILES include/GL/gl3w.h DESTINATION include/GL)
|
40 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO skaslev/gl3w
|
4 |
+
REF 99ed321100d37032cb6bfa7dd8dea85f10c86132
|
5 |
+
SHA512 217f65644c73c33383b09893fa5ede066cc4b1cddab051feac11d7e939dba14ed637b297ea42a0426bc0a1a3bc665998a91c27ca10d28704ce9e2d3d90e73595
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
0001-enable-shared-build.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/include/GL/glcorearb.h" DESTINATION "${SOURCE_PATH}/include/GL")
|
13 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/include/KHR/khrplatform.h" DESTINATION "${SOURCE_PATH}/include/KHR")
|
14 |
+
|
15 |
+
vcpkg_find_acquire_program(PYTHON3)
|
16 |
+
|
17 |
+
vcpkg_execute_required_process(
|
18 |
+
COMMAND "${PYTHON3}" "${SOURCE_PATH}/gl3w_gen.py"
|
19 |
+
WORKING_DIRECTORY "${SOURCE_PATH}"
|
20 |
+
LOGNAME gl3w-gen
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
vcpkg_cmake_config_fixup()
|
31 |
+
|
32 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
33 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/GL/gl3w.h" "#define GL3W_API" "#define GL3W_API __declspec(dllimport)")
|
34 |
+
endif()
|
35 |
+
|
36 |
+
file(INSTALL "${SOURCE_PATH}/UNLICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gl3w/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gl3w",
|
3 |
+
"version-date": "2018-05-31",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "Simple OpenGL core profile loading",
|
6 |
+
"homepage": "https://github.com/skaslev/gl3w",
|
7 |
+
"dependencies": [
|
8 |
+
"egl-registry",
|
9 |
+
"opengl-registry",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/glad/encoding.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/glad/__main__.py b/glad/__main__.py
|
2 |
+
index e7c0544a5..1e10dcc60 100644
|
3 |
+
--- a/glad/__main__.py
|
4 |
+
+++ b/glad/__main__.py
|
5 |
+
@@ -32,7 +32,7 @@ def main():
|
6 |
+
if reproducible:
|
7 |
+
logger.info('reproducible build, using packaged specification: \'%s.xml\'', value)
|
8 |
+
try:
|
9 |
+
- return spec_cls.from_file(glad.files.open_local(value + '.xml'))
|
10 |
+
+ return spec_cls.from_file(glad.files.open_local(value + '.xml', encoding='utf-8-sig'))
|
11 |
+
except IOError:
|
12 |
+
raise ValueError('unable to open reproducible copy of {}.xml, '
|
13 |
+
'try dropping --reproducible'.format(value))
|