Spaces:
Sleeping
Sleeping
8d3cb66035e36391f4754673ac1b6625d9f1f614b1032148fbd80d5235dd19fc
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/CMakeLists.txt +59 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/fix-macbuild.patch +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudns/ignore_unknown_options.patch +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudns/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudns/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/001-fix-cmake.patch +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/002-fix-macosx-build.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/003-fix-system-link.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunibreak/CMakeLists.txt +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunibreak/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunibreak/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunifex/fix-compile-error.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunifex/portfile.cmake +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunifex/vcpkg.json +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/copyright +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/fix-for-automake-1.16.4.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/fix-configure.patch +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/fix-spec-version.patch +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/usage +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb-win32/CMakeLists.txt +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb-win32/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb-win32/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/portfile.cmake +73 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/vcpkg-cmake-wrapper.cmake +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/CMakeLists.txt +50 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/fix-win-build.patch +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/CMakeLists.txt +63 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/config.linux.h +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/portfile.cmake +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/unofficial-libuuid-config.cmake.in +3 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/CMakeLists.txt +83 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/portfile.cmake +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/unofficial-libuv-config.in.cmake +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/vcpkg-cmake-wrapper.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuvc/build_fix.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuvc/portfile.cmake +32 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/CMakeLists.txt
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required (VERSION 3.9)
|
2 |
+
|
3 |
+
project (udis86)
|
4 |
+
|
5 |
+
if (MSVC)
|
6 |
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
set(
|
10 |
+
lib_sources
|
11 |
+
libudis86/decode.c
|
12 |
+
libudis86/itab.c
|
13 |
+
libudis86/syn-att.c
|
14 |
+
libudis86/syn-intel.c
|
15 |
+
libudis86/syn.c
|
16 |
+
libudis86/udis86.c
|
17 |
+
)
|
18 |
+
|
19 |
+
set(lib_headers
|
20 |
+
libudis86/decode.h
|
21 |
+
libudis86/itab.h
|
22 |
+
libudis86/extern.h
|
23 |
+
libudis86/syn.h
|
24 |
+
libudis86/types.h
|
25 |
+
libudis86/udint.h
|
26 |
+
)
|
27 |
+
|
28 |
+
set(cli_srcs udcli/udcli.c)
|
29 |
+
|
30 |
+
include_directories(.)
|
31 |
+
|
32 |
+
add_library(libudis86 ${lib_sources})
|
33 |
+
|
34 |
+
if(BUILD_SHARED_LIBS)
|
35 |
+
target_compile_definitions(libudis86 PRIVATE -D_USRDLL)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
add_executable(udcli ${cli_srcs})
|
39 |
+
target_link_libraries(udcli libudis86)
|
40 |
+
|
41 |
+
|
42 |
+
install(
|
43 |
+
TARGETS libudis86
|
44 |
+
RUNTIME DESTINATION bin
|
45 |
+
LIBRARY DESTINATION lib
|
46 |
+
ARCHIVE DESTINATION lib
|
47 |
+
)
|
48 |
+
|
49 |
+
if(NOT DISABLE_INSTALL_TOOLS)
|
50 |
+
install (
|
51 |
+
TARGETS udcli
|
52 |
+
RUNTIME DESTINATION tools/libudis86
|
53 |
+
)
|
54 |
+
endif()
|
55 |
+
|
56 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
57 |
+
install(FILES ${lib_headers} DESTINATION include/libudis86)
|
58 |
+
install(FILES udis86.h DESTINATION include)
|
59 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/fix-macbuild.patch
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libudis86/udis86.c b/libudis86/udis86.c
|
2 |
+
index e039c4e..8459012 100644
|
3 |
+
--- a/libudis86/udis86.c
|
4 |
+
+++ b/libudis86/udis86.c
|
5 |
+
@@ -34,6 +34,10 @@
|
6 |
+
# endif
|
7 |
+
#endif /* !__UD_STANDALONE__ */
|
8 |
+
|
9 |
+
+#if defined(__APPLE__)
|
10 |
+
+# include <string.h>
|
11 |
+
+#endif
|
12 |
+
+
|
13 |
+
static void ud_inp_init(struct ud *u);
|
14 |
+
|
15 |
+
/* =============================================================================
|
16 |
+
diff --git a/udcli/udcli.c b/udcli/udcli.c
|
17 |
+
index 9b044ca..ad1e4ab 100644
|
18 |
+
--- a/udcli/udcli.c
|
19 |
+
+++ b/udcli/udcli.c
|
20 |
+
@@ -27,13 +27,11 @@
|
21 |
+
#include <stdio.h>
|
22 |
+
#include <string.h>
|
23 |
+
#include <ctype.h>
|
24 |
+
-#ifdef _MSC_VER
|
25 |
+
-#include "..\udis86.h"
|
26 |
+
-#define PACKAGE_STRING "udis86 pre-1.8"
|
27 |
+
-#else
|
28 |
+
#include <udis86.h>
|
29 |
+
-#include <config.h>
|
30 |
+
-#endif
|
31 |
+
+#define PACKAGE_STRING "udis86 pre-1.8"
|
32 |
+
+#ifdef HAVE_CONFIG_H
|
33 |
+
+# include <config.h>
|
34 |
+
+#endif /* HAVE_CONFIG_H */
|
35 |
+
|
36 |
+
#if defined(__APPLE__)
|
37 |
+
# define FMT64 "ll"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO vmt/udis86
|
4 |
+
REF 56ff6c87c11de0ffa725b14339004820556e343d
|
5 |
+
SHA512 7a98333f9310f5f0466294bd980f03f9269c118a7557832015c59a7b6349a0eeab5642e0e6598d0be76d71f5d2d566d8b8af0ec75c26bdcff45646d60ff18e3a
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES fix-macbuild.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
11 |
+
|
12 |
+
vcpkg_find_acquire_program(PYTHON2)
|
13 |
+
|
14 |
+
vcpkg_execute_required_process(
|
15 |
+
COMMAND "${PYTHON2}" "${SOURCE_PATH}/scripts/ud_itab.py" "${SOURCE_PATH}/docs/x86/optable.xml" "${SOURCE_PATH}/libudis86/"
|
16 |
+
WORKING_DIRECTORY "${SOURCE_PATH}"
|
17 |
+
LOGNAME python-${TARGET_TRIPLET}-generate-sources
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_configure(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
22 |
+
OPTIONS_DEBUG
|
23 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
24 |
+
-DDISABLE_INSTALL_TOOLS=ON
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
30 |
+
|
31 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudis86/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libudis86",
|
3 |
+
"version-string": "2018-01-28-56ff6c87",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Disassembler Library for x86 and x86-64",
|
6 |
+
"homepage": "https://github.com/vmt/udis86",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudns/ignore_unknown_options.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure b/configure
|
2 |
+
index dda98b3ab..6f5f8a3c8 100644
|
3 |
+
--- a/configure
|
4 |
+
+++ b/configure
|
5 |
+
@@ -25,10 +25,9 @@ fi
|
6 |
+
enable() {
|
7 |
+
opt=`echo "$1" | sed 's/^--[^-]*-//'`
|
8 |
+
case "$opt" in
|
9 |
+
- ipv6) ;;
|
10 |
+
- *) echo "configure: unrecognized option \`$1'" >&2; exit 1;;
|
11 |
+
+ ipv6) eval enable_$opt=$2 ;;
|
12 |
+
+ *) echo "configure: unrecognized option \`$1'" >&2;;
|
13 |
+
esac
|
14 |
+
- eval enable_$opt=$2
|
15 |
+
}
|
16 |
+
|
17 |
+
while [ $# -gt 0 ]; do
|
18 |
+
@@ -50,7 +49,7 @@ Optional features (all enabled by default if system supports a feature):
|
19 |
+
EOF
|
20 |
+
exit 0
|
21 |
+
;;
|
22 |
+
- *) echo "configure: unknown option \`$1'" >&2; exit 1 ;;
|
23 |
+
+ *) echo "configure: unknown option \`$1'" >&2;;
|
24 |
+
esac
|
25 |
+
shift
|
26 |
+
done
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudns/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ortclib/udns
|
4 |
+
REF udns_0_4
|
5 |
+
SHA512 4df8def718c75872536d42a757237d6c8e0afce8a53aedd7fea73814dc5cf8b5d6c9ae8f01a8cfc76864aa8293c172f08953a6750a66749ba19a3721bb4cf2ec
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES ignore_unknown_options.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_make(
|
11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
12 |
+
COPY_SOURCE
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_build_make()
|
16 |
+
vcpkg_fixup_pkgconfig()
|
17 |
+
# Install
|
18 |
+
if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug)
|
19 |
+
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libudns.a DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
20 |
+
endif()
|
21 |
+
if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL release)
|
22 |
+
file(INSTALL ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libudns.a DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
file(INSTALL ${SOURCE_PATH}/udns.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
# Handle copyright
|
30 |
+
file(INSTALL ${SOURCE_PATH}/COPYING.LGPL DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libudns/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libudns",
|
3 |
+
"version-string": "0.4",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "The DNS library, udns, implements thread-safe stub DNS resolver functionality, which may be used both traditional, syncronous way and asyncronously, with application-supplied event loop.",
|
6 |
+
"homepage": "https://github.com/ortclib/udns",
|
7 |
+
"supports": "!windows & !osx"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/001-fix-cmake.patch
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c7193fbb..50c997f8 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -152,8 +152,7 @@ add_subdirectory("common")
|
6 |
+
add_subdirectory("${_OSNAME}")
|
7 |
+
add_library(libui ${_LIBUI_SOURCES})
|
8 |
+
target_include_directories(libui
|
9 |
+
- PUBLIC .
|
10 |
+
- PRIVATE ${_LIBUI_INCLUEDIRS})
|
11 |
+
+ PUBLIC $<INSTALL_INTERFACE:include>)
|
12 |
+
target_compile_definitions(libui
|
13 |
+
PRIVATE ${_LIBUI_DEFS})
|
14 |
+
# cmake produces this for us by default but only for shared libraries
|
15 |
+
@@ -229,10 +228,30 @@ macro(_add_exec _name)
|
16 |
+
# TODOfor some reason these don't propagate
|
17 |
+
if(NOT WIN32)
|
18 |
+
target_include_directories(${_name}
|
19 |
+
- PUBLIC .)
|
20 |
+
+ PUBLIC $<INSTALL_INTERFACE:include>)
|
21 |
+
target_compile_options(${_name}
|
22 |
+
PUBLIC ${_COMMON_CFLAGS})
|
23 |
+
endif()
|
24 |
+
endmacro()
|
25 |
+
add_subdirectory("test")
|
26 |
+
add_subdirectory("examples")
|
27 |
+
+
|
28 |
+
+if(BUILD_SHARED_LIBS)
|
29 |
+
+ install(TARGETS ${PROJECT_NAME}
|
30 |
+
+ EXPORT ${PROJECT_NAME}-config
|
31 |
+
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
32 |
+
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
33 |
+
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
34 |
+
+else()
|
35 |
+
+ install(TARGETS ${PROJECT_NAME}
|
36 |
+
+ EXPORT ${PROJECT_NAME}-config
|
37 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
38 |
+
+endif()
|
39 |
+
+
|
40 |
+
+install(EXPORT ${PROJECT_NAME}-config
|
41 |
+
+ FILE unofficial-${PROJECT_NAME}-config.cmake
|
42 |
+
+ NAMESPACE unofficial::libui::
|
43 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
44 |
+
+)
|
45 |
+
+
|
46 |
+
+install(FILES ui.h DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/002-fix-macosx-build.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 50c997f..a23b84d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -16,7 +16,13 @@ cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
6 |
+
# TODO figure out what other variables must be set with CACHE
|
7 |
+
# TODO figure out if FORCE is needed here
|
8 |
+
# TODO figure out whether STRING "" is best or if something else is better; also what FORCE does because I forget and later I say it's needed
|
9 |
+
-set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8" CACHE STRING "" FORCE)
|
10 |
+
+
|
11 |
+
+# VCPKG PATCH NOTE: Fix build on MacOS
|
12 |
+
+# Due to a bug in CMake (https://gitlab.kitware.com/cmake/cmake/issues/18396) we change CMAKE_OSX_DEPLOYMENT_TARGET to "10.9".
|
13 |
+
+# See the discussion here:
|
14 |
+
+# * https://github.com/andlabs/libui/issues/422
|
15 |
+
+# * https://github.com/andlabs/libui/issues/457
|
16 |
+
+set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "" FORCE)
|
17 |
+
|
18 |
+
# we want to disable incremental linking
|
19 |
+
# see also:
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/003-fix-system-link.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a23b84d..9892dfc 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -172,6 +172,12 @@ if(BUILD_SHARED_LIBS)
|
6 |
+
target_link_libraries(libui
|
7 |
+
PRIVATE ${_LIBUI_LIBS})
|
8 |
+
endif()
|
9 |
+
+
|
10 |
+
+if (APPLE)
|
11 |
+
+ find_library(Foundation Foundation)
|
12 |
+
+ find_library(AppKit AppKit)
|
13 |
+
+ target_link_libraries(libui PUBLIC $<$<PLATFORM_ID:Darwin>:${Foundation};${AppKit}>)
|
14 |
+
+endif()
|
15 |
+
# TODO INTERFACE libs don't inherit to grandhcildren?
|
16 |
+
# on Windows the linker for static libraries is different; don't give it the flags
|
17 |
+
if(BUILD_SHARED_LIBS)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO andlabs/libui
|
4 |
+
REF 7138276ccfbde94873cb6e2db65642adcbd2ee19
|
5 |
+
SHA512 3a9fb27d0c376479f58ba2fc5be3579efa5f462776a7e725313b92413ce78f3ca60897e63b580c419eeaee2cd2101de2be1ee5af80a547ef433c6284a3053d45
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
"001-fix-cmake.patch"
|
9 |
+
"002-fix-macosx-build.patch"
|
10 |
+
"003-fix-system-link.patch"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libui TARGET_PATH share/unofficial-libui)
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libui/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libui",
|
3 |
+
"version-date": "2018-11-03",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Simple and portable (but not inflexible) native GUI library in C.",
|
6 |
+
"homepage": "https://github.com/andlabs/libui"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunibreak/CMakeLists.txt
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
|
3 |
+
project(libunibreak)
|
4 |
+
|
5 |
+
set(libunibreak_srcs
|
6 |
+
src/linebreakdata.c
|
7 |
+
src/linebreakdef.c
|
8 |
+
src/linebreak.c
|
9 |
+
src/wordbreak.c
|
10 |
+
src/graphemebreak.c
|
11 |
+
src/unibreakbase.c
|
12 |
+
src/unibreakdef.c
|
13 |
+
)
|
14 |
+
|
15 |
+
|
16 |
+
include_directories(src)
|
17 |
+
|
18 |
+
add_library(libunibreak ${libunibreak_srcs})
|
19 |
+
|
20 |
+
install(
|
21 |
+
TARGETS libunibreak
|
22 |
+
RUNTIME DESTINATION bin
|
23 |
+
LIBRARY DESTINATION lib
|
24 |
+
ARCHIVE DESTINATION lib
|
25 |
+
)
|
26 |
+
|
27 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
28 |
+
install(
|
29 |
+
FILES
|
30 |
+
src/linebreak.h
|
31 |
+
src/linebreakdef.h
|
32 |
+
src/wordbreak.h
|
33 |
+
src/wordbreakdef.h
|
34 |
+
src/unibreakbase.h
|
35 |
+
src/unibreakdef.h
|
36 |
+
DESTINATION include
|
37 |
+
)
|
38 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunibreak/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO adah1972/libunibreak
|
6 |
+
REF 8df6ef4ebe5dbd2a49539d05366337ab7fb57ae3 # libunibreak_4_3
|
7 |
+
SHA512 791e342dcc0e79e15f578ec93239d53a656f9e1804f9ec8b970cfac2b6c4f3456855513c36f18f8e72a91dac64060abc336e4716d584dbec86e1fb0c91eded69
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
|
21 |
+
file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libunibreak RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunibreak/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libunibreak",
|
3 |
+
"version-string": "4.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "an implementation of the line breaking and word breaking algorithms as described in [Unicode Standard Annex 14] 1 and [Unicode Standard Annex 29] 2. Check the project's [home page] 3 for up-to-date information.",
|
6 |
+
"homepage": "https://github.com/adah1972/libunibreak"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunifex/fix-compile-error.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/unifex_env.cmake b/cmake/unifex_env.cmake
|
2 |
+
index cb99ae4..9825532 100644
|
3 |
+
--- a/cmake/unifex_env.cmake
|
4 |
+
+++ b/cmake/unifex_env.cmake
|
5 |
+
@@ -21,8 +21,8 @@ endif()
|
6 |
+
|
7 |
+
if (MSVC)
|
8 |
+
# warning level 3 and all warnings as errors
|
9 |
+
- add_compile_options(/W3 /WX)
|
10 |
+
+ add_compile_options(/W3 /WX /Zc:externConstexpr /EHsc)
|
11 |
+
else()
|
12 |
+
# lots of warnings and all warnings as errors
|
13 |
+
- add_compile_options(-Wall -Wextra -pedantic -Werror)
|
14 |
+
+ add_compile_options(-Wall -Wextra -pedantic)
|
15 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunifex/portfile.cmake
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO facebookexperimental/libunifex
|
6 |
+
REF 9df21c58d34ce8a1cd3b15c3a7347495e29417a0
|
7 |
+
SHA512 2a1c6dbe0e66893be888c301e53b5d2813049047a817e9e1562acf2dec4ae79dec7db90409cd415c59238f2f3e2738e52f86a424041459390c720568ee52d860
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-compile-error.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
test BUILD_TESTING
|
16 |
+
test UNIFEX_BUILD_EXAMPLES
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
OPTIONS
|
22 |
+
${FEATURE_OPTIONS}
|
23 |
+
-DCMAKE_CXX_STANDARD:STRING=20
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_cmake_install()
|
27 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unifex CONFIG_PATH lib/cmake/unifex)
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
vcpkg_fixup_pkgconfig()
|
30 |
+
|
31 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt"
|
32 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
35 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
36 |
+
"${CURRENT_PACKAGES_DIR}/include/unifex/config.hpp.in"
|
37 |
+
)
|
38 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/unifex/linux")
|
40 |
+
elseif(VCPKG_TARGET_IS_LINUX)
|
41 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/unifex/win32")
|
42 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunifex/vcpkg.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libunifex",
|
3 |
+
"version-date": "2021-12-07",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Unified Executors",
|
6 |
+
"homepage": "https://github.com/facebookexperimental/libunifex",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "liburing",
|
10 |
+
"platform": "linux"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"test": {
|
23 |
+
"description": "Build test/example programs",
|
24 |
+
"dependencies": [
|
25 |
+
"gtest"
|
26 |
+
]
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/copyright
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The libunistring library and its header files are dual-licensed under
|
2 |
+
"the GNU LGPLv3+ or the GNU GPLv2". This means, you can use it under either
|
3 |
+
- the terms of the GNU Lesser General Public License (LGPL) version 3 or
|
4 |
+
(at your option) any later version, or
|
5 |
+
- the terms of the GNU General Public License (GPL) version 2, or
|
6 |
+
- the same dual license "the GNU LGPLv3+ or the GNU GPLv2".
|
7 |
+
|
8 |
+
You find the GNU LGPL version 3 in the file COPYING.LIB. This license is
|
9 |
+
based on the GNU GPL version 3, see file COPYING.
|
10 |
+
|
11 |
+
You can find the GNU GPL version 2 at
|
12 |
+
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>.
|
13 |
+
|
14 |
+
Note: This dual license makes it possible for the libunistring library
|
15 |
+
to be used by packages under GPLv2 or GPLv2+ licenses, in particular. See
|
16 |
+
the table in <https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility>.
|
17 |
+
|
18 |
+
The documentation is under another license; see in the documentation.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/fix-for-automake-1.16.4.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/m4/init-package-version.m4
|
2 |
+
+++ b/m4/init-package-version.m4
|
3 |
+
@@ -82,9 +82,9 @@
|
4 |
+
[AC_SUBST([PACKAGE], [$1])
|
5 |
+
AC_SUBST([VERSION], [$2])
|
6 |
+
])
|
7 |
+
m4_define([AM_INIT_AUTOMAKE],
|
8 |
+
m4_defn([gl_RPL_INIT_AUTOMAKE]))
|
9 |
+
])
|
10 |
+
-m4_define([gl_INIT_DUMMY], [])
|
11 |
+
+m4_define([gl_INIT_DUMMY], [dummy])
|
12 |
+
AC_DEFUN([gl_RPL_INIT_AUTOMAKE], [
|
13 |
+
m4_ifval([$2],
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBUNISTRING_VERSION 0.9.10)
|
2 |
+
set(LIBUNISTRING_FILENAME libunistring-${LIBUNISTRING_VERSION}.tar.gz)
|
3 |
+
|
4 |
+
vcpkg_download_distfile(ARCHIVE
|
5 |
+
URLS
|
6 |
+
"https://ftp.gnu.org/gnu/libunistring/${LIBUNISTRING_FILENAME}"
|
7 |
+
"https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/libunistring/${LIBUNISTRING_FILENAME}"
|
8 |
+
FILENAME "${LIBUNISTRING_FILENAME}"
|
9 |
+
SHA512 690082732fbbd47ab4ffbd6f21d85afece0f8e2ded24982f949f4ae52bf0a981b75ea9bc14ab289e0954cde07f31a7a4c2bb65615a8eb5b2bfa65720310b6fc9
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_extract_source_archive_ex(
|
13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
14 |
+
ARCHIVE "${ARCHIVE}"
|
15 |
+
REF ${LIBUNISTRING_VERSION}
|
16 |
+
PATCHES fix-for-automake-1.16.4.patch # automake 1.16.4 uses m4_ifset instead of m4_ifdef
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_configure_make(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
AUTOCONFIG
|
22 |
+
COPY_SOURCE
|
23 |
+
OPTIONS
|
24 |
+
"--with-libiconv-prefix=${CURRENT_INSTALLED_DIR}"
|
25 |
+
)
|
26 |
+
vcpkg_install_make()
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
29 |
+
|
30 |
+
# copyright excerpt from README, to cover dual license under "LGPLv3+ or GPLv2".
|
31 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
32 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
33 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libunistring/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libunistring",
|
3 |
+
"version": "0.9.10",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "GNU libunistring provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.",
|
6 |
+
"homepage": "https://www.gnu.org/software/libunistring/",
|
7 |
+
"supports": "!windows",
|
8 |
+
"dependencies": [
|
9 |
+
"libiconv"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/fix-configure.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure b/configure
|
2 |
+
index 3b96cde..56d5cb0 100755
|
3 |
+
--- a/configure
|
4 |
+
+++ b/configure
|
5 |
+
@@ -18,16 +18,18 @@ for opt do
|
6 |
+
;;
|
7 |
+
--mandir=*) mandir="$optarg"
|
8 |
+
;;
|
9 |
+
- --datadir=*) datadir="$optarg"
|
10 |
+
+ --datarootdir=*) datadir="$optarg"
|
11 |
+
;;
|
12 |
+
--cc=*) cc="$optarg"
|
13 |
+
;;
|
14 |
+
--cxx=*) cxx="$optarg"
|
15 |
+
;;
|
16 |
+
+ --enable-shared) ENABLE_SHARED=1
|
17 |
+
+ ;;
|
18 |
+
+ --enable-static) ENABLE_SHARED=0
|
19 |
+
+ ;;
|
20 |
+
*)
|
21 |
+
- echo "ERROR: unknown option $opt"
|
22 |
+
- echo "Try '$0 --help' for more information"
|
23 |
+
- exit 1
|
24 |
+
+ echo "WARNING: unknown option $opt"
|
25 |
+
;;
|
26 |
+
esac
|
27 |
+
done
|
28 |
+
@@ -119,6 +121,7 @@ echo "# Automatically generated by configure - do not modify" > $config_host_mak
|
29 |
+
printf "# Configured with:" >> $config_host_mak
|
30 |
+
printf " '%s'" "$0" "$@" >> $config_host_mak
|
31 |
+
echo >> $config_host_mak
|
32 |
+
+echo "ENABLE_SHARED=${ENABLE_SHARED}" >> $config_host_mak
|
33 |
+
|
34 |
+
do_cxx() {
|
35 |
+
# Run the compiler, capturing its output to the log.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/fix-spec-version.patch
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/liburing.spec b/liburing.spec
|
2 |
+
index fa4d970..8607074 100644
|
3 |
+
--- a/liburing.spec
|
4 |
+
+++ b/liburing.spec
|
5 |
+
@@ -1,5 +1,5 @@
|
6 |
+
Name: liburing
|
7 |
+
-Version: 0.7
|
8 |
+
+Version: 2.0
|
9 |
+
Release: 1%{?dist}
|
10 |
+
Summary: Linux-native io_uring I/O access library
|
11 |
+
License: (GPLv2 with exceptions and LGPLv2+) or MIT
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO axboe/liburing
|
4 |
+
REF liburing-2.0
|
5 |
+
SHA512 8a7b37600246d44a94d3fed1ca4bb60e76f9ddc60bd3c237e600b60e77961a1125c8a1f230cb7569f959acf10b68b91aafb4935c1c2fd13d5df7373b374e47f5
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-spec-version.patch # update version value for pkgconfig(.pc) files
|
9 |
+
fix-configure.patch # ignore unsupported options, handle ENABLE_SHARED
|
10 |
+
)
|
11 |
+
|
12 |
+
# note: check ${SOURCE_PATH}/liburing.spec before updating configure options
|
13 |
+
vcpkg_configure_make(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
COPY_SOURCE
|
16 |
+
)
|
17 |
+
vcpkg_install_make()
|
18 |
+
vcpkg_fixup_pkgconfig()
|
19 |
+
|
20 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE
|
21 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
22 |
+
file(INSTALL ${CURRENT_PORT_DIR}/usage
|
23 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
24 |
+
|
25 |
+
# note: {SOURCE_PATH}/src/Makefile makes liburing.so from liburing.a.
|
26 |
+
# For dynamic, remove intermediate file liburing.a when install is finished.
|
27 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
28 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/liburing.a
|
29 |
+
${CURRENT_PACKAGES_DIR}/lib/liburing.a
|
30 |
+
)
|
31 |
+
endif()
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/man)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/usage
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package liburing can be imported via CMake FindPkgConfig module:
|
2 |
+
|
3 |
+
find_package(PkgConfig)
|
4 |
+
pkg_check_modules(liburing REQUIRED IMPORTED_TARGET GLOBAL liburing>=2.0)
|
5 |
+
|
6 |
+
target_link_libraries(main PRIVATE PkgConfig::liburing)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/liburing/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "liburing",
|
3 |
+
"version": "2.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Linux-native io_uring I/O access library",
|
6 |
+
"homepage": "https://github.com/axboe/liburing",
|
7 |
+
"supports": "linux"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb-win32/CMakeLists.txt
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libusb-win32)
|
3 |
+
|
4 |
+
set(lib_headers src/lusb0_usb.h)
|
5 |
+
|
6 |
+
set(lib_srcs src/descriptors.c
|
7 |
+
src/error.c
|
8 |
+
src/install.c
|
9 |
+
src/registry.c
|
10 |
+
src/usb.c
|
11 |
+
src/windows.c
|
12 |
+
libusb0.def)
|
13 |
+
|
14 |
+
add_library(libusb0 ${lib_srcs})
|
15 |
+
target_include_directories(libusb0 PRIVATE "src/driver")
|
16 |
+
target_link_libraries(libusb0 Setupapi)
|
17 |
+
target_compile_definitions(libusb0 PRIVATE "-D_CRT_SECURE_NO_WARNINGS")
|
18 |
+
|
19 |
+
install(
|
20 |
+
TARGETS libusb0
|
21 |
+
RUNTIME DESTINATION bin
|
22 |
+
ARCHIVE DESTINATION lib
|
23 |
+
LIBRARY DESTINATION lib)
|
24 |
+
|
25 |
+
install(
|
26 |
+
FILES ${lib_headers}
|
27 |
+
DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb-win32/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBUSB_VERSION 1.2.6.0)
|
2 |
+
set(LIBUSB_HASH 972438b7465a22882bc91a1238291240ee3cdb09f374454a027d003b150656d4c262553104f74418bb49b4a7ca2f1a4f72d20e689fa3a7728881bafc876267f4)
|
3 |
+
|
4 |
+
vcpkg_from_sourceforge(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO libusb-win32/libusb-win32-releases
|
7 |
+
REF ${LIBUSB_VERSION}
|
8 |
+
FILENAME "libusb-win32-src-${LIBUSB_VERSION}.zip"
|
9 |
+
SHA512 ${LIBUSB_HASH}
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
22 |
+
|
23 |
+
file(COPY ${SOURCE_PATH}/COPYING_LGPL.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/libusb-win32)
|
24 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libusb-win32/COPYING_LGPL.txt ${CURRENT_PACKAGES_DIR}/share/libusb-win32/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb-win32/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libusb-win32",
|
3 |
+
"version-string": "1.2.6.0",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "Allows user space applications to access many USB device on Windows.",
|
6 |
+
"homepage": "https://sourceforge.net/projects/libusb-win32",
|
7 |
+
"supports": "windows"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/portfile.cmake
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
if(VCPKG_TARGET_IS_LINUX)
|
3 |
+
message("${PORT} currently requires the following tools and libraries from the system package manager:\n autoreconf\n libudev\n\nThese can be installed on Ubuntu systems via apt-get install autoreconf libudev-dev")
|
4 |
+
endif()
|
5 |
+
|
6 |
+
set(VERSION 1.0.24)
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO libusb/libusb
|
10 |
+
REF c6a35c56016ea2ab2f19115d2ea1e85e0edae155 # v1.0.24
|
11 |
+
SHA512 985c020d9ae6f7135e3bfee68dddcf70921481db3d10e420f55d5ee9534f7fe7be6a2a31ee73a3b282b649fcc36da4fed848e0bd0410c20eaf1deb9a8e3086e8
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
16 |
+
if(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
|
17 |
+
set(MSVS_VERSION 2019)
|
18 |
+
elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
|
19 |
+
set(MSVS_VERSION 2017)
|
20 |
+
else()
|
21 |
+
set(MSVS_VERSION 2015)
|
22 |
+
endif()
|
23 |
+
|
24 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
25 |
+
set(LIBUSB_PROJECT_TYPE dll)
|
26 |
+
if (VCPKG_CRT_LINKAGE STREQUAL static)
|
27 |
+
file(READ "${SOURCE_PATH}/msvc/libusb_${LIBUSB_PROJECT_TYPE}_${MSVS_VERSION}.vcxproj" PROJ_FILE)
|
28 |
+
string(REPLACE "<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>" "<RuntimeLibrary>MultiThreaded</RuntimeLibrary>" PROJ_FILE "${PROJ_FILE}")
|
29 |
+
string(REPLACE "<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>" "<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>" PROJ_FILE "${PROJ_FILE}")
|
30 |
+
file(WRITE "${SOURCE_PATH}/msvc/libusb_${LIBUSB_PROJECT_TYPE}_${MSVS_VERSION}.vcxproj" "${PROJ_FILE}")
|
31 |
+
endif()
|
32 |
+
else()
|
33 |
+
set(LIBUSB_PROJECT_TYPE static)
|
34 |
+
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
35 |
+
file(READ "${SOURCE_PATH}/msvc/libusb_${LIBUSB_PROJECT_TYPE}_${MSVS_VERSION}.vcxproj" PROJ_FILE)
|
36 |
+
string(REPLACE "<RuntimeLibrary>MultiThreaded</RuntimeLibrary>" "<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>" PROJ_FILE "${PROJ_FILE}")
|
37 |
+
string(REPLACE "<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>" "<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>" PROJ_FILE "${PROJ_FILE}")
|
38 |
+
file(WRITE "${SOURCE_PATH}/msvc/libusb_${LIBUSB_PROJECT_TYPE}_${MSVS_VERSION}.vcxproj" "${PROJ_FILE}")
|
39 |
+
endif()
|
40 |
+
endif()
|
41 |
+
|
42 |
+
# The README.md file in the archive is a symlink to README
|
43 |
+
# which causes issues with the windows MSBUILD process
|
44 |
+
file(REMOVE "${SOURCE_PATH}/README.md")
|
45 |
+
|
46 |
+
vcpkg_install_msbuild(
|
47 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
48 |
+
PROJECT_SUBPATH msvc/libusb_${LIBUSB_PROJECT_TYPE}_${MSVS_VERSION}.vcxproj
|
49 |
+
LICENSE_SUBPATH COPYING
|
50 |
+
)
|
51 |
+
file(INSTALL "${SOURCE_PATH}/libusb/libusb.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/libusb-1.0")
|
52 |
+
set(prefix "")
|
53 |
+
set(exec_prefix [[${prefix}]])
|
54 |
+
set(libdir [[${prefix}/lib]])
|
55 |
+
set(includedir [[${prefix}/include]])
|
56 |
+
configure_file("${SOURCE_PATH}/libusb-1.0.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libusb-1.0.pc" @ONLY)
|
57 |
+
if(NOT VCPKG_BUILD_TYPE)
|
58 |
+
set(includedir [[${prefix}/../include]])
|
59 |
+
configure_file("${SOURCE_PATH}/libusb-1.0.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libusb-1.0.pc" @ONLY)
|
60 |
+
endif()
|
61 |
+
else()
|
62 |
+
vcpkg_configure_make(
|
63 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
64 |
+
AUTOCONFIG
|
65 |
+
)
|
66 |
+
vcpkg_install_make()
|
67 |
+
endif()
|
68 |
+
|
69 |
+
vcpkg_fixup_pkgconfig()
|
70 |
+
|
71 |
+
configure_file("${CURRENT_PORT_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|
72 |
+
configure_file("${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
73 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package @PORT@:@TARGET_TRIPLET@ provides CMake targets:
|
2 |
+
|
3 |
+
find_package(@PORT@ CONFIG REQUIRED)
|
4 |
+
target_include_directories(main PRIVATE ${LIBUSB_INCLUDE_DIRS})
|
5 |
+
target_link_libraries(main PRIVATE ${LIBUSB_LIBRARIES})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(SelectLibraryConfigurations)
|
2 |
+
|
3 |
+
find_path(LIBUSB_INCLUDE_DIR libusb.h PATH_SUFFIXES libusb-1.0)
|
4 |
+
find_library(LIBUSB_LIBRARY_DEBUG NAMES libusb-1.0 usb-1.0 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
|
5 |
+
find_library(LIBUSB_LIBRARY_RELEASE NAMES libusb-1.0 usb-1.0 NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
|
6 |
+
|
7 |
+
select_library_configurations(LIBUSB)
|
8 |
+
|
9 |
+
set(LIBUSB_INCLUDE_DIRS ${LIBUSB_INCLUDE_DIR})
|
10 |
+
set(LIBUSB_LIBRARIES ${LIBUSB_LIBRARY})
|
11 |
+
|
12 |
+
if (@VCPKG_TARGET_IS_LINUX@)
|
13 |
+
list(APPEND LIBUSB_LIBRARIES udev)
|
14 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusb/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libusb",
|
3 |
+
"version": "1.0.24",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "a cross-platform library to access USB devices",
|
6 |
+
"homepage": "https://github.com/libusb/libusb",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/CMakeLists.txt
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libusbmuxd C)
|
3 |
+
|
4 |
+
# find dependencies
|
5 |
+
find_path(libplist_INCLUDES plist.h PATH_SUFFIXES plist)
|
6 |
+
set(libplist_INCLUDES ${libplist_INCLUDES}/../)
|
7 |
+
find_library(libplist NAMES plist libplist plist-2.0 libplist-2.0 REQUIRED)
|
8 |
+
|
9 |
+
# ready to create library
|
10 |
+
file(GLOB_RECURSE IDVCACTV_TOOLS_HDR common/*.h)
|
11 |
+
file(GLOB_RECURSE IDVCACTV_TOOLS_SRC common/*.c)
|
12 |
+
|
13 |
+
file(GLOB_RECURSE IDVCACTV_PUBLIC_HDR include/*.h)
|
14 |
+
file(GLOB_RECURSE IDVCACTV_SRC src/*.c)
|
15 |
+
|
16 |
+
add_library(libusbmuxd ${IDVCACTV_TOOLS_HDR} ${IDVCACTV_TOOLS_SRC} ${IDVCACTV_SRC} ${IDVCACTV_PUBLIC_HDR})
|
17 |
+
target_include_directories(libusbmuxd PRIVATE ${libplist_INCLUDES} include common)
|
18 |
+
target_compile_definitions(libusbmuxd PRIVATE -DPACKAGE_STRING="1.2.77")
|
19 |
+
if (WIN32)
|
20 |
+
target_compile_definitions(libusbmuxd PRIVATE -DWIN32)
|
21 |
+
target_link_libraries(libusbmuxd PRIVATE Ws2_32)
|
22 |
+
endif()
|
23 |
+
target_link_libraries(libusbmuxd PRIVATE ${libplist})
|
24 |
+
|
25 |
+
# install
|
26 |
+
install(
|
27 |
+
TARGETS libusbmuxd
|
28 |
+
RUNTIME DESTINATION bin
|
29 |
+
ARCHIVE DESTINATION lib
|
30 |
+
LIBRARY DESTINATION lib
|
31 |
+
)
|
32 |
+
|
33 |
+
set(LIBPLIST_VERSION 2.0)
|
34 |
+
set(PACKAGE_NAME libusbmuxd)
|
35 |
+
set(PACKAGE_VERSION 2.0)
|
36 |
+
set(prefix ${CMAKE_INSTALL_PREFIX})
|
37 |
+
set(exec_prefix \${prefix})
|
38 |
+
set(libdir \${prefix}/lib)
|
39 |
+
set(includedir \${prefix}/../include)
|
40 |
+
configure_file(
|
41 |
+
${CMAKE_CURRENT_SOURCE_DIR}/src/libusbmuxd-2.0.pc.in
|
42 |
+
${CMAKE_CURRENT_BINARY_DIR}/libusbmuxd-2.0.pc
|
43 |
+
@ONLY
|
44 |
+
)
|
45 |
+
install(
|
46 |
+
FILES ${CMAKE_CURRENT_BINARY_DIR}/libusbmuxd-2.0.pc
|
47 |
+
DESTINATION lib/pkgconfig
|
48 |
+
)
|
49 |
+
|
50 |
+
install(FILES ${IDVCACTV_PUBLIC_HDR} DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/fix-win-build.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
|
2 |
+
index e85cf4a..35ed1b5 100644
|
3 |
+
--- a/src/libusbmuxd.c
|
4 |
+
+++ b/src/libusbmuxd.c
|
5 |
+
@@ -86,6 +86,15 @@ static char* stpncpy(char *dst, const char *src, size_t len)
|
6 |
+
}
|
7 |
+
#endif
|
8 |
+
|
9 |
+
+#ifdef WIN32
|
10 |
+
+int strcasecmp(char *s1, char *s2)
|
11 |
+
+{
|
12 |
+
+ while (toupper((unsigned char)*s1) == toupper((unsigned char)*s2++))
|
13 |
+
+ if (*s1++ == '\0') return 0;
|
14 |
+
+ return(toupper((unsigned char)*s1) - toupper((unsigned char)*--s2));
|
15 |
+
+}
|
16 |
+
+#endif
|
17 |
+
+
|
18 |
+
#include <plist/plist.h>
|
19 |
+
#define PLIST_CLIENT_VERSION_STRING PACKAGE_STRING
|
20 |
+
#define PLIST_LIBUSBMUX_VERSION 3
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libimobiledevice-win32/libusbmuxd
|
4 |
+
REF ac86b23f57879b8b702f3712ba66729008d059a3 # v1.2.219
|
5 |
+
SHA512 ced85088bc6ebb416ccb635d6b4e79662fb34f427d869b64b61847e5fde7b4ae094cebb1f7916d9387c314aeb84106a618fbd7497dc4b36151b236dcb55bd0e4
|
6 |
+
HEAD_REF msvc-master
|
7 |
+
PATCHES fix-win-build.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
configure_file(${CURRENT_PORT_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
|
11 |
+
|
12 |
+
vcpkg_configure_cmake(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
PREFER_NINJA
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
vcpkg_fixup_pkgconfig()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
22 |
+
|
23 |
+
# Handle copyright
|
24 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libusbmuxd/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libusbmuxd",
|
3 |
+
"version": "1.2.219",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A client library to multiplex connections from and to iOS devices",
|
6 |
+
"supports": "!(uwp | linux | osx)",
|
7 |
+
"dependencies": [
|
8 |
+
"libplist"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/CMakeLists.txt
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libuuid C)
|
3 |
+
|
4 |
+
configure_file(config.linux.h config.h COPYONLY)
|
5 |
+
|
6 |
+
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
7 |
+
|
8 |
+
add_library(uuid STATIC
|
9 |
+
clear.c
|
10 |
+
compare.c
|
11 |
+
copy.c
|
12 |
+
gen_uuid.c
|
13 |
+
isnull.c
|
14 |
+
pack.c
|
15 |
+
parse.c
|
16 |
+
randutils.c
|
17 |
+
unpack.c
|
18 |
+
unparse.c
|
19 |
+
uuid_time.c
|
20 |
+
)
|
21 |
+
target_compile_options(uuid PRIVATE -include "${CMAKE_CURRENT_BINARY_DIR}/config.h")
|
22 |
+
|
23 |
+
add_executable(test_uuid test_uuid.c)
|
24 |
+
target_link_libraries(test_uuid uuid)
|
25 |
+
|
26 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
27 |
+
install(FILES uuid.h DESTINATION include/uuid)
|
28 |
+
endif()
|
29 |
+
|
30 |
+
install(
|
31 |
+
TARGETS uuid
|
32 |
+
EXPORT uuid_targets
|
33 |
+
RUNTIME DESTINATION bin
|
34 |
+
LIBRARY DESTINATION lib
|
35 |
+
ARCHIVE DESTINATION lib
|
36 |
+
)
|
37 |
+
|
38 |
+
include(CMakePackageConfigHelpers)
|
39 |
+
set(PACKAGE_CONFIG_FILE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-libuuid-config.cmake")
|
40 |
+
set(INSTALL_CONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/unofficial-libuuid")
|
41 |
+
|
42 |
+
configure_package_config_file(unofficial-libuuid-config.cmake.in
|
43 |
+
"${PACKAGE_CONFIG_FILE}"
|
44 |
+
INSTALL_DESTINATION "${INSTALL_CONFIG_DIR}"
|
45 |
+
)
|
46 |
+
|
47 |
+
export(EXPORT uuid_targets
|
48 |
+
NAMESPACE unofficial::UUID::
|
49 |
+
FILE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-libuuid-targets.cmake"
|
50 |
+
)
|
51 |
+
|
52 |
+
install(EXPORT uuid_targets
|
53 |
+
NAMESPACE unofficial::UUID::
|
54 |
+
FILE unofficial-libuuid-targets.cmake
|
55 |
+
DESTINATION "${INSTALL_CONFIG_DIR}"
|
56 |
+
)
|
57 |
+
|
58 |
+
install(
|
59 |
+
FILES
|
60 |
+
"${PACKAGE_CONFIG_FILE}"
|
61 |
+
DESTINATION
|
62 |
+
"${INSTALL_CONFIG_DIR}"
|
63 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/config.linux.h
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#define HAVE_DECL__SC_HOST_NAME_MAX 1
|
2 |
+
#define HAVE_INTTYPES_H 1
|
3 |
+
#define HAVE_NETINET_IN_H 1
|
4 |
+
#define HAVE_SRANDOM 1
|
5 |
+
#define HAVE_STDINT_H 1
|
6 |
+
#define HAVE_STDLIB_H 1
|
7 |
+
#define HAVE_SYS_FILE_H 1
|
8 |
+
#define HAVE_SYS_IOCTL_H 1
|
9 |
+
#define HAVE_SYS_SOCKET_H 1
|
10 |
+
#define HAVE_SYS_TIME_H 1
|
11 |
+
#define HAVE_UNISTD_H 1
|
12 |
+
#define HAVE_USLEEP 1
|
13 |
+
#define PACKAGE_STRING "libuuid 1.0.3"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBUUID_VERSION 1.0.3)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO libuuid
|
6 |
+
FILENAME "libuuid-${LIBUUID_VERSION}.tar.gz"
|
7 |
+
SHA512 77488caccc66503f6f2ded7bdfc4d3bc2c20b24a8dc95b2051633c695e99ec27876ffbafe38269b939826e1fdb06eea328f07b796c9e0aaca12331a787175507
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY
|
11 |
+
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
12 |
+
${CMAKE_CURRENT_LIST_DIR}/config.linux.h
|
13 |
+
${CMAKE_CURRENT_LIST_DIR}/unofficial-libuuid-config.cmake.in
|
14 |
+
DESTINATION ${SOURCE_PATH}
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
set(prefix ${CURRENT_INSTALLED_DIR})
|
25 |
+
set(exec_prefix \$\{prefix\})
|
26 |
+
set(libdir \$\{exec_prefix\}/lib)
|
27 |
+
set(includedir \$\{prefix\}/include)
|
28 |
+
configure_file(${SOURCE_PATH}/uuid.pc.in ${SOURCE_PATH}/uuid.pc @ONLY)
|
29 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
30 |
+
file(INSTALL ${SOURCE_PATH}/uuid.pc DESTINATION ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
|
31 |
+
endif()
|
32 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
33 |
+
file(INSTALL ${SOURCE_PATH}/uuid.pc DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/unofficial-libuuid TARGET_PATH share/unofficial-libuuid)
|
37 |
+
vcpkg_fixup_pkgconfig()
|
38 |
+
|
39 |
+
file(INSTALL
|
40 |
+
${SOURCE_PATH}/COPYING
|
41 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
42 |
+
|
43 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/unofficial-libuuid-config.cmake.in
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-libuuid-targets.cmake")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuuid/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libuuid",
|
3 |
+
"version": "1.0.3",
|
4 |
+
"port-version": 11,
|
5 |
+
"description": "Universally unique id library",
|
6 |
+
"homepage": "https://sourceforge.net/projects/libuuid",
|
7 |
+
"supports": "!osx & !windows"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/CMakeLists.txt
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
project(libuv C)
|
3 |
+
|
4 |
+
find_package(Threads REQUIRED)
|
5 |
+
|
6 |
+
file(GLOB UV_SOURCES_COMMON src/*.c)
|
7 |
+
|
8 |
+
file(GLOB UV_SOURCES_UNIX
|
9 |
+
src/unix/async.c
|
10 |
+
src/unix/core.c
|
11 |
+
src/unix/dl.c
|
12 |
+
src/unix/fs.c
|
13 |
+
src/unix/getaddrinfo.c
|
14 |
+
src/unix/getnameinfo.c
|
15 |
+
src/unix/loop.c
|
16 |
+
src/unix/loop-watcher.c
|
17 |
+
src/unix/pipe.c
|
18 |
+
src/unix/poll.c
|
19 |
+
src/unix/process.c
|
20 |
+
src/unix/signal.c
|
21 |
+
src/unix/stream.c
|
22 |
+
src/unix/tcp.c
|
23 |
+
src/unix/thread.c
|
24 |
+
src/unix/tty.c
|
25 |
+
src/unix/udp.c
|
26 |
+
)
|
27 |
+
file(GLOB UV_SOURCES_LINUX
|
28 |
+
src/unix/proctitle.c
|
29 |
+
src/unix/linux-core.c
|
30 |
+
src/unix/linux-inotify.c
|
31 |
+
src/unix/linux-syscalls.c
|
32 |
+
src/unix/procfs-exepath.c
|
33 |
+
src/unix/sysinfo-loadavg.c
|
34 |
+
src/unix/sysinfo-memory.c
|
35 |
+
src/unix/epoll.c
|
36 |
+
)
|
37 |
+
file(GLOB UV_SOURCES_DARWIN
|
38 |
+
src/unix/proctitle.c
|
39 |
+
src/unix/darwin.c
|
40 |
+
src/unix/fsevents.c
|
41 |
+
src/unix/darwin-proctitle.c
|
42 |
+
src/unix/bsd-ifaddrs.c
|
43 |
+
src/unix/kqueue.c
|
44 |
+
)
|
45 |
+
file(GLOB UV_SOURCES_FREEBSD
|
46 |
+
src/unix/freebsd.c
|
47 |
+
src/unix/posix-hrtime.c
|
48 |
+
src/unix/bsd-proctitle.c
|
49 |
+
src/unix/bsd-ifaddrs.c
|
50 |
+
src/unix/kqueue.c
|
51 |
+
)
|
52 |
+
file(GLOB UV_SOURCES_WIN src/win/*.c)
|
53 |
+
|
54 |
+
if(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
55 |
+
add_library(libuv ${UV_SOURCES_COMMON} ${UV_SOURCES_WIN})
|
56 |
+
target_compile_definitions(libuv PRIVATE WIN32_LEAN_AND_MEAN "_WIN32_WINNT=0x0600")
|
57 |
+
target_link_libraries(libuv PRIVATE iphlpapi psapi shell32 userenv ws2_32)
|
58 |
+
elseif(APPLE)
|
59 |
+
add_library(libuv ${UV_SOURCES_COMMON} ${UV_SOURCES_UNIX} ${UV_SOURCES_DARWIN})
|
60 |
+
elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
61 |
+
add_library(libuv ${UV_SOURCES_COMMON} ${UV_SOURCES_UNIX} ${UV_SOURCES_FREEBSD})
|
62 |
+
else() # Assume some Linux variant
|
63 |
+
add_library(libuv ${UV_SOURCES_COMMON} ${UV_SOURCES_UNIX} ${UV_SOURCES_LINUX})
|
64 |
+
endif()
|
65 |
+
|
66 |
+
target_link_libraries(libuv PRIVATE Threads::Threads)
|
67 |
+
target_include_directories(libuv PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)
|
68 |
+
set_target_properties(libuv PROPERTIES DEFINE_SYMBOL BUILDING_UV_SHARED)
|
69 |
+
|
70 |
+
if(NOT UV_SKIP_HEADERS)
|
71 |
+
install(
|
72 |
+
DIRECTORY include/
|
73 |
+
DESTINATION include
|
74 |
+
)
|
75 |
+
endif()
|
76 |
+
|
77 |
+
install(TARGETS libuv
|
78 |
+
EXPORT libuv
|
79 |
+
RUNTIME DESTINATION bin
|
80 |
+
ARCHIVE DESTINATION lib
|
81 |
+
LIBRARY DESTINATION lib
|
82 |
+
)
|
83 |
+
install(EXPORT libuv FILE unofficial-libuv-targets.cmake NAMESPACE unofficial::libuv:: DESTINATION share/unofficial-libuv)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libuv/libuv
|
4 |
+
REF v1.43.0
|
5 |
+
SHA512 66ee11f8f6fc1313c432858572789cf67acd6364b29a06c73323ab20626e2d6e3d3dcea748cf5d9d4368b40ad7fe0d5fd35e9369c22e531db523703f005248d3
|
6 |
+
HEAD_REF v1.x
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS_DEBUG
|
14 |
+
-DUV_SKIP_HEADERS=ON
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-libuv CONFIG_PATH share/unofficial-libuv)
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
22 |
+
|
23 |
+
configure_file(
|
24 |
+
"${CMAKE_CURRENT_LIST_DIR}/unofficial-libuv-config.in.cmake"
|
25 |
+
"${CURRENT_PACKAGES_DIR}/share/unofficial-libuv/unofficial-libuv-config.cmake"
|
26 |
+
@ONLY
|
27 |
+
)
|
28 |
+
|
29 |
+
file(READ "${CURRENT_PACKAGES_DIR}/include/uv.h" UV_H)
|
30 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
31 |
+
string(REPLACE "defined(USING_UV_SHARED)" "1" UV_H "${UV_H}")
|
32 |
+
else()
|
33 |
+
string(REPLACE "defined(USING_UV_SHARED)" "0" UV_H "${UV_H}")
|
34 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
35 |
+
endif()
|
36 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/include/uv.h" "${UV_H}")
|
37 |
+
|
38 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
39 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/unofficial-libuv-config.in.cmake
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
3 |
+
include(CMakeFindDependencyMacro)
|
4 |
+
find_dependency(Threads)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
include(${CMAKE_CURRENT_LIST_DIR}/unofficial-libuv-targets.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
|
3 |
+
if(WIN32)
|
4 |
+
list(APPEND LibUV_LIBRARIES iphlpapi psapi shell32 userenv ws2_32)
|
5 |
+
if(TARGET LibUV::LibUV)
|
6 |
+
set_property(TARGET LibUV::LibUV APPEND PROPERTY INTERFACE_LINK_LIBRARIES iphlpapi psapi shell32 userenv ws2_32)
|
7 |
+
endif()
|
8 |
+
endif()
|
9 |
+
include(CMakeFindDependencyMacro)
|
10 |
+
find_dependency(Threads)
|
11 |
+
list(APPEND LibUV_LIBRARIES Threads::Threads)
|
12 |
+
if(TARGET LibUV::LibUV)
|
13 |
+
set_property(TARGET LibUV::LibUV APPEND PROPERTY INTERFACE_LINK_LIBRARIES Threads::Threads)
|
14 |
+
endif()
|
15 |
+
|
16 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuv/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libuv",
|
3 |
+
"version-semver": "1.43.0",
|
4 |
+
"description": "libuv is a multi-platform support library with a focus on asynchronous I/O.",
|
5 |
+
"homepage": "https://github.com/libuv/libuv",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuvc/build_fix.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f3c8116..b9a6d38 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -39,10 +39,10 @@ set(SOURCES
|
6 |
+
src/misc.c
|
7 |
+
)
|
8 |
+
|
9 |
+
-find_package(LibUSB)
|
10 |
+
+find_package(libusb CONFIG REQUIRED)
|
11 |
+
|
12 |
+
# JpegPkg name to differ from shipped with CMake
|
13 |
+
-find_package(JpegPkg QUIET)
|
14 |
+
+find_package(JPEG REQUIRED)
|
15 |
+
if(JPEG_FOUND)
|
16 |
+
message(STATUS "Building libuvc with JPEG support.")
|
17 |
+
set(LIBUVC_HAS_JPEG TRUE)
|
18 |
+
@@ -107,9 +107,10 @@ foreach(target_name IN LISTS UVC_TARGETS)
|
19 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>
|
20 |
+
$<INSTALL_INTERFACE:include>
|
21 |
+
)
|
22 |
+
+ target_include_directories(${target_name} PRIVATE ${LIBUSB_INCLUDE_DIRS})
|
23 |
+
target_link_libraries(${target_name}
|
24 |
+
# libusb-1.0 used internally so we link to it privately.
|
25 |
+
- PRIVATE LibUSB::LibUSB
|
26 |
+
+ PRIVATE ${LIBUSB_LIBRARIES}
|
27 |
+
)
|
28 |
+
if(JPEG_FOUND)
|
29 |
+
target_link_libraries(${target_name}
|
30 |
+
diff --git a/libuvcConfig.cmake b/libuvcConfig.cmake
|
31 |
+
index b9887ea..e8f09dc 100644
|
32 |
+
--- a/libuvcConfig.cmake
|
33 |
+
+++ b/libuvcConfig.cmake
|
34 |
+
@@ -10,8 +10,8 @@ if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED)
|
35 |
+
list(APPEND extraArgs REQUIRED)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
-find_package(JpegPkg ${extraArgs})
|
39 |
+
-find_package(LibUSB ${extraArgs})
|
40 |
+
+include(CMakeFindDependencyMacro)
|
41 |
+
+find_dependency(JPEG ${extraArgs})
|
42 |
+
include("${CMAKE_CURRENT_LIST_DIR}/libuvcTargets.cmake")
|
43 |
+
|
44 |
+
set(libuvc_FOUND TRUE)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libuvc/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libuvc/libuvc
|
4 |
+
REF c612d4509eb0ff19ce414abc3dca18d0f6263a84
|
5 |
+
SHA512 df3f23463728e8ffd69dc52e251ea2610ea8df32b02f6d26dd2a6910cf217650245bb1a11e67be61df875c6992d592c9cb17675d914997bd72c9fe7eb5b65c32
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES build_fix.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
11 |
+
set(BUILD_TARGET "Shared")
|
12 |
+
else()
|
13 |
+
set(BUILD_TARGET "Static")
|
14 |
+
endif()
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
OPTIONS
|
19 |
+
-DCMAKE_BUILD_TARGET=${BUILD_TARGET}
|
20 |
+
-DBUILD_EXAMPLE=OFF
|
21 |
+
)
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME libuvc CONFIG_PATH lib/cmake/libuvc)
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
29 |
+
|
30 |
+
vcpkg_fixup_pkgconfig()
|
31 |
+
# Handle copyright
|
32 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|