Techt3o commited on
Commit
5ad194e
·
verified ·
1 Parent(s): b379e24

c2d605e5459cd975b39500dc442479989dcac05484354138fc70f7bf2d113904

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/MSBuildProject-static-lib.patch +13 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/MSBuildProject_fix_gendef_perl.patch +13 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Solution.patch +45 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Solution_DEBUG.patch +92 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Solution_RELEASE.patch +92 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/msgfmt.patch +13 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/openssl_exe_path.patch +13 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/python3_build_DEBUG.patch +40 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/python3_build_RELEASE.patch +39 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/python_lib.patch +17 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/tcl_version.patch +13 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/win_bison_flex.patch +43 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/portfile.cmake +379 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/usage +4 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/vcpkg-cmake-wrapper.cmake +66 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/vcpkg.json +138 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/config-internal-compiler.h.in +14 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/config-public-compiler.h.in +8 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/fix_build_with_apple_clang_13.patch +15 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/fix_build_with_vs2017.patch +103 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/portfile.cmake +29 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/vcpkg.json +18 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libprotobuf-mutator/portfile.cmake +29 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libprotobuf-mutator/vcpkg.json +8 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-arm-build.patch +14 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-dependency-libmodman.patch +52 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-install-py.patch +36 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-module-lib-name.patch +13 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-tools-path.patch +27 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/portfile.cmake +49 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/support-windows.patch +31 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/usage +5 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/vcpkg-cmake-wrapper.cmake +6 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/vcpkg.json +42 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/CMakeLists.txt +83 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/Config.cmake.in +4 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/macos_fixes.patch +38 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/portfile.cmake +36 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/vcpkg.json +13 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/destdir.patch +21 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/portfile.cmake +24 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/use-default-config-on-all-platforms.patch +33 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/vcpkg.json +12 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqrencode/portfile.cmake +56 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqrencode/usage +10 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqrencode/vcpkg.json +26 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/librabbitmq/fix-uwpwarning.patch +28 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/librabbitmq/portfile.cmake +32 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/librabbitmq/vcpkg.json +18 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraqm/CMakeLists.txt +38 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/MSBuildProject-static-lib.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
2
+ index 823357c02..e1dc59aa7 100644
3
+ --- a/src/tools/msvc/MSBuildProject.pm
4
+ +++ b/src/tools/msvc/MSBuildProject.pm
5
+ @@ -265,7 +265,7 @@ sub WriteConfigurationPropertyGroup
6
+ my $cfgtype =
7
+ ($self->{type} eq "exe")
8
+ ? 'Application'
9
+ - : ($self->{type} eq "dll" ? 'DynamicLibrary' : 'StaticLibrary');
10
+ + : ($self->{type} eq "dll" ? 'StaticLibrary' : 'StaticLibrary');
11
+
12
+ print $f <<EOF;
13
+ <PropertyGroup Condition="'\$(Configuration)|\$(Platform)'=='$cfgname|$self->{platform}'" Label="Configuration">
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/MSBuildProject_fix_gendef_perl.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
2
+ index 823357c02..b93992f22 100644
3
+ --- a/src/tools/msvc/MSBuildProject.pm
4
+ +++ b/src/tools/msvc/MSBuildProject.pm
5
+ @@ -384,7 +384,7 @@ EOF
6
+ print $f <<EOF;
7
+ <PreLinkEvent>
8
+ <Message>Generate DEF file</Message>
9
+ - <Command>perl src\\tools\\msvc\\gendef.pl $cfgname\\$self->{name} $self->{platform}</Command>
10
+ + <Command>perl "src\\tools\\msvc\\gendef.pl" $cfgname\\$self->{name} $self->{platform}</Command>
11
+ </PreLinkEvent>
12
+ EOF
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Solution.patch ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
2
+ index 51711c2bf..d33fdc3b0 100644
3
+ --- a/src/tools/msvc/Solution.pm
4
+ +++ b/src/tools/msvc/Solution.pm
5
+ @@ -63,17 +63,21 @@ sub DeterminePlatform
6
+ my $self = shift;
7
+
8
+ if ($^O eq "MSWin32")
9
+ {
10
+ # Examine CL help output to determine if we are in 32 or 64-bit mode.
11
+ my $output = `cl /help 2>&1`;
12
+ $? >> 8 == 0 or die "cl command not found";
13
+ - $self->{platform} =
14
+ - ($output =~ /^\/favor:<.+AMD64/m) ? 'x64' : 'Win32';
15
+ + if ($output =~ m/x64\n/) { $self->{platform} = 'x64';
16
+ + } elsif ($output =~ m/x86\n/) { $self->{platform} = 'Win32';
17
+ + } elsif ($output =~ m/ARM64\n/) { $self->{platform} = 'ARM64';
18
+ + } elsif ($output =~ m/ARM\n/) { $self->{platform} = 'ARM';
19
+ + } else { $self->{platform} = 'Unknown'
20
+ + }
21
+ }
22
+ else
23
+ {
24
+ $self->{platform} = 'FAKE';
25
+ }
26
+ print "Detected hardware platform: $self->{platform}\n";
27
+ return;
28
+ }
29
+ @@ -757,14 +757,14 @@ EOF
30
+ || confess "Could not open pg_config_paths.h";
31
+ print $o <<EOF;
32
+ #define PGBINDIR "/bin"
33
+ -#define PGSHAREDIR "/share"
34
+ +#define PGSHAREDIR "/share/libpq"
35
+ #define SYSCONFDIR "/etc"
36
+ #define INCLUDEDIR "/include"
37
+ #define PKGINCLUDEDIR "/include"
38
+ #define INCLUDEDIRSERVER "/include/server"
39
+ #define LIBDIR "/lib"
40
+ #define PKGLIBDIR "/lib"
41
+ -#define LOCALEDIR "/share/locale"
42
+ +#define LOCALEDIR "/share/libpq/locale"
43
+ #define DOCDIR "/doc"
44
+ #define HTMLDIR "/doc"
45
+ #define MANDIR "/man"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Solution_DEBUG.patch ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
2
+ index 2820ace22..7fddbf0fb 100644
3
+ --- a/src/tools/msvc/Solution.pm
4
+ +++ b/src/tools/msvc/Solution.pm
5
+ @@ -948,7 +948,7 @@ sub AddProject
6
+ if ($self->{options}->{zlib})
7
+ {
8
+ $proj->AddIncludeDir($self->{options}->{zlib} . '\include');
9
+ - $proj->AddLibrary($self->{options}->{zlib} . '\lib\zdll.lib');
10
+ + $proj->AddLibrary($self->{options}->{zlib} . '\debug\lib\zlibd.lib');
11
+ }
12
+ if ($self->{options}->{openssl})
13
+ {
14
+ @@ -989,8 +989,11 @@ sub AddProject
15
+ # On both Win32 and Win64 the same library
16
+ # names are used without a debugging context.
17
+ $dbgsuffix = 0;
18
+ - $libsslpath = '\lib\libssl.lib';
19
+ - $libcryptopath = '\lib\libcrypto.lib';
20
+ + $libsslpath = '\debug\lib\libssl.lib'; #
21
+ + $libcryptopath = '\debug\lib\libcrypto.lib'; #
22
+ + $proj->AddLibrary('crypt32.lib');
23
+ + $proj->AddLibrary('ws2_32.lib');
24
+ + $proj->AddLibrary('secur32.lib');
25
+ }
26
+
27
+ $proj->AddLibrary($self->{options}->{openssl} . $libsslpath,
28
+ @@ -1024,7 +1024,7 @@ sub AddProject
29
+ if ($self->{options}->{nls})
30
+ {
31
+ $proj->AddIncludeDir($self->{options}->{nls} . '\include');
32
+ - $proj->AddLibrary($self->{options}->{nls} . '\lib\libintl.lib');
33
+ + $proj->AddLibrary($self->{options}->{nls} . '\debug\lib\intl.lib'); #
34
+ }
35
+ if ($self->{options}->{gss})
36
+ {
37
+ @@ -1051,21 +1051,21 @@ sub AddProject
38
+ }
39
+ if ($self->{options}->{iconv})
40
+ {
41
+ $proj->AddIncludeDir($self->{options}->{iconv} . '\include');
42
+ - $proj->AddLibrary($self->{options}->{iconv} . '\lib\iconv.lib');
43
+ + $proj->AddLibrary($self->{options}->{iconv} . '\debug\lib\iconv.lib'); #
44
+ }
45
+ if ($self->{options}->{icu})
46
+ {
47
+ $proj->AddIncludeDir($self->{options}->{icu} . '\include');
48
+ if ($self->{platform} eq 'Win32')
49
+ {
50
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib\icuin.lib');
51
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib\icuuc.lib');
52
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib\icudt.lib');
53
+ + $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuind.lib'); #
54
+ + $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuucd.lib'); #
55
+ + $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icudtd.lib'); #
56
+ }
57
+ else
58
+ {
59
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib64\icuin.lib');
60
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib64\icuuc.lib');
61
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib64\icudt.lib');
62
+ + $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuind.lib'); #
63
+ + $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icuucd.lib'); #
64
+ + $proj->AddLibrary($self->{options}->{icu} . '\debug\lib\icudtd.lib'); #
65
+ }
66
+ @@ -1074,22 +1074,22 @@ sub AddProject
67
+ {
68
+ $proj->AddIncludeDir($self->{options}->{xml} . '\include');
69
+ $proj->AddIncludeDir($self->{options}->{xml} . '\include\libxml2');
70
+ - $proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
71
+ + $proj->AddLibrary($self->{options}->{xml} . '\debug\lib\libxml2.lib'); #
72
+ }
73
+ if ($self->{options}->{xslt})
74
+ {
75
+ $proj->AddIncludeDir($self->{options}->{xslt} . '\include');
76
+ - $proj->AddLibrary($self->{options}->{xslt} . '\lib\libxslt.lib');
77
+ + $proj->AddLibrary($self->{options}->{xslt} . '\debug\lib\libxslt.lib'); #
78
+ }
79
+ if ($self->{options}->{lz4})
80
+ {
81
+ $proj->AddIncludeDir($self->{options}->{lz4} . '\include');
82
+ - $proj->AddLibrary($self->{options}->{lz4} . '\lib\liblz4.lib');
83
+ + $proj->AddLibrary($self->{options}->{lz4} . '\debug\lib\lz4d.lib'); #
84
+ }
85
+ if ($self->{options}->{uuid})
86
+ {
87
+ $proj->AddIncludeDir($self->{options}->{uuid} . '\include');
88
+ - $proj->AddLibrary($self->{options}->{uuid} . '\lib\uuid.lib');
89
+ + $proj->AddLibrary($self->{options}->{uuid} . '\debug\lib\uuid.lib'); #
90
+ }
91
+ return $proj;
92
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/Solution_RELEASE.patch ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
2
+ index 2820ace22..7fddbf0fb 100644
3
+ --- a/src/tools/msvc/Solution.pm
4
+ +++ b/src/tools/msvc/Solution.pm
5
+ @@ -948,7 +948,7 @@ sub AddProject
6
+ if ($self->{options}->{zlib})
7
+ {
8
+ $proj->AddIncludeDir($self->{options}->{zlib} . '\include');
9
+ - $proj->AddLibrary($self->{options}->{zlib} . '\lib\zdll.lib');
10
+ + $proj->AddLibrary($self->{options}->{zlib} . '\lib\zlib.lib');
11
+ }
12
+ if ($self->{options}->{openssl})
13
+ {
14
+ @@ -989,8 +989,11 @@ sub AddProject
15
+ # On both Win32 and Win64 the same library
16
+ # names are used without a debugging context.
17
+ $dbgsuffix = 0;
18
+ - $libsslpath = '\lib\libssl.lib';
19
+ - $libcryptopath = '\lib\libcrypto.lib';
20
+ + $libsslpath = '\lib\libssl.lib'; #
21
+ + $libcryptopath = '\lib\libcrypto.lib'; #
22
+ + $proj->AddLibrary('crypt32.lib');
23
+ + $proj->AddLibrary('ws2_32.lib');
24
+ + $proj->AddLibrary('secur32.lib');
25
+ }
26
+
27
+ $proj->AddLibrary($self->{options}->{openssl} . $libsslpath,
28
+ @@ -1024,7 +1024,7 @@ sub AddProject
29
+ if ($self->{options}->{nls})
30
+ {
31
+ $proj->AddIncludeDir($self->{options}->{nls} . '\include');
32
+ - $proj->AddLibrary($self->{options}->{nls} . '\lib\libintl.lib');
33
+ + $proj->AddLibrary($self->{options}->{nls} . '\lib\intl.lib'); #
34
+ }
35
+ if ($self->{options}->{gss})
36
+ {
37
+ @@ -1051,21 +1051,21 @@ sub AddProject
38
+ }
39
+ if ($self->{options}->{iconv})
40
+ {
41
+ $proj->AddIncludeDir($self->{options}->{iconv} . '\include');
42
+ - $proj->AddLibrary($self->{options}->{iconv} . '\lib\iconv.lib');
43
+ + $proj->AddLibrary($self->{options}->{iconv} . '\lib\iconv.lib'); #
44
+ }
45
+ if ($self->{options}->{icu})
46
+ {
47
+ $proj->AddIncludeDir($self->{options}->{icu} . '\include');
48
+ if ($self->{platform} eq 'Win32')
49
+ {
50
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib\icuin.lib');
51
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib\icuuc.lib');
52
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib\icudt.lib');
53
+ + $proj->AddLibrary($self->{options}->{icu} . '\lib\icuin.lib'); #
54
+ + $proj->AddLibrary($self->{options}->{icu} . '\lib\icuuc.lib'); #
55
+ + $proj->AddLibrary($self->{options}->{icu} . '\lib\icudt.lib'); #
56
+ }
57
+ else
58
+ {
59
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib64\icuin.lib');
60
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib64\icuuc.lib');
61
+ - $proj->AddLibrary($self->{options}->{icu} . '\lib64\icudt.lib');
62
+ + $proj->AddLibrary($self->{options}->{icu} . '\lib\icuin.lib'); #
63
+ + $proj->AddLibrary($self->{options}->{icu} . '\lib\icuuc.lib'); #
64
+ + $proj->AddLibrary($self->{options}->{icu} . '\lib\icudt.lib'); #
65
+ }
66
+ @@ -1074,22 +1074,22 @@ sub AddProject
67
+ {
68
+ $proj->AddIncludeDir($self->{options}->{xml} . '\include');
69
+ $proj->AddIncludeDir($self->{options}->{xml} . '\include\libxml2');
70
+ - $proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
71
+ + $proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib'); #
72
+ }
73
+ if ($self->{options}->{xslt})
74
+ {
75
+ $proj->AddIncludeDir($self->{options}->{xslt} . '\include');
76
+ - $proj->AddLibrary($self->{options}->{xslt} . '\lib\libxslt.lib');
77
+ + $proj->AddLibrary($self->{options}->{xslt} . '\lib\libxslt.lib'); #
78
+ }
79
+ if ($self->{options}->{lz4})
80
+ {
81
+ $proj->AddIncludeDir($self->{options}->{lz4} . '\include');
82
+ - $proj->AddLibrary($self->{options}->{lz4} . '\lib\liblz4.lib');
83
+ + $proj->AddLibrary($self->{options}->{lz4} . '\lib\lz4.lib'); #
84
+ }
85
+ if ($self->{options}->{uuid})
86
+ {
87
+ $proj->AddIncludeDir($self->{options}->{uuid} . '\include');
88
+ - $proj->AddLibrary($self->{options}->{uuid} . '\lib\uuid.lib');
89
+ + $proj->AddLibrary($self->{options}->{uuid} . '\lib\uuid.lib'); #
90
+ }
91
+ return $proj;
92
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/msgfmt.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
2
+ index 66c0c3483..2154c6cf6 100644
3
+ --- a/src/tools/msvc/Install.pm
4
+ +++ b/src/tools/msvc/Install.pm
5
+ @@ -733,7 +733,7 @@ sub GenerateNLSFiles
6
+ EnsureDirectories($target, "share/libpq/locale/$lang",
7
+ "share/libpq/locale/$lang/LC_MESSAGES");
8
+ my @args = (
9
+ - "$nlspath\\bin\\msgfmt",
10
+ + "msgfmt.exe",
11
+ '-o',
12
+ "$target\\share\\libpq\\locale\\$lang\\LC_MESSAGES\\$prgm-$majorver.mo",
13
+ $_);
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/openssl_exe_path.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
2
+ index 51711c2bf..d33fdc3b0 100644
3
+ --- a/src/tools/msvc/Solution.pm
4
+ +++ b/src/tools/msvc/Solution.pm
5
+ @@ -129,7 +129,7 @@ sub GetOpenSSLVersion
6
+ # openssl.exe is in the specified directory.
7
+ # Quote the .exe name in case it has spaces
8
+ my $opensslcmd =
9
+ - qq("$self->{options}->{openssl}\\bin\\openssl.exe" version 2>&1);
10
+ + qq("openssl.exe" version 2>&1);
11
+ my $sslout = `$opensslcmd`;
12
+
13
+ $? >> 8 == 0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/python3_build_DEBUG.patch ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
2
+ index 99f39caa5..21b5559d6 100644
3
+ --- a/src/tools/msvc/Mkvcbuild.pm
4
+ +++ b/src/tools/msvc/Mkvcbuild.pm
5
+ @@ -494,14 +494,15 @@ sub mkvcbuild
6
+
7
+ # Attempt to get python version and location.
8
+ # Assume python.exe in specified dir.
9
+ - my $pythonprog = "import sys;print(sys.prefix);"
10
+ - . "print(str(sys.version_info[0])+str(sys.version_info[1]))";
11
+ - my $prefixcmd =
12
+ - qq("$solution->{options}->{python}\\python" -c "$pythonprog");
13
+ - my $pyout = `$prefixcmd`;
14
+ - die "Could not query for python version!\n" if $?;
15
+ - my ($pyprefix, $pyver) = split(/\r?\n/, $pyout);
16
+ -
17
+ + #my $pythonprog = "import sys;print(sys.prefix);"
18
+ + # . "print(str(sys.version_info[0])+str(sys.version_info[1]))";
19
+ + #my $prefixcmd =
20
+ + # qq("$solution->{options}->{python}\\python" -c "$pythonprog");
21
+ + #my $pyout = `$prefixcmd`;
22
+ + #die "Could not query for python version!\n" if $?;
23
+ + #my ($pyprefix, $pyver) = split(/\r?\n/, $pyout);
24
+ + my $pyprefix = $solution->{options}->{python};
25
+ + my $pyver = 310;
26
+ # Sometimes (always?) if python is not present, the execution
27
+ # appears to work, but gives no data...
28
+ die "Failed to query python for version information\n"
29
+ @@ -510,8 +511,9 @@ sub mkvcbuild
30
+ my $pymajorver = substr($pyver, 0, 1);
31
+ my $plpython = $solution->AddProject('plpython' . $pymajorver,
32
+ 'dll', 'PLs', 'src/pl/plpython');
33
+ - $plpython->AddIncludeDir($pyprefix . '/include');
34
+ - $plpython->AddLibrary($pyprefix . "/Libs/python$pyver.lib");
35
+ + $plpython->AddIncludeDir($pyprefix . '/include/python3.10');
36
+ + $plpython->AddDefine('_DEBUG'); # required for python autolink linking correctly!
37
+ + $plpython->AddLibrary($pyprefix . "/debug/lib/python$pyver" . "_d.lib");
38
+ $plpython->AddReference($postgres);
39
+
40
+ # Add transform modules dependent on plpython
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/python3_build_RELEASE.patch ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
2
+ index 99f39caa5..21b5559d6 100644
3
+ --- a/src/tools/msvc/Mkvcbuild.pm
4
+ +++ b/src/tools/msvc/Mkvcbuild.pm
5
+ @@ -494,14 +494,15 @@ sub mkvcbuild
6
+
7
+ # Attempt to get python version and location.
8
+ # Assume python.exe in specified dir.
9
+ - my $pythonprog = "import sys;print(sys.prefix);"
10
+ - . "print(str(sys.version_info[0])+str(sys.version_info[1]))";
11
+ - my $prefixcmd =
12
+ - qq("$solution->{options}->{python}\\python" -c "$pythonprog");
13
+ - my $pyout = `$prefixcmd`;
14
+ - die "Could not query for python version!\n" if $?;
15
+ - my ($pyprefix, $pyver) = split(/\r?\n/, $pyout);
16
+ -
17
+ + #my $pythonprog = "import sys;print(sys.prefix);"
18
+ + # . "print(str(sys.version_info[0])+str(sys.version_info[1]))";
19
+ + #my $prefixcmd =
20
+ + # qq("$solution->{options}->{python}\\python" -c "$pythonprog");
21
+ + #my $pyout = `$prefixcmd`;
22
+ + #die "Could not query for python version!\n" if $?;
23
+ + #my ($pyprefix, $pyver) = split(/\r?\n/, $pyout);
24
+ + my $pyprefix = $solution->{options}->{python};
25
+ + my $pyver = 310;
26
+ # Sometimes (always?) if python is not present, the execution
27
+ # appears to work, but gives no data...
28
+ die "Failed to query python for version information\n"
29
+ @@ -510,8 +511,8 @@ sub mkvcbuild
30
+ my $pymajorver = substr($pyver, 0, 1);
31
+ my $plpython = $solution->AddProject('plpython' . $pymajorver,
32
+ 'dll', 'PLs', 'src/pl/plpython');
33
+ - $plpython->AddIncludeDir($pyprefix . '/include');
34
+ - $plpython->AddLibrary($pyprefix . "/Libs/python$pyver.lib");
35
+ + $plpython->AddIncludeDir($pyprefix . '/include/python3.10');
36
+ + $plpython->AddLibrary($pyprefix . "/lib/python$pyver.lib");
37
+ $plpython->AddReference($postgres);
38
+
39
+ # Add transform modules dependent on plpython
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/python_lib.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/pl/plpython/plpython.h b/src/pl/plpython/plpython.h
2
+ index 3a1f0d56d..6a8a09a20 100644
3
+ --- a/src/pl/plpython/plpython.h
4
+ +++ b/src/pl/plpython/plpython.h
5
+ @@ -45,12 +45,10 @@
6
+ #if defined(_MSC_VER) && defined(_DEBUG)
7
+ /* Python uses #pragma to bring in a non-default libpython on VC++ if
8
+ * _DEBUG is defined */
9
+ -#undef _DEBUG
10
+ /* Also hide away errcode, since we load Python.h before postgres.h */
11
+ #define errcode __msvc_errcode
12
+ #include <Python.h>
13
+ #undef errcode
14
+ -#define _DEBUG
15
+ #elif defined (_MSC_VER)
16
+ #define errcode __msvc_errcode
17
+ #include <Python.h>
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/tcl_version.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
2
+ index e2fbe95..8c4f279 100644
3
+ --- a/src/tools/msvc/Mkvcbuild.pm
4
+ +++ b/src/tools/msvc/Mkvcbuild.pm
5
+ @@ -226,7 +226,7 @@ sub mkvcbuild
6
+ $pltcl->AddIncludeDir($solution->{options}->{tcl} . '/include');
7
+ $pltcl->AddReference($postgres);
8
+
9
+ - for my $tclver (qw(86t 86 85 84))
10
+ + for my $tclver (qw(90 90g 90s 90sg))
11
+ {
12
+ my $tcllib = $solution->{options}->{tcl} . "/lib/tcl$tclver.lib";
13
+ if (-e $tcllib)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/patches/windows/win_bison_flex.patch ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/tools/msvc/pgflex.pl b/src/tools/msvc/pgflex.pl
2
+ index aceed5ffd..f6ed215e8 100644
3
+ --- a/src/tools/msvc/pgflex.pl
4
+ +++ b/src/tools/msvc/pgflex.pl
5
+ @@ -16,7 +16,7 @@ $ENV{CYGWIN} = 'nodosfilewarning';
6
+
7
+ do './src/tools/msvc/buildenv.pl' if -e 'src/tools/msvc/buildenv.pl';
8
+
9
+ -my ($flexver) = `flex -V`; # grab first line
10
+ +my ($flexver) = `win_flex -V`; # grab first line
11
+ $flexver = (split(/\s+/, $flexver))[1];
12
+ $flexver =~ s/[^0-9.]//g;
13
+ my @verparts = split(/\./, $flexver);
14
+ @@ -52,7 +52,7 @@ close($mf);
15
+ my $basetarg = basename($output);
16
+ my $flexflags = ($make =~ /^$basetarg:\s*FLEXFLAGS\s*=\s*(\S.*)/m ? $1 : '');
17
+
18
+ -system("flex $flexflags -o$output $input");
19
+ +system("win_flex $flexflags -o$output $input");
20
+ if ($? == 0)
21
+ {
22
+
23
+ diff --git a/src/tools/msvc/pgbison.pl b/src/tools/msvc/pgbison.pl
24
+ index 895e398c0..f5b524a5d 100644
25
+ --- a/src/tools/msvc/pgbison.pl
26
+ +++ b/src/tools/msvc/pgbison.pl
27
+ @@ -13,7 +13,7 @@ use File::Basename;
28
+
29
+ do './src/tools/msvc/buildenv.pl' if -e 'src/tools/msvc/buildenv.pl';
30
+
31
+ -my ($bisonver) = `bison -V`; # grab first line
32
+ +my ($bisonver) = `win_bison -V`; # grab first line
33
+ $bisonver = (split(/\s+/, $bisonver))[3]; # grab version number
34
+
35
+ unless ($bisonver eq '1.875' || $bisonver ge '2.2')
36
+ @@ -51,5 +51,5 @@ close($mf);
37
+
38
+ my $nodep = $bisonver ge '3.0' ? "-Wno-deprecated" : "";
39
+
40
+ -system("bison $nodep $headerflag $input -o $output");
41
+ +system("win_bison $nodep $headerflag $input -o $output");
42
+ exit $? >> 8;
43
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/portfile.cmake ADDED
@@ -0,0 +1,379 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(PORT_VERSION 14.1)
2
+ # NOTE: the python patches must be regenerated on version update
3
+
4
+ macro(feature_unsupported)
5
+ foreach(_feat ${ARGN})
6
+ if("${FEATURES}" MATCHES "${_feat}")
7
+ message(FATAL_ERROR "Feature ${_feat} not supported by configure script on the target platform")
8
+ endif()
9
+ endforeach()
10
+ endmacro()
11
+
12
+ macro(feature_not_implemented_yet)
13
+ foreach(_feat ${ARGN})
14
+ if("${FEATURES}" MATCHES "${_feat}")
15
+ message(FATAL_ERROR "Feature ${_feat} is not yet implement on the target platform")
16
+ endif()
17
+ endforeach()
18
+ endmacro()
19
+
20
+ if(VCPKG_TARGET_IS_WINDOWS)
21
+ # on windows libpq seems to only depend on openssl gss(kerberos) and ldap on the soruce site_name
22
+ # the configuration header depends on zlib, nls, uuid, xml, xlst,gss,openssl,icu
23
+ feature_unsupported(readline bonjour libedit systemd llvm)
24
+ feature_not_implemented_yet(uuid)
25
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
26
+ feature_not_implemented_yet(client python tcl)
27
+ endif()
28
+ elseif(VCPKG_TARGET_IS_OSX)
29
+ feature_not_implemented_yet(readline libedit systemd llvm python tcl uuid)
30
+ else()
31
+ feature_not_implemented_yet(readline bonjour libedit systemd llvm python tcl uuid)
32
+ endif()
33
+
34
+ ## Download and extract sources
35
+ vcpkg_download_distfile(ARCHIVE
36
+ URLS "https://ftp.postgresql.org/pub/source/v${PORT_VERSION}/postgresql-${PORT_VERSION}.tar.bz2"
37
+ FILENAME "postgresql-${PORT_VERSION}.tar.bz2"
38
+ SHA512 4a0bec157d5464bb9e5f5c0eb0efdede55526e03f6f4d660b87d161a47705eb152fa0878960b1581bce42a5ed28a1f457825ea54e8d22e34b5b8eb36473ceefd
39
+ )
40
+
41
+ set(PATCHES
42
+ patches/windows/install.patch
43
+ patches/windows/win_bison_flex.patch
44
+ patches/windows/openssl_exe_path.patch
45
+ patches/windows/Solution.patch
46
+ patches/windows/MSBuildProject_fix_gendef_perl.patch
47
+ patches/windows/msgfmt.patch
48
+ patches/windows/python_lib.patch
49
+ patches/windows/fix-compile-flag-Zi.patch
50
+ patches/windows/tcl_version.patch
51
+ patches/fix-configure.patch
52
+ )
53
+
54
+ if(VCPKG_TARGET_IS_MINGW)
55
+ list(APPEND PATCHES patches/mingw/link-with-crypt32.patch)
56
+ endif()
57
+ if(VCPKG_TARGET_IS_LINUX)
58
+ list(APPEND PATCHES patches/linux/configure.patch)
59
+ endif()
60
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
61
+ list(APPEND PATCHES patches/windows/MSBuildProject-static-lib.patch)
62
+ list(APPEND PATCHES patches/windows/Mkvcbuild-static-lib.patch)
63
+ endif()
64
+ if(VCPKG_CRT_LINKAGE STREQUAL "static")
65
+ list(APPEND PATCHES patches/windows/MSBuildProject-static-crt.patch)
66
+ endif()
67
+ if(VCPKG_TARGET_ARCHITECTURE MATCHES "arm")
68
+ list(APPEND PATCHES patches/windows/arm.patch)
69
+ list(APPEND PATCHES patches/windows/host_skip_openssl.patch) # Skip openssl.exe version check since it cannot be executed by the host
70
+ endif()
71
+ if(NOT "${FEATURES}" MATCHES "client")
72
+ list(APPEND PATCHES patches/windows/minimize_install.patch)
73
+ else()
74
+ set(HAS_TOOLS TRUE)
75
+ endif()
76
+ vcpkg_extract_source_archive_ex(
77
+ OUT_SOURCE_PATH SOURCE_PATH
78
+ ARCHIVE "${ARCHIVE}"
79
+ PATCHES ${PATCHES}
80
+ )
81
+ unset(buildenv_contents)
82
+ # Get paths to required programs
83
+ set(REQUIRED_PROGRAMS PERL)
84
+ if(VCPKG_TARGET_IS_WINDOWS)
85
+ list(APPEND REQUIRED_PROGRAMS BISON FLEX)
86
+ endif()
87
+ foreach(program_name ${REQUIRED_PROGRAMS})
88
+ # Need to rename win_bison and win_flex to just bison and flex
89
+ vcpkg_find_acquire_program(${program_name})
90
+ get_filename_component(${program_name}_EXE_PATH ${${program_name}} DIRECTORY)
91
+ vcpkg_add_to_path(PREPEND "${${program_name}_EXE_PATH}")
92
+ set(buildenv_contents "${buildenv_contents}\n\$ENV{'PATH'}=\$ENV{'PATH'} . ';${${program_name}_EXE_PATH}';")
93
+ endforeach()
94
+
95
+ ## Setup build types
96
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE MATCHES "[Rr][Ee][Ll][Ee][Aa][Ss][Ee]")
97
+ set(_buildtype RELEASE)
98
+ set(_short rel)
99
+ list(APPEND port_config_list ${_buildtype})
100
+ set(INSTALL_PATH_SUFFIX_${_buildtype} "")
101
+ set(BUILDPATH_${_buildtype} "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${_short}")
102
+ file(REMOVE_RECURSE "${BUILDPATH_${_buildtype}}") #Clean old builds
103
+ set(PACKAGE_DIR_${_buildtype} ${CURRENT_PACKAGES_DIR})
104
+ unset(_short)
105
+ unset(_buildtype)
106
+ endif()
107
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]")
108
+ set(_buildtype DEBUG)
109
+ set(_short dbg)
110
+ list(APPEND port_config_list ${_buildtype})
111
+ set(INSTALL_PATH_SUFFIX_${_buildtype} "/debug")
112
+ set(BUILDPATH_${_buildtype} "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${_short}")
113
+ file(REMOVE_RECURSE "${BUILDPATH_${_buildtype}}") #Clean old builds
114
+ set(PACKAGE_DIR_${_buildtype} "${CURRENT_PACKAGES_DIR}${INSTALL_PATH_SUFFIX_${_buildtype}}")
115
+ unset(_short)
116
+ unset(_buildtype)
117
+ endif()
118
+
119
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
120
+
121
+ ## Do the build
122
+ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
123
+ file(GLOB SOURCE_FILES ${SOURCE_PATH}/*)
124
+ foreach(_buildtype ${port_config_list})
125
+ # Copy libpq sources.
126
+ message(STATUS "Copying libpq source files to ${BUILDPATH_${_buildtype}}...")
127
+ foreach(SOURCE_FILE ${SOURCE_FILES})
128
+ file(COPY ${SOURCE_FILE} DESTINATION "${BUILDPATH_${_buildtype}}")
129
+ endforeach()
130
+ message(STATUS "Copying libpq source files... done")
131
+
132
+ vcpkg_apply_patches(
133
+ SOURCE_PATH "${BUILDPATH_${_buildtype}}"
134
+ PATCHES patches/windows/Solution_${_buildtype}.patch
135
+ patches/windows/python3_build_${_buildtype}.patch
136
+ )
137
+ message(STATUS "Patches applied!")
138
+ file(COPY "${CURRENT_PORT_DIR}/config.pl" DESTINATION "${BUILDPATH_${_buildtype}}/src/tools/msvc")
139
+
140
+ set(MSPROJ_PERL "${BUILDPATH_${_buildtype}}/src/tools/msvc/MSBuildProject.pm")
141
+ file(READ "${MSPROJ_PERL}" _contents)
142
+ string(REPLACE "perl" "\"${PERL}\"" _contents "${_contents}")
143
+ file(WRITE "${MSPROJ_PERL}" "${_contents}")
144
+
145
+ set(CONFIG_FILE "${BUILDPATH_${_buildtype}}/src/tools/msvc/config.pl")
146
+ file(READ "${CONFIG_FILE}" _contents)
147
+
148
+ ## ldap => undef, # --with-ldap
149
+ ## extraver => undef, # --with-extra-version=<string>
150
+ ## gss => undef, # --with-gssapi=<path>
151
+ ## icu => undef, # --with-icu=<path> ##done
152
+ ## nls => undef, # --enable-nls=<path> ##done
153
+ ## tap_tests => undef, # --enable-tap-tests
154
+ ## tcl => undef, # --with-tcl=<path> #done
155
+ ## perl => undef, # --with-perl
156
+ ## python => undef, # --with-python=<path> ##done
157
+ ## openssl => undef, # --with-openssl=<path> ##done
158
+ ## uuid => undef, # --with-ossp-uuid
159
+ ## xml => undef, # --with-libxml=<path> ##done
160
+ ## xslt => undef, # --with-libxslt=<path> ##done
161
+ ## iconv => undef, # (not in configure, path to iconv) ##done (needed by xml)
162
+ ## zlib => undef # --with-zlib=<path> ##done
163
+
164
+ ## Setup external dependencies
165
+ ##"-DFEATURES=core;openssl;zlib" "-DALL_FEATURES=openssl;zlib;readline;libedit;python;tcl;nls;systemd;llvm;icu;bonjour;uuid;xml;xslt;"
166
+ if("${FEATURES}" MATCHES "icu")
167
+ string(REPLACE "icu => undef" "icu => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
168
+ endif()
169
+ if("${FEATURES}" MATCHES "nls")
170
+ string(REPLACE "nls => undef" "nls => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
171
+ vcpkg_acquire_msys(MSYS_ROOT PACKAGES gettext)
172
+ vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
173
+ endif()
174
+ if("${FEATURES}" MATCHES "openssl")
175
+ set(buildenv_contents "${buildenv_contents}\n\$ENV{'PATH'}=\$ENV{'PATH'} . ';${CURRENT_INSTALLED_DIR}/tools/openssl';")
176
+ #set(_contents "${_contents}\n\$ENV{PATH}=\$ENV{PATH} . ';${CURRENT_INSTALLED_DIR}/tools/openssl';")
177
+ string(REPLACE "openssl => undef" "openssl => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
178
+ endif()
179
+ if("${FEATURES}" MATCHES "python")
180
+ #vcpkg_find_acquire_program(PYTHON3)
181
+ #get_filename_component(PYTHON3_EXE_PATH ${PYTHON3} DIRECTORY)
182
+ #vcpkg_add_to_path("${PYTHON3_EXE_PATH}")
183
+ string(REPLACE "python => undef" "python => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
184
+ endif()
185
+ if("${FEATURES}" MATCHES "tcl")
186
+ string(REPLACE "tcl => undef" "tcl => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
187
+ endif()
188
+ if("${FEATURES}" MATCHES "xml")
189
+ string(REPLACE "xml => undef" "xml => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
190
+ string(REPLACE "iconv => undef" "iconv => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
191
+ endif()
192
+ if("${FEATURES}" MATCHES "xslt")
193
+ string(REPLACE "xslt => undef" "xslt => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
194
+ endif()
195
+ if("${FEATURES}" MATCHES "zlib")
196
+ string(REPLACE "zlib => undef" "zlib => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
197
+ endif()
198
+ if("${FEATURES}" MATCHES "lz4")
199
+ string(REPLACE "lz4 => undef" "lz4 => \"${CURRENT_INSTALLED_DIR}\"" _contents "${_contents}")
200
+ endif()
201
+
202
+ file(WRITE "${CONFIG_FILE}" "${_contents}")
203
+ file(WRITE "${BUILDPATH_${_buildtype}}/src/tools/msvc/buildenv.pl" "${buildenv_contents}")
204
+ vcpkg_get_windows_sdk(VCPKG_TARGET_PLATFORM_VERSION)
205
+ set(ENV{MSBFLAGS} "/p:PlatformToolset=${VCPKG_PLATFORM_TOOLSET}
206
+ /p:VCPkgLocalAppDataDisabled=true
207
+ /p:UseIntelMKL=No
208
+ /p:WindowsTargetPlatformVersion=${VCPKG_TARGET_PLATFORM_VERSION}
209
+ /m
210
+ /p:ForceImportBeforeCppTargets=\"${SCRIPTS}/buildsystems/msbuild/vcpkg.targets\"
211
+ /p:VcpkgTriplet=${TARGET_TRIPLET}
212
+ /p:VcpkgCurrentInstalledDir=\"${CURRENT_INSTALLED_DIR}\""
213
+ )
214
+ if(HAS_TOOLS)
215
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
216
+ set(ENV{MSBFLAGS} "$ENV{MSBFLAGS} /p:Platform=Win32")
217
+ endif()
218
+ message(STATUS "Building libpq ${TARGET_TRIPLET}-${_buildtype}...")
219
+ vcpkg_execute_required_process(
220
+ COMMAND ${PERL} build.pl ${_buildtype}
221
+ WORKING_DIRECTORY "${BUILDPATH_${_buildtype}}/src/tools/msvc"
222
+ LOGNAME "build-${TARGET_TRIPLET}-${_buildtype}"
223
+ )
224
+ message(STATUS "Building libpq ${TARGET_TRIPLET}-${_buildtype}... done")
225
+ else()
226
+ set(build_libs libpq libecpg_compat)
227
+ foreach(build_lib ${build_libs})
228
+ message(STATUS "Building ${build_lib} ${TARGET_TRIPLET}-${_buildtype}...")
229
+ vcpkg_execute_required_process(
230
+ COMMAND ${PERL} build.pl ${_buildtype} ${build_lib}
231
+ WORKING_DIRECTORY "${BUILDPATH_${_buildtype}}/src/tools/msvc"
232
+ LOGNAME "build-${build_lib}-${TARGET_TRIPLET}-${_buildtype}"
233
+ )
234
+ message(STATUS "Building ${build_lib} ${TARGET_TRIPLET}-${_buildtype}... done")
235
+ endforeach()
236
+ endif()
237
+
238
+ message(STATUS "Installing libpq ${TARGET_TRIPLET}-${_buildtype}...")
239
+ vcpkg_execute_required_process(
240
+ COMMAND ${PERL} install.pl "${CURRENT_PACKAGES_DIR}${INSTALL_PATH_SUFFIX_${_buildtype}}" client
241
+ WORKING_DIRECTORY "${BUILDPATH_${_buildtype}}/src/tools/msvc"
242
+ LOGNAME "install-${TARGET_TRIPLET}-${_buildtype}"
243
+ )
244
+ message(STATUS "Installing libpq ${TARGET_TRIPLET}-${_buildtype}... done")
245
+ endforeach()
246
+
247
+
248
+ message(STATUS "Cleanup libpq ${TARGET_TRIPLET}...")
249
+ #Cleanup
250
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
251
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/doc")
252
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
253
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools")
254
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/symbols")
255
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/symbols")
256
+
257
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
258
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
259
+ endif()
260
+
261
+ if(NOT HAS_TOOLS)
262
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools")
263
+ else()
264
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
265
+ endif()
266
+
267
+ message(STATUS "Cleanup libpq ${TARGET_TRIPLET}... - done")
268
+ set(USE_DL OFF)
269
+ else()
270
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/Makefile" DESTINATION "${SOURCE_PATH}")
271
+
272
+ if("nls" IN_LIST FEATURES)
273
+ list(APPEND BUILD_OPTS --enable-nls)
274
+ set(ENV{MSGFMT} "${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin/msgfmt${VCPKG_HOST_EXECUTABLE_SUFFIX}")
275
+ else()
276
+ list(APPEND BUILD_OPTS --disable-nls)
277
+ endif()
278
+ if("openssl" IN_LIST FEATURES)
279
+ list(APPEND BUILD_OPTS --with-openssl)
280
+ else()
281
+ list(APPEND BUILD_OPTS --without-openssl)
282
+ endif()
283
+ if("zlib" IN_LIST FEATURES)
284
+ list(APPEND BUILD_OPTS --with-zlib)
285
+ else()
286
+ list(APPEND BUILD_OPTS --without-zlib)
287
+ endif()
288
+ if("icu" IN_LIST FEATURES)
289
+ list(APPEND BUILD_OPTS --with-icu)
290
+ else()
291
+ list(APPEND BUILD_OPTS --without-icu)
292
+ endif()
293
+ if("lz4" IN_LIST FEATURES)
294
+ list(APPEND BUILD_OPTS --with-lz4)
295
+ else()
296
+ list(APPEND BUILD_OPTS --without-lz4)
297
+ endif()
298
+ if("readline" IN_LIST FEATURES)
299
+ list(APPEND BUILD_OPTS --with-readline)
300
+ else()
301
+ list(APPEND BUILD_OPTS --without-readline)
302
+ endif()
303
+ if("xml" IN_LIST FEATURES)
304
+ list(APPEND BUILD_OPTS --with-libxml)
305
+ else()
306
+ list(APPEND BUILD_OPTS --without-libxml)
307
+ endif()
308
+ if("xslt" IN_LIST FEATURES)
309
+ list(APPEND BUILD_OPTS --with-libxslt)
310
+ else()
311
+ list(APPEND BUILD_OPTS --without-libxslt)
312
+ endif()
313
+ if("python" IN_LIST FEATURES)
314
+ list(APPEND BUILD_OPTS --with-python)
315
+ else()
316
+ list(APPEND BUILD_OPTS --without-python)
317
+ endif()
318
+ if(VCPKG_TARGET_IS_ANDROID) # AND CMAKE_SYSTEM_VERSION LESS 26)
319
+ list(APPEND BUILD_OPTS ac_cv_header_langinfo_h=no)
320
+ endif()
321
+ if(VCPKG_OSX_SYSROOT)
322
+ list(APPEND BUILD_OPTS "PG_SYSROOT=${VCPKG_OSX_SYSROOT}")
323
+ endif()
324
+ vcpkg_configure_make(
325
+ AUTOCONFIG
326
+ SOURCE_PATH "${SOURCE_PATH}"
327
+ COPY_SOURCE
328
+ DETERMINE_BUILD_TRIPLET
329
+ OPTIONS
330
+ ${BUILD_OPTS}
331
+ OPTIONS_DEBUG
332
+ --enable-debug
333
+ )
334
+
335
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
336
+ set(ENV{LIBPQ_LIBRARY_TYPE} shared)
337
+ else()
338
+ set(ENV{LIBPQ_LIBRARY_TYPE} static)
339
+ endif()
340
+ if(VCPKG_TARGET_IS_MINGW)
341
+ set(ENV{USING_MINGW} yes)
342
+ endif()
343
+ vcpkg_install_make()
344
+
345
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
346
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
347
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
348
+ if(NOT HAS_TOOLS)
349
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
350
+ else()
351
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
352
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug")
353
+ endif()
354
+ if(VCPKG_TARGET_IS_MINGW AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
355
+ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
356
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
357
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libpq.a" "${CURRENT_PACKAGES_DIR}/lib/libpq.dll.a")
358
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libpq.dll" "${CURRENT_PACKAGES_DIR}/bin/libpq.dll")
359
+ endif()
360
+ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
361
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
362
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libpq.a" "${CURRENT_PACKAGES_DIR}/debug/lib/libpq.dll.a")
363
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libpq.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/libpq.dll")
364
+ endif()
365
+ endif()
366
+ if(VCPKG_TARGET_IS_MINGW)
367
+ set(USE_DL OFF)
368
+ else()
369
+ set(USE_DL ON)
370
+ endif()
371
+
372
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/postgresql/server/pg_config.h" "#define CONFIGURE_ARGS" "// #define CONFIGURE_ARGS")
373
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/pg_config.h" "#define CONFIGURE_ARGS" "// #define CONFIGURE_ARGS")
374
+ endif()
375
+
376
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/postgresql/vcpkg-cmake-wrapper.cmake" @ONLY)
377
+ file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
378
+ file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
379
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package libpq provides CMake integration:
2
+
3
+ find_package(PostgreSQL REQUIRED)
4
+ target_link_libraries(main PRIVATE PostgreSQL::PostgreSQL)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Give the CMake module a little bit of help to find the debug libraries
2
+ find_library(PostgreSQL_LIBRARY_DEBUG
3
+ NAMES pq
4
+ PATHS
5
+ "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib"
6
+ NO_DEFAULT_PATH
7
+ )
8
+ _find_package(${ARGS})
9
+ if(PostgreSQL_FOUND AND @USE_DL@)
10
+ find_library(PostgreSQL_DL_LIBRARY NAMES dl)
11
+ if(PostgreSQL_DL_LIBRARY)
12
+ list(APPEND PostgreSQL_LIBRARIES "dl")
13
+ if(TARGET PostgreSQL::PostgreSQL)
14
+ set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "dl")
15
+ endif()
16
+ endif()
17
+ endif()
18
+ if(PostgreSQL_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
19
+ include(SelectLibraryConfigurations)
20
+ foreach(LIB_ITEM libpgport libpgcommon pgport pgcommon)
21
+ find_library(PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE
22
+ NAMES ${LIB_ITEM}
23
+ PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib" NO_DEFAULT_PATH
24
+ )
25
+ if(TARGET PostgreSQL::PostgreSQL AND PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE)
26
+ set_property(
27
+ TARGET PostgreSQL::PostgreSQL
28
+ APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<NOT:\$<CONFIG:DEBUG>>:${PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE}>"
29
+ )
30
+ endif()
31
+
32
+ find_library(PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG
33
+ NAMES ${LIB_ITEM}
34
+ PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH
35
+ )
36
+ if(TARGET PostgreSQL::PostgreSQL AND PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG)
37
+ set_property(
38
+ TARGET PostgreSQL::PostgreSQL
39
+ APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<CONFIG:DEBUG>:${PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG}>"
40
+ )
41
+ endif()
42
+
43
+ if (PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE OR PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG)
44
+ select_library_configurations(PostgreSQL_${LIB_ITEM})
45
+ list(APPEND PostgreSQL_LIBRARIES ${PostgreSQL_${LIB_ITEM}_LIBRARY})
46
+ endif()
47
+ endforeach()
48
+ if(WIN32)
49
+ if(TARGET PostgreSQL::PostgreSQL)
50
+ set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "Secur32.lib")
51
+ endif()
52
+ list(APPEND PostgreSQL_LIBRARIES Secur32.lib)
53
+ endif()
54
+ cmake_policy(PUSH)
55
+ cmake_policy(SET CMP0057 NEW)
56
+ set(Z_VCPKG_PORT_FEATURES "@FEATURES@")
57
+ if("openssl" IN_LIST Z_VCPKG_PORT_FEATURES)
58
+ find_package(OpenSSL REQUIRED)
59
+ if(TARGET PostgreSQL::PostgreSQL)
60
+ set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "OpenSSL::SSL")
61
+ endif()
62
+ list(APPEND PostgreSQL_LIBRARIES OpenSSL::SSL)
63
+ endif()
64
+ unset(Z_VCPKG_PORT_FEATURES)
65
+ cmake_policy(POP)
66
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpq/vcpkg.json ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libpq",
3
+ "version": "14.1",
4
+ "port-version": 1,
5
+ "description": "The official database access API of postgresql",
6
+ "homepage": "https://www.postgresql.org/",
7
+ "license": "PostgreSQL",
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ {
11
+ "name": "libpq",
12
+ "default-features": false,
13
+ "features": [
14
+ "bonjour"
15
+ ],
16
+ "platform": "osx"
17
+ }
18
+ ],
19
+ "default-features": [
20
+ "lz4",
21
+ "openssl",
22
+ "zlib"
23
+ ],
24
+ "features": {
25
+ "bonjour": {
26
+ "description": "Build with Bonjour support (--with-bonjour)"
27
+ },
28
+ "client": {
29
+ "description": "Build all client tools and libraries (dynamic only?)"
30
+ },
31
+ "icu": {
32
+ "description": "Build with support for the ICU library (--with-icu)",
33
+ "dependencies": [
34
+ "icu"
35
+ ]
36
+ },
37
+ "libedit": {
38
+ "description": "prefer libedit (--with-libedit-preferred)",
39
+ "dependencies": [
40
+ "libedit"
41
+ ]
42
+ },
43
+ "llvm": {
44
+ "description": "Build with support for LLVM based JIT compilation (--with-llvm)",
45
+ "dependencies": [
46
+ "llvm"
47
+ ]
48
+ },
49
+ "lz4": {
50
+ "description": "Use lz4 (else --without-lz4)",
51
+ "dependencies": [
52
+ "lz4"
53
+ ]
54
+ },
55
+ "nls": {
56
+ "description": "Native Language Support (--enable-nls[=LANGUAGES])",
57
+ "dependencies": [
58
+ "gettext",
59
+ {
60
+ "name": "gettext",
61
+ "host": true,
62
+ "features": [
63
+ "tools"
64
+ ]
65
+ }
66
+ ]
67
+ },
68
+ "openssl": {
69
+ "description": "support for encrypted client connections and random number generation on platforms that do not have \"/dev/urandom\" (except windows) (--with-openssl)",
70
+ "dependencies": [
71
+ "openssl"
72
+ ]
73
+ },
74
+ "python": {
75
+ "description": "build the PL/Python server programming language (dynamic only?) (--with-python)",
76
+ "dependencies": [
77
+ {
78
+ "name": "libpq",
79
+ "default-features": false,
80
+ "features": [
81
+ "client"
82
+ ]
83
+ },
84
+ "python3"
85
+ ]
86
+ },
87
+ "readline": {
88
+ "description": "Use readline (else --without-readline)",
89
+ "dependencies": [
90
+ "readline"
91
+ ]
92
+ },
93
+ "systemd": {
94
+ "description": "Build with support for systemd service notifications. (--with-systemd)"
95
+ },
96
+ "tcl": {
97
+ "description": "build the PL/Tcl procedural language(dynamic only?) (--with-tcl)",
98
+ "dependencies": [
99
+ {
100
+ "name": "libpq",
101
+ "default-features": false,
102
+ "features": [
103
+ "client"
104
+ ]
105
+ },
106
+ "tcl"
107
+ ]
108
+ },
109
+ "uuid": {
110
+ "description": "Build the uuid-ossp module (which provides functions to generate UUIDs) (--with-uuid=LIBRARY LIBRARY=(bsd|e2fs|ossp))"
111
+ },
112
+ "xml": {
113
+ "description": "Build with libxml (--with-libxml)",
114
+ "dependencies": [
115
+ "libxml2"
116
+ ]
117
+ },
118
+ "xslt": {
119
+ "description": "Build with libxslt (--with-libxslt)",
120
+ "dependencies": [
121
+ {
122
+ "name": "libpq",
123
+ "default-features": false,
124
+ "features": [
125
+ "xml"
126
+ ]
127
+ },
128
+ "libxslt"
129
+ ]
130
+ },
131
+ "zlib": {
132
+ "description": "Use zlib (else --without-zlib)",
133
+ "dependencies": [
134
+ "zlib"
135
+ ]
136
+ }
137
+ }
138
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/config-internal-compiler.h.in ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* System supports poll(). */
2
+ #cmakedefine HAVE_POLL 1
3
+
4
+ /* Define to 1 if you have the <sys/select.h> header file. */
5
+ #cmakedefine HAVE_SYS_SELECT_H 1
6
+
7
+ /* Define to 1 if you have the <sys/time.h> header file. */
8
+ #cmakedefine HAVE_SYS_TIME_H 1
9
+
10
+ /* Define to 1 if you have the <sys/types.h> header file. */
11
+ #cmakedefine HAVE_SYS_TYPES_H 1
12
+
13
+ /* Define to 1 if you have the <unistd.h> header file. */
14
+ #cmakedefine HAVE_UNISTD_H 1
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/config-public-compiler.h.in ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ /* Define if compiler supports [[deprecated]] attribute */
2
+ #cmakedefine PQXX_HAVE_DEPRECATED 1
3
+
4
+ /* Define if the compiler supports std::experimental::optional. */
5
+ #cmakedefine PQXX_HAVE_EXP_OPTIONAL 1
6
+
7
+ /* Define if the compiler supports std::optional. */
8
+ #cmakedefine PQXX_HAVE_OPTIONAL 1
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/fix_build_with_apple_clang_13.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # apple clang 13 has a bug where [[likely]] or [[unlikely]] returns
2
+ # don't count for checking that a constexpr function has a return,
3
+ # so at least one return must be unmarked
4
+ --- a/src/robusttransaction.cxx
5
+ +++ b/src/robusttransaction.cxx
6
+ @@ -62,9 +62,8 @@ constexpr tx_stat parse_status(std::string_view text) noexcept
7
+ case 'i':
8
+ if (text == in_progress)
9
+ PQXX_LIKELY return tx_in_progress;
10
+ break;
11
+ }
12
+ - PQXX_UNLIKELY
13
+ return tx_unknown;
14
+ }
15
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/fix_build_with_vs2017.patch ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/include/pqxx/compiler-public.hxx b/include/pqxx/compiler-public.hxx
2
+ index 5d24c7e..8087191 100644
3
+ --- a/include/pqxx/compiler-public.hxx
4
+ +++ b/include/pqxx/compiler-public.hxx
5
+ @@ -43,6 +43,11 @@
6
+ // Workarounds for Microsoft Visual C++
7
+ # ifdef _MSC_VER
8
+
9
+ +// Workarounds for deprecated attribute syntax error in Visual Studio 2017.
10
+ +# if _MSC_VER < 1920
11
+ +# define PQXX_DEPRECATED(MESSAGE) __declspec(deprecated( #MESSAGE ))
12
+ +# endif
13
+ +
14
+ // Suppress vtables on abstract classes.
15
+ # define PQXX_NOVTABLE __declspec(novtable)
16
+
17
+ @@ -112,6 +117,10 @@
18
+ # define PQXX_NOVTABLE /* novtable */
19
+ #endif
20
+
21
+ +#ifndef PQXX_DEPRECATED
22
+ +# define PQXX_DEPRECATED(MESSAGE) [[deprecated( #MESSAGE )]]
23
+ +#endif
24
+ +
25
+ // TODO: Assume support once we're on C++20.
26
+ #if defined(PQXX_HAVE_LIKELY)
27
+ # define PQXX_LIKELY [[likely]]
28
+ diff --git a/include/pqxx/stream_from.hxx b/include/pqxx/stream_from.hxx
29
+ index f2dcc31..6a74b55 100644
30
+ --- a/include/pqxx/stream_from.hxx
31
+ +++ b/include/pqxx/stream_from.hxx
32
+ @@ -148,7 +148,7 @@ public:
33
+ /** @deprecated Use factory function @c table() or @c raw_table() instead.
34
+ */
35
+ template<typename Iter>
36
+ - [[deprecated("Use table() or raw_table() factory instead.")]] stream_from(
37
+ + PQXX_DEPRECATED("Use table() or raw_table() factory instead.") stream_from(
38
+ transaction_base &, from_table_t, std::string_view table,
39
+ Iter columns_begin, Iter columns_end);
40
+
41
+ @@ -156,13 +156,13 @@ public:
42
+ /** @deprecated Use factory function @c query() instead.
43
+ */
44
+ template<typename Columns>
45
+ - [[deprecated("Use table() or raw_table() factory instead.")]] stream_from(
46
+ + PQXX_DEPRECATED("Use table() or raw_table() factory instead.") stream_from(
47
+ transaction_base &tx, from_table_t, std::string_view table,
48
+ Columns const &columns);
49
+
50
+ #include "pqxx/internal/ignore-deprecated-pre.hxx"
51
+ /// @deprecated Use factory function @c table() or @c raw_table() instead.
52
+ - [[deprecated("Use the from_table_t overload instead.")]] stream_from(
53
+ + PQXX_DEPRECATED("Use the from_table_t overload instead.") stream_from(
54
+ transaction_base &tx, std::string_view table) :
55
+ stream_from{tx, from_table, table}
56
+ {}
57
+ @@ -170,14 +170,14 @@ public:
58
+
59
+ /// @deprecated Use factory function @c table() or @c raw_table() instead.
60
+ template<typename Columns>
61
+ - [[deprecated("Use the from_table_t overload instead.")]] stream_from(
62
+ + PQXX_DEPRECATED("Use the from_table_t overload instead.") stream_from(
63
+ transaction_base &tx, std::string_view table, Columns const &columns) :
64
+ stream_from{tx, from_table, table, columns}
65
+ {}
66
+
67
+ /// @deprecated Use factory function @c table() or @c raw_table() instead.
68
+ template<typename Iter>
69
+ - [[deprecated("Use the from_table_t overload instead.")]] stream_from(
70
+ + PQXX_DEPRECATED("Use the from_table_t overload instead.") stream_from(
71
+ transaction_base &, std::string_view table, Iter columns_begin,
72
+ Iter columns_end);
73
+
74
+ diff --git a/include/pqxx/stream_to.hxx b/include/pqxx/stream_to.hxx
75
+ index 3ad0292..4b52e31 100644
76
+ --- a/include/pqxx/stream_to.hxx
77
+ +++ b/include/pqxx/stream_to.hxx
78
+ @@ -168,7 +168,7 @@ public:
79
+ * your data fields and the table is explicit in your code, and not hidden
80
+ * in an "implicit contract" between your code and your schema.
81
+ */
82
+ - [[deprecated("Use table() or raw_table() factory.")]] stream_to(
83
+ + PQXX_DEPRECATED("Use table() or raw_table() factory.") stream_to(
84
+ transaction_base &tx, std::string_view table_name) :
85
+ stream_to{tx, table_name, ""sv}
86
+ {}
87
+ @@ -177,14 +177,14 @@ public:
88
+ /** @deprecated Use @c table() or @c raw_table() as a factory.
89
+ */
90
+ template<typename Columns>
91
+ - [[deprecated("Use table() or raw_table() factory.")]] stream_to(
92
+ + PQXX_DEPRECATED("Use table() or raw_table() factory.") stream_to(
93
+ transaction_base &, std::string_view table_name, Columns const &columns);
94
+
95
+ /// Create a stream, specifying column names as a sequence of strings.
96
+ /** @deprecated Use @c table() or @c raw_table() as a factory.
97
+ */
98
+ template<typename Iter>
99
+ - [[deprecated("Use table() or raw_table() factory.")]] stream_to(
100
+ + PQXX_DEPRECATED("Use table() or raw_table() factory.") stream_to(
101
+ transaction_base &, std::string_view table_name, Iter columns_begin,
102
+ Iter columns_end);
103
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO jtv/libpqxx
4
+ REF 221ddc8be329bafb376a3d83b9cd257fd52fc7b7 # 7.6.0
5
+ SHA512 32a673bbae2f26fbc41bdcba007d9a5ded29680cb49ba434d1913cd5007bc1c1443bf38c88d9c5a6abe0a3ee519c0f691464c8d2b144cd3f16652447d644e400
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix_build_with_vs2017.patch
9
+ fix_build_with_apple_clang_13.patch
10
+ )
11
+
12
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/config-public-compiler.h.in" DESTINATION "${SOURCE_PATH}")
13
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/config-internal-compiler.h.in" DESTINATION "${SOURCE_PATH}")
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ -DSKIP_BUILD_TEST=ON
19
+ )
20
+
21
+ vcpkg_cmake_install()
22
+ vcpkg_copy_pdbs()
23
+
24
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libpqxx)
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
26
+
27
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
28
+
29
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libpqxx/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libpqxx",
3
+ "version-semver": "7.6.0",
4
+ "port-version": 3,
5
+ "description": "The official C++ client API for PostgreSQL",
6
+ "homepage": "https://www.postgresql.org/",
7
+ "dependencies": [
8
+ "libpq",
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/libprotobuf-mutator/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_TARGET_IS_WINDOWS)
2
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO google/libprotobuf-mutator
8
+ REF v1.0
9
+ SHA512 75e423289f938d4332d98033062cd9608b71141b7ca1df4e8f28c927c51a16e7ff2f5bf08867308d2a291fc2422e4456f8928ab2c11d545eeb982ea732baf2e9
10
+ HEAD_REF master
11
+ )
12
+
13
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_RUNTIME)
14
+ vcpkg_configure_cmake(
15
+ SOURCE_PATH ${SOURCE_PATH}
16
+ PREFER_NINJA
17
+ OPTIONS
18
+ -DLIB_PROTO_MUTATOR_TESTING=OFF
19
+ -DLIB_PROTO_MUTATOR_MSVC_STATIC_RUNTIME=${STATIC_RUNTIME}
20
+ -DPKG_CONFIG_PATH=lib/pkgconfig
21
+ )
22
+
23
+ vcpkg_install_cmake()
24
+ vcpkg_copy_pdbs()
25
+ vcpkg_fixup_pkgconfig()
26
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
27
+
28
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
29
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libprotobuf-mutator/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libprotobuf-mutator",
3
+ "version-string": "1.0",
4
+ "description": "Library for structured fuzzing with protobuffers.",
5
+ "dependencies": [
6
+ "protobuf"
7
+ ]
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-arm-build.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 1c68939..9ef6895 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -42,6 +42,9 @@ else()
6
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
7
+ endif()
8
+
9
+ +if (WIN32)
10
+ + link_libraries(Advapi32)
11
+ +endif()
12
+ # Conditionally build bindings
13
+ if(NOT WIN32)
14
+ add_subdirectory(bindings)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-dependency-libmodman.patch ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 4f51e38..32a0319 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -31,11 +31,15 @@ include(cmake/ctest.cmk)
6
+ include(cmake/paths.cmk)
7
+
8
+ option(WITH_WEBKIT3 "Build against gtk-3 version of webkitgtk" OFF)
9
+ -
10
+ -### Subdirectories
11
+ -
12
+ -add_subdirectory(libmodman)
13
+ -include_directories(${CMAKE_CURRENT_SOURCE_DIR})
14
+ +find_package(libmodman REQUIRED)
15
+ +if(LIBMODMAN_FOUND)
16
+ + include_directories(${LIBMODMAN_INCLUDE_DIR})
17
+ + link_libraries(${LIBMODMAN_LIBRARIES})
18
+ +else()
19
+ + ### Subdirectories
20
+ + add_subdirectory(libmodman)
21
+ + include_directories(${CMAKE_CURRENT_SOURCE_DIR})
22
+ +endif()
23
+
24
+ # Conditionally build bindings
25
+ if(NOT WIN32)
26
+ diff --git a/libproxy/cmake/libproxy.cmk b/libproxy/cmake/libproxy.cmk
27
+ index 9356486..f9eed2c 100644
28
+ --- a/libproxy/cmake/libproxy.cmk
29
+ +++ b/libproxy/cmake/libproxy.cmk
30
+ @@ -1,8 +1,8 @@
31
+ add_library(libproxy SHARED extension_config.cpp extension_pacrunner.cpp extension_wpad.cpp proxy.cpp url.cpp ${LIBPROXY_SOURCES})
32
+ if(WIN32)
33
+ - target_link_libraries(libproxy modman;ws2_32;${LIBPROXY_LIBRARIES})
34
+ + target_link_libraries(libproxy ${LIBMODMAN_LIBRARIES};ws2_32;${LIBPROXY_LIBRARIES})
35
+ else()
36
+ - target_link_libraries(libproxy modman;m;pthread;${CMAKE_DL_LIBS};${LIBPROXY_LIBRARIES})
37
+ + target_link_libraries(libproxy ${LIBMODMAN_LIBRARIES};m;pthread;${CMAKE_DL_LIBS};${LIBPROXY_LIBRARIES})
38
+ endif()
39
+ file(TO_NATIVE_PATH ${MODULE_INSTALL_DIR} MODULE_INSTALL_DIR)
40
+ if(WIN32)
41
+ @@ -21,8 +21,8 @@ set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/proxy.cpp
42
+ set_target_properties(libproxy PROPERTIES PREFIX "" VERSION 1.0.0 SOVERSION 1)
43
+ set_target_properties(libproxy PROPERTIES INTERFACE_LINK_LIBRARIES "")
44
+ set_target_properties(libproxy PROPERTIES LINK_INTERFACE_LIBRARIES "")
45
+ -if(NOT APPLE)
46
+ - set_target_properties(libproxy PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libproxy.map")
47
+ -endif()
48
+ +#if(NOT APPLE)
49
+ +# set_target_properties(libproxy PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libproxy.map")
50
+ +#endif()
51
+ install(TARGETS libproxy RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
52
+ install(FILES proxy.h DESTINATION ${INCLUDE_INSTALL_DIR})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-install-py.patch ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/bindings/python/python3/CMakeLists.txt b/bindings/python/python3/CMakeLists.txt
2
+ index bf87dfc..9f94c2d 100644
3
+ --- a/bindings/python/python3/CMakeLists.txt
4
+ +++ b/bindings/python/python3/CMakeLists.txt
5
+ @@ -21,5 +21,4 @@ if(PYTHON3INTERP_FOUND)
6
+
7
+ message(STATUS "Using PYTHON3_SITEPKG_DIR=${PYTHON3_SITEPKG_DIR}")
8
+
9
+ - install(FILES ../libproxy.py DESTINATION ${PYTHON3_SITEPKG_DIR})
10
+ endif()
11
+ diff --git a/bindings/python/python2/CMakeLists.txt b/bindings/python/python2/CMakeLists.txt
12
+ index 00df551..15d78f9 100644
13
+ --- a/bindings/python/python2/CMakeLists.txt
14
+ +++ b/bindings/python/python2/CMakeLists.txt
15
+ @@ -21,5 +21,4 @@ if(PYTHON2INTERP_FOUND)
16
+
17
+ message(STATUS "Using PYTHON2_SITEPKG_DIR=${PYTHON2_SITEPKG_DIR}")
18
+
19
+ - install(FILES ../libproxy.py DESTINATION ${PYTHON2_SITEPKG_DIR})
20
+ endif()
21
+ diff --git a/bindings/perl/lib/CMakeLists.txt b/bindings/perl/lib/CMakeLists.txt
22
+ index 9856627..f54c138 100644
23
+ --- a/bindings/perl/lib/CMakeLists.txt
24
+ +++ b/bindings/perl/lib/CMakeLists.txt
25
+ @@ -1,2 +1 @@
26
+ add_custom_target(PMlibproxy ALL ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.pm ${CMAKE_BINARY_DIR}/perl/blib/lib/Libproxy.pm)
27
+ -install( FILES Libproxy.pm DESTINATION ${PX_PERL_ARCH}/Net )
28
+ diff --git a/bindings/perl/src/CMakeLists.txt b/bindings/perl/src/CMakeLists.txt
29
+ index 05176c4..9ca532f 100644
30
+ --- a/bindings/perl/src/CMakeLists.txt
31
+ +++ b/bindings/perl/src/CMakeLists.txt
32
+ @@ -21,4 +21,3 @@ target_link_libraries(PLlibproxy ${PLlibproxy_LIB_DEPENDENCIES})
33
+ set_target_properties(PLlibproxy PROPERTIES OUTPUT_NAME "Libproxy")
34
+ set_target_properties(PLlibproxy PROPERTIES PREFIX "")
35
+
36
+ -install( TARGETS PLlibproxy DESTINATION ${PX_PERL_ARCH}/auto/Net/Libproxy )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-module-lib-name.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/libproxy/Findlibproxy.cmake.in b/libproxy/Findlibproxy.cmake.in
2
+ index ef44489..c0bd2ae 100644
3
+ --- a/libproxy/Findlibproxy.cmake.in
4
+ +++ b/libproxy/Findlibproxy.cmake.in
5
+ @@ -12,7 +12,7 @@
6
+
7
+ # Find proxy.h and the corresponding library (libproxy.so)
8
+ FIND_PATH(LIBPROXY_INCLUDE_DIR proxy.h )
9
+ -FIND_LIBRARY(LIBPROXY_LIBRARIES NAMES proxy )
10
+ +FIND_LIBRARY(LIBPROXY_LIBRARIES NAMES proxy libproxy)
11
+
12
+ # Set library version
13
+ SET(LIBPROXY_VERSION @PROJECT_VERSION@)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/fix-tools-path.patch ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/libproxy/cmake/pxmodule.cmk b/libproxy/cmake/pxmodule.cmk
2
+ index bbbd989..956948a 100644
3
+ --- a/libproxy/cmake/pxmodule.cmk
4
+ +++ b/libproxy/cmake/pxmodule.cmk
5
+ @@ -20,7 +20,7 @@ function(px_module name build builtin)
6
+ add_library(${name} MODULE modules/${name}.cpp)
7
+ target_link_libraries(${name} libproxy)
8
+ set_target_properties(${name} PROPERTIES PREFIX "")
9
+ - install(TARGETS ${name} LIBRARY DESTINATION ${MODULE_INSTALL_DIR})
10
+ + install(TARGETS ${name} LIBRARY DESTINATION tools)
11
+ if(${ARGC} GREATER 3)
12
+ target_link_libraries(${name} ${ARGN})
13
+ endif()
14
+ diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
15
+ index 52010c6..0a3f4b5 100644
16
+ --- a/utils/CMakeLists.txt
17
+ +++ b/utils/CMakeLists.txt
18
+ @@ -1,5 +1,7 @@
19
+ include_directories("../libproxy")
20
+
21
+ +if (BUILD_TOOLS)
22
+ add_executable(proxy proxy.c)
23
+ target_link_libraries(proxy libproxy)
24
+ -install(TARGETS proxy RUNTIME DESTINATION ${BIN_INSTALL_DIR})
25
+ +install(TARGETS proxy RUNTIME DESTINATION tools)
26
+ +endif()
27
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/portfile.cmake ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Enable static build in UNIX
2
+ if (VCPKG_TARGET_IS_WINDOWS)
3
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
4
+ endif()
5
+
6
+ vcpkg_from_github(
7
+ OUT_SOURCE_PATH SOURCE_PATH
8
+ REPO libproxy/libproxy
9
+ REF e78a5ccfe0a2340f2c73e419767f8492ffc2787a #0.4.17
10
+ SHA512 b22251f73f7a94dade5dcdcd9d5510170038b0d101ee98ab427106c20a3d9979c2b16c57d6cf8d8ae59c3a28ccffcecafc0bed399926dc2416a27837fd2f043c
11
+ HEAD_REF master
12
+ PATCHES
13
+ fix-tools-path.patch
14
+ support-windows.patch
15
+ fix-dependency-libmodman.patch
16
+ fix-install-py.patch
17
+ fix-arm-build.patch
18
+ fix-module-lib-name.patch
19
+ )
20
+
21
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
22
+ FEATURES
23
+ bindings-csharp WITH_DOTNET
24
+ bindings-python WITH_PYTHON2
25
+ bindings-python WITH_PYTHON3
26
+ bindings-perl WITH_PERL
27
+ bindings-vala WITH_VALA
28
+ tools BUILD_TOOLS
29
+ tests BUILD_TESTING
30
+ )
31
+
32
+ vcpkg_cmake_configure(
33
+ SOURCE_PATH "${SOURCE_PATH}"
34
+ OPTIONS ${FEATURE_OPTIONS}
35
+ -DWITH_WEBKIT3=OFF
36
+ )
37
+
38
+ vcpkg_cmake_install()
39
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Modules)
40
+ vcpkg_copy_pdbs()
41
+
42
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
43
+ "${CMAKE_CURRENT_LIST_DIR}/usage"
44
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
45
+ file(REMOVE_RECURSE "${LIBPROXY_TOOLS}" "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
46
+
47
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
48
+
49
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/support-windows.patch ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/paths.cmk b/cmake/paths.cmk
2
+ index 593ebc1..bbf8754 100644
3
+ --- a/cmake/paths.cmk
4
+ +++ b/cmake/paths.cmk
5
+ @@ -1,4 +1,4 @@
6
+ -if(WIN32 AND NOT MINGW)
7
+ +if(0)
8
+ set(CMAKE_INSTALL_PREFIX "" CACHE PATH "Install prefix")
9
+ set(BIN_INSTALL_DIR . CACHE PATH "Binary install dir")
10
+ set(LIB_INSTALL_DIR . CACHE PATH "Library install dir")
11
+ diff --git a/libproxy/cmake/devfiles.cmk b/libproxy/cmake/devfiles.cmk
12
+ index 0301dce..0eb5f83 100644
13
+ --- a/libproxy/cmake/devfiles.cmk
14
+ +++ b/libproxy/cmake/devfiles.cmk
15
+ @@ -1,4 +1,4 @@
16
+ -if(NOT WIN32 OR MINGW)
17
+ +if(1)
18
+ # PkgConfig file
19
+ set (PKGCONFIG_PREFIX ${CMAKE_INSTALL_PREFIX})
20
+
21
+ diff --git a/libproxy/cmake/libproxy.cmk b/libproxy/cmake/libproxy.cmk
22
+ index de68e5c..9356486 100644
23
+ --- a/libproxy/cmake/libproxy.cmk
24
+ +++ b/libproxy/cmake/libproxy.cmk
25
+ @@ -24,5 +24,5 @@ set_target_properties(libproxy PROPERTIES LINK_INTERFACE_LIBRARIES "")
26
+ if(NOT APPLE)
27
+ set_target_properties(libproxy PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libproxy.map")
28
+ endif()
29
+ -install(TARGETS libproxy DESTINATION ${LIB_INSTALL_DIR})
30
+ +install(TARGETS libproxy RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
31
+ install(FILES proxy.h DESTINATION ${INCLUDE_INSTALL_DIR})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/usage ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ The package libproxy provides CMake targets:
2
+
3
+ find_package(libproxy CONFIG REQUIRED)
4
+ target_include_directories(main PRIVATE ${LIBPROXY_INCLUDE_DIR})
5
+ target_link_libraries(main PRIVATE ${LIBPROXY_LIBRARIES})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ set(LIBPROXY_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
2
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
3
+
4
+ _find_package(${ARGS})
5
+
6
+ set(CMAKE_MODULE_PATH ${LIBPROXY_PREV_MODULE_PATH})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libproxy/vcpkg.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libproxy",
3
+ "version": "0.4.17",
4
+ "port-version": 2,
5
+ "description": "libproxy is a library that provides automatic proxy configuration management.",
6
+ "homepage": "https://github.com/libproxy/libproxy",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ "libmodman",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ],
19
+ "features": {
20
+ "bindings-csharp": {
21
+ "description": "Install C# bindings"
22
+ },
23
+ "bindings-perl": {
24
+ "description": "Install PERL bindings"
25
+ },
26
+ "bindings-python": {
27
+ "description": "Install Python bindings"
28
+ },
29
+ "bindings-ruby": {
30
+ "description": "Install Ruby bindings"
31
+ },
32
+ "bindings-vala": {
33
+ "description": "Install Vala bindings"
34
+ },
35
+ "tests": {
36
+ "description": "Build libproxy tests"
37
+ },
38
+ "tools": {
39
+ "description": "build tools"
40
+ }
41
+ }
42
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/CMakeLists.txt ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.12)
2
+
3
+ project(libqcow C)
4
+
5
+ find_package(OpenSSL)
6
+ find_package(ZLIB REQUIRED)
7
+
8
+ if(MSVC)
9
+ add_compile_definitions(_CRT_SECURE_NO_DEPRECATE)
10
+ add_compile_definitions(_CRT_NONSTDC_NO_DEPRECATE)
11
+ endif()
12
+
13
+ add_compile_definitions(HAVE_LOCAL_LIBCAES)
14
+ add_compile_definitions(HAVE_LOCAL_LIBCERROR)
15
+ add_compile_definitions(HAVE_LOCAL_LIBCTHREADS)
16
+ add_compile_definitions(HAVE_LOCAL_LIBCDATA)
17
+ add_compile_definitions(HAVE_LOCAL_LIBCLOCALE)
18
+ add_compile_definitions(HAVE_LOCAL_LIBCNOTIFY)
19
+ add_compile_definitions(HAVE_LOCAL_LIBCSPLIT)
20
+ add_compile_definitions(HAVE_LOCAL_LIBCFILE)
21
+ add_compile_definitions(HAVE_LOCAL_LIBCPATH)
22
+ add_compile_definitions(HAVE_LOCAL_LIBUNA)
23
+ add_compile_definitions(HAVE_LOCAL_LIBBFIO)
24
+ add_compile_definitions(HAVE_LOCAL_LIBFCACHE)
25
+ add_compile_definitions(HAVE_LOCAL_LIBFDATA)
26
+ add_compile_definitions(ZLIB_DLL)
27
+
28
+ if(UNIX)
29
+ configure_file(common/config.h.in common/config.h)
30
+ add_compile_definitions(HAVE_CONFIG_H)
31
+ add_compile_definitions(LOCALEDIR="/usr/share/locale")
32
+ endif()
33
+
34
+ if(MSVC)
35
+ add_compile_definitions(LIBQCOW_DLL_EXPORT)
36
+ set(LIB_RC libqcow/libqcow.rc)
37
+ endif()
38
+
39
+
40
+ include(GNUInstallDirs)
41
+ include(CMakePackageConfigHelpers)
42
+
43
+ # Add CMake find_package() integration
44
+ set(PROJECT_TARGET_NAME "${PROJECT_NAME}")
45
+ set(CONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
46
+ set(PROJECT_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/generated/${PROJECT_TARGET_NAME}Config.cmake")
47
+ set(TARGETS_EXPORT_NAME "${PROJECT_TARGET_NAME}Targets")
48
+ set(NAMESPACE "libqcow::")
49
+
50
+ # Source files
51
+ file(GLOB LIB_SRC lib*/*.c)
52
+
53
+ # Headers
54
+ file(GLOB LIB_INST_HEADERS include/libqcow/*.h)
55
+
56
+ add_library(${PROJECT_NAME} ${LIB_SRC} ${LIB_RC})
57
+
58
+ target_include_directories(${PROJECT_NAME} PRIVATE ./include ./common)
59
+ target_include_directories(${PROJECT_NAME} PRIVATE ./libbfio ./libcaes ./libcdata ./libcerror ./libcfile ./libclocale)
60
+ target_include_directories(${PROJECT_NAME} PRIVATE ./libcnotify ./libcpath ./libcsplit ./libcthreads)
61
+ target_include_directories(${PROJECT_NAME} PRIVATE ./libfcache ./libfdata ./libuna)
62
+
63
+ target_link_libraries(${PROJECT_NAME} PRIVATE ZLIB::ZLIB OpenSSL::Crypto)
64
+
65
+ install(TARGETS ${PROJECT_NAME}
66
+ EXPORT ${TARGETS_EXPORT_NAME}
67
+ RUNTIME DESTINATION bin
68
+ LIBRARY DESTINATION lib
69
+ ARCHIVE DESTINATION lib
70
+ INCLUDES DESTINATION include)
71
+
72
+ install(FILES ${LIB_INST_HEADERS} DESTINATION include/libqcow)
73
+ install(FILES include/libqcow.h DESTINATION include)
74
+
75
+
76
+ # Generate and install libqcowConfig.cmake
77
+ configure_package_config_file("Config.cmake.in" "${PROJECT_CONFIG}" INSTALL_DESTINATION "${CONFIG_INSTALL_DIR}")
78
+ install(FILES "${PROJECT_CONFIG}" DESTINATION "${CONFIG_INSTALL_DIR}")
79
+
80
+ # Generate and install libqcowTargets*.cmake
81
+ install(EXPORT ${TARGETS_EXPORT_NAME}
82
+ NAMESPACE ${NAMESPACE}
83
+ DESTINATION "${CONFIG_INSTALL_DIR}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/Config.cmake.in ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ @PACKAGE_INIT@
2
+
3
+ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
4
+ check_required_components("@PROJECT_NAME@")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/macos_fixes.patch ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/libcfile/libcfile_file.c b/libcfile/libcfile_file.c
2
+ index a618083..5299c77 100644
3
+ --- a/libcfile/libcfile_file.c
4
+ +++ b/libcfile/libcfile_file.c
5
+ @@ -56,7 +56,7 @@
6
+ #elif defined( HAVE_CYGWIN_FS_H )
7
+ #include <cygwin/fs.h>
8
+
9
+ -#elif defined( HAVE_LINUX_FS_H )
10
+ +#elif defined( __linux__ ) && defined( HAVE_LINUX_FS_H )
11
+ /* Required for Linux platforms that use a sizeof( u64 )
12
+ * in linux/fs.h but have no typedef of it
13
+ */
14
+ @@ -4128,6 +4128,11 @@ ssize_t libcfile_internal_file_io_control_read_with_error_code(
15
+ #error Missing file IO control with data function
16
+ #endif
17
+
18
+ +// Force disable on Darwin, it can be erroneously defined
19
+ +#if defined ( __APPLE__ )
20
+ +#undef HAVE_POSIX_FADVISE
21
+ +#endif
22
+ +
23
+ /* Read data from a device file using IO control
24
+ * Returns the number of bytes read if successful or -1 on error
25
+ */
26
+ diff --git a/libqcow/libqcow_i18n.c b/libqcow/libqcow_i18n.c
27
+ index 96d1a31..621e748 100644
28
+ --- a/libqcow/libqcow_i18n.c
29
+ +++ b/libqcow/libqcow_i18n.c
30
+ @@ -40,7 +40,7 @@ int libqcow_i18n_initialize(
31
+
32
+ if( libqcow_i18n_initialized == 0 )
33
+ {
34
+ -#if defined( HAVE_BINDTEXTDOMAIN )
35
+ +#if !defined( __APPLE__ ) && defined( HAVE_BINDTEXTDOMAIN )
36
+ if( bindtextdomain(
37
+ "libqcow",
38
+ LOCALEDIR ) == NULL )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
2
+
3
+ set(LIB_VERSION 20210419)
4
+ set(LIB_FILENAME libqcow-alpha-${LIB_VERSION}.tar.gz)
5
+
6
+ # Release distribution file contains configured sources, while the source code in the repository does not.
7
+ vcpkg_download_distfile(ARCHIVE
8
+ URLS "https://github.com/libyal/libqcow/releases/download/${LIB_VERSION}/${LIB_FILENAME}"
9
+ FILENAME "${LIB_FILENAME}"
10
+ SHA512 911d29bd880df95288e552356d128d18c924fcd0d61d166fbeaf09936f11bf27b984d8ffd4cdc4bc285e7df295a1fe64ff595b0dfdd10b6fcfbdc6586d6bd3b0
11
+ )
12
+
13
+ vcpkg_extract_source_archive_ex(
14
+ OUT_SOURCE_PATH SOURCE_PATH
15
+ ARCHIVE ${ARCHIVE}
16
+ REF ${LIB_VERSION}
17
+ PATCHES macos_fixes.patch
18
+ )
19
+
20
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
21
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" DESTINATION "${SOURCE_PATH}")
22
+
23
+ vcpkg_configure_cmake(
24
+ SOURCE_PATH "${SOURCE_PATH}"
25
+ PREFER_NINJA
26
+ )
27
+ vcpkg_install_cmake()
28
+
29
+ vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/libqcow")
30
+
31
+ vcpkg_copy_pdbs()
32
+
33
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
34
+
35
+ # License and man
36
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqcow/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libqcow",
3
+ "version-string": "20210419",
4
+ "port-version": 2,
5
+ "description": "Library and tools to access the QEMU Copy-On-Write (QCOW) image format.",
6
+ "homepage": "https://github.com/libyal/libqcow",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ "gettext",
10
+ "openssl",
11
+ "zlib"
12
+ ]
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/destdir.patch ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/QGLViewer/QGLViewer.pro b/QGLViewer/QGLViewer.pro
2
+ index 263a141..51e3359 100644
3
+ --- a/QGLViewer/QGLViewer.pro
4
+ +++ b/QGLViewer/QGLViewer.pro
5
+ @@ -38,7 +38,6 @@ SOURCES = \
6
+
7
+ HEADERS *= $${QGL_HEADERS}
8
+ DISTFILES *= qglviewer-icon.xpm
9
+ -DESTDIR = $${PWD}
10
+
11
+ TRANSLATIONS = qglviewer_fr.ts
12
+
13
+ @@ -273,7 +272,7 @@ win32 {
14
+ QMAKE_CXXFLAGS *= -TP -GR
15
+ DEFINES += NOMINMAX
16
+ win32-msvc {
17
+ - QMAKE_CXXFLAGS *= -EHs -FS
18
+ + QMAKE_CXXFLAGS *= -EHs -FS
19
+ } else {
20
+ QMAKE_CXXFLAGS *= -EHs
21
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO GillesDebunne/libQGLViewer
4
+ REF fee0916f2af3d0993df51956d2e5a51bbaf0c1f0 #v2.7.2
5
+ SHA512 449bf4ccadaf50d4333bd91050e9b50f440a64229391827aaf4a80ade2c3f5fc60501d2baee885cf1214f7e2a8a04615bafe9ac7da9f866ffa4ebe33b9b999d8
6
+ HEAD_REF master
7
+ PATCHES
8
+ use-default-config-on-all-platforms.patch
9
+ destdir.patch
10
+ )
11
+
12
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
13
+ set(OPTIONS CONFIG*=staticlib)
14
+ endif()
15
+
16
+ vcpkg_configure_qmake(
17
+ SOURCE_PATH ${SOURCE_PATH}/QGLViewer/QGLViewer.pro
18
+ OPTIONS ${OPTIONS}
19
+ )
20
+
21
+ vcpkg_install_qmake()
22
+
23
+ file(INSTALL ${SOURCE_PATH}/QGLViewer DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN "*.h")
24
+ file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libqglviewer RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/use-default-config-on-all-platforms.patch ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/QGLViewer/QGLViewer.pro b/QGLViewer/QGLViewer.pro
2
+ index e0205e5..6db4c81 100644
3
+ --- a/QGLViewer/QGLViewer.pro
4
+ +++ b/QGLViewer/QGLViewer.pro
5
+ @@ -108,9 +108,6 @@ contains( DEFINES, NO_VECTORIAL_RENDER ) {
6
+ # -- U n i x --
7
+ # ---------------
8
+ unix {
9
+ - CONFIG -= debug debug_and_release
10
+ - CONFIG *= release
11
+ -
12
+ # INCLUDE_DIR and LIB_DIR specify where to install the include files and the library.
13
+ # Use qmake INCLUDE_DIR=... LIB_DIR=... , or qmake PREFIX=... to customize your installation.
14
+ isEmpty( PREFIX ) {
15
+ @@ -250,9 +247,6 @@ macx|darwin-g++ {
16
+ # -- W i n d o w s --
17
+ # ---------------------
18
+ win32 {
19
+ - # Windows requires a debug lib version to link against debug applications
20
+ - CONFIG *= debug_and_release build_all
21
+ -
22
+ # Needed by Intel C++, (icl.exe) so that WINGDIAPI is a defined symbol in gl.h.
23
+ DEFINES *= WIN32
24
+
25
+ @@ -279,7 +273,7 @@ win32 {
26
+ QMAKE_CXXFLAGS *= -TP -GR
27
+ DEFINES += NOMINMAX
28
+ win32-msvc {
29
+ - QMAKE_CXXFLAGS *= -EH -FS
30
+ + QMAKE_CXXFLAGS *= -EHs -FS
31
+ } else {
32
+ QMAKE_CXXFLAGS *= -EHs
33
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqglviewer/vcpkg.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libqglviewer",
3
+ "version-string": "2.7.2",
4
+ "port-version": 4,
5
+ "description": "libQGLViewer is an open source C++ library based on Qt that eases the creation of OpenGL 3D viewers.",
6
+ "dependencies": [
7
+ {
8
+ "name": "qt5-base",
9
+ "default-features": false
10
+ }
11
+ ]
12
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqrencode/portfile.cmake ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO fukuchi/libqrencode
4
+ REF 715e29fd4cd71b6e452ae0f4e36d917b43122ce8 # v4.1.1
5
+ SHA512 78a5464c6fd37d2b4ed6d81c5faf8d95f6f1c95bfdb55dfe89fc227cd487c1685e8080694b1c93128364337959562ea133b3bb332ae1c5a4094614b493611e9f
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
10
+ FEATURES
11
+ tool WITH_TOOLS
12
+ )
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH ${SOURCE_PATH}
16
+ OPTIONS
17
+ ${FEATURE_OPTIONS}
18
+ -DWITH_TEST=NO
19
+ -DSKIP_INSTALL_PROGRAMS=ON
20
+ -DSKIP_INSTALL_EXECUTABLES=ON
21
+ -DSKIP_INSTALL_FILES=ON
22
+ OPTIONS_DEBUG
23
+ -DSKIP_INSTALL_HEADERS=ON
24
+ -DWITH_TOOLS=NO
25
+ )
26
+
27
+ vcpkg_cmake_install()
28
+
29
+ if(VCPKG_TARGET_IS_WINDOWS) # Windows
30
+ set(EXECUTABLE_SUFFIX ".exe")
31
+ else()
32
+ set(EXECUTABLE_SUFFIX "")
33
+ endif()
34
+
35
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/qrencode.dll")
36
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
37
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/qrencode.dll" "${CURRENT_PACKAGES_DIR}/bin/qrencode.dll")
38
+ endif()
39
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll")
40
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
41
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/qrencoded.dll")
42
+ endif()
43
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/qrencode${EXECUTABLE_SUFFIX}")
44
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/qrencode")
45
+ file(RENAME "${CURRENT_PACKAGES_DIR}/bin/qrencode${EXECUTABLE_SUFFIX}" "${CURRENT_PACKAGES_DIR}/tools/qrencode/qrencode${EXECUTABLE_SUFFIX}")
46
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/qrencode")
47
+ endif()
48
+
49
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
50
+
51
+ vcpkg_copy_pdbs()
52
+
53
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
54
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
55
+
56
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqrencode/usage ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ To use libqrencode library in CMakeLists.txt:
2
+
3
+ find_path(QRENCODE_INCLUDE_DIR NAMES qrencode.h)
4
+ find_library(QRENCODE_LIBRARY_RELEASE qrencode)
5
+ find_library(QRENCODE_LIBRARY_DEBUG qrencoded)
6
+ set(QRENCODE_LIBRARIES optimized ${QRENCODE_LIBRARY_RELEASE} debug ${QRENCODE_LIBRARY_DEBUG})
7
+
8
+ add_executable(main main.cpp)
9
+ target_include_directories(main PRIVATE ${QRENCODE_INCLUDE_DIR})
10
+ target_link_libraries(main PRIVATE ${QRENCODE_LIBRARIES})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libqrencode/vcpkg.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libqrencode",
3
+ "version-semver": "4.1.1",
4
+ "port-version": 1,
5
+ "description": "libqrencode - a fast and compact QR Code encoding library",
6
+ "homepage": "https://github.com/fukuchi/libqrencode",
7
+ "dependencies": [
8
+ "libiconv",
9
+ "libpng",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ }
14
+ ],
15
+ "features": {
16
+ "tool": {
17
+ "description": "Build qrencode tool",
18
+ "dependencies": [
19
+ {
20
+ "name": "getopt",
21
+ "platform": "windows"
22
+ }
23
+ ]
24
+ }
25
+ }
26
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librabbitmq/fix-uwpwarning.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b353be6..419e983 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -150,6 +150,10 @@ else()
6
+ endif()
7
+ endif()
8
+
9
+ +if(MSVC)
10
+ + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996")
11
+ +endif()
12
+ +
13
+ option(REGENERATE_AMQP_FRAMING "Regenerate amqp_framing.h/amqp_framing.c sources (for developer use)" OFF)
14
+ mark_as_advanced(REGENERATE_AMQP_FRAMING)
15
+
16
+ diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt
17
+ index d8dcd26..671840b 100644
18
+ --- a/librabbitmq/CMakeLists.txt
19
+ +++ b/librabbitmq/CMakeLists.txt
20
+ @@ -108,7 +108,7 @@ set(RABBITMQ_SOURCES
21
+ ${AMQP_SSL_SRCS}
22
+ )
23
+
24
+ -add_definitions(-DAMQP_BUILD)
25
+ +add_definitions(-DAMQP_BUILD -D_CRT_SECURE_NO_WARNINGS)
26
+
27
+ set(RMQ_LIBRARIES ${AMQP_SSL_LIBS} ${SOCKET_LIBRARIES} ${LIBRT} ${CMAKE_THREAD_LIBS_INIT})
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librabbitmq/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO alanxz/rabbitmq-c
4
+ REF v0.11.0
5
+ SHA512 0c3dbb6e2b862e9f25e3f76df798ea272bbd81de2865950b95adf1f1e5791eb20d7c9d5a76cb7d2fda54bad5f12bdf69cbfa7e9fd1afdede6f9ec729ca2287de
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-uwpwarning.patch
9
+ )
10
+
11
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
12
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ OPTIONS
17
+ -DBUILD_EXAMPLES=OFF
18
+ -DBUILD_TESTS=OFF
19
+ -DBUILD_TOOLS=OFF
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+
24
+ vcpkg_cmake_config_fixup(PACKAGE_NAME rabbitmq-c CONFIG_PATH lib/cmake/rabbitmq-c)
25
+
26
+ vcpkg_fixup_pkgconfig()
27
+
28
+ vcpkg_copy_pdbs()
29
+
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
31
+
32
+ file(INSTALL "${SOURCE_PATH}/LICENSE-MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librabbitmq/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "librabbitmq",
3
+ "version": "0.11.0",
4
+ "port-version": 1,
5
+ "description": "A C-language AMQP client library for use with v2.0+ of the RabbitMQ broker.",
6
+ "homepage": "https://github.com/alanxz/rabbitmq-c",
7
+ "dependencies": [
8
+ "openssl",
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/libraqm/CMakeLists.txt ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.11)
2
+
3
+ project(raqm)
4
+
5
+ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_MODULE_PATH}")
6
+
7
+ find_package(Freetype REQUIRED)
8
+ find_package(Fribidi REQUIRED)
9
+ find_package(harfbuzz CONFIG REQUIRED)
10
+
11
+ find_path(HARFBUZZ_INCLUDE_DIRS
12
+ NAMES hb.h
13
+ PATH_SUFFIXES harfbuzz)
14
+ find_path(FREETYPE_ADDITIONAL_INCLUDE_DIRS NAMES ft2build.h PATH_SUFFIXES freetype2)
15
+
16
+ configure_file(src/raqm-version.h.in src/raqm-version.h)
17
+
18
+ add_library(raqm src/raqm.c src/raqm.h src/raqm-version.h)
19
+
20
+ target_include_directories(raqm PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/src)
21
+ target_include_directories(raqm SYSTEM PUBLIC ${FREETYPE_ADDITIONAL_INCLUDE_DIRS})
22
+ target_include_directories(raqm SYSTEM PUBLIC ${FREETYPE_INCLUDE_DIRS})
23
+ target_include_directories(raqm SYSTEM PUBLIC ${HARFBUZZ_INCLUDE_DIRS})
24
+ target_include_directories(raqm SYSTEM PUBLIC ${FRIBIDI_INCLUDE_DIR})
25
+
26
+ target_link_libraries(raqm PRIVATE Freetype::Freetype)
27
+ target_link_libraries(raqm PRIVATE harfbuzz::harfbuzz ${FRIBIDI_LIBRARY})
28
+
29
+ install(TARGETS raqm
30
+ RUNTIME DESTINATION bin
31
+ ARCHIVE DESTINATION lib
32
+ LIBRARY DESTINATION lib
33
+ )
34
+
35
+ set(RAQM_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")
36
+ set(RAQM_LIBRARY raqm)
37
+ set(RAQM_LIBRARIES ${HARFBUZZ_LIBRARY} ${FRIBIDI_LIBRARY} ${RAQM_LIBRARY})
38
+ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/src/raqm.h ${CMAKE_CURRENT_BINARY_DIR}/src/raqm-version.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)