Spaces:
Sleeping
Sleeping
a3da360b2fb850f521d5d38fe31beecaa8601059938a3006beb1fe21fb773df9
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/uwp-createfile2.patch +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/uwp-library-console.patch +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfort/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfort/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfreenect2/fix-dependency-libusb.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfreenect2/portfile.cmake +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfreenect2/vcpkg.json +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/dont_use_lib64.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/exports.def +56 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/libusb-win32.patch +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/portfile.cmake +50 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/shared-static.patch +66 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/exports.def +71 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/libconfuse-fix.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/libusb-fix.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/portfile.cmake +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/win32.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgcrypt/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgcrypt/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/0001-fix-cmake.patch +82 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/fix_msvc_build.patch +61 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/intrin.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/no-write-source-dir.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/portfile.cmake +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/vcpkg.json +59 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/cmakelists.patch +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/skip-doc-install.patch +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/vcpkg.json +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgit2/fix-configcmake.patch +55 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgit2/portfile.cmake +84 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgit2/vcpkg.json +97 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgnutls/portfile.cmake +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgnutls/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgo/cmake.patch +114 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgo/portfile.cmake +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgo/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/add_cflags_to_tools.patch +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/outdir.patch +152 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/portfile.cmake +105 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/runtime.patch +244 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpiod/portfile.cmake +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpiod/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpod/configure.ac.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpod/portfile.cmake +38 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/uwp-createfile2.patch
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c
|
2 |
+
index 8b20bbb7..058295fa 100644
|
3 |
+
--- a/src/share/win_utf8_io/win_utf8_io.c
|
4 |
+
+++ b/src/share/win_utf8_io/win_utf8_io.c
|
5 |
+
@@ -156,6 +156,27 @@ int get_utf8_argv(int *argc, char ***argv)
|
6 |
+
/* similar to CreateFileW but accepts UTF-8 encoded lpFileName */
|
7 |
+
HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
|
8 |
+
{
|
9 |
+
+#if defined (WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
10 |
+
+ HANDLE handle = INVALID_HANDLE_VALUE;
|
11 |
+
+
|
12 |
+
+ if (!flac_internal_get_utf8_filenames())
|
13 |
+
+ return handle;
|
14 |
+
+
|
15 |
+
+ wchar_t *wname;
|
16 |
+
+
|
17 |
+
+ if ((wname = wchar_from_utf8(lpFileName)) != NULL)
|
18 |
+
+ {
|
19 |
+
+ CREATEFILE2_EXTENDED_PARAMETERS cfParams = {0};
|
20 |
+
+ cfParams.dwSize = sizeof(CREATEFILE2_EXTENDED_PARAMETERS);
|
21 |
+
+ cfParams.dwFileAttributes = dwFlagsAndAttributes & FILE_ATTRIBUTE_NORMAL;
|
22 |
+
+ cfParams.lpSecurityAttributes = lpSecurityAttributes;
|
23 |
+
+ cfParams.hTemplateFile = hTemplateFile;
|
24 |
+
+ handle = CreateFile2(wname, dwDesiredAccess, dwShareMode, dwCreationDisposition, &cfParams);
|
25 |
+
+ free(wname);
|
26 |
+
+ }
|
27 |
+
+
|
28 |
+
+ return handle;
|
29 |
+
+#else
|
30 |
+
if (!flac_internal_get_utf8_filenames()) {
|
31 |
+
return CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
|
32 |
+
} else {
|
33 |
+
@@ -169,6 +190,7 @@ HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWO
|
34 |
+
|
35 |
+
return handle;
|
36 |
+
}
|
37 |
+
+#endif
|
38 |
+
}
|
39 |
+
|
40 |
+
/* return number of characters in the UTF-8 string */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/uwp-library-console.patch
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c
|
2 |
+
index bbb6a74a..8b20bbb7 100644
|
3 |
+
--- a/src/share/win_utf8_io/win_utf8_io.c
|
4 |
+
+++ b/src/share/win_utf8_io/win_utf8_io.c
|
5 |
+
@@ -110,7 +110,11 @@ int get_utf8_argv(int *argc, char ***argv)
|
6 |
+
char **utf8argv;
|
7 |
+
int ret, i;
|
8 |
+
|
9 |
+
+#if defined (WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
10 |
+
+ if ((handle = LoadPackagedLibrary("msvcrt.dll", 0)) == NULL) return 1;
|
11 |
+
+#else
|
12 |
+
if ((handle = LoadLibraryW(L"msvcrt.dll")) == NULL) return 1;
|
13 |
+
+#endif
|
14 |
+
if ((wgetmainargs = (wgetmainargs_t)GetProcAddress(handle, "__wgetmainargs")) == NULL) {
|
15 |
+
FreeLibrary(handle);
|
16 |
+
return 1;
|
17 |
+
@@ -181,6 +185,9 @@ size_t strlen_utf8(const char *str)
|
18 |
+
/* get the console width in characters */
|
19 |
+
int win_get_console_width(void)
|
20 |
+
{
|
21 |
+
+#if defined (WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
22 |
+
+ return 80;
|
23 |
+
+#else
|
24 |
+
int width = 80;
|
25 |
+
CONSOLE_SCREEN_BUFFER_INFO csbi;
|
26 |
+
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
27 |
+
@@ -188,6 +195,7 @@ int win_get_console_width(void)
|
28 |
+
if (GetConsoleScreenBufferInfo(hOut, &csbi) != 0)
|
29 |
+
width = csbi.dwSize.X;
|
30 |
+
return width;
|
31 |
+
+#endif
|
32 |
+
}
|
33 |
+
|
34 |
+
/* print functions */
|
35 |
+
@@ -197,6 +205,10 @@ static int wprint_console(FILE *stream, const wchar_t *text, size_t len)
|
36 |
+
DWORD out;
|
37 |
+
int ret;
|
38 |
+
|
39 |
+
+#if defined (WINAPI_FAMILY_PARTITION) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
40 |
+
+ // disabled for UWP as there's no alternative:
|
41 |
+
+ // https://docs.microsoft.com/en-us/uwp/win32-and-com/alternatives-to-windows-apis-uwp
|
42 |
+
+#else
|
43 |
+
do {
|
44 |
+
if (stream == stdout) {
|
45 |
+
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
|
46 |
+
@@ -215,6 +227,7 @@ static int wprint_console(FILE *stream, const wchar_t *text, size_t len)
|
47 |
+
return out;
|
48 |
+
}
|
49 |
+
} while(0);
|
50 |
+
+#endif
|
51 |
+
|
52 |
+
ret = fputws(text, stream);
|
53 |
+
if (ret < 0)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libflac",
|
3 |
+
"version": "1.3.3",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "Library for manipulating FLAC files",
|
6 |
+
"homepage": "https://xiph.org/flac/",
|
7 |
+
"dependencies": [
|
8 |
+
"libogg"
|
9 |
+
],
|
10 |
+
"features": {
|
11 |
+
"asm": {
|
12 |
+
"description": "Use any assembly optimization routines"
|
13 |
+
}
|
14 |
+
}
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfort/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO seleznevae/libfort
|
6 |
+
REF b1c32b67511f4612996b287a1ef4a9df012521d2 # v0.4.2
|
7 |
+
SHA512 56d3bd00b8a72a5f9deb9bca9a325e100319aed55e10321d04243d8a2a94c0fa513ada1b13bc59957af01b1f2c5f1655304a4a608e118cbeb65d2b4527f102d0
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DFORT_ENABLE_TESTING=OFF
|
15 |
+
-DFORT_ENABLE_ASTYLE=OFF
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libfort)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
25 |
+
|
26 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfort/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libfort",
|
3 |
+
"version-semver": "0.4.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A simple crossplatform library to create formatted text tables",
|
6 |
+
"homepage": "https://github.com/seleznevae/libfort",
|
7 |
+
"license": "MIT",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfreenect2/fix-dependency-libusb.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 1e0d192..aedc576 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -90,7 +90,7 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
|
6 |
+
|
7 |
+
# dependencies
|
8 |
+
FIND_PACKAGE(PkgConfig) # try find PKGConfig as it will be used if found
|
9 |
+
-FIND_PACKAGE(LibUSB REQUIRED)
|
10 |
+
+FIND_PACKAGE(libusb CONFIG REQUIRED)
|
11 |
+
|
12 |
+
# Add includes
|
13 |
+
INCLUDE_DIRECTORIES(
|
14 |
+
@@ -98,7 +98,7 @@ INCLUDE_DIRECTORIES(
|
15 |
+
"${MY_DIR}/include/internal"
|
16 |
+
${PROJECT_BINARY_DIR} # for generated headers
|
17 |
+
${LIBFREENECT2_THREADING_INCLUDE_DIR}
|
18 |
+
- ${LibUSB_INCLUDE_DIRS}
|
19 |
+
+ ${LIBUSB_INCLUDE_DIRS}
|
20 |
+
)
|
21 |
+
|
22 |
+
SET(RESOURCES_INC_FILE "${PROJECT_BINARY_DIR}/resources.inc.h")
|
23 |
+
@@ -154,7 +154,7 @@ SET(SOURCES
|
24 |
+
)
|
25 |
+
|
26 |
+
SET(LIBRARIES
|
27 |
+
- ${LibUSB_LIBRARIES}
|
28 |
+
+ ${LIBUSB_LIBRARIES}
|
29 |
+
${LIBFREENECT2_THREADING_LIBRARIES}
|
30 |
+
)
|
31 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfreenect2/portfile.cmake
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO OpenKinect/libfreenect2
|
4 |
+
REF v0.2.0
|
5 |
+
SHA512 3525e3f21462cecd3b198f64545786ffddc2cafdfd8146e5a46f0300b83f29f1ad0739618a07ab195c276149d7e2e909f7662e2d379a2880593cac75942b0666
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES fix-dependency-libusb.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
file(READ ${SOURCE_PATH}/cmake_modules/FindLibUSB.cmake FINDLIBUSB)
|
11 |
+
string(REPLACE "(WIN32)"
|
12 |
+
"(WIN32_DISABLE)" FINDLIBUSB "${FINDLIBUSB}")
|
13 |
+
file(WRITE ${SOURCE_PATH}/cmake_modules/FindLibUSB.cmake "${FINDLIBUSB}")
|
14 |
+
|
15 |
+
file(READ ${SOURCE_PATH}/examples/CMakeLists.txt EXAMPLECMAKE)
|
16 |
+
string(REPLACE "(WIN32)"
|
17 |
+
"(WIN32_DISABLE)" EXAMPLECMAKE "${EXAMPLECMAKE}")
|
18 |
+
file(WRITE ${SOURCE_PATH}/examples/CMakeLists.txt "${EXAMPLECMAKE}")
|
19 |
+
|
20 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
21 |
+
opengl ENABLE_OPENGL
|
22 |
+
opencl ENABLE_OPENCL
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_configure_cmake(
|
26 |
+
SOURCE_PATH ${SOURCE_PATH}
|
27 |
+
PREFER_NINJA
|
28 |
+
OPTIONS
|
29 |
+
-DENABLE_CUDA=OFF
|
30 |
+
# FEATURES
|
31 |
+
${FEATURE_OPTIONS}
|
32 |
+
)
|
33 |
+
|
34 |
+
vcpkg_install_cmake()
|
35 |
+
|
36 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/freenect2 TARGET_PATH share/freenect2)
|
37 |
+
|
38 |
+
vcpkg_copy_pdbs()
|
39 |
+
|
40 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
41 |
+
|
42 |
+
file(INSTALL ${SOURCE_PATH}/GPL2 DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
43 |
+
|
44 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfreenect2/vcpkg.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libfreenect2",
|
3 |
+
"version-string": "0.2.0",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "Open source drivers for the Kinect for Windows v2 device",
|
6 |
+
"homepage": "https://github.com/OpenKinect/libfreenect2",
|
7 |
+
"dependencies": [
|
8 |
+
"libjpeg-turbo",
|
9 |
+
"libusb"
|
10 |
+
],
|
11 |
+
"default-features": [
|
12 |
+
"opengl"
|
13 |
+
],
|
14 |
+
"features": {
|
15 |
+
"opencl": {
|
16 |
+
"description": "OpenCL support for libfreenect2",
|
17 |
+
"dependencies": [
|
18 |
+
"opencl"
|
19 |
+
]
|
20 |
+
},
|
21 |
+
"opengl": {
|
22 |
+
"description": "OpenGL support for libfreenect2",
|
23 |
+
"dependencies": [
|
24 |
+
"glfw3",
|
25 |
+
"opengl"
|
26 |
+
]
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/dont_use_lib64.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b68de29..2eda29e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -44,7 +44,7 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
6 |
+
SET(LIB_SUFFIX "")
|
7 |
+
SET(PACK_ARCH "")
|
8 |
+
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
9 |
+
- SET(LIB_SUFFIX 64)
|
10 |
+
+ SET(LIB_SUFFIX "")
|
11 |
+
SET(PACK_ARCH .x86_64)
|
12 |
+
endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/exports.def
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
ftdi_deinit
|
3 |
+
ftdi_disable_bitbang
|
4 |
+
ftdi_eeprom_build
|
5 |
+
ftdi_eeprom_decode
|
6 |
+
ftdi_eeprom_free
|
7 |
+
ftdi_eeprom_initdefaults
|
8 |
+
ftdi_eeprom_setsize
|
9 |
+
ftdi_enable_bitbang
|
10 |
+
ftdi_erase_eeprom
|
11 |
+
ftdi_free
|
12 |
+
ftdi_get_error_string
|
13 |
+
ftdi_get_latency_timer
|
14 |
+
ftdi_init
|
15 |
+
ftdi_list_free
|
16 |
+
ftdi_list_free2
|
17 |
+
ftdi_new
|
18 |
+
ftdi_poll_modem_status
|
19 |
+
ftdi_read_chipid
|
20 |
+
ftdi_read_data
|
21 |
+
ftdi_read_data_get_chunksize
|
22 |
+
ftdi_read_data_set_chunksize
|
23 |
+
ftdi_read_eeprom
|
24 |
+
ftdi_read_eeprom_getsize
|
25 |
+
ftdi_read_eeprom_location
|
26 |
+
ftdi_read_pins
|
27 |
+
ftdi_set_baudrate
|
28 |
+
ftdi_set_bitmode
|
29 |
+
ftdi_set_error_char
|
30 |
+
ftdi_set_event_char
|
31 |
+
ftdi_set_interface
|
32 |
+
ftdi_set_latency_timer
|
33 |
+
ftdi_set_line_property
|
34 |
+
ftdi_set_line_property2
|
35 |
+
ftdi_set_usbdev
|
36 |
+
ftdi_setdtr
|
37 |
+
ftdi_setdtr_rts
|
38 |
+
ftdi_setflowctrl
|
39 |
+
ftdi_setrts
|
40 |
+
ftdi_usb_close
|
41 |
+
ftdi_usb_find_all
|
42 |
+
ftdi_usb_get_strings
|
43 |
+
ftdi_usb_open
|
44 |
+
ftdi_usb_open_desc
|
45 |
+
ftdi_usb_open_desc_index
|
46 |
+
ftdi_usb_open_dev
|
47 |
+
ftdi_usb_open_string
|
48 |
+
ftdi_usb_purge_buffers
|
49 |
+
ftdi_usb_purge_rx_buffer
|
50 |
+
ftdi_usb_purge_tx_buffer
|
51 |
+
ftdi_usb_reset
|
52 |
+
ftdi_write_data
|
53 |
+
ftdi_write_data_get_chunksize
|
54 |
+
ftdi_write_data_set_chunksize
|
55 |
+
ftdi_write_eeprom
|
56 |
+
ftdi_write_eeprom_location
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/libusb-win32.patch
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/FindUSB.cmake b/FindUSB.cmake
|
2 |
+
index 566cdd8..0710345 100644
|
3 |
+
--- a/FindUSB.cmake
|
4 |
+
+++ b/FindUSB.cmake
|
5 |
+
@@ -24,10 +24,10 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
|
6 |
+
pkg_check_modules(PC_LIBUSB libusb)
|
7 |
+
ENDIF(NOT WIN32)
|
8 |
+
|
9 |
+
- FIND_PATH(LIBUSB_INCLUDE_DIR usb.h
|
10 |
+
+ FIND_PATH(LIBUSB_INCLUDE_DIR lusb0_usb.h
|
11 |
+
PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
|
12 |
+
|
13 |
+
- FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb
|
14 |
+
+ FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb0 libusb0
|
15 |
+
PATHS ${PC_LIBUSB_LIBDIR} ${PC_LIBUSB_LIBRARY_DIRS})
|
16 |
+
|
17 |
+
include(FindPackageHandleStandardArgs)
|
18 |
+
diff --git a/src/ftdi.c b/src/ftdi.c
|
19 |
+
index 980622d..8f6ab67 100644
|
20 |
+
--- a/src/ftdi.c
|
21 |
+
+++ b/src/ftdi.c
|
22 |
+
@@ -28,7 +28,7 @@
|
23 |
+
/** \addtogroup libftdi */
|
24 |
+
/* @{ */
|
25 |
+
|
26 |
+
-#include <usb.h>
|
27 |
+
+#include <lusb0_usb.h>
|
28 |
+
#include <string.h>
|
29 |
+
#include <errno.h>
|
30 |
+
#include <stdio.h>
|
31 |
+
diff --git a/src/ftdi.h b/src/ftdi.h
|
32 |
+
index 6bb7a3e..d4472c2 100644
|
33 |
+
--- a/src/ftdi.h
|
34 |
+
+++ b/src/ftdi.h
|
35 |
+
@@ -17,7 +17,7 @@
|
36 |
+
#ifndef __libftdi_h__
|
37 |
+
#define __libftdi_h__
|
38 |
+
|
39 |
+
-#include <usb.h>
|
40 |
+
+#include <lusb0_usb.h>
|
41 |
+
|
42 |
+
#define FTDI_DEFAULT_EEPROM_SIZE 128
|
43 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/portfile.cmake
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://www.intra2net.com/en/developer/libftdi/download/libftdi-0.20.tar.gz"
|
3 |
+
FILENAME "libftdi-0.20.tar.gz"
|
4 |
+
SHA512 540e5eb201a65936c3dbabff70c251deba1615874b11ff27c5ca16c39d71c150cf61758a68b541135a444fe32ab403b0fba0daf55c587647aaf9b3f400f1dee7
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
REF 0.20
|
11 |
+
PATCHES
|
12 |
+
libusb-win32.patch
|
13 |
+
shared-static.patch
|
14 |
+
dont_use_lib64.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/exports.def" DESTINATION "${SOURCE_PATH}/src")
|
18 |
+
|
19 |
+
vcpkg_configure_cmake(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
PREFER_NINJA
|
22 |
+
OPTIONS
|
23 |
+
-DDOCUMENTATION=OFF
|
24 |
+
-DEXAMPLES=OFF
|
25 |
+
-DPYTHON_BINDINGS=OFF
|
26 |
+
-DFTDIPP=OFF
|
27 |
+
|
28 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
29 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
30 |
+
|
31 |
+
"-DLIBUSB_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include"
|
32 |
+
|
33 |
+
-DLIB_INSTALL_DIR=lib
|
34 |
+
)
|
35 |
+
|
36 |
+
vcpkg_install_cmake()
|
37 |
+
|
38 |
+
vcpkg_fixup_cmake_targets()
|
39 |
+
|
40 |
+
vcpkg_fixup_pkgconfig()
|
41 |
+
|
42 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
43 |
+
|
44 |
+
file(COPY "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libftdi")
|
45 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/share/libftdi/LICENSE" "${CURRENT_PACKAGES_DIR}/share/libftdi/copyright")
|
46 |
+
|
47 |
+
vcpkg_copy_pdbs()
|
48 |
+
|
49 |
+
# Delete pkgconfig files for ftdipp since we did -DFTDIPP=OFF above
|
50 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/ftdipp.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/ftdipp.pc")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/shared-static.patch
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 071ae90..f91f6f7 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -4,7 +4,7 @@ include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}
|
6 |
+
)
|
7 |
+
|
8 |
+
# Targets
|
9 |
+
-set(c_sources ftdi.c)
|
10 |
+
+set(c_sources ftdi.c exports.def)
|
11 |
+
set(c_headers ftdi.h)
|
12 |
+
|
13 |
+
add_library(ftdi SHARED ${c_sources})
|
14 |
+
@@ -14,7 +14,7 @@ set_target_properties(ftdi PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.
|
15 |
+
|
16 |
+
# Static library
|
17 |
+
add_library(ftdi-static STATIC ${c_sources})
|
18 |
+
-set_target_properties(ftdi-static PROPERTIES OUTPUT_NAME "ftdi")
|
19 |
+
+set_target_properties(ftdi-static PROPERTIES OUTPUT_NAME "ftdi-static")
|
20 |
+
|
21 |
+
# Prevent clobbering each other during the build
|
22 |
+
set_target_properties(ftdi PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
23 |
+
@@ -24,7 +24,7 @@ set_target_properties(ftdi-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
24 |
+
target_link_libraries(ftdi ${LIBUSB_LIBRARIES})
|
25 |
+
|
26 |
+
# Install
|
27 |
+
-if(${UNIX})
|
28 |
+
+if(UNIX AND 0)
|
29 |
+
|
30 |
+
install( TARGETS ftdi
|
31 |
+
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
32 |
+
@@ -41,23 +41,29 @@ if(${UNIX})
|
33 |
+
COMPONENT headers
|
34 |
+
)
|
35 |
+
|
36 |
+
-endif(${UNIX})
|
37 |
+
+endif()
|
38 |
+
|
39 |
+
-if(${WIN32})
|
40 |
+
+if(WIN32 OR 1)
|
41 |
+
|
42 |
+
+ if(BUILD_SHARED_LIBS)
|
43 |
+
install( TARGETS ftdi
|
44 |
+
- DESTINATION bin
|
45 |
+
+ EXPORT ftdi
|
46 |
+
COMPONENT sharedlibs
|
47 |
+
)
|
48 |
+
|
49 |
+
+ target_include_directories(ftdi PUBLIC $<INSTALL_INTERFACE:include>)
|
50 |
+
+ else()
|
51 |
+
install( TARGETS ftdi-static
|
52 |
+
- DESTINATION bin
|
53 |
+
+ EXPORT ftdi
|
54 |
+
COMPONENT staticlibs
|
55 |
+
)
|
56 |
+
+ target_include_directories(ftdi-static PUBLIC $<INSTALL_INTERFACE:include>)
|
57 |
+
+ endif()
|
58 |
+
+ install(EXPORT ftdi FILE libftdi-config.cmake NAMESPACE libftdi:: DESTINATION share/libftdi)
|
59 |
+
|
60 |
+
install( FILES ${c_headers}
|
61 |
+
DESTINATION include
|
62 |
+
COMPONENT headers
|
63 |
+
)
|
64 |
+
|
65 |
+
-endif(${WIN32})
|
66 |
+
+endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libftdi",
|
3 |
+
"version-string": "0.20",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "FTDI USB driver with bitbang mode (v0.20)",
|
6 |
+
"dependencies": [
|
7 |
+
"libusb-win32"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/exports.def
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
convert_baudrate_UT_export
|
3 |
+
ftdi_deinit
|
4 |
+
ftdi_disable_bitbang
|
5 |
+
ftdi_eeprom_build
|
6 |
+
ftdi_eeprom_decode
|
7 |
+
ftdi_eeprom_get_strings
|
8 |
+
ftdi_eeprom_initdefaults
|
9 |
+
ftdi_eeprom_set_strings
|
10 |
+
ftdi_erase_eeprom
|
11 |
+
ftdi_free
|
12 |
+
ftdi_get_eeprom_buf
|
13 |
+
ftdi_get_eeprom_value
|
14 |
+
ftdi_get_error_string
|
15 |
+
ftdi_get_latency_timer
|
16 |
+
ftdi_get_library_version
|
17 |
+
ftdi_init
|
18 |
+
ftdi_list_free
|
19 |
+
ftdi_list_free2
|
20 |
+
ftdi_new
|
21 |
+
ftdi_poll_modem_status
|
22 |
+
ftdi_read_chipid
|
23 |
+
ftdi_read_data
|
24 |
+
ftdi_read_data_get_chunksize
|
25 |
+
ftdi_read_data_set_chunksize
|
26 |
+
ftdi_read_data_submit
|
27 |
+
ftdi_read_eeprom
|
28 |
+
ftdi_read_eeprom_location
|
29 |
+
ftdi_read_pins
|
30 |
+
ftdi_set_baudrate
|
31 |
+
ftdi_set_bitmode
|
32 |
+
ftdi_set_eeprom_buf
|
33 |
+
ftdi_set_eeprom_user_data
|
34 |
+
ftdi_set_eeprom_value
|
35 |
+
ftdi_set_error_char
|
36 |
+
ftdi_set_event_char
|
37 |
+
ftdi_set_interface
|
38 |
+
ftdi_set_latency_timer
|
39 |
+
ftdi_set_line_property
|
40 |
+
ftdi_set_line_property2
|
41 |
+
ftdi_set_usbdev
|
42 |
+
ftdi_setdtr
|
43 |
+
ftdi_setdtr_rts
|
44 |
+
ftdi_setflowctrl
|
45 |
+
ftdi_setflowctrl_xonxoff
|
46 |
+
ftdi_setrts
|
47 |
+
ftdi_tciflush
|
48 |
+
ftdi_tcioflush
|
49 |
+
ftdi_tcoflush
|
50 |
+
ftdi_transfer_data_cancel
|
51 |
+
ftdi_transfer_data_done
|
52 |
+
ftdi_usb_close
|
53 |
+
ftdi_usb_find_all
|
54 |
+
ftdi_usb_get_strings
|
55 |
+
ftdi_usb_get_strings2
|
56 |
+
ftdi_usb_open
|
57 |
+
ftdi_usb_open_bus_addr
|
58 |
+
ftdi_usb_open_desc
|
59 |
+
ftdi_usb_open_desc_index
|
60 |
+
ftdi_usb_open_dev
|
61 |
+
ftdi_usb_open_string
|
62 |
+
ftdi_usb_purge_buffers
|
63 |
+
ftdi_usb_purge_rx_buffer
|
64 |
+
ftdi_usb_purge_tx_buffer
|
65 |
+
ftdi_usb_reset
|
66 |
+
ftdi_write_data
|
67 |
+
ftdi_write_data_get_chunksize
|
68 |
+
ftdi_write_data_set_chunksize
|
69 |
+
ftdi_write_data_submit
|
70 |
+
ftdi_write_eeprom
|
71 |
+
ftdi_write_eeprom_location
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/libconfuse-fix.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/FindConfuse.cmake b/cmake/FindConfuse.cmake
|
2 |
+
index f6af7d5..e24d72f 100755
|
3 |
+
--- a/cmake/FindConfuse.cmake
|
4 |
+
+++ b/cmake/FindConfuse.cmake
|
5 |
+
@@ -46,7 +46,7 @@ find_path ( CONFUSE_INCLUDE_DIR
|
6 |
+
set ( CONFUSE_INCLUDE_DIRS ${CONFUSE_INCLUDE_DIR} )
|
7 |
+
|
8 |
+
find_library ( CONFUSE_LIBRARY
|
9 |
+
- NAMES confuse
|
10 |
+
+ NAMES libconfuse
|
11 |
+
)
|
12 |
+
|
13 |
+
set ( CONFUSE_LIBRARIES ${CONFUSE_LIBRARY} )
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/libusb-fix.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/FindUSB1.cmake b/cmake/FindUSB1.cmake
|
2 |
+
index b90e297..6cc97a0 100755
|
3 |
+
--- a/cmake/FindUSB1.cmake
|
4 |
+
+++ b/cmake/FindUSB1.cmake
|
5 |
+
@@ -26,7 +26,7 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
|
6 |
+
PATH_SUFFIXES libusb-1.0
|
7 |
+
PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
|
8 |
+
|
9 |
+
- FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb-1.0
|
10 |
+
+ FIND_LIBRARY(LIBUSB_LIBRARIES NAMES usb-1.0 libusb-1.0
|
11 |
+
PATHS ${PC_LIBUSB_LIBDIR} ${PC_LIBUSB_LIBRARY_DIRS})
|
12 |
+
|
13 |
+
include(FindPackageHandleStandardArgs)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/portfile.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://www.intra2net.com/en/developer/libftdi/download/libftdi1-1.5.tar.bz2"
|
3 |
+
FILENAME "libftdi1-1.5.tar.bz2"
|
4 |
+
SHA512 c525b2ab6aff9ef9254971ae7d57f3549a36a36875765c48f947d52532814a2a004de1232389d4fe824a8c8ab84277b08427308573476e1da9b7db83db802f6f
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
REF 1.5
|
11 |
+
PATCHES
|
12 |
+
libusb-fix.patch
|
13 |
+
libconfuse-fix.patch
|
14 |
+
win32.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/exports.def" DESTINATION "${SOURCE_PATH}/src")
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
OPTIONS
|
22 |
+
-DBUILD_TESTS=OFF
|
23 |
+
-DDOCUMENTATION=OFF
|
24 |
+
-DEXAMPLES=OFF
|
25 |
+
-DPYTHON_BINDINGS=OFF
|
26 |
+
-DLINK_PYTHON_LIBRARY=OFF
|
27 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
28 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
29 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Libintl=ON
|
30 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_PythonLibs=ON
|
31 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_PythonInterp=ON
|
32 |
+
-DFTDI_EEPROM=OFF
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_cmake_install()
|
36 |
+
|
37 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libftdi1)
|
38 |
+
|
39 |
+
vcpkg_fixup_pkgconfig()
|
40 |
+
|
41 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
42 |
+
|
43 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
44 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
45 |
+
endif()
|
46 |
+
|
47 |
+
vcpkg_copy_pdbs()
|
48 |
+
|
49 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libftdi1/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libftdi1",
|
3 |
+
"version": "1.5",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "FTDI USB driver with bitbang mode",
|
6 |
+
"dependencies": [
|
7 |
+
"libconfuse",
|
8 |
+
"libusb",
|
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/libftdi1/win32.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 17b3617..f9a8e59 100755
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -18,9 +18,14 @@ message(STATUS "Detected git snapshot version: ${SNAPSHOT_VERSION}")
|
6 |
+
configure_file(ftdi_version_i.h.in "${CMAKE_CURRENT_BINARY_DIR}/ftdi_version_i.h" @ONLY)
|
7 |
+
|
8 |
+
# Targets
|
9 |
+
+if(WIN32)
|
10 |
+
+set(c_sources ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.c ${CMAKE_CURRENT_SOURCE_DIR}/exports.def CACHE INTERNAL "List of c sources" )
|
11 |
+
+else()
|
12 |
+
set(c_sources ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.c ${CMAKE_CURRENT_SOURCE_DIR}/ftdi_stream.c CACHE INTERNAL "List of c sources" )
|
13 |
+
+endif()
|
14 |
+
set(c_headers ${CMAKE_CURRENT_SOURCE_DIR}/ftdi.h CACHE INTERNAL "List of c headers" )
|
15 |
+
|
16 |
+
+if(BUILD_SHARED_LIBS)
|
17 |
+
add_library(ftdi1 SHARED ${c_sources})
|
18 |
+
|
19 |
+
math(EXPR VERSION_FIXUP "${MAJOR_VERSION} + 1") # Compatibility with previous releases
|
20 |
+
@@ -38,7 +43,7 @@ install ( TARGETS ftdi1
|
21 |
+
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
22 |
+
)
|
23 |
+
|
24 |
+
-if ( STATICLIBS )
|
25 |
+
+else()
|
26 |
+
add_library(ftdi1-static STATIC ${c_sources})
|
27 |
+
target_link_libraries(ftdi1-static ${LIBUSB_LIBRARIES})
|
28 |
+
set_target_properties(ftdi1-static PROPERTIES OUTPUT_NAME "ftdi1")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgcrypt/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_git(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
URL git://git.gnupg.org/libgcrypt.git
|
4 |
+
FETCH_REF libgcrypt-1.9.4
|
5 |
+
REF 05422ca24a0391dad2a0b7790a904ce348819c10 # https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commit;h=05422ca24a0391dad2a0b7790a904ce348819c10
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_make(
|
10 |
+
AUTOCONFIG
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
OPTIONS
|
13 |
+
--disable-doc
|
14 |
+
--disable-silent-rules
|
15 |
+
--with-libgpg-error-prefix=${CURRENT_INSTALLED_DIR}/tools/libgpg-error
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_make()
|
19 |
+
vcpkg_fixup_pkgconfig()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
23 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libgcrypt/bin/libgcrypt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
27 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libgcrypt/debug/bin/libgcrypt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
31 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgcrypt/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgcrypt",
|
3 |
+
"version": "1.9.4",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A general purpose cryptographic library",
|
6 |
+
"homepage": "https://gnupg.org/software/libgcrypt/index.html",
|
7 |
+
"supports": "linux | osx",
|
8 |
+
"dependencies": [
|
9 |
+
"libgpg-error"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/0001-fix-cmake.patch
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 57cd95d..50d5b9a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -280,8 +280,10 @@ else (USE_EXT_GD)
|
6 |
+
add_subdirectory(src)
|
7 |
+
endif (USE_EXT_GD)
|
8 |
+
|
9 |
+
-add_subdirectory(tests)
|
10 |
+
-add_subdirectory(examples)
|
11 |
+
+if(BUILD_TEST)
|
12 |
+
+ add_subdirectory(tests)
|
13 |
+
+ add_subdirectory(examples)
|
14 |
+
+endif()
|
15 |
+
|
16 |
+
add_custom_target(distclean ${GD_SOURCE_DIR}/cmake/distclean.sh)
|
17 |
+
|
18 |
+
@@ -298,7 +300,7 @@ else(WIN32)
|
19 |
+
set(CPACK_GENERATOR TGZ)
|
20 |
+
endif(WIN32)
|
21 |
+
|
22 |
+
-
|
23 |
+
+if(0)
|
24 |
+
INSTALL(FILES docs/INSTALL DESTINATION share/doc/gd-${GDLIB_MAJOR}.${GDLIB_MINOR})
|
25 |
+
INSTALL(FILES docs/README.JPN DESTINATION share/doc/gd-${GDLIB_MAJOR}.${GDLIB_MINOR})
|
26 |
+
INSTALL(FILES docs/README.CMAKE DESTINATION share/doc/gd-${GDLIB_MAJOR}.${GDLIB_MINOR})
|
27 |
+
@@ -320,7 +322,7 @@ INSTALL(FILES examples/test_crop_threshold.png DESTINATION share/doc/gd-${GDLIB_
|
28 |
+
INSTALL(FILES examples/tgaread.c DESTINATION share/doc/gd-${GDLIB_MAJOR}.${GDLIB_MINOR})
|
29 |
+
INSTALL(FILES examples/tiffread.c DESTINATION share/doc/gd-${GDLIB_MAJOR}.${GDLIB_MINOR})
|
30 |
+
INSTALL(FILES examples/windows.c DESTINATION share/doc/gd-${GDLIB_MAJOR}.${GDLIB_MINOR})
|
31 |
+
-
|
32 |
+
+endif()
|
33 |
+
|
34 |
+
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
|
35 |
+
|
36 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
37 |
+
index 509c422..97a2976 100644
|
38 |
+
--- a/src/CMakeLists.txt
|
39 |
+
+++ b/src/CMakeLists.txt
|
40 |
+
@@ -96,7 +96,6 @@ if (BUILD_STATIC_LIBS)
|
41 |
+
if (UNIX)
|
42 |
+
set_target_properties(${GD_LIB_STATIC} PROPERTIES OUTPUT_NAME ${GD_LIB})
|
43 |
+
endif()
|
44 |
+
-endif()
|
45 |
+
|
46 |
+
if (NOT "${GD_PROGRAMS_LIB_SRC_FILES}" STREQUAL "")
|
47 |
+
add_library(gd_programs_lib STATIC ${GD_PROGRAMS_LIB_SRC_FILES})
|
48 |
+
@@ -117,6 +116,7 @@ if (MINGW OR MSYS)
|
49 |
+
set_target_properties(${GD_LIB_STATIC} PROPERTIES OUTPUT_NAME ${GD_LIB})
|
50 |
+
endif()
|
51 |
+
endif (MINGW OR MSYS)
|
52 |
+
+endif()
|
53 |
+
|
54 |
+
INCLUDE_DIRECTORIES(BEFORE "${PROJECT_BINARY_DIR}" "${CMAKE_BINARY_DIR}" "${GD_SOURCE_DIR}/src")
|
55 |
+
|
56 |
+
@@ -148,6 +148,7 @@ SET(LIBS_PRIVATES
|
57 |
+
${WEBP_LIBRARIES}
|
58 |
+
)
|
59 |
+
|
60 |
+
+if(BUILD_PROGRAMS)
|
61 |
+
set(GD_PROGRAMS gdcmpgif)
|
62 |
+
|
63 |
+
if (PNG_FOUND)
|
64 |
+
@@ -177,6 +178,9 @@ foreach(program ${GD_PROGRAMS})
|
65 |
+
endif()
|
66 |
+
endforeach(program)
|
67 |
+
|
68 |
+
+install(PROGRAMS bdftogd DESTINATION bin)
|
69 |
+
+endif()
|
70 |
+
+
|
71 |
+
set(GD_INSTALL_TARGETS ${GD_PROGRAMS})
|
72 |
+
if (BUILD_SHARED_LIBS)
|
73 |
+
set(GD_INSTALL_TARGETS ${GD_INSTALL_TARGETS} ${GD_LIB})
|
74 |
+
@@ -189,7 +193,7 @@ install(TARGETS ${GD_INSTALL_TARGETS}
|
75 |
+
RUNTIME DESTINATION bin
|
76 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
77 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
78 |
+
-install(PROGRAMS bdftogd DESTINATION bin)
|
79 |
+
+
|
80 |
+
install(FILES
|
81 |
+
entities.h
|
82 |
+
gd.h
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/fix_msvc_build.patch
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 17ddf6b..7fe1e6b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -118,7 +118,7 @@ else (USE_EXT_GD)
|
6 |
+
endif (ENABLE_ICONV)
|
7 |
+
|
8 |
+
IF (ENABLE_WEBP)
|
9 |
+
- FIND_PACKAGE(WEBP REQUIRED)
|
10 |
+
+ FIND_PACKAGE(WebP CONFIG REQUIRED)
|
11 |
+
ENDIF (ENABLE_WEBP)
|
12 |
+
|
13 |
+
IF (ENABLE_HEIF)
|
14 |
+
diff --git a/src/config.h.cmake b/src/config.h.cmake
|
15 |
+
index 2b46a17..af98d23 100644
|
16 |
+
--- a/src/config.h.cmake
|
17 |
+
+++ b/src/config.h.cmake
|
18 |
+
@@ -139,3 +139,8 @@
|
19 |
+
|
20 |
+
/* Version number of package */
|
21 |
+
#cmakedefine VERSION
|
22 |
+
+
|
23 |
+
+#ifdef _MSC_VER
|
24 |
+
+ #define ssize_t SSIZE_T
|
25 |
+
+ #define SSIZE_MAX MAXSSIZE_T
|
26 |
+
+#endif
|
27 |
+
|
28 |
+
diff --git a/src/gd_intern.h b/src/gd_intern.h
|
29 |
+
index f8f3b5d..380f4db 100644
|
30 |
+
--- a/src/gd_intern.h
|
31 |
+
+++ b/src/gd_intern.h
|
32 |
+
@@ -29,6 +29,14 @@
|
33 |
+
# endif
|
34 |
+
#endif
|
35 |
+
|
36 |
+
+#ifdef _MSC_VER
|
37 |
+
+#define ssize_t SSIZE_T
|
38 |
+
+#define MAXSIZE_T ((SIZE_T)~ ((SIZE_T)0))
|
39 |
+
+#define MAXSSIZE_T ((SSIZE_T) (MAXSIZE_T >> 1))
|
40 |
+
+#define MINSSIZE_T ((SSIZE_T)~MAXSSIZE_T)
|
41 |
+
+#define SSIZE_MAX MAXSSIZE_T
|
42 |
+
+#endif
|
43 |
+
+
|
44 |
+
#include "gd.h"
|
45 |
+
|
46 |
+
#define MIN(a,b) ((a)<(b)?(a):(b))
|
47 |
+
diff --git a/src/getopt.c b/src/getopt.c
|
48 |
+
index 8651b87..00bccde 100644
|
49 |
+
--- a/src/getopt.c
|
50 |
+
+++ b/src/getopt.c
|
51 |
+
@@ -33,7 +33,10 @@
|
52 |
+
#include <stdio.h>
|
53 |
+
#include <stdlib.h>
|
54 |
+
#include <string.h>
|
55 |
+
+
|
56 |
+
+#ifndef _WIN32
|
57 |
+
#include <unistd.h>
|
58 |
+
+#endif
|
59 |
+
|
60 |
+
int opterr = 1, /* if error message should be printed */
|
61 |
+
optind = 1, /* index into parent argv vector */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/intrin.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/gd_interpolation.c b/src/gd_interpolation.c
|
2 |
+
index ce27220..8895072 100644
|
3 |
+
--- a/src/gd_interpolation.c
|
4 |
+
+++ b/src/gd_interpolation.c
|
5 |
+
@@ -75,7 +75,7 @@ TODO:
|
6 |
+
|
7 |
+
#ifdef _MSC_VER
|
8 |
+
# pragma optimize("t", on)
|
9 |
+
-# include <emmintrin.h>
|
10 |
+
+# include <intrin.h>
|
11 |
+
#endif
|
12 |
+
|
13 |
+
static gdImagePtr gdImageScaleBilinear(gdImagePtr im,
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/no-write-source-dir.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 50d5b9a..17ddf6b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -248,7 +248,8 @@ else (USE_EXT_GD)
|
6 |
+
CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H)
|
7 |
+
CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
|
8 |
+
|
9 |
+
- CONFIGURE_FILE(${GD_SOURCE_DIR}/src/config.h.cmake ${GD_SOURCE_DIR}/src/config.h ESCAPE_QUOTES)
|
10 |
+
+ CONFIGURE_FILE(${GD_SOURCE_DIR}/src/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/config.h ESCAPE_QUOTES)
|
11 |
+
+ include_directories(${CMAKE_CURRENT_BINARY_DIR}/src)
|
12 |
+
|
13 |
+
option(BUILD_SHARED_LIBS "Build shared libs" ON)
|
14 |
+
option(BUILD_STATIC_LIBS "Build static libs" OFF)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/portfile.cmake
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libgd/libgd
|
4 |
+
REF 2e40f55bfb460fc9d8cbcd290a0c9eb908d5af7e # gd-2.3.2
|
5 |
+
SHA512 c3f2db40f774b44e3fd3fbc743efe70916a71ecd948bf8cb4aeb8a9b9fefd9f17e02d82a9481bac6fcc3624f057b5a308925b4196fb612b65bb7304747d33ffa
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
0001-fix-cmake.patch
|
9 |
+
no-write-source-dir.patch
|
10 |
+
intrin.patch
|
11 |
+
fix_msvc_build.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
#delete CMake builtins modules
|
15 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake/modules/CMakeParseArguments.cmake")
|
16 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake/modules/FindFreetype.cmake")
|
17 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake/modules/FindJPEG.cmake")
|
18 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake/modules/FindPackageHandleStandardArgs.cmake")
|
19 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake/modules/FindPNG.cmake")
|
20 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake/modules/FindWEBP.cmake")
|
21 |
+
|
22 |
+
vcpkg_check_features(
|
23 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
24 |
+
FEATURES
|
25 |
+
png ENABLE_PNG
|
26 |
+
jpeg ENABLE_JPEG
|
27 |
+
tiff ENABLE_TIFF
|
28 |
+
freetype ENABLE_FREETYPE
|
29 |
+
webp ENABLE_WEBP
|
30 |
+
fontconfig ENABLE_FONTCONFIG
|
31 |
+
)
|
32 |
+
|
33 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
34 |
+
set(LIBGD_SHARED_LIBS ON)
|
35 |
+
set(LIBGD_STATIC_LIBS OFF)
|
36 |
+
else()
|
37 |
+
set(LIBGD_SHARED_LIBS OFF)
|
38 |
+
set(LIBGD_STATIC_LIBS ON)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
vcpkg_cmake_configure(
|
42 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
43 |
+
OPTIONS
|
44 |
+
${FEATURE_OPTIONS}
|
45 |
+
-DLIBGD_SHARED_LIBS=${LIBGD_SHARED_LIBS}
|
46 |
+
-DBUILD_STATIC_LIBS=${LIBGD_STATIC_LIBS}
|
47 |
+
-DBUILD_TEST=OFF
|
48 |
+
)
|
49 |
+
|
50 |
+
vcpkg_cmake_install()
|
51 |
+
vcpkg_copy_pdbs()
|
52 |
+
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
54 |
+
|
55 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
56 |
+
|
57 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgd/vcpkg.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgd",
|
3 |
+
"version-semver": "2.3.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Open source code library for the dynamic creation of images by programmers.",
|
6 |
+
"homepage": "https://github.com/libgd/libgd",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
],
|
13 |
+
"default-features": [
|
14 |
+
"fontconfig",
|
15 |
+
"freetype",
|
16 |
+
"jpeg",
|
17 |
+
"png",
|
18 |
+
"tiff",
|
19 |
+
"webp"
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"fontconfig": {
|
23 |
+
"description": "Support for fontconfig",
|
24 |
+
"dependencies": [
|
25 |
+
"fontconfig"
|
26 |
+
]
|
27 |
+
},
|
28 |
+
"freetype": {
|
29 |
+
"description": "Support for freetype",
|
30 |
+
"dependencies": [
|
31 |
+
"freetype"
|
32 |
+
]
|
33 |
+
},
|
34 |
+
"jpeg": {
|
35 |
+
"description": "Support for jpeg",
|
36 |
+
"dependencies": [
|
37 |
+
"libjpeg-turbo"
|
38 |
+
]
|
39 |
+
},
|
40 |
+
"png": {
|
41 |
+
"description": "Support for png",
|
42 |
+
"dependencies": [
|
43 |
+
"libpng"
|
44 |
+
]
|
45 |
+
},
|
46 |
+
"tiff": {
|
47 |
+
"description": "Support for tiff",
|
48 |
+
"dependencies": [
|
49 |
+
"tiff"
|
50 |
+
]
|
51 |
+
},
|
52 |
+
"webp": {
|
53 |
+
"description": "Support for webp",
|
54 |
+
"dependencies": [
|
55 |
+
"libwebp"
|
56 |
+
]
|
57 |
+
}
|
58 |
+
}
|
59 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/cmakelists.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libgeotiff/cmake/CMakeLists.txt b/libgeotiff/cmake/CMakeLists.txt
|
2 |
+
index 47a2b00..3809ba3 100644
|
3 |
+
--- a/libgeotiff/cmake/CMakeLists.txt
|
4 |
+
+++ b/libgeotiff/cmake/CMakeLists.txt
|
5 |
+
@@ -6,6 +6,7 @@
|
6 |
+
# ${INSTALL_CMAKE_DIR} and @PROJECT_ROOT_DIR@ is the relative
|
7 |
+
# path to the root from there. (Note that the whole install tree can
|
8 |
+
# be relocated.)
|
9 |
+
+if (0)
|
10 |
+
if (NOT WIN32)
|
11 |
+
set (INSTALL_CMAKE_DIR "share/cmake/${PROJECT_NAME}")
|
12 |
+
set (PROJECT_ROOT_DIR "../../..")
|
13 |
+
@@ -13,6 +14,10 @@ else ()
|
14 |
+
set (INSTALL_CMAKE_DIR "cmake")
|
15 |
+
set (PROJECT_ROOT_DIR "..")
|
16 |
+
endif ()
|
17 |
+
+else()
|
18 |
+
+ set (INSTALL_CMAKE_DIR "share/${PROJECT_NAME}")
|
19 |
+
+ set (PROJECT_ROOT_DIR "../..")
|
20 |
+
+endif()
|
21 |
+
|
22 |
+
configure_file (project-config.cmake.in project-config.cmake @ONLY)
|
23 |
+
configure_file (project-config-version.cmake.in
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO OSGeo/libgeotiff
|
4 |
+
REF 1.7.1
|
5 |
+
SHA512 3c71a19f02a46a86d546777e2afe6bd715098779845967a5253ca949e0cacc0117c697cabd099611247e85e15cf1813733ae0ef445b136d7001f34667a4c8dd6
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
cmakelists.patch
|
9 |
+
skip-doc-install.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
tools WITH_JPEG
|
15 |
+
tools WITH_UTILITIES
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}/libgeotiff"
|
20 |
+
OPTIONS
|
21 |
+
-DGEOTIFF_BIN_SUBDIR=bin
|
22 |
+
-DWITH_TIFF=1
|
23 |
+
-DHAVE_TIFFOPEN=1
|
24 |
+
-DHAVE_TIFFMERGEFIELDINFO=1
|
25 |
+
-DCMAKE_MACOSX_BUNDLE=0
|
26 |
+
${FEATURE_OPTIONS}
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
|
31 |
+
if(WITH_UTILITIES)
|
32 |
+
vcpkg_copy_tools(TOOL_NAMES applygeo geotifcp listgeo makegeo AUTO_CLEAN)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
vcpkg_copy_pdbs()
|
36 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME GeoTIFF)
|
37 |
+
|
38 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
39 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/GeoTIFF/geotiff-config.cmake" "if (GeoTIFF_USE_STATIC_LIBS)" "if (1)")
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
|
41 |
+
endif()
|
42 |
+
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
44 |
+
|
45 |
+
file(INSTALL "${SOURCE_PATH}/libgeotiff/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/skip-doc-install.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libgeotiff/CMakeLists.txt b/libgeotiff/CMakeLists.txt
|
2 |
+
index 54779a5..30ff29f 100644
|
3 |
+
--- a/libgeotiff/CMakeLists.txt
|
4 |
+
+++ b/libgeotiff/CMakeLists.txt
|
5 |
+
@@ -262,6 +262,7 @@ SET(GEOTIFF_BIN_DIR ${GEOTIFF_BIN_SUBDIR})
|
6 |
+
SET(GEOTIFF_LIB_DIR ${GEOTIFF_LIB_SUBDIR})
|
7 |
+
SET(GEOTIFF_INCLUDE_DIR ${GEOTIFF_INCLUDE_SUBDIR})
|
8 |
+
|
9 |
+
+if(0)
|
10 |
+
# Install doc files
|
11 |
+
INSTALL(FILES
|
12 |
+
AUTHORS ChangeLog COPYING INSTALL LICENSE README README_BIN README.WIN
|
13 |
+
@@ -269,6 +270,7 @@ INSTALL(FILES
|
14 |
+
|
15 |
+
# Install man pages
|
16 |
+
INSTALL(FILES ${GEOTIFF_MAN_PAGES} DESTINATION share/man/man1)
|
17 |
+
+endif()
|
18 |
+
|
19 |
+
|
20 |
+
# Install header files for development distribution
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libgeotiff provides a CMake config file:
|
2 |
+
|
3 |
+
find_package(GeoTIFF CONFIG REQUIRED)
|
4 |
+
target_include_directories(main PRIVATE ${GEOTIFF_INCLUDE_DIR})
|
5 |
+
target_link_libraries(main PRIVATE ${GEOTIFF_LIBRARIES})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgeotiff/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgeotiff",
|
3 |
+
"version": "1.7.1",
|
4 |
+
"description": "Libgeotiff is an open source library on top of libtiff for reading and writing GeoTIFF information tags.",
|
5 |
+
"homepage": "https://github.com/OSGeo/libgeotiff",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"proj",
|
9 |
+
{
|
10 |
+
"name": "tiff",
|
11 |
+
"default-features": false
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "vcpkg-cmake-config",
|
19 |
+
"host": true
|
20 |
+
}
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"tools": {
|
24 |
+
"description": "Install libgeotiff utility programs",
|
25 |
+
"dependencies": [
|
26 |
+
"libjpeg-turbo"
|
27 |
+
]
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgit2/fix-configcmake.patch
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/SelectRegex.cmake b/cmake/SelectRegex.cmake
|
2 |
+
index 2a3a91b8c..cbb409350 100644
|
3 |
+
--- a/cmake/SelectRegex.cmake
|
4 |
+
+++ b/cmake/SelectRegex.cmake
|
5 |
+
@@ -1,5 +1,4 @@
|
6 |
+
# Specify regular expression implementation
|
7 |
+
-find_package(PCRE)
|
8 |
+
|
9 |
+
if(REGEX_BACKEND STREQUAL "")
|
10 |
+
check_symbol_exists(regcomp_l "regex.h;xlocale.h" HAVE_REGCOMP_L)
|
11 |
+
@@ -33,8 +32,8 @@ elseif(REGEX_BACKEND STREQUAL "pcre")
|
12 |
+
add_feature_info(regex ON "using system PCRE")
|
13 |
+
set(GIT_REGEX_PCRE 1)
|
14 |
+
|
15 |
+
- list(APPEND LIBGIT2_SYSTEM_INCLUDES ${PCRE_INCLUDE_DIRS})
|
16 |
+
- list(APPEND LIBGIT2_SYSTEM_LIBS ${PCRE_LIBRARIES})
|
17 |
+
+ find_package(unofficial-pcre CONFIG REQUIRED)
|
18 |
+
+ list(APPEND LIBGIT2_SYSTEM_LIBS unofficial::pcre::pcre)
|
19 |
+
list(APPEND LIBGIT2_PC_REQUIRES "libpcre")
|
20 |
+
elseif(REGEX_BACKEND STREQUAL "regcomp")
|
21 |
+
add_feature_info(regex ON "using system regcomp")
|
22 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
23 |
+
index e7b54d036..6b549deef 100644
|
24 |
+
--- a/src/CMakeLists.txt
|
25 |
+
+++ b/src/CMakeLists.txt
|
26 |
+
@@ -298,10 +298,28 @@ if(MSVC_IDE)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
# Install
|
30 |
+
-install(TARGETS git2
|
31 |
+
+install(TARGETS git2 EXPORT unofficial-git2Targets
|
32 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
33 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
34 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
35 |
+
)
|
36 |
+
+
|
37 |
+
+install(EXPORT unofficial-git2Targets
|
38 |
+
+ NAMESPACE unofficial::git2::
|
39 |
+
+ DESTINATION share/unofficial-git2
|
40 |
+
+)
|
41 |
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-git2-config.cmake.in"
|
42 |
+
+[[include(CMakeFindDependencyMacro)
|
43 |
+
+if(@USE_BUNDLED_ZLIB@ STREQUAL "OFF")
|
44 |
+
+ find_dependency(ZLIB)
|
45 |
+
+endif()
|
46 |
+
+if(@REGEX_BACKEND@ STREQUAL "pcre")
|
47 |
+
+ find_dependency(unofficial-pcre CONFIG)
|
48 |
+
+endif()
|
49 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-git2Targets.cmake")
|
50 |
+
+]])
|
51 |
+
+configure_file("${CMAKE_CURRENT_BINARY_DIR}/unofficial-git2-config.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/unofficial-git2-config.cmake" @ONLY)
|
52 |
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-git2-config.cmake DESTINATION share/unofficial-git2)
|
53 |
+
+
|
54 |
+
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/git2 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
55 |
+
install(FILES ${PROJECT_SOURCE_DIR}/include/git2.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgit2/portfile.cmake
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libgit2/libgit2
|
4 |
+
REF v1.4.2
|
5 |
+
SHA512 144bec7f8e66d97b20335d87d1eb68d522f5e59064b0c557505c088d3c486d45704f023d701f51de572efa8e2eb111e3136eb5d23c035e29d16698206b5ec277
|
6 |
+
HEAD_REF maint/v1.4
|
7 |
+
PATCHES
|
8 |
+
fix-configcmake.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/cmake/FindPCRE.cmake")
|
12 |
+
|
13 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
14 |
+
|
15 |
+
set(REGEX_BACKEND OFF)
|
16 |
+
set(USE_HTTPS OFF)
|
17 |
+
|
18 |
+
function(set_regex_backend VALUE)
|
19 |
+
if(REGEX_BACKEND)
|
20 |
+
message(FATAL_ERROR "Only one regex backend (pcre,pcre2) is allowed")
|
21 |
+
endif()
|
22 |
+
set(REGEX_BACKEND ${VALUE} PARENT_SCOPE)
|
23 |
+
endfunction()
|
24 |
+
|
25 |
+
function(set_tls_backend VALUE)
|
26 |
+
if(USE_HTTPS)
|
27 |
+
message(FATAL_ERROR "Only one TLS backend (openssl,winhttp,sectransp,mbedtls) is allowed")
|
28 |
+
endif()
|
29 |
+
set(USE_HTTPS ${VALUE} PARENT_SCOPE)
|
30 |
+
endfunction()
|
31 |
+
|
32 |
+
foreach(GIT2_FEATURE ${FEATURES})
|
33 |
+
if(GIT2_FEATURE STREQUAL "pcre")
|
34 |
+
set_regex_backend("pcre")
|
35 |
+
elseif(GIT2_FEATURE STREQUAL "pcre2")
|
36 |
+
set_regex_backend("pcre2")
|
37 |
+
elseif(GIT2_FEATURE STREQUAL "openssl")
|
38 |
+
set_tls_backend("OpenSSL")
|
39 |
+
elseif(GIT2_FEATURE STREQUAL "winhttp")
|
40 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
41 |
+
message(FATAL_ERROR "winhttp is not supported on non-Windows and uwp platforms")
|
42 |
+
endif()
|
43 |
+
set_tls_backend("WinHTTP")
|
44 |
+
elseif(GIT2_FEATURE STREQUAL "sectransp")
|
45 |
+
if(NOT VCPKG_TARGET_IS_OSX)
|
46 |
+
message(FATAL_ERROR "sectransp is not supported on non-Apple platforms")
|
47 |
+
endif()
|
48 |
+
set_tls_backend("SecureTransport")
|
49 |
+
elseif(GIT2_FEATURE STREQUAL "mbedtls")
|
50 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
51 |
+
message(FATAL_ERROR "mbedtls is not supported on Windows because a certificate file must be specified at compile time")
|
52 |
+
endif()
|
53 |
+
set_tls_backend("mbedTLS")
|
54 |
+
endif()
|
55 |
+
endforeach()
|
56 |
+
|
57 |
+
if(NOT REGEX_BACKEND)
|
58 |
+
message(FATAL_ERROR "Must choose pcre or pcre2 regex backend")
|
59 |
+
endif()
|
60 |
+
|
61 |
+
vcpkg_check_features(
|
62 |
+
OUT_FEATURE_OPTIONS GIT2_FEATURES
|
63 |
+
FEATURES
|
64 |
+
ssh USE_SSH
|
65 |
+
)
|
66 |
+
|
67 |
+
vcpkg_cmake_configure(
|
68 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
69 |
+
OPTIONS
|
70 |
+
-DBUILD_TESTS=OFF
|
71 |
+
-DUSE_HTTP_PARSER=system
|
72 |
+
-DUSE_HTTPS=${USE_HTTPS}
|
73 |
+
-DREGEX_BACKEND=${REGEX_BACKEND}
|
74 |
+
-DSTATIC_CRT=${STATIC_CRT}
|
75 |
+
${GIT2_FEATURES}
|
76 |
+
)
|
77 |
+
|
78 |
+
vcpkg_cmake_install()
|
79 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-git2 CONFIG_PATH share/unofficial-git2)
|
80 |
+
vcpkg_fixup_pkgconfig()
|
81 |
+
|
82 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
83 |
+
|
84 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgit2/vcpkg.json
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgit2",
|
3 |
+
"version-semver": "1.4.2",
|
4 |
+
"description": "Git linkable library",
|
5 |
+
"homepage": "https://github.com/libgit2/libgit2",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
"http-parser",
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
"zlib"
|
18 |
+
],
|
19 |
+
"default-features": [
|
20 |
+
"pcre",
|
21 |
+
"ssl"
|
22 |
+
],
|
23 |
+
"features": {
|
24 |
+
"mbedtls": {
|
25 |
+
"description": "SSL support (mbedTLS)",
|
26 |
+
"dependencies": [
|
27 |
+
"mbedtls"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
"openssl": {
|
31 |
+
"description": "SSL support (OpenSSL)",
|
32 |
+
"dependencies": [
|
33 |
+
"openssl"
|
34 |
+
]
|
35 |
+
},
|
36 |
+
"pcre": {
|
37 |
+
"description": "Build against external libpcre",
|
38 |
+
"dependencies": [
|
39 |
+
"pcre"
|
40 |
+
]
|
41 |
+
},
|
42 |
+
"pcre2": {
|
43 |
+
"description": "Build against external libpcre2",
|
44 |
+
"dependencies": [
|
45 |
+
"pcre2"
|
46 |
+
]
|
47 |
+
},
|
48 |
+
"sectransp": {
|
49 |
+
"description": "SSL support (sectransp)"
|
50 |
+
},
|
51 |
+
"ssh": {
|
52 |
+
"description": "SSH support via libssh2",
|
53 |
+
"dependencies": [
|
54 |
+
{
|
55 |
+
"name": "libgit2",
|
56 |
+
"default-features": false,
|
57 |
+
"features": [
|
58 |
+
"openssl"
|
59 |
+
]
|
60 |
+
},
|
61 |
+
"libssh2"
|
62 |
+
]
|
63 |
+
},
|
64 |
+
"ssl": {
|
65 |
+
"description": "Default SSL backend",
|
66 |
+
"dependencies": [
|
67 |
+
{
|
68 |
+
"name": "libgit2",
|
69 |
+
"default-features": false,
|
70 |
+
"features": [
|
71 |
+
"sectransp"
|
72 |
+
],
|
73 |
+
"platform": "osx"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"name": "libgit2",
|
77 |
+
"default-features": false,
|
78 |
+
"features": [
|
79 |
+
"winhttp"
|
80 |
+
],
|
81 |
+
"platform": "windows"
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"name": "libgit2",
|
85 |
+
"default-features": false,
|
86 |
+
"features": [
|
87 |
+
"openssl"
|
88 |
+
],
|
89 |
+
"platform": "!windows & !osx"
|
90 |
+
}
|
91 |
+
]
|
92 |
+
},
|
93 |
+
"winhttp": {
|
94 |
+
"description": "SSL support (WinHTTP)"
|
95 |
+
}
|
96 |
+
}
|
97 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgnutls/portfile.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(GNUTLS_BRANCH 3.6)
|
2 |
+
set(GNUTLS_VERSION ${GNUTLS_BRANCH}.15)
|
3 |
+
set(GNUTLS_HASH f757d1532198f44bcad7b73856ce6a05bab43f6fb77fcc81c59607f146202f73023d0796d3e1e7471709cf792c8ee7d436e19407e0601bc0bda2f21512b3b01c)
|
4 |
+
|
5 |
+
vcpkg_download_distfile(ARCHIVE
|
6 |
+
URLS "https://www.gnupg.org/ftp/gcrypt/gnutls/v${GNUTLS_BRANCH}/gnutls-${GNUTLS_VERSION}.tar.xz"
|
7 |
+
FILENAME "gnutls-${GNUTLS_VERSION}.tar.xz"
|
8 |
+
SHA512 ${GNUTLS_HASH}
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_extract_source_archive_ex(
|
12 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
13 |
+
ARCHIVE "${ARCHIVE}"
|
14 |
+
REF ${GNUTLS_VERSION}
|
15 |
+
)
|
16 |
+
|
17 |
+
if(VCPKG_TARGET_IS_OSX)
|
18 |
+
set(LDFLAGS "-framework CoreFoundation")
|
19 |
+
else()
|
20 |
+
set(LDFLAGS "")
|
21 |
+
endif()
|
22 |
+
|
23 |
+
if ("openssl" IN_LIST FEATURES)
|
24 |
+
set(OPENSSL_COMPATIBILITY "--enable-openssl-compatibility")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
vcpkg_configure_make(
|
28 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
29 |
+
OPTIONS
|
30 |
+
--disable-doc
|
31 |
+
--disable-silent-rules
|
32 |
+
--disable-tests
|
33 |
+
--disable-maintainer-mode
|
34 |
+
--disable-rpath
|
35 |
+
--disable-libdane
|
36 |
+
--disable-guile
|
37 |
+
--with-included-unistring
|
38 |
+
--without-p11-kit
|
39 |
+
--without-tpm
|
40 |
+
${OPENSSL_COMPATIBILITY}
|
41 |
+
"LDFLAGS=${LDFLAGS}"
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_install_make()
|
45 |
+
vcpkg_fixup_pkgconfig()
|
46 |
+
vcpkg_copy_pdbs()
|
47 |
+
|
48 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
49 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgnutls/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgnutls",
|
3 |
+
"version": "3.6.15",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A secure communications library implementing the SSL, TLS and DTLS protocols",
|
6 |
+
"homepage": "https://www.gnutls.org/",
|
7 |
+
"license": "LGPL-2.1-or-later",
|
8 |
+
"supports": "!windows",
|
9 |
+
"dependencies": [
|
10 |
+
"gettext",
|
11 |
+
"gmp",
|
12 |
+
"libidn2",
|
13 |
+
"libtasn1",
|
14 |
+
"nettle"
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"openssl": {
|
18 |
+
"description": "enables the OpenSSL compatibility library"
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgo/cmake.patch
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index dfa9b72..e21eee0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,8 +1,9 @@
|
6 |
+
-cmake_minimum_required(VERSION 2.8)
|
7 |
+
+cmake_minimum_required(VERSION 3.0)
|
8 |
+
|
9 |
+
###################################################################################
|
10 |
+
project(libgo)
|
11 |
+
|
12 |
+
+if(0)
|
13 |
+
enable_language(C ASM)
|
14 |
+
|
15 |
+
if (CMAKE_BUILD_TYPE)
|
16 |
+
@@ -43,34 +44,38 @@ message("-------------- Env ---------------")
|
17 |
+
message(" CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}")
|
18 |
+
message(" CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR}")
|
19 |
+
message("----------------------------------")
|
20 |
+
+endif()
|
21 |
+
+
|
22 |
+
+enable_language(C CXX ASM)
|
23 |
+
+set(CMAKE_CXX_STANDARD 11)
|
24 |
+
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
25 |
+
+
|
26 |
+
+set(INSTALL_BIN_DIR "bin" CACHE PATH "Path where exe and dll will be installed")
|
27 |
+
+set(INSTALL_LIB_DIR "lib" CACHE PATH "Path where lib will be installed")
|
28 |
+
+set(INSTALL_INCLUDE_DIR "include/${PROJECT_NAME}" CACHE PATH "Path where headers will be installed")
|
29 |
+
+set(INSTALL_CMAKE_DIR "share/${PROJECT_NAME}" CACHE PATH "Path where cmake configs will be installed")
|
30 |
+
+set(RELATIVE_INSTALL_INCLUDE_DIR ${INSTALL_INCLUDE_DIR})
|
31 |
+
+foreach(p LIB BIN INCLUDE CMAKE)
|
32 |
+
+ set(var INSTALL_${p}_DIR)
|
33 |
+
+ if(NOT IS_ABSOLUTE "${${var}}")
|
34 |
+
+ set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
|
35 |
+
+ endif()
|
36 |
+
+endforeach()
|
37 |
+
+
|
38 |
+
+set(ENABLE_DEBUGGER 0)
|
39 |
+
+set(ENABLE_HOOK 0)
|
40 |
+
|
41 |
+
configure_file(${PROJECT_SOURCE_DIR}/libgo/common/cmake_config.h.in ${PROJECT_SOURCE_DIR}/libgo/common/cmake_config.h)
|
42 |
+
message("----------------------------------")
|
43 |
+
|
44 |
+
if (UNIX)
|
45 |
+
- set(CMAKE_CXX_FLAGS "-std=c++11 -fPIC -Wall ${CMAKE_CXX_FLAGS}")
|
46 |
+
- set(CMAKE_CXX_FLAGS_DEBUG "-g")
|
47 |
+
- set(CMAKE_CXX_FLAGS_RELEASE "-g -O3 -DNDEBUG")
|
48 |
+
-
|
49 |
+
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS S)
|
50 |
+
- message("--> select asm source file, please wait about 5 seconds ...")
|
51 |
+
execute_process(COMMAND "${PROJECT_SOURCE_DIR}/third_party/select_asm.sh" "${PROJECT_SOURCE_DIR}" "jump" OUTPUT_VARIABLE jump_asm_file)
|
52 |
+
execute_process(COMMAND "${PROJECT_SOURCE_DIR}/third_party/select_asm.sh" "${PROJECT_SOURCE_DIR}" "make" OUTPUT_VARIABLE make_asm_file)
|
53 |
+
elseif (WIN32)
|
54 |
+
- # windows platform
|
55 |
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
56 |
+
- set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd /EHsc")
|
57 |
+
- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT /EHsc")
|
58 |
+
-
|
59 |
+
- #set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm)
|
60 |
+
- #file(COPY ${PROJECT_SOURCE_DIR}/third_party/boost.context/libs/context/src/asm/make_x86_64_ms_pe_masm.asm DESTINATION ${PROJECT_SOURCE_DIR}/libgo/context)
|
61 |
+
- #file(COPY ${PROJECT_SOURCE_DIR}/third_party/boost.context/libs/context/src/asm/jump_x86_64_ms_pe_masm.asm DESTINATION ${PROJECT_SOURCE_DIR}/libgo/context)
|
62 |
+
endif()
|
63 |
+
|
64 |
+
-message("------------ Cxx flags -------------")
|
65 |
+
-message(" CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}: ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}}")
|
66 |
+
-message("------------------------------------")
|
67 |
+
-
|
68 |
+
include_directories(${PROJECT_SOURCE_DIR})
|
69 |
+
aux_source_directory(${PROJECT_SOURCE_DIR}/libgo CO_SRC_LIST)
|
70 |
+
aux_source_directory(${PROJECT_SOURCE_DIR}/libgo/common CO_SRC_LIST)
|
71 |
+
@@ -97,6 +102,7 @@ else()
|
72 |
+
aux_source_directory(${PROJECT_SOURCE_DIR}/libgo/netio/disable_hook CO_SRC_LIST)
|
73 |
+
endif()
|
74 |
+
|
75 |
+
+if(0)
|
76 |
+
set(TARGET "libgo")
|
77 |
+
set(STATIC_T "libgo_static")
|
78 |
+
set(STATIC_HOOK "static_hook")
|
79 |
+
@@ -136,7 +142,6 @@ if (UNIX)
|
80 |
+
)
|
81 |
+
|
82 |
+
set(PROFILE_FLAGS "-pg ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}}")
|
83 |
+
-
|
84 |
+
#message("PROFILE_FLAGS: ${PROFILE_FLAGS}")
|
85 |
+
add_custom_target(profile
|
86 |
+
COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=PROFILE -DCMAKE_CXX_FLAGS_PROFILE=\\'${PROFILE_FLAGS}\\' ${CMAKE_SOURCE_DIR}
|
87 |
+
@@ -160,3 +165,27 @@ if (WIN32)
|
88 |
+
add_subdirectory(${PROJECT_SOURCE_DIR}/tutorial)
|
89 |
+
endif()
|
90 |
+
endif()
|
91 |
+
+endif()
|
92 |
+
+
|
93 |
+
+list(APPEND CO_SRC_LIST ${jump_asm_file})
|
94 |
+
+list(APPEND CO_SRC_LIST ${make_asm_file})
|
95 |
+
+add_library(${PROJECT_NAME} ${CO_SRC_LIST})
|
96 |
+
+target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS})
|
97 |
+
+if (WIN32)
|
98 |
+
+ target_link_libraries(${PROJECT_NAME} ws2_32)
|
99 |
+
+ set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "/wd4819 /wd4267")
|
100 |
+
+endif()
|
101 |
+
+
|
102 |
+
+install(TARGETS ${PROJECT_NAME}
|
103 |
+
+ EXPORT "${PROJECT_NAME}Config"
|
104 |
+
+ LIBRARY DESTINATION lib
|
105 |
+
+ ARCHIVE DESTINATION lib
|
106 |
+
+ RUNTIME DESTINATION bin)
|
107 |
+
+
|
108 |
+
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/libgo/
|
109 |
+
+ DESTINATION ${INSTALL_INCLUDE_DIR}
|
110 |
+
+ FILES_MATCHING PATTERN "*.h")
|
111 |
+
+
|
112 |
+
+install(EXPORT "${PROJECT_NAME}Config"
|
113 |
+
+ NAMESPACE libgo::
|
114 |
+
+ DESTINATION "${INSTALL_CMAKE_DIR}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgo/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO yyzybb537/libgo
|
6 |
+
REF 5d4f36508e8eb2d5aa17cf37cd951dc91da23096 #v3.1
|
7 |
+
SHA512 0f281f58116148ba1dd3904febbc391d47190f8e148b70bed7c4b7e6cb3efa5e41e2b7be4832ceeb805996e085f4c2d89fd0cf3b0651e037b32758d6a441411b
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
cmake.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_from_github(
|
14 |
+
OUT_SOURCE_PATH XHOOK_SOURCE_PATH
|
15 |
+
REPO XBased/xhook
|
16 |
+
REF e18c450541892212ca4f11dc91fa269fabf9646f
|
17 |
+
SHA512 1bcf320f50cff13d92013a9f0ab5c818c2b6b63e9c1ac18c5dd69189e448d7a848f1678389d8b2c08c65f907afb3909e743f6c593d9cfb21e2bb67d5c294a166
|
18 |
+
HEAD_REF master
|
19 |
+
)
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/third_party")
|
22 |
+
file(MAKE_DIRECTORY "${SOURCE_PATH}/third_party")
|
23 |
+
file(RENAME "${XHOOK_SOURCE_PATH}" "${SOURCE_PATH}/third_party/xhook")
|
24 |
+
|
25 |
+
vcpkg_cmake_configure(
|
26 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
27 |
+
DISABLE_PARALLEL_CONFIGURE
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_install()
|
31 |
+
vcpkg_cmake_config_fixup()
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/libgo/netio/disable_hook")
|
35 |
+
|
36 |
+
if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/libgo/netio/unix/static_hook")
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/libgo/netio/windows")
|
39 |
+
else()
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/libgo/netio/unix")
|
41 |
+
endif()
|
42 |
+
|
43 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgo/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgo",
|
3 |
+
"version": "3.1",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "The best stackful coroutine by c++11.",
|
6 |
+
"homepage": "https://github.com/yyzybb537/libgo",
|
7 |
+
"supports": "!(arm | uwp)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/add_cflags_to_tools.patch
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/Makefile.am b/src/Makefile.am
|
2 |
+
index fc3acc3..9a86251 100644
|
3 |
+
--- a/src/Makefile.am
|
4 |
+
+++ b/src/Makefile.am
|
5 |
+
@@ -279,14 +279,14 @@ gpg-error.def: Makefile gpg-error.def.in
|
6 |
+
# It is correct to use $(CC_FOR_BUILD) here. We want to run the
|
7 |
+
# program at build time.
|
8 |
+
mkerrcodes$(EXEEXT_FOR_BUILD): mkerrcodes.c mkerrcodes.h Makefile
|
9 |
+
- $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
|
10 |
+
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CFLAGS) $(LDFLAGS_FOR_BUILD) \
|
11 |
+
$(CPPFLAGS_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkerrcodes.c
|
12 |
+
|
13 |
+
if HAVE_W32CE_SYSTEM
|
14 |
+
# It is correct to use $(CC_FOR_BUILD) here. We want to run the
|
15 |
+
# program at build time.
|
16 |
+
mkw32errmap$(EXEEXT_FOR_BUILD): mkw32errmap.c mkw32errmap.tab.h Makefile
|
17 |
+
- $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
|
18 |
+
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CFLAGS) $(LDFLAGS_FOR_BUILD) \
|
19 |
+
$(CPPFLAGS_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkw32errmap.c
|
20 |
+
endif
|
21 |
+
|
22 |
+
@@ -300,7 +300,7 @@ errnos-sym.h: Makefile mkstrtable.awk errnos.in
|
23 |
+
|
24 |
+
|
25 |
+
mkheader$(EXEEXT_FOR_BUILD): mkheader.c Makefile
|
26 |
+
- $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
|
27 |
+
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CFLAGS) $(LDFLAGS_FOR_BUILD) \
|
28 |
+
$(CPPFLAGS_FOR_BUILD) -g -I. -I$(srcdir) -o $@ $(srcdir)/mkheader.c
|
29 |
+
|
30 |
+
parts_of_gpg_error_h = \
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/outdir.patch
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/SMP/smp.props b/SMP/smp.props
|
2 |
+
index e2ed214..fc70bd8 100644
|
3 |
+
--- a/SMP/smp.props
|
4 |
+
+++ b/SMP/smp.props
|
5 |
+
@@ -87,7 +87,7 @@
|
6 |
+
<PropertyGroup Label="UserMacros" />
|
7 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
8 |
+
<TargetName>lib$(RootNamespace)d</TargetName>
|
9 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
10 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
11 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
12 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
13 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
14 |
+
@@ -95,7 +95,7 @@
|
15 |
+
</PropertyGroup>
|
16 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
17 |
+
<TargetName>lib$(RootNamespace)d</TargetName>
|
18 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
19 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
20 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
21 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
22 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
23 |
+
@@ -103,7 +103,7 @@
|
24 |
+
</PropertyGroup>
|
25 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLL|Win32'">
|
26 |
+
<TargetName>$(RootNamespace)d</TargetName>
|
27 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
28 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
29 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
30 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
31 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
32 |
+
@@ -111,7 +111,7 @@
|
33 |
+
</PropertyGroup>
|
34 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLL|x64'">
|
35 |
+
<TargetName>$(RootNamespace)d</TargetName>
|
36 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
37 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
38 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
39 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
40 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
41 |
+
@@ -119,7 +119,7 @@
|
42 |
+
</PropertyGroup>
|
43 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
44 |
+
<TargetName>lib$(RootNamespace)</TargetName>
|
45 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
46 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
47 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
48 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
49 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
50 |
+
@@ -127,7 +127,7 @@
|
51 |
+
</PropertyGroup>
|
52 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
53 |
+
<TargetName>lib$(RootNamespace)</TargetName>
|
54 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
55 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
56 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
57 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
58 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
59 |
+
@@ -135,7 +135,7 @@
|
60 |
+
</PropertyGroup>
|
61 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">
|
62 |
+
<TargetName>$(RootNamespace)</TargetName>
|
63 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
64 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
65 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
66 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
67 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
68 |
+
@@ -143,7 +143,7 @@
|
69 |
+
</PropertyGroup>
|
70 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">
|
71 |
+
<TargetName>$(RootNamespace)</TargetName>
|
72 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
73 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
74 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
75 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
76 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
77 |
+
diff --git a/SMP/smp_winrt.props b/SMP/smp_winrt.props
|
78 |
+
index 9b453a5..cb5f090 100644
|
79 |
+
--- a/SMP/smp_winrt.props
|
80 |
+
+++ b/SMP/smp_winrt.props
|
81 |
+
@@ -98,7 +98,7 @@
|
82 |
+
<PropertyGroup Label="UserMacros" />
|
83 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|Win32'">
|
84 |
+
<TargetName>lib$(RootNamespace)d_winrt</TargetName>
|
85 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
86 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
87 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
88 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
89 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
90 |
+
@@ -106,7 +106,7 @@
|
91 |
+
</PropertyGroup>
|
92 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|x64'">
|
93 |
+
<TargetName>lib$(RootNamespace)d_winrt</TargetName>
|
94 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
95 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
96 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
97 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
98 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
99 |
+
@@ -114,7 +114,7 @@
|
100 |
+
</PropertyGroup>
|
101 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|Win32'">
|
102 |
+
<TargetName>$(RootNamespace)d_winrt</TargetName>
|
103 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
104 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
105 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
106 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
107 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
108 |
+
@@ -122,7 +122,7 @@
|
109 |
+
</PropertyGroup>
|
110 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|x64'">
|
111 |
+
<TargetName>$(RootNamespace)d_winrt</TargetName>
|
112 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
113 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
114 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
115 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
116 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
117 |
+
@@ -130,7 +130,7 @@
|
118 |
+
</PropertyGroup>
|
119 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|Win32'">
|
120 |
+
<TargetName>lib$(RootNamespace)_winrt</TargetName>
|
121 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
122 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
123 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
124 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
125 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
126 |
+
@@ -138,7 +138,7 @@
|
127 |
+
</PropertyGroup>
|
128 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|x64'">
|
129 |
+
<TargetName>lib$(RootNamespace)_winrt</TargetName>
|
130 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
131 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
132 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
133 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
134 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
135 |
+
@@ -146,7 +146,7 @@
|
136 |
+
</PropertyGroup>
|
137 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|Win32'">
|
138 |
+
<TargetName>$(RootNamespace)_winrt</TargetName>
|
139 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
140 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
141 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
142 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
143 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
144 |
+
@@ -154,7 +154,7 @@
|
145 |
+
</PropertyGroup>
|
146 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|x64'">
|
147 |
+
<TargetName>$(RootNamespace)_winrt</TargetName>
|
148 |
+
- <OutDir>$(ProjectDir)..\..\..\msvc\</OutDir>
|
149 |
+
+ <OutDir>$(ProjectDir)..\msvc\</OutDir>
|
150 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
151 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
152 |
+
<CustomBuildAfterTargets>Clean</CustomBuildAfterTargets>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/portfile.cmake
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set (PACKAGE_VERSION 1.42)
|
2 |
+
|
3 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
4 |
+
message(WARNING "libgpg-error on Windows uses a fork managed by the ShiftMediaProject: https://shiftmediaproject.github.io/")
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO ShiftMediaProject/libgpg-error
|
8 |
+
REF libgpg-error-${PACKAGE_VERSION}
|
9 |
+
SHA512 2dbf41e28196f4b99d641a430e6e77566ae2d389bbe9d6f6e310d56a5ca90de9b9ae225a3eee979fe4606d36878d3db6f777162d697de717b4748151dd3525d0
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
outdir.patch
|
13 |
+
runtime.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
17 |
+
set(CONFIGURATION_RELEASE ReleaseDLL)
|
18 |
+
set(CONFIGURATION_DEBUG DebugDLL)
|
19 |
+
else()
|
20 |
+
set(CONFIGURATION_RELEASE Release)
|
21 |
+
set(CONFIGURATION_DEBUG Debug)
|
22 |
+
endif()
|
23 |
+
|
24 |
+
if(VCPKG_TARGET_IS_UWP)
|
25 |
+
string(APPEND CONFIGURATION_RELEASE WinRT)
|
26 |
+
string(APPEND CONFIGURATION_DEBUG WinRT)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_IS_UWP)
|
30 |
+
set(_gpg-errorproject "${SOURCE_PATH}/SMP/libgpg-error_winrt.vcxproj")
|
31 |
+
else()
|
32 |
+
set(_gpg-errorproject "${SOURCE_PATH}/SMP/libgpg-error.vcxproj")
|
33 |
+
endif()
|
34 |
+
|
35 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
36 |
+
set(RuntimeLibraryExt "")
|
37 |
+
else()
|
38 |
+
set(RuntimeLibraryExt "DLL")
|
39 |
+
endif()
|
40 |
+
|
41 |
+
vcpkg_install_msbuild(
|
42 |
+
USE_VCPKG_INTEGRATION
|
43 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
44 |
+
PROJECT_SUBPATH SMP/libgpg-error.sln
|
45 |
+
PLATFORM ${TRIPLET_SYSTEM_ARCH}
|
46 |
+
LICENSE_SUBPATH COPYING.LIB
|
47 |
+
RELEASE_CONFIGURATION ${CONFIGURATION_RELEASE}
|
48 |
+
DEBUG_CONFIGURATION ${CONFIGURATION_DEBUG}
|
49 |
+
SKIP_CLEAN
|
50 |
+
OPTIONS_DEBUG "/p:RuntimeLibrary=MultiThreadedDebug${RuntimeLibraryExt}"
|
51 |
+
OPTIONS_RELEASE "/p:RuntimeLibrary=MultiThreaded${RuntimeLibraryExt}"
|
52 |
+
)
|
53 |
+
|
54 |
+
get_filename_component(SOURCE_PATH_SUFFIX "${SOURCE_PATH}" NAME)
|
55 |
+
file(RENAME "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/${SOURCE_PATH_SUFFIX}/msvc/include" "${CURRENT_PACKAGES_DIR}/include")
|
56 |
+
|
57 |
+
set(exec_prefix "\${prefix}")
|
58 |
+
set(libdir "\${prefix}/lib")
|
59 |
+
set(includedir "\${prefix}/include")
|
60 |
+
set(GPG_ERROR_CONFIG_LIBS "-L\${libdir} -lgpg-error")
|
61 |
+
configure_file("${SOURCE_PATH}/src/gpg-error.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gpg-error.pc" @ONLY)
|
62 |
+
|
63 |
+
set(exec_prefix "\${prefix}")
|
64 |
+
set(libdir "\${prefix}/lib")
|
65 |
+
set(includedir "\${prefix}/../include")
|
66 |
+
set(GPG_ERROR_CONFIG_LIBS "-L\${libdir} -lgpg-errord")
|
67 |
+
configure_file("${SOURCE_PATH}/src/gpg-error.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gpg-error.pc" @ONLY)
|
68 |
+
vcpkg_fixup_pkgconfig()
|
69 |
+
vcpkg_copy_pdbs()
|
70 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/COPYING.LIB" "${CURRENT_PACKAGES_DIR}/debug/lib/COPYING.LIB")
|
71 |
+
else()
|
72 |
+
vcpkg_from_github(
|
73 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
74 |
+
REPO gpg/libgpg-error
|
75 |
+
REF libgpg-error-${PACKAGE_VERSION}
|
76 |
+
SHA512 f5a1c1874ac1dee36ee01504f1ab0146506aa7af810879e192eac17a31ec81945fe850953ea1c57188590c023ce3ff195c7cab62af486b731fa1534546d66ba3
|
77 |
+
HEAD_REF master
|
78 |
+
PATCHES
|
79 |
+
add_cflags_to_tools.patch
|
80 |
+
)
|
81 |
+
|
82 |
+
vcpkg_configure_make(
|
83 |
+
AUTOCONFIG
|
84 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
85 |
+
OPTIONS
|
86 |
+
--disable-tests
|
87 |
+
--disable-doc
|
88 |
+
--disable-silent-rules
|
89 |
+
)
|
90 |
+
|
91 |
+
vcpkg_install_make()
|
92 |
+
vcpkg_fixup_pkgconfig()
|
93 |
+
vcpkg_copy_pdbs()
|
94 |
+
|
95 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
96 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libgpg-error/bin/gpg-error-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../..")
|
97 |
+
endif()
|
98 |
+
|
99 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
100 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libgpg-error/debug/bin/gpg-error-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../..")
|
101 |
+
endif()
|
102 |
+
|
103 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/locale" "${CURRENT_PACKAGES_DIR}/debug/share")
|
104 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
105 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/runtime.patch
ADDED
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/SMP/smp.props b/SMP/smp.props
|
2 |
+
index fc70bd8..d515523 100644
|
3 |
+
--- a/SMP/smp.props
|
4 |
+
+++ b/SMP/smp.props
|
5 |
+
@@ -86,7 +86,7 @@
|
6 |
+
</ImportGroup>
|
7 |
+
<PropertyGroup Label="UserMacros" />
|
8 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
9 |
+
- <TargetName>lib$(RootNamespace)d</TargetName>
|
10 |
+
+ <TargetName>$(RootNamespace)d</TargetName>
|
11 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
12 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
13 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
14 |
+
@@ -94,7 +94,7 @@
|
15 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
16 |
+
</PropertyGroup>
|
17 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
18 |
+
- <TargetName>lib$(RootNamespace)d</TargetName>
|
19 |
+
+ <TargetName>$(RootNamespace)d</TargetName>
|
20 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
21 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
22 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
23 |
+
@@ -118,7 +118,7 @@
|
24 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
25 |
+
</PropertyGroup>
|
26 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
27 |
+
- <TargetName>lib$(RootNamespace)</TargetName>
|
28 |
+
+ <TargetName>$(RootNamespace)</TargetName>
|
29 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
30 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
31 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
32 |
+
@@ -126,7 +126,7 @@
|
33 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
34 |
+
</PropertyGroup>
|
35 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
36 |
+
- <TargetName>lib$(RootNamespace)</TargetName>
|
37 |
+
+ <TargetName>$(RootNamespace)</TargetName>
|
38 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
39 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
40 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
41 |
+
@@ -159,6 +159,7 @@
|
42 |
+
<ProgramDataBaseFileName>$(OutDir)\lib\x86\$(TargetName).pdb</ProgramDataBaseFileName>
|
43 |
+
<MinimalRebuild>false</MinimalRebuild>
|
44 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
45 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
46 |
+
</ClCompile>
|
47 |
+
<Lib>
|
48 |
+
<OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
|
49 |
+
@@ -177,6 +178,7 @@
|
50 |
+
<ProgramDataBaseFileName>$(OutDir)\lib\x64\$(TargetName).pdb</ProgramDataBaseFileName>
|
51 |
+
<MinimalRebuild>false</MinimalRebuild>
|
52 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
53 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
54 |
+
</ClCompile>
|
55 |
+
<Lib>
|
56 |
+
<OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
|
57 |
+
@@ -196,6 +198,7 @@
|
58 |
+
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
59 |
+
<MinimalRebuild>false</MinimalRebuild>
|
60 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
61 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
62 |
+
</ClCompile>
|
63 |
+
<Link>
|
64 |
+
<OutputFile>$(OutDir)\bin\x86\$(TargetName)$(TargetExt)</OutputFile>
|
65 |
+
@@ -219,6 +222,7 @@
|
66 |
+
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
67 |
+
<MinimalRebuild>false</MinimalRebuild>
|
68 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
69 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
70 |
+
</ClCompile>
|
71 |
+
<Link>
|
72 |
+
<OutputFile>$(OutDir)\bin\x64\$(TargetName)$(TargetExt)</OutputFile>
|
73 |
+
@@ -248,6 +252,7 @@
|
74 |
+
<InterproceduralOptimization>SingleFile</InterproceduralOptimization>
|
75 |
+
<ProgramDataBaseFileName>$(OutDir)\lib\x86\$(TargetName).pdb</ProgramDataBaseFileName>
|
76 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
77 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
78 |
+
</ClCompile>
|
79 |
+
<Lib>
|
80 |
+
<OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
|
81 |
+
@@ -273,6 +278,7 @@
|
82 |
+
<InterproceduralOptimization>SingleFile</InterproceduralOptimization>
|
83 |
+
<ProgramDataBaseFileName>$(OutDir)\lib\x64\$(TargetName).pdb</ProgramDataBaseFileName>
|
84 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
85 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
86 |
+
</ClCompile>
|
87 |
+
<Lib>
|
88 |
+
<OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
|
89 |
+
@@ -297,6 +303,7 @@
|
90 |
+
<AdditionalIncludeDirectories>$(OutDir)\include;$(ProjectDir)\..\..\prebuilt\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
91 |
+
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
92 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
93 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
94 |
+
</ClCompile>
|
95 |
+
<Link>
|
96 |
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
97 |
+
@@ -328,6 +335,7 @@
|
98 |
+
<AdditionalIncludeDirectories>$(OutDir)\include;$(ProjectDir)\..\..\prebuilt\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
99 |
+
<ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
100 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
101 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
102 |
+
</ClCompile>
|
103 |
+
<Link>
|
104 |
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
105 |
+
diff --git a/SMP/smp_winrt.props b/SMP/smp_winrt.props
|
106 |
+
index cb5f090..f7d8e23 100644
|
107 |
+
--- a/SMP/smp_winrt.props
|
108 |
+
+++ b/SMP/smp_winrt.props
|
109 |
+
@@ -97,7 +97,7 @@
|
110 |
+
</ImportGroup>
|
111 |
+
<PropertyGroup Label="UserMacros" />
|
112 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|Win32'">
|
113 |
+
- <TargetName>lib$(RootNamespace)d_winrt</TargetName>
|
114 |
+
+ <TargetName>$(RootNamespace)d</TargetName>
|
115 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
116 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
117 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
118 |
+
@@ -105,7 +105,7 @@
|
119 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
120 |
+
</PropertyGroup>
|
121 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugWinRT|x64'">
|
122 |
+
- <TargetName>lib$(RootNamespace)d_winrt</TargetName>
|
123 |
+
+ <TargetName>$(RootNamespace)d</TargetName>
|
124 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
125 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
126 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
127 |
+
@@ -113,7 +113,7 @@
|
128 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
129 |
+
</PropertyGroup>
|
130 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|Win32'">
|
131 |
+
- <TargetName>$(RootNamespace)d_winrt</TargetName>
|
132 |
+
+ <TargetName>$(RootNamespace)d</TargetName>
|
133 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
134 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
135 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
136 |
+
@@ -121,7 +121,7 @@
|
137 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
138 |
+
</PropertyGroup>
|
139 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugDLLWinRT|x64'">
|
140 |
+
- <TargetName>$(RootNamespace)d_winrt</TargetName>
|
141 |
+
+ <TargetName>$(RootNamespace)d</TargetName>
|
142 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
143 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
144 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
145 |
+
@@ -129,7 +129,7 @@
|
146 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
147 |
+
</PropertyGroup>
|
148 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|Win32'">
|
149 |
+
- <TargetName>lib$(RootNamespace)_winrt</TargetName>
|
150 |
+
+ <TargetName>$(RootNamespace)</TargetName>
|
151 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
152 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
153 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
154 |
+
@@ -137,7 +137,7 @@
|
155 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
156 |
+
</PropertyGroup>
|
157 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseWinRT|x64'">
|
158 |
+
- <TargetName>lib$(RootNamespace)_winrt</TargetName>
|
159 |
+
+ <TargetName>$(RootNamespace)</TargetName>
|
160 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
161 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
162 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
163 |
+
@@ -145,7 +145,7 @@
|
164 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
165 |
+
</PropertyGroup>
|
166 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|Win32'">
|
167 |
+
- <TargetName>$(RootNamespace)_winrt</TargetName>
|
168 |
+
+ <TargetName>$(RootNamespace)</TargetName>
|
169 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
170 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
171 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
172 |
+
@@ -153,7 +153,7 @@
|
173 |
+
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
|
174 |
+
</PropertyGroup>
|
175 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLLWinRT|x64'">
|
176 |
+
- <TargetName>$(RootNamespace)_winrt</TargetName>
|
177 |
+
+ <TargetName>$(RootNamespace)</TargetName>
|
178 |
+
<OutDir>$(ProjectDir)..\msvc\</OutDir>
|
179 |
+
<IntDir>$(ProjectDir)obj\$(Configuration)\$(Platform)\$(ProjectName)\</IntDir>
|
180 |
+
<GeneratedFilesDir>$(ProjectDir)obj\Generated</GeneratedFilesDir>
|
181 |
+
@@ -172,6 +172,7 @@
|
182 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
183 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
184 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
185 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
186 |
+
</ClCompile>
|
187 |
+
<Lib>
|
188 |
+
<OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
|
189 |
+
@@ -192,6 +193,7 @@
|
190 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
191 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
192 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
193 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
194 |
+
</ClCompile>
|
195 |
+
<Lib>
|
196 |
+
<OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
|
197 |
+
@@ -213,6 +215,7 @@
|
198 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
199 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
200 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
201 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
202 |
+
</ClCompile>
|
203 |
+
<Link>
|
204 |
+
<OutputFile>$(OutDir)\bin\x86\$(TargetName)$(TargetExt)</OutputFile>
|
205 |
+
@@ -240,6 +243,7 @@
|
206 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
207 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
208 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
209 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
210 |
+
</ClCompile>
|
211 |
+
<Link>
|
212 |
+
<OutputFile>$(OutDir)\bin\x64\$(TargetName)$(TargetExt)</OutputFile>
|
213 |
+
@@ -273,6 +277,7 @@
|
214 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
215 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
216 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
217 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
218 |
+
</ClCompile>
|
219 |
+
<Lib>
|
220 |
+
<OutputFile>$(OutDir)\lib\x86\$(TargetName)$(TargetExt)</OutputFile>
|
221 |
+
@@ -301,6 +306,7 @@
|
222 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
223 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
224 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
225 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
226 |
+
</ClCompile>
|
227 |
+
<Lib>
|
228 |
+
<OutputFile>$(OutDir)\lib\x64\$(TargetName)$(TargetExt)</OutputFile>
|
229 |
+
@@ -327,6 +333,7 @@
|
230 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
231 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
232 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
233 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
234 |
+
</ClCompile>
|
235 |
+
<Link>
|
236 |
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
237 |
+
@@ -362,6 +369,7 @@
|
238 |
+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
239 |
+
<CompileAsWinRT>false</CompileAsWinRT>
|
240 |
+
<TreatSpecificWarningsAsErrors>4113;%(TreatSpecificWarningsAsErrors)</TreatSpecificWarningsAsErrors>
|
241 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
242 |
+
</ClCompile>
|
243 |
+
<Link>
|
244 |
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpg-error/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgpg-error",
|
3 |
+
"version": "1.42",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A common dependency of all GnuPG components",
|
6 |
+
"homepage": "https://gnupg.org/software/libgpg-error/index.html",
|
7 |
+
"supports": "!(windows & (arm | arm64))"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpiod/portfile.cmake
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_git(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
URL git://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
|
4 |
+
REF dfc5d361e6748d5f48b706e5c4ac949d133b5470 # v1.6.3
|
5 |
+
PATCHES
|
6 |
+
)
|
7 |
+
|
8 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
9 |
+
list(APPEND OPTIONS --enable-shared=yes)
|
10 |
+
list(APPEND OPTIONS --enable-static=no)
|
11 |
+
else()
|
12 |
+
list(APPEND OPTIONS --enable-shared=no)
|
13 |
+
list(APPEND OPTIONS --enable-static=yes)
|
14 |
+
endif()
|
15 |
+
|
16 |
+
vcpkg_cmake_get_vars(cmake_vars_file)
|
17 |
+
include("${cmake_vars_file}")
|
18 |
+
|
19 |
+
if (VCPKG_DETECTED_CMAKE_CROSSCOMPILING STREQUAL "TRUE")
|
20 |
+
list(APPEND OPTIONS CC=${VCPKG_DETECTED_CMAKE_C_COMPILER})
|
21 |
+
if (VCPKG_TARGET_IS_LINUX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
22 |
+
list(APPEND OPTIONS ac_cv_func_malloc_0_nonnull=yes)
|
23 |
+
list(APPEND OPTIONS ac_cv_func_realloc_0_nonnull=yes)
|
24 |
+
endif()
|
25 |
+
endif()
|
26 |
+
|
27 |
+
vcpkg_configure_make(
|
28 |
+
AUTOCONFIG
|
29 |
+
SOURCE_PATH ${SOURCE_PATH}
|
30 |
+
OPTIONS
|
31 |
+
${OPTIONS}
|
32 |
+
--enable-tools=no
|
33 |
+
--enable-tests=no
|
34 |
+
--enable-bindings-cxx=no
|
35 |
+
--enable-bindings-python=no
|
36 |
+
)
|
37 |
+
|
38 |
+
vcpkg_install_make()
|
39 |
+
vcpkg_fixup_pkgconfig()
|
40 |
+
vcpkg_copy_pdbs()
|
41 |
+
|
42 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpiod/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgpiod",
|
3 |
+
"version": "1.6.3",
|
4 |
+
"description": "C library and tools for interacting with the linux GPIO character device",
|
5 |
+
"homepage": "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git",
|
6 |
+
"license": "LGPL-2.1-or-later",
|
7 |
+
"supports": "linux & (x64 | arm64)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpod/configure.ac.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index a52ac3a78..ac5cf03f4 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -42,7 +42,7 @@ AC_CHECK_FUNCS([localtime_r])
|
6 |
+
AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[#include <time.h>])
|
7 |
+
dnl sqlite3 is needed for newer ipod models (nano5g), and libplist is needed
|
8 |
+
dnl by libgpod sqlite code
|
9 |
+
-PKG_CHECK_MODULES(LIBGPOD, glib-2.0 >= 2.8.0 gobject-2.0 sqlite3 libplist >= 1.0)
|
10 |
+
+PKG_CHECK_MODULES(LIBGPOD, glib-2.0 >= 2.8.0 gmodule-2.0 gobject-2.0 sqlite3 libplist >= 1.0)
|
11 |
+
|
12 |
+
dnl **************************************************
|
13 |
+
dnl we've copied gchecksum from glib 2.16. Only use the
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libgpod/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO fadingred/libgpod
|
4 |
+
REF 4a8a33ef4bc58eee1baca6793618365f75a5c3fa
|
5 |
+
SHA512 b7a120c1106c1205e8de2808de5ac4ff1cf189943017939a5ea4eded4e1ceef44557587e69a8591cc5249f8c8dbf0cbdcce1dd309d33a0e9207b0560abe3ae39
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES configure.ac.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_execute_required_process(
|
11 |
+
COMMAND intltoolize --force --copy --automake
|
12 |
+
WORKING_DIRECTORY "${SOURCE_PATH}"
|
13 |
+
LOGNAME intltoolize-${TARGET_TRIPLET}
|
14 |
+
)
|
15 |
+
vcpkg_execute_required_process(
|
16 |
+
COMMAND gtkdocize --copy
|
17 |
+
WORKING_DIRECTORY "${SOURCE_PATH}"
|
18 |
+
LOGNAME gtkdocize-${TARGET_TRIPLET}
|
19 |
+
)
|
20 |
+
vcpkg_configure_make(
|
21 |
+
SOURCE_PATH ${SOURCE_PATH}
|
22 |
+
AUTOCONFIG
|
23 |
+
OPTIONS
|
24 |
+
--without-hal
|
25 |
+
--disable-gdk-pixbuf
|
26 |
+
--disable-pygobject
|
27 |
+
--disable-more-warnings
|
28 |
+
--disable-libxml
|
29 |
+
--disable-gtk-doc-html
|
30 |
+
)
|
31 |
+
vcpkg_install_make()
|
32 |
+
vcpkg_fixup_pkgconfig()
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
35 |
+
|
36 |
+
# Handle copyright
|
37 |
+
file(COPY ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
38 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|