Spaces:
Sleeping
Sleeping
ac679290f788fd234d8a00e2e4bcc06939367a537dd3ea1ed746249542112036
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/gtk_dont_assume_x11.patch +70 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/macos_fix.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/pkgconfig.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/portfile.cmake +92 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/undefined_reference.diff +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/vcpkg.json +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/LibCborConfig.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/001-cmake-install.patch +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/002-lib-suffix-option.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/portfile.cmake +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/001-fix-static-build.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/CMakeLists.txt +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/portfile.cmake +54 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/CMakeLists.txt +139 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/config.h.in +99 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/portfile.cmake +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/fix-install-paths.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/portfile.cmake +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/fix-build-error.patch +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/CMakeLists.txt +138 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/portfile.cmake +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/0001-fix-for-vcpkg.patch +75 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/portfile.cmake +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/uwp-warnings.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/vcpkg.json +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/CMakeLists.txt +97 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/config.h.cmake +87 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/fix-exports.patch +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/usage +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/vcpkg.json +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/vcpkg.json +10 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/gtk_dont_assume_x11.patch
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From c0620e432650e81062c1967cc669829dbd29b310 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Michael Meeks <[email protected]>
|
3 |
+
Date: Fri, 9 Nov 2012 16:16:40 +0000
|
4 |
+
Subject: gtk: Don't assume all GdkDisplays are GdkX11Displays:
|
5 |
+
broadway/wayland
|
6 |
+
|
7 |
+
---
|
8 |
+
src/canberra-gtk-module.c | 15 +++++++++++++++
|
9 |
+
src/canberra-gtk.c | 5 +++++
|
10 |
+
2 files changed, 20 insertions(+)
|
11 |
+
|
12 |
+
diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.c
|
13 |
+
index 67791f0..c1532ab 100644
|
14 |
+
--- a/src/canberra-gtk-module.c
|
15 |
+
+++ b/src/canberra-gtk-module.c
|
16 |
+
@@ -307,6 +307,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) {
|
17 |
+
guchar *data = NULL;
|
18 |
+
gint ret = -1;
|
19 |
+
|
20 |
+
+#ifdef GDK_IS_X11_DISPLAY
|
21 |
+
+ if (!GDK_IS_X11_DISPLAY(d))
|
22 |
+
+ return 0;
|
23 |
+
+#endif
|
24 |
+
+
|
25 |
+
if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w),
|
26 |
+
gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"),
|
27 |
+
0, G_MAXLONG, False, XA_CARDINAL, &type_return,
|
28 |
+
@@ -335,6 +340,11 @@ static gint display_get_desktop(GdkDisplay *d) {
|
29 |
+
guchar *data = NULL;
|
30 |
+
gint ret = -1;
|
31 |
+
|
32 |
+
+#ifdef GDK_IS_X11_DISPLAY
|
33 |
+
+ if (!GDK_IS_X11_DISPLAY(d))
|
34 |
+
+ return 0;
|
35 |
+
+#endif
|
36 |
+
+
|
37 |
+
if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), DefaultRootWindow(GDK_DISPLAY_XDISPLAY(d)),
|
38 |
+
gdk_x11_get_xatom_by_name_for_display(d, "_NET_CURRENT_DESKTOP"),
|
39 |
+
0, G_MAXLONG, False, XA_CARDINAL, &type_return,
|
40 |
+
@@ -365,6 +375,11 @@ static gboolean window_is_xembed(GdkDisplay *d, GdkWindow *w) {
|
41 |
+
gboolean ret = FALSE;
|
42 |
+
Atom xembed;
|
43 |
+
|
44 |
+
+#ifdef GDK_IS_X11_DISPLAY
|
45 |
+
+ if (!GDK_IS_X11_DISPLAY(d))
|
46 |
+
+ return FALSE;
|
47 |
+
+#endif
|
48 |
+
+
|
49 |
+
/* Gnome Panel applets are XEMBED windows. We need to make sure we
|
50 |
+
* ignore them */
|
51 |
+
|
52 |
+
diff --git a/src/canberra-gtk.c b/src/canberra-gtk.c
|
53 |
+
index 34446f5..08cb668 100644
|
54 |
+
--- a/src/canberra-gtk.c
|
55 |
+
+++ b/src/canberra-gtk.c
|
56 |
+
@@ -185,6 +185,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) {
|
57 |
+
guchar *data = NULL;
|
58 |
+
gint ret = -1;
|
59 |
+
|
60 |
+
+#ifdef GDK_IS_X11_DISPLAY
|
61 |
+
+ if (!GDK_IS_X11_DISPLAY(d))
|
62 |
+
+ return 0;
|
63 |
+
+#endif
|
64 |
+
+
|
65 |
+
if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w),
|
66 |
+
gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"),
|
67 |
+
0, G_MAXLONG, False, XA_CARDINAL, &type_return,
|
68 |
+
--
|
69 |
+
cgit v0.12
|
70 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/macos_fix.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index f68602d..1451747 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -115,8 +115,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
|
6 |
+
AC_SUBST([WARNINGFLAGS], $with_cflags)
|
7 |
+
|
8 |
+
CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
|
9 |
+
- -Wl,--as-needed \
|
10 |
+
- -Wl,--gc-sections])
|
11 |
+
+])
|
12 |
+
AC_SUBST([GCLDFLAGS], $with_ldflags)
|
13 |
+
|
14 |
+
#### libtool stuff ####
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/pkgconfig.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libcanberra.pc.in b/libcanberra.pc.in
|
2 |
+
index 0a5c7a1..91a9e39 100644
|
3 |
+
--- a/libcanberra.pc.in
|
4 |
+
+++ b/libcanberra.pc.in
|
5 |
+
@@ -7,5 +7,7 @@ Name: libcanberra
|
6 |
+
Description: Event Sound API
|
7 |
+
Version: @PACKAGE_VERSION@
|
8 |
+
Libs: -L${libdir} -lcanberra @PTHREAD_LIBS@
|
9 |
+
+Libs.private: @LIBS_PRIVATE@
|
10 |
+
Cflags: -D_REENTRANT -I${includedir}
|
11 |
+
+Cflags.private: @CFLAGS_PRIVATE@
|
12 |
+
Requires:
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/portfile.cmake
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VERSION 0.30)
|
2 |
+
set(PATCHES
|
3 |
+
pkgconfig.patch
|
4 |
+
undefined_reference.diff # https://sources.debian.org/patches/libcanberra/0.30-7/
|
5 |
+
gtk_dont_assume_x11.patch # likewise
|
6 |
+
03_onlyshowin_unity.patch # likewise
|
7 |
+
)
|
8 |
+
|
9 |
+
if(VCPKG_TARGET_IS_OSX)
|
10 |
+
list(APPEND PATCHES macos_fix.patch)
|
11 |
+
endif()
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_IS_OSX)
|
14 |
+
message("${PORT} currently requires the following libraries from the system package manager:\n automake\n libtool\n\nThey can be installed with brew install automake libtool")
|
15 |
+
else()
|
16 |
+
message("${PORT} currently requires the following libraries from the system package manager:\n automake\n libtool\n\nThey can be installed with apt-get install automake libtool")
|
17 |
+
endif()
|
18 |
+
|
19 |
+
vcpkg_download_distfile(ARCHIVE
|
20 |
+
URLS "http://0pointer.de/lennart/projects/${PORT}/${PORT}-${VERSION}.tar.xz"
|
21 |
+
FILENAME "${PORT}-${VERSION}.tar.xz"
|
22 |
+
SHA512 f7543582122256826cd01d0f5673e1e58d979941a93906400182305463d6166855cb51f35c56d807a56dc20b7a64f7ce4391368d24990c1b70782a7d0b4429c2
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_extract_source_archive_ex(
|
26 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
27 |
+
ARCHIVE "${ARCHIVE}"
|
28 |
+
REF ${VERSION}
|
29 |
+
PATCHES ${PATCHES}
|
30 |
+
)
|
31 |
+
|
32 |
+
set(EXTRA_CPPFLAGS)
|
33 |
+
set(EXTRA_LDFLAGS)
|
34 |
+
|
35 |
+
#libltdl fixes
|
36 |
+
if(VCPKG_TARGET_IS_OSX)
|
37 |
+
execute_process(
|
38 |
+
COMMAND brew --prefix libtool
|
39 |
+
OUTPUT_VARIABLE BREW_LIBTOOL_PATH
|
40 |
+
)
|
41 |
+
string(STRIP ${BREW_LIBTOOL_PATH} BREW_LIBTOOL_PATH)
|
42 |
+
|
43 |
+
set(LIBS_PRIVATE "-L${BREW_LIBTOOL_PATH}/lib -lltdl")
|
44 |
+
set(CFLAGS_PRIVATE "-I${BREW_LIBTOOL_PATH}/include")
|
45 |
+
set(EXTRA_LDFLAGS "LDFLAGS=${LIBS_PRIVATE}")
|
46 |
+
set(EXTRA_CPPFLAGS "CPPFLAGS=${CFLAGS_PRIVATE}")
|
47 |
+
else()
|
48 |
+
set(LIBS_PRIVATE "-lltdl")
|
49 |
+
endif()
|
50 |
+
|
51 |
+
if (NOT "alsa" IN_LIST FEATURES)
|
52 |
+
list(APPEND FEATURES_BACKENDS "--disable-alsa")
|
53 |
+
endif()
|
54 |
+
if (NOT "gstreamer" IN_LIST FEATURES)
|
55 |
+
list(APPEND FEATURES_BACKENDS "--disable-gstreamer")
|
56 |
+
endif()
|
57 |
+
if (NOT "null" IN_LIST FEATURES)
|
58 |
+
list(APPEND FEATURES_BACKENDS "--disable-null")
|
59 |
+
endif()
|
60 |
+
if (NOT "oss" IN_LIST FEATURES)
|
61 |
+
list(APPEND FEATURES_BACKENDS "--disable-oss")
|
62 |
+
endif()
|
63 |
+
if (NOT "pulse" IN_LIST FEATURES)
|
64 |
+
list(APPEND FEATURES_BACKENDS "--disable-pulse")
|
65 |
+
endif()
|
66 |
+
|
67 |
+
|
68 |
+
set(ENV{GTKDOCIZE} true)
|
69 |
+
vcpkg_configure_make(
|
70 |
+
AUTOCONFIG
|
71 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
72 |
+
OPTIONS
|
73 |
+
--disable-gtk-doc
|
74 |
+
--disable-lynx
|
75 |
+
--disable-silent-rules
|
76 |
+
--disable-tdb
|
77 |
+
${FEATURES_BACKENDS}
|
78 |
+
${EXTRA_CPPFLAGS}
|
79 |
+
${EXTRA_LDFLAGS}
|
80 |
+
)
|
81 |
+
|
82 |
+
vcpkg_install_make()
|
83 |
+
|
84 |
+
configure_file("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${PORT}.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${PORT}.pc" @ONLY)
|
85 |
+
configure_file("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${PORT}.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${PORT}.pc" @ONLY)
|
86 |
+
|
87 |
+
vcpkg_fixup_pkgconfig()
|
88 |
+
|
89 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
90 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools") # empty folder
|
91 |
+
|
92 |
+
file(INSTALL "${SOURCE_PATH}/LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/undefined_reference.diff
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Description: Fix FTBFS with binutils-gold
|
2 |
+
Author: Bart Martens <[email protected]>
|
3 |
+
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555081
|
4 |
+
|
5 |
+
--- a/src/Makefile.am
|
6 |
+
+++ b/src/Makefile.am
|
7 |
+
@@ -341,6 +341,7 @@ libcanberra_gtk3_la_CFLAGS = \
|
8 |
+
$(GTK3_CFLAGS)
|
9 |
+
libcanberra_gtk3_la_LIBADD = \
|
10 |
+
$(GTK3_LIBS) \
|
11 |
+
+ -lX11 \
|
12 |
+
libcanberra.la
|
13 |
+
libcanberra_gtk3_la_LDFLAGS = \
|
14 |
+
-export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)
|
15 |
+
@@ -351,6 +352,8 @@ libcanberra_gtk3_module_la_CFLAGS = \
|
16 |
+
$(GTK3_CFLAGS)
|
17 |
+
libcanberra_gtk3_module_la_LIBADD = \
|
18 |
+
$(GTK3_LIBS) \
|
19 |
+
+ -lX11 \
|
20 |
+
+ -lgmodule-2.0 \
|
21 |
+
libcanberra.la \
|
22 |
+
libcanberra-gtk3.la
|
23 |
+
libcanberra_gtk3_module_la_LDFLAGS = \
|
24 |
+
@@ -379,6 +382,7 @@ libcanberra_gtk_la_CFLAGS = \
|
25 |
+
$(GTK_CFLAGS)
|
26 |
+
libcanberra_gtk_la_LIBADD = \
|
27 |
+
$(GTK_LIBS) \
|
28 |
+
+ -lX11 \
|
29 |
+
libcanberra.la
|
30 |
+
libcanberra_gtk_la_LDFLAGS = \
|
31 |
+
-export-dynamic -version-info $(LIBCANBERRA_GTK_VERSION_INFO)
|
32 |
+
@@ -389,6 +393,8 @@ libcanberra_gtk_module_la_CFLAGS = \
|
33 |
+
$(GTK_CFLAGS)
|
34 |
+
libcanberra_gtk_module_la_LIBADD = \
|
35 |
+
$(GTK_LIBS) \
|
36 |
+
+ -lX11 \
|
37 |
+
+ -lgmodule-2.0 \
|
38 |
+
libcanberra.la \
|
39 |
+
libcanberra-gtk.la
|
40 |
+
libcanberra_gtk_module_la_LDFLAGS = \
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcanberra/vcpkg.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcanberra",
|
3 |
+
"version": "0.30",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "An implementation of the XDG Sound Theme and Name Specifications, for generating event sounds on free desktops",
|
6 |
+
"homepage": "http://0pointer.de/lennart/projects/libcanberra/",
|
7 |
+
"supports": "!(windows | uwp)",
|
8 |
+
"dependencies": [
|
9 |
+
"libvorbis"
|
10 |
+
],
|
11 |
+
"default-features": [
|
12 |
+
"defaults"
|
13 |
+
],
|
14 |
+
"features": {
|
15 |
+
"alsa": {
|
16 |
+
"description": "Enable optional ALSA support"
|
17 |
+
},
|
18 |
+
"defaults": {
|
19 |
+
"description": "Default features",
|
20 |
+
"dependencies": [
|
21 |
+
{
|
22 |
+
"name": "libcanberra",
|
23 |
+
"features": [
|
24 |
+
"null"
|
25 |
+
],
|
26 |
+
"platform": "osx"
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"name": "libcanberra",
|
30 |
+
"features": [
|
31 |
+
"alsa"
|
32 |
+
],
|
33 |
+
"platform": "linux"
|
34 |
+
}
|
35 |
+
]
|
36 |
+
},
|
37 |
+
"gstreamer": {
|
38 |
+
"description": "Enable optional GStreamer support",
|
39 |
+
"dependencies": [
|
40 |
+
"gstreamer"
|
41 |
+
]
|
42 |
+
},
|
43 |
+
"null": {
|
44 |
+
"description": "Enable optional null output"
|
45 |
+
},
|
46 |
+
"oss": {
|
47 |
+
"description": "Enable optional OSS support"
|
48 |
+
},
|
49 |
+
"pulse": {
|
50 |
+
"description": "Enable optional PulseAudio support"
|
51 |
+
}
|
52 |
+
}
|
53 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/LibCborConfig.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Distributed under the OSI-approved BSD 3-Clause License.
|
2 |
+
|
3 |
+
find_path(LIBCBOR_INCLUDE_DIR NAMES cbor.h)
|
4 |
+
|
5 |
+
find_library(LIBCBOR_LIBRARY cbor)
|
6 |
+
|
7 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCBOR DEFAULT_MSG LIBCBOR_LIBRARY LIBCBOR_INCLUDE_DIR)
|
8 |
+
|
9 |
+
if(LIBCBOR_FOUND)
|
10 |
+
set(LIBCBOR_LIBRARIES ${LIBCBOR_LIBRARY})
|
11 |
+
endif()
|
12 |
+
|
13 |
+
mark_as_advanced(LIBCBOR_INCLUDE_DIR LIBCBOR_LIBRARY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO PJK/libcbor
|
4 |
+
REF v0.8.0
|
5 |
+
SHA512 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
OPTIONS
|
13 |
+
-DWITH_TESTS=OFF
|
14 |
+
-DWITH_EXAMPLES=OFF
|
15 |
+
-DVCPKG_VERBOSE=ON
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_build_cmake()
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
|
25 |
+
# Add Cmake Packagefile
|
26 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LibCborConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcbor/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcbor",
|
3 |
+
"version": "0.8.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format",
|
6 |
+
"homepage": "https://github.com/PJK/libcbor"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/001-cmake-install.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d97ee07..f8affbb 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -34,6 +34,10 @@ if(APPLE)
|
6 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_DARWIN_C_SOURCE")
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+if(MSVC)
|
10 |
+
+ add_definitions(-DCDS_BUILD_LIB)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
if(WITH_BOOST_ATOMIC)
|
14 |
+
if(TARGET boost::atomic)
|
15 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCDS_USE_BOOST_ATOMIC")
|
16 |
+
@@ -186,9 +190,13 @@ target_compile_options(${CDS_STATIC_LIBRARY} PUBLIC "${LIBCDS_PUBLIC_CXX_FLAGS}"
|
17 |
+
target_compile_options(${CDS_SHARED_LIBRARY} PRIVATE "${LIBCDS_PRIVATE_CXX_FLAGS}")
|
18 |
+
target_compile_options(${CDS_STATIC_LIBRARY} PRIVATE "${LIBCDS_PRIVATE_CXX_FLAGS}")
|
19 |
+
|
20 |
+
-install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT} NAMELINK_SKIP RUNTIME DESTINATION lib${LIB_SUFFIX})
|
21 |
+
-install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${HEADERS_COMPONENT} NAMELINK_ONLY)
|
22 |
+
-install(TARGETS ${CDS_STATIC_LIBRARY} EXPORT LibCDSConfig DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT})
|
23 |
+
+if (NOT DISABLE_INSTALL_SHARED)
|
24 |
+
+ install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT})
|
25 |
+
+ #install(TARGETS ${CDS_SHARED_LIBRARY} EXPORT LibCDSConfig RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib${LIB_SUFFIX} COMPONENT ${HEADERS_COMPONENT} NAMELINK_ONLY)
|
26 |
+
+endif()
|
27 |
+
+if (NOT DISABLE_INSTALL_STATIC)
|
28 |
+
+ install(TARGETS ${CDS_STATIC_LIBRARY} EXPORT LibCDSConfig DESTINATION lib${LIB_SUFFIX} COMPONENT ${LIBRARIES_COMPONENT})
|
29 |
+
+endif()
|
30 |
+
install(EXPORT LibCDSConfig FILE LibCDSConfig.cmake NAMESPACE LibCDS:: DESTINATION lib/cmake/LibCDS)
|
31 |
+
install(DIRECTORY ${PROJECT_SOURCE_DIR}/cds DESTINATION include COMPONENT ${HEADERS_COMPONENT})
|
32 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/002-lib-suffix-option.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index aa287ff8..20fe7b49 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -118,7 +118,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_C
|
6 |
+
|
7 |
+
if(CMAKE_TARGET_ARCHITECTURE STREQUAL "x86_64")
|
8 |
+
list(APPEND LIBCDS_PUBLIC_CXX_FLAGS "-mcx16")
|
9 |
+
- set(LIB_SUFFIX "64")
|
10 |
+
+ set(LIB_SUFFIX "64" CACHE STRING "")
|
11 |
+
|
12 |
+
# GCC-7: 128-bit atomics support is implemented via libatomic on amd64
|
13 |
+
# see https://gcc.gnu.org/ml/gcc/2017-01/msg00167.html
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO khizmax/libcds
|
4 |
+
REF v2.3.3
|
5 |
+
SHA512 95e67da4336d622d47bdf124d76827ca3e82e65ab5f725ccf58c2d7957960e7d17ee1ebb2126eed70f7a3ca1c97f840d9f59c1ae2eb80215d10abf70b215e510
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
001-cmake-install.patch
|
9 |
+
002-lib-suffix-option.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DISABLE_INSTALL_STATIC)
|
13 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DISABLE_INSTALL_SHARED)
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS
|
19 |
+
-DENABLE_UNIT_TEST=OFF
|
20 |
+
-DENABLE_STRESS_TEST=OFF
|
21 |
+
-DDISABLE_INSTALL_STATIC=${DISABLE_INSTALL_STATIC}
|
22 |
+
-DDISABLE_INSTALL_SHARED=${DISABLE_INSTALL_SHARED}
|
23 |
+
"-DLIB_SUFFIX="
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_install_cmake()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
29 |
+
|
30 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/LibCDS)
|
31 |
+
|
32 |
+
file(INSTALL
|
33 |
+
${SOURCE_PATH}/LICENSE
|
34 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcds RENAME copyright)
|
35 |
+
|
36 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcds/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcds",
|
3 |
+
"version-string": "2.3.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "a collection of concurrent containers that don't require external (manual) synchronization for shared access, and safe memory reclamation (SMR) algorithms like Hazard Pointer and user-space RCU that is used as an epoch-based SMR.",
|
6 |
+
"homepage": "https://github.com/khizmax/libcds",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-system",
|
9 |
+
"boost-thread"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/001-fix-static-build.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f79581f..4fc9457 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -56,6 +56,8 @@ if(MSVC)
|
6 |
+
# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/$<CONFIG>)
|
7 |
+
if(BUILD_SHARED_LIBS)
|
8 |
+
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
9 |
+
+ else()
|
10 |
+
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
11 |
+
endif()
|
12 |
+
else()
|
13 |
+
add_compile_options(-O2 -Wno-sign-compare -fno-omit-frame-pointer)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
2 |
+
set(BUILD_SHARED_LIBS ON)
|
3 |
+
else()
|
4 |
+
set(BUILD_SHARED_LIBS OFF)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_download_distfile(ARCHIVE
|
8 |
+
URLS "https://jugit.fz-juelich.de/mlz/libcerf/uploads/924b8d245ad3461107ec630734dfc781/libcerf-1.13.tgz"
|
9 |
+
FILENAME "libcerf-1.13.tgz"
|
10 |
+
SHA512 4df711d3e9fd00de99959c3253a9565d1dc2c41f75a5800ced9c52f89cbd13185fbdca3ad75de788fd16c044082738ab345b7fb6a8820ac588edafe1812944aa
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_extract_source_archive_ex(
|
14 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
15 |
+
ARCHIVE ${ARCHIVE}
|
16 |
+
PATCHES 001-fix-static-build.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_configure_cmake(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
PREFER_NINJA
|
22 |
+
OPTIONS
|
23 |
+
-DCERF_CPP=ON
|
24 |
+
-DLIB_MAN=OFF
|
25 |
+
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_cmake()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
31 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcerf RENAME copyright)
|
32 |
+
|
33 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcerf/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcerf",
|
3 |
+
"version-string": "1.13",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A self-contained numeric library that provides an efficient and accurate implementation of complex error functions, along with Dawson, Faddeeva, and Voigt functions.",
|
6 |
+
"homepage": "https://jugit.fz-juelich.de/mlz/libcerf"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/CMakeLists.txt
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5.1)
|
2 |
+
project(libconfig C CXX)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DYY_NO_UNISTD_H -DYY_USE_CONST)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
set(C_SOURCES
|
9 |
+
lib/grammar.c
|
10 |
+
lib/libconfig.c
|
11 |
+
lib/scanctx.c
|
12 |
+
lib/scanner.c
|
13 |
+
lib/strbuf.c
|
14 |
+
lib/strvec.c
|
15 |
+
lib/util.c
|
16 |
+
lib/wincompat.c
|
17 |
+
)
|
18 |
+
|
19 |
+
set(CPP_SOURCES
|
20 |
+
lib/libconfigcpp.cc
|
21 |
+
)
|
22 |
+
|
23 |
+
set(CMAKE_C_STANDARD 99)
|
24 |
+
|
25 |
+
include_directories(lib ${STDINT_H})
|
26 |
+
|
27 |
+
add_library(libconfig ${C_SOURCES})
|
28 |
+
add_library(libconfig++ ${CPP_SOURCES})
|
29 |
+
|
30 |
+
if(BUILD_SHARED_LIBS)
|
31 |
+
target_compile_definitions(libconfig PRIVATE -DLIBCONFIG_EXPORTS)
|
32 |
+
target_compile_definitions(libconfig++ PRIVATE -DLIBCONFIGXX_EXPORTS)
|
33 |
+
else()
|
34 |
+
target_compile_definitions(libconfig PUBLIC -DLIBCONFIG_STATIC)
|
35 |
+
target_compile_definitions(libconfig++ PUBLIC -DLIBCONFIGXX_STATIC)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
if (WIN32)
|
39 |
+
# Linux doesn't have shlwapi
|
40 |
+
target_link_libraries(libconfig shlwapi)
|
41 |
+
endif()
|
42 |
+
target_link_libraries(libconfig++ PRIVATE libconfig)
|
43 |
+
|
44 |
+
install(
|
45 |
+
TARGETS libconfig libconfig++
|
46 |
+
RUNTIME DESTINATION bin
|
47 |
+
LIBRARY DESTINATION lib
|
48 |
+
ARCHIVE DESTINATION lib
|
49 |
+
)
|
50 |
+
|
51 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
52 |
+
install(FILES lib/libconfig.h++ lib/libconfig.h DESTINATION include)
|
53 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/portfile.cmake
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO hyperrealm/libconfig
|
4 |
+
REF v1.7.3
|
5 |
+
SHA512 3749bf9eb29bab0f6b14f4fc759f0c419ed27a843842aaabed1ec1fbe0faa8c93322ff875ca1291d69cb28a39ece86d512aec42c2140d566c38c56dc616734f4
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
if (NOT VCPKG_USE_HEAD_VERSION)
|
10 |
+
message("If you would like to use cmake with the port, use `--head` option with vcpkg install.")
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
endif()
|
13 |
+
|
14 |
+
if (NOT VCPKG_USE_HEAD_VERSION)
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
19 |
+
)
|
20 |
+
else()
|
21 |
+
vcpkg_configure_cmake(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
23 |
+
PREFER_NINJA
|
24 |
+
OPTIONS
|
25 |
+
-DBUILD_EXAMPLES=OFF
|
26 |
+
-DBUILD_TESTS=OFF
|
27 |
+
)
|
28 |
+
endif()
|
29 |
+
|
30 |
+
vcpkg_install_cmake()
|
31 |
+
|
32 |
+
vcpkg_copy_pdbs()
|
33 |
+
|
34 |
+
if (VCPKG_USE_HEAD_VERSION)
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
36 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libconfig)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
foreach(FILE ${CURRENT_PACKAGES_DIR}/include/libconfig.h++ ${CURRENT_PACKAGES_DIR}/include/libconfig.h)
|
40 |
+
file(READ ${FILE} _contents)
|
41 |
+
string(REPLACE "defined(LIBCONFIGXX_EXPORTS)" "0" _contents "${_contents}")
|
42 |
+
string(REPLACE "defined(LIBCONFIG_EXPORTS)" "0" _contents "${_contents}")
|
43 |
+
|
44 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
45 |
+
string(REPLACE "defined(LIBCONFIGXX_STATIC)" "0" _contents "${_contents}")
|
46 |
+
string(REPLACE "defined(LIBCONFIG_STATIC)" "0" _contents "${_contents}")
|
47 |
+
else()
|
48 |
+
string(REPLACE "defined(LIBCONFIGXX_STATIC)" "1" _contents "${_contents}")
|
49 |
+
string(REPLACE "defined(LIBCONFIG_STATIC)" "1" _contents "${_contents}")
|
50 |
+
endif()
|
51 |
+
file(WRITE ${FILE} "${_contents}")
|
52 |
+
endforeach()
|
53 |
+
|
54 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfig/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libconfig",
|
3 |
+
"version-string": "1.7.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C/C++ library for processing configuration files",
|
6 |
+
"homepage": "https://github.com/hyperrealm/libconfig"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/CMakeLists.txt
ADDED
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
set(ac_init_line_re "AC_INIT\\(([^,]+), ([^,]+), ([^,]+), ([^)]+)\\)")
|
4 |
+
file(STRINGS
|
5 |
+
${CMAKE_CURRENT_LIST_DIR}/configure.ac
|
6 |
+
ac_init_line
|
7 |
+
REGEX ${ac_init_line_re}
|
8 |
+
)
|
9 |
+
|
10 |
+
string(REGEX REPLACE "${ac_init_line_re}" "\\1" PACKAGE_NAME ${ac_init_line})
|
11 |
+
string(REGEX REPLACE "${ac_init_line_re}" "\\2" PACKAGE_VERSION ${ac_init_line})
|
12 |
+
string(REGEX REPLACE "${ac_init_line_re}" "\\3" PACKAGE_BUGREPORT ${ac_init_line})
|
13 |
+
string(REGEX REPLACE "${ac_init_line_re}" "\\4" PACKAGE ${ac_init_line})
|
14 |
+
|
15 |
+
set(PACKAGE_TARNAME ${PACKAGE})
|
16 |
+
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
|
17 |
+
|
18 |
+
string(REGEX REPLACE "([0-9]+.[0-9]+.[0-9]+).*" "\\1" SEMANTIC_VERSION ${PACKAGE_VERSION})
|
19 |
+
|
20 |
+
project(libconfuse VERSION ${SEMANTIC_VERSION} LANGUAGES C)
|
21 |
+
|
22 |
+
include(CheckFunctionExists)
|
23 |
+
include(CheckIncludeFile)
|
24 |
+
include(GNUInstallDirs)
|
25 |
+
|
26 |
+
find_package(FLEX REQUIRED)
|
27 |
+
find_package(Gettext QUIET)
|
28 |
+
find_package(Intl QUIET)
|
29 |
+
|
30 |
+
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
|
31 |
+
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
|
32 |
+
|
33 |
+
if (GETTEXT_FOUND)
|
34 |
+
set(ENABLE_NLS 1)
|
35 |
+
endif ()
|
36 |
+
|
37 |
+
# libconfig.pc.in
|
38 |
+
set(prefix ${CMAKE_INSTALL_PREFIX})
|
39 |
+
set(exec_prefix ${prefix})
|
40 |
+
set(libdir ${prefix}/${CMAKE_INSTALL_LIBDIR})
|
41 |
+
set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
|
42 |
+
set(VERSION ${PROJECT_VERSION})
|
43 |
+
|
44 |
+
if (Intl_FOUND AND Intl_LIBRARIES)
|
45 |
+
set(LTLIBINTL ${Intl_LIBRARIES})
|
46 |
+
endif ()
|
47 |
+
|
48 |
+
configure_file(libconfuse.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libconfuse.pc @ONLY)
|
49 |
+
|
50 |
+
check_function_exists(dcgettext HAVE_DCGETTEXT)
|
51 |
+
check_function_exists(fmemopen HAVE_FMEMOPEN)
|
52 |
+
check_function_exists(funopen HAVE_FUNOPEN)
|
53 |
+
check_function_exists(gettext HAVE_GETTEXT)
|
54 |
+
check_function_exists(iconv HAVE_ICONV)
|
55 |
+
check_function_exists(strcasecmp HAVE_STRCASECMP)
|
56 |
+
check_function_exists(strdup HAVE_STRDUP)
|
57 |
+
check_function_exists(_strdup HAVE__STRDUP)
|
58 |
+
check_function_exists(strndup HAVE_STRNDUP)
|
59 |
+
check_function_exists(setenv HAVE_SETENV)
|
60 |
+
check_function_exists(unsetenv HAVE_UNSETENV)
|
61 |
+
check_function_exists(_putenv HAVE__PUTENV)
|
62 |
+
|
63 |
+
if (MSVC)
|
64 |
+
check_function_exists(_fileno HAVE__FILENO)
|
65 |
+
check_function_exists(_isatty HAVE__ISATTY)
|
66 |
+
check_function_exists(_stricmp HAVE_STRCASECMP)
|
67 |
+
endif ()
|
68 |
+
|
69 |
+
check_include_file(stdlib.h HAVE_STDLIB_H)
|
70 |
+
check_include_file(string.h HAVE_STRING_H)
|
71 |
+
|
72 |
+
check_include_file(strings.h HAVE_STRINGS_H)
|
73 |
+
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
|
74 |
+
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
75 |
+
check_include_file(unistd.h HAVE_UNISTD_H)
|
76 |
+
check_include_file(windows.h HAVE_WINDOWS_H)
|
77 |
+
|
78 |
+
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
79 |
+
|
80 |
+
flex_target(
|
81 |
+
CONFUSE
|
82 |
+
src/lexer.l
|
83 |
+
${CMAKE_CURRENT_BINARY_DIR}/lexer.c
|
84 |
+
COMPILE_FLAGS -Pcfg_yy
|
85 |
+
)
|
86 |
+
|
87 |
+
set(libconfuse_sources
|
88 |
+
src/confuse.c
|
89 |
+
${FLEX_CONFUSE_OUTPUTS}
|
90 |
+
)
|
91 |
+
|
92 |
+
if (NOT HAVE_FMEMOPEN)
|
93 |
+
list(APPEND libconfuse_sources src/fmemopen.c)
|
94 |
+
endif ()
|
95 |
+
|
96 |
+
add_library(libconfuse ${libconfuse_sources})
|
97 |
+
|
98 |
+
if (BUILD_SHARED_LIBS)
|
99 |
+
if (WIN32)
|
100 |
+
target_compile_definitions(libconfuse PRIVATE BUILDING_DLL)
|
101 |
+
endif ()
|
102 |
+
else ()
|
103 |
+
target_compile_definitions(libconfuse PUBLIC BUILDING_STATIC)
|
104 |
+
endif ()
|
105 |
+
|
106 |
+
string(COMPARE EQUAL "${CMAKE_C_COMPILER_ID}" "GNU" USING_GNUC)
|
107 |
+
|
108 |
+
target_compile_definitions(libconfuse
|
109 |
+
PUBLIC
|
110 |
+
$<BUILD_INTERFACE:HAVE_CONFIG_H>
|
111 |
+
PRIVATE
|
112 |
+
$<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
|
113 |
+
$<$<BOOL:${MSVC}>:_CRT_NONSTDC_NO_DEPRECATE>
|
114 |
+
$<$<BOOL:${MSVC}>:strcasecmp=_stricmp>
|
115 |
+
$<$<BOOL:${USING_GNUC}>:_GNU_SOURCE>
|
116 |
+
)
|
117 |
+
|
118 |
+
target_include_directories(libconfuse
|
119 |
+
PUBLIC
|
120 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>
|
121 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
122 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
123 |
+
)
|
124 |
+
|
125 |
+
set_target_properties(libconfuse PROPERTIES PUBLIC_HEADER src/confuse.h)
|
126 |
+
|
127 |
+
install(TARGETS libconfuse EXPORT unofficial-libconfuse-config)
|
128 |
+
|
129 |
+
install(
|
130 |
+
EXPORT unofficial-libconfuse-config
|
131 |
+
NAMESPACE unofficial::libconfuse::
|
132 |
+
DESTINATION share/unofficial-libconfuse
|
133 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
134 |
+
)
|
135 |
+
|
136 |
+
install(
|
137 |
+
FILES ${CMAKE_CURRENT_BINARY_DIR}/libconfuse.pc
|
138 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
|
139 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/config.h.in
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Define if translation of program messages to the user's native
|
2 |
+
language is requested. */
|
3 |
+
#cmakedefine ENABLE_NLS
|
4 |
+
|
5 |
+
/* Define if you have the <stdlib.h> header file. */
|
6 |
+
#cmakedefine HAVE_STDLIB_H
|
7 |
+
|
8 |
+
/* Define if you have the <string.h> header file. */
|
9 |
+
#cmakedefine HAVE_STRING_H
|
10 |
+
|
11 |
+
/* Define if you have the <strings.h> header file. */
|
12 |
+
#cmakedefine HAVE_STRINGS_H
|
13 |
+
|
14 |
+
/* Define if you have the <sys/stat.h> header file. */
|
15 |
+
#cmakedefine HAVE_SYS_STAT_H
|
16 |
+
|
17 |
+
/* Define if you have the <sys/types.h> header file. */
|
18 |
+
#cmakedefine HAVE_SYS_TYPES_H
|
19 |
+
|
20 |
+
/* Define if you have the <unistd.h> header file. */
|
21 |
+
#cmakedefine HAVE_UNISTD_H
|
22 |
+
|
23 |
+
/* Define if you have the <windows.h> header file. */
|
24 |
+
#cmakedefine HAVE_WINDOWS_H
|
25 |
+
|
26 |
+
/* Define if you have the ANSI C header files. */
|
27 |
+
#define STDC_HEADERS 1
|
28 |
+
|
29 |
+
/* Define if you have the `_fileno' function. */
|
30 |
+
#cmakedefine HAVE__FILENO
|
31 |
+
|
32 |
+
/* Define if you have the `_isatty' function. */
|
33 |
+
#cmakedefine HAVE__ISATTY
|
34 |
+
|
35 |
+
/* Define if the GNU dcgettext() function is already present or preinstalled. */
|
36 |
+
#cmakedefine HAVE_DCGETTEXT
|
37 |
+
|
38 |
+
/* Define if you have the `fmemopen' function. */
|
39 |
+
#cmakedefine HAVE_FMEMOPEN
|
40 |
+
|
41 |
+
/* Define if you have the `funopen' function. */
|
42 |
+
#cmakedefine HAVE_FUNOPEN
|
43 |
+
|
44 |
+
/* Define if the GNU gettext() function is already present or preinstalled. */
|
45 |
+
#cmakedefine HAVE_GETTEXT
|
46 |
+
|
47 |
+
/* Define if you have the iconv() function. */
|
48 |
+
#cmakedefine HAVE_ICONV
|
49 |
+
|
50 |
+
/* Define if you have the `strcasecmp' function. */
|
51 |
+
#cmakedefine HAVE_STRCASECMP
|
52 |
+
|
53 |
+
/* Define if you have the `strdup' function. */
|
54 |
+
#cmakedefine HAVE_STRDUP
|
55 |
+
|
56 |
+
/* Define if you have the `_strdup' function. */
|
57 |
+
#cmakedefine HAVE__STRDUP
|
58 |
+
|
59 |
+
/* Define if you have the strndup function */
|
60 |
+
#cmakedefine HAVE_STRNDUP
|
61 |
+
|
62 |
+
/* Define if you have the `setenv' function. */
|
63 |
+
#cmakedefine HAVE_SETENV
|
64 |
+
|
65 |
+
/* Define if you have the `unsetenv' function. */
|
66 |
+
#cmakedefine HAVE_UNSETENV
|
67 |
+
|
68 |
+
/* Define if you have the `_putenv' function. */
|
69 |
+
#cmakedefine HAVE__PUTENV
|
70 |
+
|
71 |
+
/* Define if `lex' declares `yytext' as a `char *' by default, not a
|
72 |
+
`char[]'. */
|
73 |
+
/*#undef YYTEXT_POINTER*/
|
74 |
+
|
75 |
+
/* Define to empty if `const' does not conform to ANSI C. */
|
76 |
+
/*#undef const*/
|
77 |
+
|
78 |
+
/* Name of package */
|
79 |
+
#define PACKAGE "@PACKAGE@"
|
80 |
+
|
81 |
+
/* Define to the address where bug reports for this package should be sent. */
|
82 |
+
#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
|
83 |
+
|
84 |
+
/* Define to the full name of this package. */
|
85 |
+
#define PACKAGE_NAME "@PACKAGE_NAME@"
|
86 |
+
|
87 |
+
/* Define to the full name and version of this package. */
|
88 |
+
#define PACKAGE_STRING "@PACKAGE_STRING@"
|
89 |
+
|
90 |
+
/* Define to the one symbol short name of this package. */
|
91 |
+
#define PACKAGE_TARNAME "@PACKAGE_TARNAME@"
|
92 |
+
|
93 |
+
/* Define to the version of this package. */
|
94 |
+
#define PACKAGE_VERSION "@PACKAGE_VERSION@"
|
95 |
+
|
96 |
+
/* Version number of package */
|
97 |
+
#define VERSION "@PACKAGE_VERSION@"
|
98 |
+
|
99 |
+
#define LOCALEDIR "@CMAKE_INSTALL_LOCALEDIR@"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO martinh/libconfuse
|
4 |
+
REF 67e1207c8de440525a3fdde1448a586791ebc052
|
5 |
+
SHA512 15d4eb0640fe74cc90910820715a70b2f944d2ed9753cca3be90f0ac6840beeda6a370b0624588d81ed2def2f8463e404473721351a685af711cf1d59efb870a
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
10 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.in DESTINATION ${SOURCE_PATH})
|
11 |
+
|
12 |
+
vcpkg_find_acquire_program(FLEX)
|
13 |
+
get_filename_component(FLEX_DIR ${FLEX} DIRECTORY)
|
14 |
+
vcpkg_add_to_path(${FLEX_DIR})
|
15 |
+
|
16 |
+
vcpkg_configure_cmake(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
PREFER_NINJA
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_install_cmake()
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
26 |
+
vcpkg_replace_string(
|
27 |
+
${CURRENT_PACKAGES_DIR}/include/confuse.h
|
28 |
+
"ifdef BUILDING_STATIC"
|
29 |
+
"if 1 // ifdef BUILDING_STATIC"
|
30 |
+
)
|
31 |
+
endif()
|
32 |
+
|
33 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
36 |
+
|
37 |
+
# Handle copyright
|
38 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
39 |
+
|
40 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libconfuse/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libconfuse",
|
3 |
+
"version-string": "2019-07-14",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Small configuration file parser library for C",
|
6 |
+
"homepage": "https://github.com/martinh/libconfuse"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO owent/libcopp
|
4 |
+
REF 1.4.1
|
5 |
+
SHA512 eba06bd2de7c9ee557cdd0bf79e0c53e37722b671347436322c14c99e94d955477bfc0980a4f59a5c31051e108f952ec96791024c45fa8eeaa5f7a49099dd8ae
|
6 |
+
HEAD_REF v2
|
7 |
+
)
|
8 |
+
|
9 |
+
# atframework/cmake-toolset needed as a submodule for configure cmake
|
10 |
+
vcpkg_from_github(
|
11 |
+
OUT_SOURCE_PATH ATFRAMEWORK_CMAKE_TOOLSET
|
12 |
+
REPO atframework/cmake-toolset
|
13 |
+
REF v1.3.5
|
14 |
+
SHA512 5048c204eb6358547d99712a06866836e1a6dc20dee44cc33fae77181bdf9ece5686f30062eff6a231e1ec898d5a37ebaddb243e7e3484c002bb96240aa496a5
|
15 |
+
HEAD_REF main
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
DISABLE_PARALLEL_CONFIGURE
|
21 |
+
OPTIONS "-DATFRAMEWORK_CMAKE_TOOLSET_DIR=${ATFRAMEWORK_CMAKE_TOOLSET}"
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
|
26 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
27 |
+
file(INSTALL "${SOURCE_PATH}/BOOST_LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
28 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
29 |
+
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
|
32 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libcopp)
|
33 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libcopp/libcopp-config.cmake" "set(\${CMAKE_FIND_PACKAGE_NAME}_SOURCE_DIR \"${SOURCE_PATH}\")" "")
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcopp/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcopp",
|
3 |
+
"version-semver": "1.4.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"maintainers": "owent <[email protected]>",
|
6 |
+
"description": "A cross-platfrom coroutine library for C++",
|
7 |
+
"homepage": "https://github.com/owent/libcopp",
|
8 |
+
"documentation": "https://libcopp.atframe.work/",
|
9 |
+
"license": "MIT",
|
10 |
+
"dependencies": [
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/fix-install-paths.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 854214c..9c4d98a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -124,7 +124,7 @@ if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr" OR "${CMAKE_INSTALL_PREFIX}" STREQU
|
6 |
+
endif()
|
7 |
+
|
8 |
+
# Installation paths
|
9 |
+
-if(UNIX AND SYSTEM_DIR_INSTALL)
|
10 |
+
+if(1)
|
11 |
+
# Install into the system (/usr/bin or /usr/local/bin)
|
12 |
+
set(INSTALL_ROOT "share/${project}") # /usr/[local]/share/<project>
|
13 |
+
set(INSTALL_CMAKE "share/${project}/cmake") # /usr/[local]/share/<project>/cmake
|
14 |
+
diff --git a/cpplocate-config.cmake b/cpplocate-config.cmake
|
15 |
+
index 8693fa4..cdb2828 100644
|
16 |
+
--- a/cpplocate-config.cmake
|
17 |
+
+++ b/cpplocate-config.cmake
|
18 |
+
@@ -26,7 +26,7 @@ macro(find_modules PREFIX)
|
19 |
+
if(TARGET ${module_name})
|
20 |
+
set(MODULE_FOUND TRUE)
|
21 |
+
else()
|
22 |
+
- find_module("${CMAKE_CURRENT_LIST_DIR}/${PREFIX}/${module_name}/${module_name}-export.cmake")
|
23 |
+
+ find_module("${CMAKE_CURRENT_LIST_DIR}/${module_name}-export.cmake")
|
24 |
+
endif()
|
25 |
+
endforeach(module_name)
|
26 |
+
endmacro()
|
27 |
+
diff --git a/liblocate-config.cmake b/liblocate-config.cmake
|
28 |
+
index 3bf4823..7245353 100644
|
29 |
+
--- a/liblocate-config.cmake
|
30 |
+
+++ b/liblocate-config.cmake
|
31 |
+
@@ -25,7 +25,7 @@ macro(find_modules PREFIX)
|
32 |
+
if(TARGET ${module_name})
|
33 |
+
set(MODULE_FOUND TRUE)
|
34 |
+
else()
|
35 |
+
- find_module("${CMAKE_CURRENT_LIST_DIR}/${PREFIX}/${module_name}/${module_name}-export.cmake")
|
36 |
+
+ find_module("${CMAKE_CURRENT_LIST_DIR}/${module_name}-export.cmake")
|
37 |
+
endif()
|
38 |
+
endforeach(module_name)
|
39 |
+
endmacro()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO cginternals/cpplocate
|
4 |
+
REF v2.3.0
|
5 |
+
SHA512 4028d552d0c3c0161d5dd5aea27bb22f0c61297a4b461a067c082cfcf84e3a709c9895453e750d819433529089011c2512293b2064c42bb5ba11f957eebc2206
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-install-paths.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DOPTION_BUILD_TESTS=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup(
|
21 |
+
PACKAGE_NAME cpplocate
|
22 |
+
CONFIG_PATH share/cpplocate/cmake/cpplocate
|
23 |
+
DO_NOT_DELETE_PARENT_CONFIG_PATH
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_cmake_config_fixup(
|
27 |
+
PACKAGE_NAME liblocate
|
28 |
+
CONFIG_PATH share/cpplocate/cmake/liblocate
|
29 |
+
)
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/cpplocate/cmake")
|
34 |
+
|
35 |
+
# Patched liblocate config file needs moving to the correct directory
|
36 |
+
file(RENAME
|
37 |
+
"${CURRENT_PACKAGES_DIR}/share/cpplocate/liblocate-config.cmake"
|
38 |
+
"${CURRENT_PACKAGES_DIR}/share/liblocate/liblocate-config.cmake"
|
39 |
+
)
|
40 |
+
|
41 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcpplocate/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcpplocate",
|
3 |
+
"version-semver": "2.3.0",
|
4 |
+
"description": "Cross-platform C++ library providing tools for applications to locate themselves, their data assets as well as dependent modules.",
|
5 |
+
"homepage": "https://cpplocate.org/",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/fix-build-error.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libcrafter/configure.ac b/libcrafter/configure.ac
|
2 |
+
index 860d98b..b04ccce 100644
|
3 |
+
--- a/libcrafter/configure.ac
|
4 |
+
+++ b/libcrafter/configure.ac
|
5 |
+
@@ -35,14 +35,13 @@ AC_ARG_WITH(libpcap,
|
6 |
+
PCAPINC="-I$withval -I$withval/bpf"
|
7 |
+
PCAPLIB="-L$withval -lpcap"
|
8 |
+
elif test -f $withval/include/pcap.h -a \
|
9 |
+
- -f $withval/include/net/bpf.h -a \
|
10 |
+
-f $withval/lib/libpcap.a; then
|
11 |
+
owd=`pwd`
|
12 |
+
if cd $withval; then withval=`pwd`; cd $owd; fi
|
13 |
+
PCAPINC="-I$withval/include"
|
14 |
+
PCAPLIB="-L$withval/lib -lpcap"
|
15 |
+
else
|
16 |
+
- AC_ERROR(pcap.h, net/bpf.h, or libpcap.a not found in $withval)
|
17 |
+
+ AC_ERROR(pcap.h, or libpcap.a not found in $withval)
|
18 |
+
fi
|
19 |
+
;;
|
20 |
+
esac ],
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO pellegre/libcrafter
|
4 |
+
REF 86f81f101b5e3051ed04563b3ad3dd7a823afb21 #version-1.0
|
5 |
+
SHA512 bd0eac06896df63f0fff0ed3cf7ca5176e56615476c8134bd26f035692ab9e583f58f1f57daa7673771a710d6921c0c6a6473ab181982ad57727584f2cde56d0
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES fix-build-error.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_make(
|
11 |
+
AUTOCONFIG
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
PROJECT_SUBPATH libcrafter
|
14 |
+
OPTIONS
|
15 |
+
"--with-libpcap=${CURRENT_INSTALLED_DIR}"
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_make()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
file(INSTALL "${SOURCE_PATH}/libcrafter/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcrafter/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcrafter",
|
3 |
+
"version": "1.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Libcrafter is a high level library for C++ designed to create and decode network packets.",
|
6 |
+
"homepage": "https://github.com/pellegre/libcrafter",
|
7 |
+
"supports": "!windows",
|
8 |
+
"dependencies": [
|
9 |
+
"libpcap"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/CMakeLists.txt
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.11)
|
2 |
+
project(libcroco C)
|
3 |
+
|
4 |
+
find_package(Iconv REQUIRED)
|
5 |
+
find_package(Intl REQUIRED)
|
6 |
+
find_package(PkgConfig REQUIRED)
|
7 |
+
pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 IMPORTED_TARGET)
|
8 |
+
find_package(LibXml2 REQUIRED)
|
9 |
+
if(NOT WIN32)
|
10 |
+
find_package(Threads REQUIRED)
|
11 |
+
endif()
|
12 |
+
find_path(GLIB_INCLUDE_DIR glib.h)
|
13 |
+
|
14 |
+
file(GLOB SOURCES
|
15 |
+
src/cr-utils.c
|
16 |
+
src/cr-utils.h
|
17 |
+
src/cr-input.c
|
18 |
+
src/cr-input.h
|
19 |
+
src/cr-enc-handler.c
|
20 |
+
src/cr-enc-handler.h
|
21 |
+
src/cr-num.c
|
22 |
+
src/cr-num.h
|
23 |
+
src/cr-rgb.c
|
24 |
+
src/cr-rgb.h
|
25 |
+
src/cr-token.c
|
26 |
+
src/cr-token.h
|
27 |
+
src/cr-tknzr.c
|
28 |
+
src/cr-tknzr.h
|
29 |
+
src/cr-term.c
|
30 |
+
src/cr-term.h
|
31 |
+
src/cr-attr-sel.c
|
32 |
+
src/cr-attr-sel.h
|
33 |
+
src/cr-pseudo.c
|
34 |
+
src/cr-pseudo.h
|
35 |
+
src/cr-additional-sel.c
|
36 |
+
src/cr-additional-sel.h
|
37 |
+
src/cr-simple-sel.c
|
38 |
+
src/cr-simple-sel.h
|
39 |
+
src/cr-selector.c
|
40 |
+
src/cr-selector.h
|
41 |
+
src/cr-doc-handler.c
|
42 |
+
src/cr-doc-handler.h
|
43 |
+
src/cr-parser.c
|
44 |
+
src/cr-parser.h
|
45 |
+
src/cr-declaration.c
|
46 |
+
src/cr-declaration.h
|
47 |
+
src/cr-statement.c
|
48 |
+
src/cr-statement.h
|
49 |
+
src/cr-stylesheet.c
|
50 |
+
src/cr-stylesheet.h
|
51 |
+
src/cr-cascade.c
|
52 |
+
src/cr-cascade.h
|
53 |
+
src/cr-om-parser.c
|
54 |
+
src/cr-om-parser.h
|
55 |
+
src/cr-style.c
|
56 |
+
src/cr-style.h
|
57 |
+
src/cr-sel-eng.c
|
58 |
+
src/cr-sel-eng.h
|
59 |
+
src/cr-fonts.c
|
60 |
+
src/cr-fonts.h
|
61 |
+
src/cr-prop-list.c
|
62 |
+
src/cr-prop-list.h
|
63 |
+
src/cr-parsing-location.c
|
64 |
+
src/cr-parsing-location.h
|
65 |
+
src/cr-string.c
|
66 |
+
src/cr-string.h
|
67 |
+
src/libcroco.def
|
68 |
+
)
|
69 |
+
|
70 |
+
set(CMAKE_DEBUG_POSTFIX "d")
|
71 |
+
|
72 |
+
add_library(croco-0.6 ${SOURCES})
|
73 |
+
|
74 |
+
target_include_directories(croco-0.6 PRIVATE ${GLIB_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR})
|
75 |
+
target_link_libraries(croco-0.6 PRIVATE
|
76 |
+
PkgConfig::GLIB2
|
77 |
+
${LIBXML2_LIBRARIES} ${Intl_LIBRARIES} Iconv::Iconv
|
78 |
+
)
|
79 |
+
|
80 |
+
install(TARGETS croco-0.6
|
81 |
+
EXPORT libcroco-targets
|
82 |
+
RUNTIME DESTINATION bin
|
83 |
+
LIBRARY DESTINATION lib
|
84 |
+
ARCHIVE DESTINATION lib
|
85 |
+
)
|
86 |
+
|
87 |
+
install(FILES
|
88 |
+
src/libcroco.h
|
89 |
+
src/cr-additional-sel.h
|
90 |
+
src/cr-attr-sel.h
|
91 |
+
src/cr-cascade.h
|
92 |
+
src/cr-declaration.h
|
93 |
+
src/cr-doc-handler.h
|
94 |
+
src/cr-enc-handler.h
|
95 |
+
src/cr-input.h
|
96 |
+
src/cr-num.h
|
97 |
+
src/cr-om-parser.h
|
98 |
+
src/cr-parser.h
|
99 |
+
src/cr-pseudo.h
|
100 |
+
src/cr-rgb.h
|
101 |
+
src/cr-selector.h
|
102 |
+
src/cr-simple-sel.h
|
103 |
+
src/cr-statement.h
|
104 |
+
src/cr-stylesheet.h
|
105 |
+
src/cr-term.h
|
106 |
+
src/cr-tknzr.h
|
107 |
+
src/cr-token.h
|
108 |
+
src/cr-utils.h
|
109 |
+
src/cr-fonts.h
|
110 |
+
src/cr-sel-eng.h
|
111 |
+
src/cr-style.h
|
112 |
+
src/cr-prop-list.h
|
113 |
+
src/cr-parsing-location.h
|
114 |
+
src/cr-string.h
|
115 |
+
src/libcroco-config.h
|
116 |
+
DESTINATION include/libcroco
|
117 |
+
)
|
118 |
+
|
119 |
+
install(
|
120 |
+
EXPORT libcroco-targets
|
121 |
+
NAMESPACE unofficial::libcroco::
|
122 |
+
FILE unofficial-libcroco-targets.cmake
|
123 |
+
DESTINATION share/unofficial-libcroco
|
124 |
+
)
|
125 |
+
|
126 |
+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/unofficial-libcroco-config.cmake "
|
127 |
+
include(CMakeFindDependencyMacro)
|
128 |
+
find_dependency(Intl)
|
129 |
+
find_dependency(Iconv)
|
130 |
+
find_dependency(PkgConfig)
|
131 |
+
pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2.0 gio-2.0 IMPORTED_TARGET)
|
132 |
+
find_dependency(LibXml2)
|
133 |
+
if(NOT WIN32)
|
134 |
+
find_dependency(Threads)
|
135 |
+
endif()
|
136 |
+
include(\${CMAKE_CURRENT_LIST_DIR}/unofficial-libcroco-targets.cmake)
|
137 |
+
")
|
138 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-libcroco-config.cmake DESTINATION share/unofficial-libcroco)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://download.gnome.org/sources/libcroco/0.6/libcroco-0.6.13.tar.xz"
|
3 |
+
FILENAME "libcroco-0.6.13.tar.xz"
|
4 |
+
SHA512 038a3ac9d160a8cf86a8a88c34367e154ef26ede289c93349332b7bc449a5199b51ea3611cebf3a2416ae23b9e45ecf8f9c6b24ea6d16a5519b796d3c7e272d4
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
13 |
+
configure_file(${SOURCE_PATH}/config.h.win32 ${SOURCE_PATH}/src/config.h COPYONLY)
|
14 |
+
file(READ "${SOURCE_PATH}/src/libcroco.symbols" SYMBOLS)
|
15 |
+
string(REGEX REPLACE ";[^\n]*\n" "" DEF "EXPORTS\n${SYMBOLS}")
|
16 |
+
file(WRITE "${SOURCE_PATH}/src/libcroco.def" "${DEF}")
|
17 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
18 |
+
vcpkg_configure_cmake(
|
19 |
+
SOURCE_PATH ${SOURCE_PATH}
|
20 |
+
PREFER_NINJA
|
21 |
+
OPTIONS
|
22 |
+
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_install_cmake()
|
26 |
+
|
27 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-libcroco TARGET_PATH share/unofficial-libcroco)
|
28 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
29 |
+
|
30 |
+
# Handle copyright
|
31 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libcroco RENAME copyright)
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcroco/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcroco",
|
3 |
+
"version": "0.6.13",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A standalone css2 parsing and manipulation library",
|
6 |
+
"dependencies": [
|
7 |
+
"glib",
|
8 |
+
"libxml2"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO efficient/libcuckoo
|
6 |
+
REF 8785773896d74f72b6224e59d37f5f8c3c1e022a
|
7 |
+
SHA512 e47f8fd132ee2acf347ee375759f96235cd090fdb825792f994ff5eb4d8fed55b8e8bea8d293ec96c1a5f1b46d19c6648eaf2482e482b7b9c0d6dc734bc2121d
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS
|
15 |
+
-DBUILD_EXAMPLES=OFF
|
16 |
+
-DBUILD_TESTS=OFF
|
17 |
+
-DBUILD_STRESS_TESTS=OFF
|
18 |
+
-DBUILD_UNIT_TESTS=OFF
|
19 |
+
-DBUILD_UNIVERSAL_BENCHMARK=OFF
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/${PORT})
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcuckoo/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcuckoo",
|
3 |
+
"version-string": "0.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A high-performance, concurrent hash table",
|
6 |
+
"homepage": "https://github.com/efficient/libcuckoo"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO SamuelMarks/curl-simple-https
|
4 |
+
REF 5a115053ba4d249fc1af22c3673b4d014e56bcf5
|
5 |
+
SHA512 6274bfeec5235d39c627850b1b6ef03c3f1982c74f937b604137cf3cf87e982f971c4681760b42926a3fb15bc8268f2fa48c197919516066d73f53425aa24545
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
"-DBUILD_CLI=OFF"
|
13 |
+
)
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
file(INSTALL "${SOURCE_PATH}/cmake/License.txt"
|
16 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
17 |
+
RENAME copyright)
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
19 |
+
"${CURRENT_PACKAGES_DIR}/debug/share")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libcurl-simple-https/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcurl-simple-https",
|
3 |
+
"version-date": "2022-02-14",
|
4 |
+
"description": "Very simple HTTPS interface built atop libcurl",
|
5 |
+
"license": "Apache-2.0 OR MIT",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
"curl",
|
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/libdatachannel/0001-fix-for-vcpkg.patch
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c0e59d1..1d71e38 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -28,7 +28,6 @@ endif()
|
6 |
+
|
7 |
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
8 |
+
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
|
9 |
+
-set(BUILD_SHARED_LIBS OFF) # to force usrsctp to be built static
|
10 |
+
|
11 |
+
if(WIN32)
|
12 |
+
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
13 |
+
@@ -197,12 +196,13 @@ set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
14 |
+
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
15 |
+
find_package(Threads REQUIRED)
|
16 |
+
|
17 |
+
-set(CMAKE_POLICY_DEFAULT_CMP0048 NEW)
|
18 |
+
-add_subdirectory(deps/plog EXCLUDE_FROM_ALL)
|
19 |
+
+find_library(USRSCTP_LIBRARY usrsctp REQUIRED)
|
20 |
+
+find_path(PLOG_INCLUDE_DIRS "plog/Appenders/AndroidAppender.h")
|
21 |
+
|
22 |
+
if(SCTP_DEBUG)
|
23 |
+
add_definitions(-DSCTP_DEBUG)
|
24 |
+
endif()
|
25 |
+
+if(0)
|
26 |
+
option(sctp_build_programs 0)
|
27 |
+
option(sctp_build_shared_lib 0)
|
28 |
+
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
29 |
+
@@ -214,8 +214,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
30 |
+
target_compile_options(usrsctp PRIVATE -Wno-error=format-truncation)
|
31 |
+
endif()
|
32 |
+
add_library(Usrsctp::Usrsctp ALIAS usrsctp)
|
33 |
+
+endif()
|
34 |
+
|
35 |
+
-add_library(datachannel SHARED
|
36 |
+
+add_library(datachannel
|
37 |
+
${LIBDATACHANNEL_SOURCES}
|
38 |
+
${LIBDATACHANNEL_HEADERS}
|
39 |
+
${LIBDATACHANNEL_IMPL_SOURCES}
|
40 |
+
@@ -239,16 +240,18 @@ target_include_directories(datachannel PUBLIC
|
41 |
+
$<INSTALL_INTERFACE:include>)
|
42 |
+
target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc)
|
43 |
+
target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
44 |
+
+target_include_directories(datachannel PRIVATE ${PLOG_INCLUDE_DIRS})
|
45 |
+
target_link_libraries(datachannel PRIVATE Threads::Threads)
|
46 |
+
-target_link_libraries(datachannel PRIVATE Usrsctp::Usrsctp plog::plog)
|
47 |
+
+target_link_libraries(datachannel PRIVATE ${USRSCTP_LIBRARY})
|
48 |
+
|
49 |
+
target_include_directories(datachannel-static PUBLIC
|
50 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
51 |
+
$<INSTALL_INTERFACE:include>)
|
52 |
+
target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc)
|
53 |
+
target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
54 |
+
+target_include_directories(datachannel PRIVATE ${PLOG_INCLUDE_DIRS})
|
55 |
+
target_link_libraries(datachannel-static PRIVATE Threads::Threads)
|
56 |
+
-target_link_libraries(datachannel-static PRIVATE Usrsctp::Usrsctp plog::plog)
|
57 |
+
+target_link_libraries(datachannel-static PRIVATE ${USRSCTP_LIBRARY})
|
58 |
+
|
59 |
+
if(WIN32)
|
60 |
+
target_link_libraries(datachannel PUBLIC ws2_32) # winsock2
|
61 |
+
@@ -351,11 +354,11 @@ else()
|
62 |
+
target_link_libraries(datachannel PRIVATE LibJuice::LibJuice)
|
63 |
+
target_link_libraries(datachannel-static PRIVATE LibJuice::LibJuice)
|
64 |
+
else()
|
65 |
+
- add_subdirectory(deps/libjuice EXCLUDE_FROM_ALL)
|
66 |
+
+ find_package(LibJuice CONFIG REQUIRED)
|
67 |
+
target_compile_definitions(datachannel PRIVATE RTC_SYSTEM_JUICE=0)
|
68 |
+
target_compile_definitions(datachannel-static PRIVATE RTC_SYSTEM_JUICE=0)
|
69 |
+
- target_link_libraries(datachannel PRIVATE LibJuice::LibJuiceStatic)
|
70 |
+
- target_link_libraries(datachannel-static PRIVATE LibJuice::LibJuiceStatic)
|
71 |
+
+ target_link_libraries(datachannel PRIVATE LibJuice::LibJuice)
|
72 |
+
+ target_link_libraries(datachannel-static PRIVATE LibJuice::LibJuice)
|
73 |
+
endif()
|
74 |
+
endif()
|
75 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/portfile.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(PATCHES 0001-fix-for-vcpkg.patch)
|
2 |
+
|
3 |
+
if(VCPKG_TARGET_IS_UWP)
|
4 |
+
list(APPEND PATCHES uwp-warnings.patch)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO paullouisageneau/libdatachannel
|
10 |
+
REF 127f157fc00abeb6fe5a57ce56a7c4e092721203 #v0.16.4
|
11 |
+
SHA512 ef7d1f652af031c13260a4c436c949eb566d40d15dcde5b56ab782e9e9d7b5e287f4a6a61bc4eb3fcdbb835c102637b0368f3c43af6f9fa9c87cd99d15bde454
|
12 |
+
HEAD_REF master
|
13 |
+
PATCHES
|
14 |
+
${PATCHES}
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
18 |
+
FEATURES
|
19 |
+
stdcall CAPI_STDCALL
|
20 |
+
INVERTED_FEATURES
|
21 |
+
ws NO_WEBSOCKET
|
22 |
+
srtp NO_MEDIA
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_configure(
|
26 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
27 |
+
OPTIONS
|
28 |
+
${FEATURE_OPTIONS}
|
29 |
+
-DUSE_SYSTEM_SRTP=ON
|
30 |
+
-DNO_EXAMPLES=ON
|
31 |
+
-DNO_TESTS=ON
|
32 |
+
)
|
33 |
+
|
34 |
+
vcpkg_cmake_install()
|
35 |
+
|
36 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME LibDataChannel CONFIG_PATH lib/cmake/LibDataChannel)
|
37 |
+
vcpkg_fixup_pkgconfig()
|
38 |
+
|
39 |
+
file(READ "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" DATACHANNEL_CONFIG)
|
40 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" "
|
41 |
+
include(CMakeFindDependencyMacro)
|
42 |
+
find_dependency(Threads)
|
43 |
+
find_dependency(OpenSSL)
|
44 |
+
find_dependency(LibJuice)
|
45 |
+
${DATACHANNEL_CONFIG}")
|
46 |
+
|
47 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
48 |
+
|
49 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/uwp-warnings.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b79b458..790bf95 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -385,6 +385,9 @@ if(WARNINGS_AS_ERRORS)
|
6 |
+
endif()
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+target_compile_options(datachannel PRIVATE /wd4996)
|
10 |
+
+target_compile_options(datachannel-static PRIVATE /wd4996)
|
11 |
+
+
|
12 |
+
install(TARGETS datachannel EXPORT LibDataChannelTargets
|
13 |
+
RUNTIME DESTINATION bin
|
14 |
+
LIBRARY DESTINATION lib
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatachannel/vcpkg.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdatachannel",
|
3 |
+
"version-semver": "0.16.4",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "libdatachannel is a standalone implementation of WebRTC Data Channels, WebRTC Media Transport, and WebSockets in C++17 with C bindings for POSIX platforms (including GNU/Linux, Android, and Apple macOS) and Microsoft Windows.",
|
6 |
+
"homepage": "https://github.com/paullouisageneau/libdatachannel",
|
7 |
+
"dependencies": [
|
8 |
+
"libjuice",
|
9 |
+
"openssl",
|
10 |
+
"plog",
|
11 |
+
"usrsctp",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"default-features": [
|
22 |
+
"ws"
|
23 |
+
],
|
24 |
+
"features": {
|
25 |
+
"srtp": {
|
26 |
+
"description": "Use Cisco's libSRTP for media transport.",
|
27 |
+
"dependencies": [
|
28 |
+
"libsrtp"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"stdcall": {
|
32 |
+
"description": "Use stdcall convention in callbacks"
|
33 |
+
},
|
34 |
+
"ws": {
|
35 |
+
"description": "Web Socket support"
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/CMakeLists.txt
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.22)
|
2 |
+
project(libdatrie LANGUAGES C)
|
3 |
+
|
4 |
+
option(SKIP_HEADERS "Skip headers" OFF)
|
5 |
+
option(SKIP_TOOL "Skip tool" OFF)
|
6 |
+
option(BUILD_SHARED_LIBS "Build shared libs" OFF)
|
7 |
+
|
8 |
+
set(LIB_SRCS
|
9 |
+
datrie/alpha-map.c
|
10 |
+
datrie/darray.c
|
11 |
+
datrie/dstring.c
|
12 |
+
datrie/fileutils.c
|
13 |
+
datrie/tail.c
|
14 |
+
datrie/trie.c
|
15 |
+
datrie/trie-string.c
|
16 |
+
)
|
17 |
+
|
18 |
+
set(LIB_HDRS
|
19 |
+
datrie/alpha-map.h
|
20 |
+
datrie/trie.h
|
21 |
+
datrie/triedefs.h
|
22 |
+
datrie/typedefs.h
|
23 |
+
)
|
24 |
+
|
25 |
+
if(WIN32)
|
26 |
+
list(APPEND LIB_SRCS datrie/libdatrie.def)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
include(CheckIncludeFile)
|
30 |
+
include(CheckFunctionExists)
|
31 |
+
|
32 |
+
set(STDC_HEADERS 1)
|
33 |
+
check_include_file(dlfcn.h HAVE_DLFCN_H)
|
34 |
+
check_include_file(inttypes.h HAVE_INTTYPES_H)
|
35 |
+
check_include_file(limits.h HAVE_LIMITS_H)
|
36 |
+
check_include_file(memory.h HAVE_MEMORY_H)
|
37 |
+
check_include_file(stdint.h HAVE_STDINT_H)
|
38 |
+
check_include_file(stdio.h HAVE_STDIO_H)
|
39 |
+
check_include_file(stdlib.h HAVE_STDLIB_H)
|
40 |
+
check_include_file(strings.h HAVE_STRINGS_H)
|
41 |
+
check_include_file(string.h HAVE_STRING_H)
|
42 |
+
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
|
43 |
+
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
44 |
+
check_include_file(unistd.h HAVE_UNISTD_H)
|
45 |
+
|
46 |
+
check_function_exists(nl_langinfo HAVE_LANGINFO_CODESET)
|
47 |
+
check_function_exists(locale_charset HAVE_LOCALE_CHARSET)
|
48 |
+
check_function_exists(malloc HAVE_MALLOC)
|
49 |
+
|
50 |
+
configure_file(config.h.cmake config.h)
|
51 |
+
|
52 |
+
include_directories(
|
53 |
+
"${CMAKE_CURRENT_SOURCE_DIR}"
|
54 |
+
"${CMAKE_CURRENT_BINARY_DIR}"
|
55 |
+
)
|
56 |
+
|
57 |
+
add_library(libdatrie ${LIB_SRCS})
|
58 |
+
set_target_properties(libdatrie PROPERTIES OUTPUT_NAME "datrie")
|
59 |
+
|
60 |
+
if(MSVC)
|
61 |
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
62 |
+
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
63 |
+
endif()
|
64 |
+
|
65 |
+
if (NOT SKIP_TOOL)
|
66 |
+
add_executable(trietool "tools/trietool.c" )
|
67 |
+
find_package(Iconv REQUIRED)
|
68 |
+
target_link_libraries(trietool PRIVATE libdatrie Iconv::Iconv)
|
69 |
+
install(
|
70 |
+
TARGETS trietool
|
71 |
+
RUNTIME DESTINATION bin
|
72 |
+
)
|
73 |
+
endif()
|
74 |
+
|
75 |
+
install(
|
76 |
+
TARGETS libdatrie
|
77 |
+
RUNTIME DESTINATION bin
|
78 |
+
LIBRARY DESTINATION lib
|
79 |
+
ARCHIVE DESTINATION lib
|
80 |
+
)
|
81 |
+
|
82 |
+
if (NOT SKIP_HEADERS)
|
83 |
+
install(
|
84 |
+
FILES ${LIB_HDRS}
|
85 |
+
DESTINATION "include/datrie"
|
86 |
+
)
|
87 |
+
endif()
|
88 |
+
|
89 |
+
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
90 |
+
set(exec_prefix "\${prefix}")
|
91 |
+
set(libdir "\${prefix}/lib")
|
92 |
+
set(includedir "\${prefix}/include")
|
93 |
+
configure_file(datrie-0.2.pc.in datrie-0.2.pc)
|
94 |
+
install(
|
95 |
+
FILES "${CMAKE_CURRENT_BINARY_DIR}/datrie-0.2.pc"
|
96 |
+
DESTINATION "lib/pkgconfig"
|
97 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/config.h.cmake
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* config.h.in. Generated from configure.ac by autoheader. */
|
2 |
+
|
3 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
4 |
+
#cmakedefine HAVE_DLFCN_H
|
5 |
+
|
6 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
7 |
+
#cmakedefine HAVE_INTTYPES_H
|
8 |
+
|
9 |
+
/* Have nl_langinfo (CODESET) */
|
10 |
+
#cmakedefine HAVE_LANGINFO_CODESET
|
11 |
+
|
12 |
+
/* Define to 1 if you have the <limits.h> header file. */
|
13 |
+
#cmakedefine HAVE_LIMITS_H
|
14 |
+
|
15 |
+
/* Have locale_charset() */
|
16 |
+
#cmakedefine HAVE_LOCALE_CHARSET
|
17 |
+
|
18 |
+
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
|
19 |
+
to 0 otherwise. */
|
20 |
+
#cmakedefine HAVE_MALLOC
|
21 |
+
|
22 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
23 |
+
#cmakedefine HAVE_MEMORY_H
|
24 |
+
|
25 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
26 |
+
#cmakedefine HAVE_STDINT_H
|
27 |
+
|
28 |
+
/* Define to 1 if you have the <stdio.h> header file. */
|
29 |
+
#cmakedefine HAVE_STDIO_H
|
30 |
+
|
31 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
32 |
+
#cmakedefine HAVE_STDLIB_H
|
33 |
+
|
34 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
35 |
+
#cmakedefine HAVE_STRINGS_H
|
36 |
+
|
37 |
+
/* Define to 1 if you have the <string.h> header file. */
|
38 |
+
#cmakedefine HAVE_STRING_H
|
39 |
+
|
40 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
41 |
+
#cmakedefine HAVE_SYS_STAT_H
|
42 |
+
|
43 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
44 |
+
#cmakedefine HAVE_SYS_TYPES_H
|
45 |
+
|
46 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
47 |
+
#cmakedefine HAVE_UNISTD_H
|
48 |
+
|
49 |
+
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
50 |
+
*/
|
51 |
+
#cmakedefine LT_OBJDIR
|
52 |
+
|
53 |
+
/* Name of package */
|
54 |
+
#define PACKAGE "libdatrie"
|
55 |
+
|
56 |
+
/* Define to the address where bug reports for this package should be sent. */
|
57 |
+
#cmakedefine PACKAGE_BUGREPORT
|
58 |
+
|
59 |
+
/* Define to the full name of this package. */
|
60 |
+
#define PACKAGE_NAME "libdatrie"
|
61 |
+
|
62 |
+
/* Define to the full name and version of this package. */
|
63 |
+
#cmakedefine PACKAGE_STRING
|
64 |
+
|
65 |
+
/* Define to the one symbol short name of this package. */
|
66 |
+
#cmakedefine PACKAGE_TARNAME
|
67 |
+
|
68 |
+
/* Define to the home page for this package. */
|
69 |
+
#define PACKAGE_URL "https://linux.thai.net/~thep/datrie/datrie.html"
|
70 |
+
|
71 |
+
/* Define to the version of this package. */
|
72 |
+
#cmakedefine PACKAGE_VERSION
|
73 |
+
|
74 |
+
/* Define to 1 if you have the ANSI C header files. */
|
75 |
+
#cmakedefine STDC_HEADERS 1
|
76 |
+
|
77 |
+
/* Version number of package */
|
78 |
+
#cmakedefine VERSION "@VERSION@"
|
79 |
+
|
80 |
+
/* Define to empty if `const' does not conform to ANSI C. */
|
81 |
+
#cmakedefine const
|
82 |
+
|
83 |
+
/* Define to rpl_malloc if the replacement function should be used. */
|
84 |
+
#cmakedefine malloc
|
85 |
+
|
86 |
+
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
87 |
+
#cmakedefine size_t
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/fix-exports.patch
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -Naur ./a/libdatrie.def ./b/libdatrie.def
|
2 |
+
--- a/datrie/libdatrie.def 2013-10-17 06:27:57.000000000 +0300
|
3 |
+
+++ b/datrie/libdatrie.def 2017-12-21 02:42:39.873879000 +0300
|
4 |
+
@@ -1,3 +1,4 @@
|
5 |
+
+EXPORTS
|
6 |
+
alpha_map_new
|
7 |
+
alpha_map_clone
|
8 |
+
alpha_map_free
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBDATRIE_VERSION 0.2.13)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO tlwg/libdatrie
|
6 |
+
REF v${LIBDATRIE_VERSION}
|
7 |
+
SHA512 38f5a3ee1f3ca0f0601a5fcfeec3892cb34857d4b4720b8e018ca1beb6520c4c10af3bd2f0e4d64367cb256e8e2bca4d0a59b1c81fb36782613d2c258b64df59
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-exports.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h.cmake" DESTINATION "${SOURCE_PATH}")
|
15 |
+
|
16 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
17 |
+
INVERTED_FEATURES
|
18 |
+
tool SKIP_TOOL
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS
|
24 |
+
-DVERSION=${LIBDATRIE_VERSION}
|
25 |
+
${FEATURE_OPTIONS}
|
26 |
+
OPTIONS_DEBUG
|
27 |
+
-DSKIP_TOOL=ON
|
28 |
+
-DSKIP_HEADERS=ON
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_cmake_install()
|
32 |
+
vcpkg_copy_pdbs()
|
33 |
+
vcpkg_fixup_pkgconfig()
|
34 |
+
|
35 |
+
if(NOT SKIP_TOOL)
|
36 |
+
vcpkg_copy_tools(TOOL_NAMES trietool AUTO_CLEAN)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
40 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/usage
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libdatrie can be used via CMake:
|
2 |
+
|
3 |
+
find_path(LIBDATRIE_INCLUDE_DIR datrie/trie.h)
|
4 |
+
find_library(LIBDATRIE_LIBRARY NAMES datrie)
|
5 |
+
target_include_directories(main PRIVATE "${LIBDATRIE_INCLUDE_DIR}")
|
6 |
+
target_link_libraries(main PRIVATE "${LIBDATRIE_LIBRARY}")
|
7 |
+
|
8 |
+
The package libdatrie can be imported via CMake FindPkgConfig module:
|
9 |
+
|
10 |
+
find_package(PkgConfig)
|
11 |
+
pkg_check_modules(LIBDATRIE REQUIRED IMPORTED_TARGET datrie-0.2)
|
12 |
+
|
13 |
+
target_link_libraries(main PRIVATE PkgConfig::LIBDATRIE)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdatrie/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdatrie",
|
3 |
+
"version": "0.2.13",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Implementation of double-array structure for representing trie",
|
6 |
+
"homepage": "https://linux.thai.net/pub/ThaiLinux/software/libthai",
|
7 |
+
"license": "LGPL-2.1-or-later",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
],
|
14 |
+
"features": {
|
15 |
+
"tool": {
|
16 |
+
"description": "Build the trietool application",
|
17 |
+
"supports": "!uwp",
|
18 |
+
"dependencies": [
|
19 |
+
"libiconv"
|
20 |
+
]
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBDC1394_VER "2.2.6")
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO libdc1394/libdc1394-2
|
6 |
+
REF "${LIBDC1394_VER}"
|
7 |
+
FILENAME "libdc1394-${LIBDC1394_VER}.tar.gz"
|
8 |
+
SHA512 2d60ed1054da67d8518e870193b60c1d79778858f48cc6487e252de00cc57a08548515d41914a37d0227d29e158d68892c290f83930ffd95f4a483dce5aa3d25
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_make(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS "--disable-examples"
|
14 |
+
)
|
15 |
+
vcpkg_install_make()
|
16 |
+
vcpkg_fixup_pkgconfig()
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
20 |
+
|
21 |
+
# Handle copyright
|
22 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdc1394/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdc1394",
|
3 |
+
"version": "2.2.6",
|
4 |
+
"description": "libdc1394 is a library that provides a complete high level application programming interface (API) for developers who wish to control IEEE 1394 based cameras that conform to the 1394-based Digital Camera Specifications (also known as the IIDC or DCAM Specifications).",
|
5 |
+
"homepage": "https://damien.douxchamps.net/ieee1394/libdc1394",
|
6 |
+
"supports": "!windows",
|
7 |
+
"dependencies": [
|
8 |
+
"sdl1"
|
9 |
+
]
|
10 |
+
}
|