Spaces:
Sleeping
Sleeping
14225df4d38cc9ea6fff564210c18da27e7ecc97623c233174d7ada7be0d0007
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libde265/fix-libde265-headers.patch +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libde265/portfile.cmake +54 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libde265/vcpkg.json +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/CMakeLists.txt +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/sizeofvoid.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdivide/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdivide/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdjinterop/portfile.cmake +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdjinterop/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdshowcapture/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdshowcapture/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/0001_cmake.patch +107 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/0002_replace_tr1_with_cpp11.patch +95 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/0003_fix_osx_support.patch +145 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/vcpkg.json +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57format/portfile.cmake +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57format/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libebur128/portfile.cmake +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libebur128/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libepoxy/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libepoxy/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/fix-LibeventConfig_cmake_in_path.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/fix-file_path.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/fix-usage.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/portfile.cmake +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/vcpkg.json +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevhtp/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevhtp/vcpkg.json +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/CMakeLists.txt +142 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/add-missing-_stdint-h.patch +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/config.h.cmake +96 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/libexif.def +130 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfabric/add_additional_includes.patch +58 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfabric/portfile.cmake +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfabric/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/CMakeLists.txt +229 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/fficonfig.h +65 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/libffiConfig.cmake.in +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/portfile.cmake +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfido2/fix_cmakelists.patch +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfido2/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfido2/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/fix-compile-options.patch +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/portfile.cmake +91 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libde265/fix-libde265-headers.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libde265/CMakeLists.txt b/libde265/CMakeLists.txt
|
2 |
+
index 749c7fb..45e7419 100644
|
3 |
+
--- a/libde265/CMakeLists.txt
|
4 |
+
+++ b/libde265/CMakeLists.txt
|
5 |
+
@@ -43,7 +43,7 @@ set (libde265_headers
|
6 |
+
bitstream.h
|
7 |
+
cabac.h
|
8 |
+
configparam.h
|
9 |
+
- de265-version.h
|
10 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/de265-version.h
|
11 |
+
contextmodel.h
|
12 |
+
de265.h
|
13 |
+
deblock.h
|
14 |
+
@@ -119,7 +119,6 @@ install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config
|
15 |
+
)
|
16 |
+
|
17 |
+
install(FILES ${libde265_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
|
18 |
+
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/de265-version.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
|
19 |
+
|
20 |
+
install(EXPORT ${PROJECT_NAME}Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
|
21 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libde265/portfile.cmake
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Used for .pc file
|
2 |
+
set(VERSION "1.0.8")
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO strukturag/libde265
|
6 |
+
REF 8aed7472df0af25b811828fa14f2f169dc34d35a # v1.0.8
|
7 |
+
SHA512 e2da1436e5b0d8a3841087e879fbbff5a92de4ebb69d097959972ec8c9407305bc2a17020cb46139fbacc84f91ff8cfb4d9547308074ba213e002ee36bb2e006
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-libde265-headers.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
INVERTED_FEATURES
|
15 |
+
sse DISABLE_SSE
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS
|
21 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_SDL=ON
|
22 |
+
${FEATURE_OPTIONS}
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libde265)
|
27 |
+
vcpkg_copy_tools(TOOL_NAMES dec265 enc265 AUTO_CLEAN)
|
28 |
+
|
29 |
+
set(prefix "")
|
30 |
+
set(exec_prefix [[${prefix}]])
|
31 |
+
set(libdir [[${prefix}/lib]])
|
32 |
+
set(includedir [[${prefix}/include]])
|
33 |
+
set(LIBS "")
|
34 |
+
configure_file("${SOURCE_PATH}/libde265.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libde265.pc" @ONLY)
|
35 |
+
# The produced library name is `liblibde265.a` or `libde265.lib`
|
36 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libde265.pc" "-lde265" "-llibde265")
|
37 |
+
# libde265's pc file assumes libstdc++, which isn't always true.
|
38 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libde265.pc" " -lstdc++" "")
|
39 |
+
if(NOT VCPKG_BUILD_TYPE)
|
40 |
+
configure_file("${SOURCE_PATH}/libde265.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libde265.pc" @ONLY)
|
41 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libde265.pc" "-lde265" "-llibde265")
|
42 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libde265.pc" " -lstdc++" "")
|
43 |
+
endif()
|
44 |
+
vcpkg_fixup_pkgconfig()
|
45 |
+
|
46 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
47 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
48 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libde265/de265.h" "!defined(LIBDE265_STATIC_BUILD)" "0")
|
49 |
+
else()
|
50 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libde265/de265.h" "!defined(LIBDE265_STATIC_BUILD)" "1")
|
51 |
+
endif()
|
52 |
+
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
54 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libde265/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libde265",
|
3 |
+
"version": "1.0.8",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Open h.265 video codec implementation.",
|
6 |
+
"homepage": "https://www.libde265.org/",
|
7 |
+
"license": "LGPL-3.0-only",
|
8 |
+
"supports": "!(arm | uwp)",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"features": {
|
20 |
+
"sse": {
|
21 |
+
"description": "Enable SSE optimizations"
|
22 |
+
}
|
23 |
+
}
|
24 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/CMakeLists.txt
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(libdisasm C)
|
3 |
+
|
4 |
+
set(CMAKE_DEBUG_POSTFIX d)
|
5 |
+
|
6 |
+
set(SRCS
|
7 |
+
libdisasm/ia32_implicit.c
|
8 |
+
libdisasm/ia32_implicit.h
|
9 |
+
libdisasm/ia32_insn.c
|
10 |
+
libdisasm/ia32_insn.h
|
11 |
+
libdisasm/ia32_invariant.c
|
12 |
+
libdisasm/ia32_invariant.h
|
13 |
+
libdisasm/ia32_modrm.c
|
14 |
+
libdisasm/ia32_modrm.h
|
15 |
+
libdisasm/ia32_opcode_tables.c
|
16 |
+
libdisasm/ia32_opcode_tables.h
|
17 |
+
libdisasm/ia32_operand.c
|
18 |
+
libdisasm/ia32_operand.h
|
19 |
+
libdisasm/ia32_reg.c
|
20 |
+
libdisasm/ia32_reg.h
|
21 |
+
libdisasm/ia32_settings.c
|
22 |
+
libdisasm/ia32_settings.h
|
23 |
+
libdisasm/libdis.h
|
24 |
+
libdisasm/qword.h
|
25 |
+
libdisasm/x86_disasm.c
|
26 |
+
libdisasm/x86_format.c
|
27 |
+
libdisasm/x86_imm.c
|
28 |
+
libdisasm/x86_imm.h
|
29 |
+
libdisasm/x86_insn.c
|
30 |
+
libdisasm/x86_misc.c
|
31 |
+
libdisasm/x86_operand_list.c
|
32 |
+
libdisasm/x86_operand_list.h
|
33 |
+
)
|
34 |
+
|
35 |
+
include_directories(libdisasm)
|
36 |
+
|
37 |
+
add_library(libdisasm ${SRCS})
|
38 |
+
|
39 |
+
if (MSVC)
|
40 |
+
target_compile_definitions(libdisasm PRIVATE _CRT_SECURE_NO_WARNINGS)
|
41 |
+
endif()
|
42 |
+
|
43 |
+
install(
|
44 |
+
TARGETS libdisasm
|
45 |
+
RUNTIME DESTINATION bin
|
46 |
+
LIBRARY DESTINATION lib
|
47 |
+
ARCHIVE DESTINATION lib
|
48 |
+
)
|
49 |
+
|
50 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
51 |
+
install(FILES libdisasm/libdis.h DESTINATION include)
|
52 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO bastard/libdisasm
|
6 |
+
REF 0.23
|
7 |
+
FILENAME "libdisasm-0.23.tar.gz"
|
8 |
+
SHA512 29eecfbfd8168188242278a1a38f0c90770d0581a52d4600ae6343829dd0d6607b98329f12a3d7409d43dd56dca6a7d1eb25d58a001c2bfd3eb8474c0e7879e7
|
9 |
+
PATCHES sizeofvoid.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS_DEBUG
|
17 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
|
22 |
+
# Handle copyright
|
23 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/sizeofvoid.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/libdisasm/x86_disasm.c
|
2 |
+
+++ b/libdisasm/x86_disasm.c
|
3 |
+
@@ -35,7 +35,7 @@ unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len,
|
4 |
+
|
5 |
+
if ( offset >= buf_len ) {
|
6 |
+
/* another caller screwup ;) */
|
7 |
+
- x86_report_error(report_disasm_bounds, (void*)(long)buf_rva+offset);
|
8 |
+
+ x86_report_error(report_disasm_bounds, (void*)(long)(buf_rva+offset));
|
9 |
+
return 0;
|
10 |
+
}
|
11 |
+
|
12 |
+
@@ -53,13 +53,13 @@ unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len,
|
13 |
+
|
14 |
+
/* check and see if we had an invalid instruction */
|
15 |
+
if (! size ) {
|
16 |
+
- x86_report_error(report_invalid_insn, (void*)(long)buf_rva+offset );
|
17 |
+
+ x86_report_error(report_invalid_insn, (void*)(long)(buf_rva+offset));
|
18 |
+
return 0;
|
19 |
+
}
|
20 |
+
|
21 |
+
/* check if we overran the end of the buffer */
|
22 |
+
if ( size > len ) {
|
23 |
+
- x86_report_error( report_insn_bounds, (void*)(long)buf_rva + offset );
|
24 |
+
+ x86_report_error( report_insn_bounds, (void*)(long)(buf_rva + offset));
|
25 |
+
MAKE_INVALID( insn, bytes );
|
26 |
+
return 0;
|
27 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdisasm/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdisasm",
|
3 |
+
"version-string": "0.23",
|
4 |
+
"port-version": 9,
|
5 |
+
"description": "x86 Disassembler Library.",
|
6 |
+
"homepage": "https://sourceforge.net/projects/bastard",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdivide/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ridiculousfish/libdivide
|
4 |
+
REF 5.0
|
5 |
+
SHA512 89581efab63a0668405196d4d8188e03f3b87027e9014ef7238e1d79fe369d8abbca0e44b00cf02b00be29c272feb34c9b9290313596adbef9b46ae0715c29dd
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
test BUILD_TESTS
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS
|
17 |
+
${FEATURE_OPTIONS}
|
18 |
+
-DLIBDIVIDE_SSE2=OFF
|
19 |
+
-DLIBDIVIDE_AVX2=OFF
|
20 |
+
-DLIBDIVIDE_AVX512=OFF
|
21 |
+
-DLIBDIVIDE_NEON=OFF
|
22 |
+
-DENABLE_VECTOR_EXTENSIONS=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
31 |
+
|
32 |
+
# Handle copyright
|
33 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdivide/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdivide",
|
3 |
+
"version": "5.0",
|
4 |
+
"description": "libdivide.h is a header-only C/C++ library for optimizing integer division.",
|
5 |
+
"homepage": "https://github.com/ridiculousfish/libdivide",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"test": {
|
18 |
+
"description": "Build test"
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdjinterop/portfile.cmake
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO xsco/libdjinterop
|
4 |
+
REF 0.16.0
|
5 |
+
SHA512 7653e3752b8d597a967fb5f83f8b14c0db5d9cdb05a9bb22f6d9f34a890327fafdbd81996ce9af09552b69da4b9f7f0b41d631b1704b11e46e335f205c6886bf
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
10 |
+
vcpkg_cmake_install()
|
11 |
+
|
12 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/DjInterop)
|
13 |
+
vcpkg_fixup_pkgconfig()
|
14 |
+
vcpkg_copy_pdbs()
|
15 |
+
|
16 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
18 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdjinterop/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdjinterop",
|
3 |
+
"version": "0.16.0",
|
4 |
+
"description": "C++ library for access to DJ record libraries. Currently only supports Denon Engine Prime databases",
|
5 |
+
"homepage": "https://github.com/xsco/libdjinterop",
|
6 |
+
"license": "LGPL-3.0-or-later",
|
7 |
+
"dependencies": [
|
8 |
+
"sqlite3",
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
"zlib"
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdshowcapture/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO obsproject/libdshowcapture
|
4 |
+
REF cba07c63810f51a58f6fb7f2e3b0fb162b5a6313
|
5 |
+
SHA512 962f5886f637f06580db9b90d238cdb76976846c5b1d49112910fda0da689788abec1d1703aa4e91ee4be57f328eb8183c04f94119662e1243269ae66f023c84
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_build(TARGET libdshowcapture)
|
14 |
+
|
15 |
+
# Copy files
|
16 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libdshowcapture" RENAME copyright)
|
17 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
18 |
+
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libdshowcapture.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
19 |
+
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libdshowcapture.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
20 |
+
endif()
|
21 |
+
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/libdshowcapture.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
22 |
+
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libdshowcapture.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
23 |
+
file(INSTALL "${SOURCE_PATH}/dshowcapture.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
24 |
+
|
25 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libdshowcapture/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdshowcapture",
|
3 |
+
"version": "0.6.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Free and Open Source C++11 Library for capturing DirectShow video/audio devices on windows.",
|
6 |
+
"supports": "windows & !uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/0001_cmake.patch
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt 2012-04-04 13:09:12.000000000 +0800
|
3 |
+
+++ b/CMakeLists.txt 2021-06-16 01:14:35.669163100 +0800
|
4 |
+
@@ -31,6 +31,8 @@
|
5 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake)
|
6 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX ${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxx_flag_overrides.cmake)
|
7 |
+
|
8 |
+
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
9 |
+
+
|
10 |
+
# Set a private module find path
|
11 |
+
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
12 |
+
|
13 |
+
@@ -81,17 +83,17 @@
|
14 |
+
endif(NOT Boost_FOUND)
|
15 |
+
|
16 |
+
set(Xerces_USE_STATIC_LIBS On)
|
17 |
+
-find_package(Xerces QUIET)
|
18 |
+
-if (NOT Xerces_FOUND)
|
19 |
+
+find_package(XercesC QUIET)
|
20 |
+
+if (NOT XercesC_FOUND)
|
21 |
+
set(XERCES_ROOT CACHE PATH "Location of the xerces library")
|
22 |
+
message(FATAL_ERROR
|
23 |
+
"Unable to find xerces library.
|
24 |
+
Please set the the XERCES_ROOT to point to the root of the xerces directory."
|
25 |
+
)
|
26 |
+
-endif (NOT Xerces_FOUND)
|
27 |
+
+endif (NOT XercesC_FOUND)
|
28 |
+
|
29 |
+
-set(XML_LIBRARIES ${Xerces_LIBRARY})
|
30 |
+
-set(XML_INCLUDE_DIRS ${Xerces_INCLUDE_DIR})
|
31 |
+
+set(XML_LIBRARIES ${XercesC_LIBRARY})
|
32 |
+
+set(XML_INCLUDE_DIRS ${XercesC_INCLUDE_DIR})
|
33 |
+
|
34 |
+
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
35 |
+
add_definitions(-DLINUX)
|
36 |
+
@@ -187,12 +189,18 @@
|
37 |
+
add_executable( las2e57
|
38 |
+
src/tools/las2e57.cpp
|
39 |
+
)
|
40 |
+
+
|
41 |
+
+if (MSVC)
|
42 |
+
+ set(LAS2E57_EXTRA_LINK bcrypt)
|
43 |
+
+endif(MSVC)
|
44 |
+
+
|
45 |
+
target_link_libraries( las2e57
|
46 |
+
E57RefImpl
|
47 |
+
LASReader
|
48 |
+
time_conversion
|
49 |
+
${XML_LIBRARIES}
|
50 |
+
${CMAKE_THREAD_LIBS_INIT}
|
51 |
+
+ ${LAS2E57_EXTRA_LINK}
|
52 |
+
)
|
53 |
+
add_executable( e57fields
|
54 |
+
src/tools/e57fields.cpp
|
55 |
+
@@ -270,15 +270,32 @@
|
56 |
+
install(
|
57 |
+
FILES
|
58 |
+
include/E57Foundation.h
|
59 |
+
+ include/E57Simple.h
|
60 |
+
+ include/LASReader.h
|
61 |
+
DESTINATION include/e57
|
62 |
+
)
|
63 |
+
+install(
|
64 |
+
+ FILES
|
65 |
+
+ include/time_conversion/time_conversion.h
|
66 |
+
+ include/time_conversion/basictypes.h
|
67 |
+
+ include/time_conversion/constants.h
|
68 |
+
+ include/time_conversion/gnss_error.h
|
69 |
+
+ DESTINATION include/e57/time_conversion
|
70 |
+
+)
|
71 |
+
|
72 |
+
install(
|
73 |
+
FILES
|
74 |
+
CHANGES.TXT
|
75 |
+
README.TXT
|
76 |
+
src/refimpl/E57RefImplConfig.cmake
|
77 |
+
- DESTINATION .
|
78 |
+
+ DESTINATION share/e57refimpl
|
79 |
+
+)
|
80 |
+
+
|
81 |
+
+install(
|
82 |
+
+ FILES
|
83 |
+
+ README.TXT
|
84 |
+
+ RENAME copyright
|
85 |
+
+ DESTINATION share/libe57
|
86 |
+
)
|
87 |
+
|
88 |
+
#include (InstallRequiredSystemLibraries)
|
89 |
+
--- a/src/refimpl/E57RefImplConfig.cmake 2011-10-06 16:01:00.000000000 +0800
|
90 |
+
+++ b/src/refimpl/E57RefImplConfig.cmake 2022-03-01 16:48:29.117485600 +0800
|
91 |
+
@@ -49,6 +49,8 @@
|
92 |
+
# NOTE: You will also need to include the boost and xerces libraries to your
|
93 |
+
# project.
|
94 |
+
|
95 |
+
+get_filename_component(E57RefImpl_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
|
96 |
+
+
|
97 |
+
IF (NOT "${E57RefImpl_DIR}/include" EQUAL "${E57RefImpl_INCLUDE_DIR}")
|
98 |
+
SET(E57RefImpl_LIBRARY_DEBUG E57RefImpl_LIBRARY_DEBUG-NOTFOUND)
|
99 |
+
SET(E57RefImpl_LIBRARY_RELEASE E57RefImpl_LIBRARY_RELEASE-NOTFOUND)
|
100 |
+
@@ -78,6 +80,6 @@
|
101 |
+
NAMES libE57RefImpl-d
|
102 |
+
E57RefImpl-d
|
103 |
+
- HINTS ${E57RefImpl_DIR}/lib
|
104 |
+
+ HINTS ${E57RefImpl_DIR}/debug/lib
|
105 |
+
DOC "E57 debug library"
|
106 |
+
)
|
107 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/0002_replace_tr1_with_cpp11.patch
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --color -Naur a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt 2013-04-03 22:24:08.000000000 +0800
|
3 |
+
+++ b/CMakeLists.txt 2022-03-01 17:23:01.210728200 +0800
|
4 |
+
@@ -36,8 +36,9 @@
|
5 |
+
# If you find any errors or have suggestion to improve the build script:
|
6 |
+
# patches are most welcome! Please send them to the development mailing list.
|
7 |
+
|
8 |
+
+cmake_minimum_required(VERSION 3.1)
|
9 |
+
|
10 |
+
-cmake_minimum_required(VERSION 2.8.2)
|
11 |
+
+set(CMAKE_CXX_STANDARD 11)
|
12 |
+
|
13 |
+
# Override flags to enable prepare for linking to static runtime
|
14 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake)
|
15 |
+
diff --color -Naur a/src/tools/e57fields.cpp b/src/tools/e57fields.cpp
|
16 |
+
--- a/src/tools/e57fields.cpp 2012-04-04 17:19:01.000000000 +0800
|
17 |
+
+++ b/src/tools/e57fields.cpp 2022-03-01 17:24:17.904911600 +0800
|
18 |
+
@@ -30,11 +30,7 @@
|
19 |
+
#include <iomanip>
|
20 |
+
#include <float.h>
|
21 |
+
#include <map>
|
22 |
+
-#if defined(_MSC_VER)
|
23 |
+
-# include <memory>
|
24 |
+
-#else
|
25 |
+
-# include <tr1/memory>
|
26 |
+
-#endif
|
27 |
+
+#include <memory>
|
28 |
+
#include "E57Foundation.h"
|
29 |
+
#include "E57FoundationImpl.h" //??? for exceptions, should be in separate file
|
30 |
+
|
31 |
+
@@ -43,7 +39,6 @@
|
32 |
+
|
33 |
+
using namespace e57;
|
34 |
+
using namespace std;
|
35 |
+
-using namespace std::tr1;
|
36 |
+
|
37 |
+
//!!! prologue, file name, date, version#, total # elements
|
38 |
+
//!!! doc
|
39 |
+
@@ -446,9 +441,9 @@
|
40 |
+
/// Only one is used, depending on the type of the E57 element.
|
41 |
+
/// One of these three should be resized to BUFFER_ELEMENT_COUNT.
|
42 |
+
/// These are smart pointers to avoid the copying (and the moving) when put on the cvElements list.
|
43 |
+
- shared_ptr<vector<int64_t> > iBuffer;
|
44 |
+
- shared_ptr<vector<double> > dBuffer;
|
45 |
+
- shared_ptr<vector<string> > sBuffer;
|
46 |
+
+ std::shared_ptr<vector<int64_t> > iBuffer;
|
47 |
+
+ std::shared_ptr<vector<double> > dBuffer;
|
48 |
+
+ std::shared_ptr<vector<string> > sBuffer;
|
49 |
+
|
50 |
+
/// The precalculated parts of the element path name.
|
51 |
+
/// The only part that is missing is the record number which goes in between.
|
52 |
+
diff --color -Naur a/src/tools/e57unpack.cpp b/src/tools/e57unpack.cpp
|
53 |
+
--- a/src/tools/e57unpack.cpp 2013-04-03 22:24:08.000000000 +0800
|
54 |
+
+++ b/src/tools/e57unpack.cpp 2022-03-01 17:25:15.206260200 +0800
|
55 |
+
@@ -45,12 +45,8 @@
|
56 |
+
#include <stdexcept>
|
57 |
+
using std::runtime_error;
|
58 |
+
|
59 |
+
-#if defined(_MSC_VER)
|
60 |
+
-# include <memory>
|
61 |
+
-#else
|
62 |
+
-# include <tr1/memory>
|
63 |
+
-#endif
|
64 |
+
-using std::tr1::shared_ptr;
|
65 |
+
+#include <memory>
|
66 |
+
+using std::shared_ptr;
|
67 |
+
|
68 |
+
#include <string>
|
69 |
+
using std::string;
|
70 |
+
diff --color -Naur a/src/tools/e57validate.cpp b/src/tools/e57validate.cpp
|
71 |
+
--- a/src/tools/e57validate.cpp 2011-10-06 16:01:00.000000000 +0800
|
72 |
+
+++ b/src/tools/e57validate.cpp 2022-03-01 17:25:46.220771800 +0800
|
73 |
+
@@ -66,11 +66,7 @@
|
74 |
+
|
75 |
+
|
76 |
+
================================================================*/
|
77 |
+
-#if defined(_MSC_VER)
|
78 |
+
-# include <unordered_map>
|
79 |
+
-#else
|
80 |
+
-# include <tr1/unordered_map>
|
81 |
+
-using std::tr1::unordered_map;
|
82 |
+
-#endif
|
83 |
+
+#include <unordered_map>
|
84 |
+
+using std::unordered_map;
|
85 |
+
#include <cstring>
|
86 |
+
using std::strlen;
|
87 |
+
@@ -694,7 +691,7 @@
|
88 |
+
void dump(int indent = 0, std::ostream& os = std::cout);
|
89 |
+
//================
|
90 |
+
private:
|
91 |
+
- typedef std::tr1::unordered_map<int64_t, LineGroup> GroupsMap;
|
92 |
+
+ typedef std::unordered_map<int64_t, LineGroup> GroupsMap;
|
93 |
+
|
94 |
+
bool isDefined_;
|
95 |
+
bool isByRow_;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/0003_fix_osx_support.patch
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -x '.*' -Naur a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt 2021-06-24 16:56:37.000000000 +0800
|
3 |
+
+++ b/CMakeLists.txt 2021-06-24 17:30:28.000000000 +0800
|
4 |
+
@@ -163,6 +163,13 @@
|
5 |
+
include/time_conversion/gnss_error.h
|
6 |
+
)
|
7 |
+
|
8 |
+
+# fix dependency introduced by xerces
|
9 |
+
+if(APPLE)
|
10 |
+
+ find_library(CORE_FOUNDATION CoreFoundation REQUIRED)
|
11 |
+
+ find_library(CORE_SERVICES CoreServices REQUIRED)
|
12 |
+
+ set(EXTRA_LINK_FLAGS_OSX ${CORE_FOUNDATION} ${CORE_SERVICES})
|
13 |
+
+endif()
|
14 |
+
+
|
15 |
+
#
|
16 |
+
# Example programs
|
17 |
+
#
|
18 |
+
@@ -174,6 +181,7 @@
|
19 |
+
E57RefImpl
|
20 |
+
${XML_LIBRARIES}
|
21 |
+
${CMAKE_THREAD_LIBS_INIT}
|
22 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
23 |
+
)
|
24 |
+
add_executable( DemoRead01
|
25 |
+
src/examples/DemoRead01.cpp
|
26 |
+
@@ -182,6 +190,7 @@
|
27 |
+
E57RefImpl
|
28 |
+
${XML_LIBRARIES}
|
29 |
+
${CMAKE_THREAD_LIBS_INIT}
|
30 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
31 |
+
)
|
32 |
+
|
33 |
+
#
|
34 |
+
@@ -203,6 +212,7 @@
|
35 |
+
${XML_LIBRARIES}
|
36 |
+
${CMAKE_THREAD_LIBS_INIT}
|
37 |
+
${LAS2E57_EXTRA_LINK}
|
38 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
39 |
+
)
|
40 |
+
add_executable( e57fields
|
41 |
+
src/tools/e57fields.cpp
|
42 |
+
@@ -211,6 +221,7 @@
|
43 |
+
E57RefImpl
|
44 |
+
${XML_LIBRARIES}
|
45 |
+
${CMAKE_THREAD_LIBS_INIT}
|
46 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
47 |
+
)
|
48 |
+
add_executable( e57xmldump
|
49 |
+
src/tools/e57xmldump.cpp
|
50 |
+
@@ -219,6 +230,7 @@
|
51 |
+
E57RefImpl
|
52 |
+
${XML_LIBRARIES}
|
53 |
+
${CMAKE_THREAD_LIBS_INIT}
|
54 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
55 |
+
)
|
56 |
+
add_executable( e57validate
|
57 |
+
src/tools/e57validate.cpp
|
58 |
+
@@ -227,6 +239,7 @@
|
59 |
+
E57RefImpl
|
60 |
+
${XML_LIBRARIES}
|
61 |
+
${CMAKE_THREAD_LIBS_INIT}
|
62 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
63 |
+
)
|
64 |
+
add_executable( e57unpack
|
65 |
+
src/tools/e57unpack.cpp
|
66 |
+
@@ -236,6 +249,7 @@
|
67 |
+
${XML_LIBRARIES}
|
68 |
+
${Boost_LIBRARIES}
|
69 |
+
${CMAKE_THREAD_LIBS_INIT}
|
70 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
71 |
+
)
|
72 |
+
|
73 |
+
#
|
74 |
+
diff -x '.*' -Naur a/src/refimpl/E57FoundationImpl.cpp b/src/refimpl/E57FoundationImpl.cpp
|
75 |
+
--- a/src/refimpl/E57FoundationImpl.cpp 2012-04-12 21:44:42.000000000 +0800
|
76 |
+
+++ b/src/refimpl/E57FoundationImpl.cpp 2021-06-24 17:04:57.000000000 +0800
|
77 |
+
@@ -57,6 +57,12 @@
|
78 |
+
# include <fcntl.h>
|
79 |
+
# define O_BINARY (0)
|
80 |
+
# define _unlink unlink
|
81 |
+
+#elif defined( __APPLE__ )
|
82 |
+
+# include <sys/types.h>
|
83 |
+
+# include <unistd.h>
|
84 |
+
+# include <fcntl.h>
|
85 |
+
+# define O_BINARY (0)
|
86 |
+
+# define _unlink unlink
|
87 |
+
#else
|
88 |
+
# error "no supported OS platform defined"
|
89 |
+
#endif
|
90 |
+
@@ -4764,6 +4770,8 @@
|
91 |
+
# endif
|
92 |
+
#elif defined(LINUX)
|
93 |
+
int64_t result = ::lseek64(fd_, offset, whence);
|
94 |
+
+#elif defined( __APPLE__ )
|
95 |
+
+ int64_t result = ::lseek(fd_, offset, whence);
|
96 |
+
#else
|
97 |
+
# error "no supported OS platform defined"
|
98 |
+
#endif
|
99 |
+
diff -x '.*' -Naur a/src/refimpl/E57Simple.cpp b/src/refimpl/E57Simple.cpp
|
100 |
+
--- a/src/refimpl/E57Simple.cpp 2011-05-14 05:40:11.000000000 +0800
|
101 |
+
+++ b/src/refimpl/E57Simple.cpp 2021-06-24 16:58:24.000000000 +0800
|
102 |
+
@@ -799,6 +799,9 @@
|
103 |
+
# define __LARGE64_FILES
|
104 |
+
# include <sys/types.h>
|
105 |
+
# include <unistd.h>
|
106 |
+
+#elif defined( __APPLE__ )
|
107 |
+
+# include <sys/types.h>
|
108 |
+
+# include <unistd.h>
|
109 |
+
#else
|
110 |
+
# error "no supported OS platform defined"
|
111 |
+
#endif
|
112 |
+
diff -x '.*' -Naur a/src/refimpl/E57SimpleImpl.cpp b/src/refimpl/E57SimpleImpl.cpp
|
113 |
+
--- a/src/refimpl/E57SimpleImpl.cpp 2012-04-12 23:15:46.000000000 +0800
|
114 |
+
+++ b/src/refimpl/E57SimpleImpl.cpp 2021-06-24 16:58:24.000000000 +0800
|
115 |
+
@@ -74,6 +74,12 @@
|
116 |
+
# include <boost/uuid/uuid.hpp>
|
117 |
+
# include <boost/uuid/uuid_generators.hpp>
|
118 |
+
# include <boost/uuid/uuid_io.hpp>
|
119 |
+
+#elif defined(__APPLE__)
|
120 |
+
+# include <sys/types.h>
|
121 |
+
+# include <unistd.h>
|
122 |
+
+# include <boost/uuid/uuid.hpp>
|
123 |
+
+# include <boost/uuid/uuid_generators.hpp>
|
124 |
+
+# include <boost/uuid/uuid_io.hpp>
|
125 |
+
#else
|
126 |
+
# error "no supported OS platform defined"
|
127 |
+
#endif
|
128 |
+
diff -x '.*' -Naur a/src/tools/las2e57.cpp b/src/tools/las2e57.cpp
|
129 |
+
--- a/src/tools/las2e57.cpp 2012-04-04 19:09:11.000000000 +0800
|
130 |
+
+++ b/src/tools/las2e57.cpp 2021-06-24 17:11:11.000000000 +0800
|
131 |
+
@@ -404,12 +404,12 @@
|
132 |
+
int64_t startIndex;
|
133 |
+
BoundingBox bbox;
|
134 |
+
|
135 |
+
- GroupRecord(int64_t id);
|
136 |
+
+ GroupRecord(int64_t id = 0);
|
137 |
+
void addMember(double coords[3], int64_t recordIndex);
|
138 |
+
void dump(int indent = 0, std::ostream& os = std::cout);
|
139 |
+
};
|
140 |
+
|
141 |
+
-GroupRecord::GroupRecord(int64_t id_arg = 0)
|
142 |
+
+GroupRecord::GroupRecord(int64_t id_arg)
|
143 |
+
: id(id_arg),
|
144 |
+
count(0),
|
145 |
+
startIndex(0),
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VERSION 1.1.332)
|
2 |
+
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/E57RefImpl_src-${VERSION})
|
3 |
+
|
4 |
+
vcpkg_from_sourceforge(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO e57-3d-imgfmt
|
7 |
+
FILENAME "E57RefImpl_src-${VERSION}.zip"
|
8 |
+
SHA512 86adb88cff32d72905e923b1205d609a2bce2eabd78995c59a7957395b233766a5ce31481db08977117abc1a70bbed90d2ce0cdb9897704a8c63d992e91a3907
|
9 |
+
PATCHES
|
10 |
+
"0001_cmake.patch"
|
11 |
+
"0002_replace_tr1_with_cpp11.patch"
|
12 |
+
"0003_fix_osx_support.patch"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
)
|
19 |
+
|
20 |
+
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/share/libe57)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_cmake_config_fixup()
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
vcpkg_copy_tools(
|
27 |
+
TOOL_NAMES e57fields e57unpack e57validate e57xmldump las2e57
|
28 |
+
AUTO_CLEAN
|
29 |
+
)
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57/vcpkg.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libe57",
|
3 |
+
"version-semver": "1.1.332",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "An open source implementation of the ASTM E2807 Standard Specification for 3D Imaging Data Exchange in the C++ language.",
|
6 |
+
"homepage": "http://www.libe57.org/",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
"boost-crc",
|
10 |
+
"boost-filesystem",
|
11 |
+
"boost-format",
|
12 |
+
"boost-math",
|
13 |
+
"boost-program-options",
|
14 |
+
"boost-system",
|
15 |
+
"boost-thread",
|
16 |
+
"boost-uuid",
|
17 |
+
"boost-variant",
|
18 |
+
{
|
19 |
+
"name": "icu",
|
20 |
+
"platform": "linux"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "vcpkg-cmake",
|
24 |
+
"host": true
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"name": "vcpkg-cmake-config",
|
28 |
+
"host": true
|
29 |
+
},
|
30 |
+
"xerces-c"
|
31 |
+
]
|
32 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57format/portfile.cmake
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO asmaloney/libE57Format
|
4 |
+
REF v2.2.0
|
5 |
+
SHA512 7b788efce2efdbfba83d4e3ab5c4884b3d85b5e44c510954f9200db26fb97c92f4e33d04209c0647fc39c3af081fc09d1ee6a79857b1980a0e1e43586f78bd0c
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
vcpkg_cmake_install()
|
13 |
+
|
14 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/E57Format")
|
15 |
+
|
16 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
17 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/libe57format RENAME copyright)
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libe57format/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libe57format",
|
3 |
+
"version-string": "2.2.0",
|
4 |
+
"description": "A library to provide read & write support for the E57 file format.",
|
5 |
+
"dependencies": [
|
6 |
+
{
|
7 |
+
"name": "vcpkg-cmake",
|
8 |
+
"host": true
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake-config",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
"xerces-c"
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libebur128/portfile.cmake
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if((VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") AND VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
message(FATAL_ERROR "${PORT} does not support Windows ARM")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO jiixyj/libebur128
|
8 |
+
REF v1.2.6
|
9 |
+
SHA512 ab188c6d32cd14613119258313a8a3fb1167b55501c9f5b6d3ba738d674bc58f24ac3034c23d9730ed8dc3e95a23619bfb81719e4c79807a9a16c1a5b3423582
|
10 |
+
)
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS -DENABLE_INTERNAL_QUEUE_H=ON
|
15 |
+
)
|
16 |
+
vcpkg_install_cmake()
|
17 |
+
vcpkg_fixup_pkgconfig()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
20 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libebur128/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libebur128",
|
3 |
+
"version-string": "1.2.6",
|
4 |
+
"description": "A library implementing the EBU R128 audio loudness standard",
|
5 |
+
"homepage": "https://github.com/jiixyj/libebur128",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!(arm & windows)"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libepoxy/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
if(VCPKG_TARGET_IS_LINUX AND NOT EXISTS "/usr/share/doc/libgles2/copyright")
|
6 |
+
message(STATUS "libgles2-mesa-dev must be installed before libepoxy can build. Install it with \"apt-get install libgles2-mesa-dev\".")
|
7 |
+
endif()
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
REPO anholt/libepoxy
|
12 |
+
REF 1.5.9
|
13 |
+
SHA512 2b7c269063dc1c156c1a2a525e27a0a323baaa7fa4ac091536e4cc5fc4c247efe9770d7979dbddb54deb14853008bb6f4d67fddd26d87cbd264eb1e6e65bc5a8
|
14 |
+
HEAD_REF master
|
15 |
+
)
|
16 |
+
|
17 |
+
if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_OSX)
|
18 |
+
set(OPTIONS -Dglx=no -Degl=no -Dx11=false)
|
19 |
+
else()
|
20 |
+
set(OPTIONS -Dglx=yes -Degl=yes -Dx11=true)
|
21 |
+
endif()
|
22 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
23 |
+
list(APPEND OPTIONS -Dc_std=c99)
|
24 |
+
endif()
|
25 |
+
|
26 |
+
vcpkg_configure_meson(
|
27 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
28 |
+
OPTIONS
|
29 |
+
${OPTIONS}
|
30 |
+
-Dtests=false
|
31 |
+
)
|
32 |
+
vcpkg_install_meson()
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
vcpkg_fixup_pkgconfig()
|
36 |
+
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/pkgconfig")
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig")
|
39 |
+
|
40 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libepoxy/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libepoxy",
|
3 |
+
"version-semver": "1.5.9",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Epoxy is a library for handling OpenGL function pointer management for you",
|
6 |
+
"homepage": "https://github.com/anholt/libepoxy",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-tool-meson",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/fix-LibeventConfig_cmake_in_path.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/LibeventConfig.cmake.in b/cmake/LibeventConfig.cmake.in
|
2 |
+
index 7b808c3..9376a5a 100644
|
3 |
+
--- a/cmake/LibeventConfig.cmake.in
|
4 |
+
+++ b/cmake/LibeventConfig.cmake.in
|
5 |
+
@@ -58,7 +58,7 @@ endif()
|
6 |
+
|
7 |
+
# Get the path of the current file.
|
8 |
+
get_filename_component(LIBEVENT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
9 |
+
-get_filename_component(_INSTALL_PREFIX "${LIBEVENT_CMAKE_DIR}/../../.." ABSOLUTE)
|
10 |
+
+get_filename_component(_INSTALL_PREFIX "${LIBEVENT_CMAKE_DIR}/../.." ABSOLUTE)
|
11 |
+
|
12 |
+
macro(message_if_needed _flag _msg)
|
13 |
+
if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
|
14 |
+
@@ -131,7 +131,7 @@ if(CONFIG_FOR_INSTALL_TREE)
|
15 |
+
find_library(_event_lib
|
16 |
+
NAMES "event_${_comp}"
|
17 |
+
PATHS "${_INSTALL_PREFIX}/lib"
|
18 |
+
- NO_DEFAULT_PATH)
|
19 |
+
+ )
|
20 |
+
if(_event_lib)
|
21 |
+
list(APPEND LIBEVENT_LIBRARIES "libevent::${_comp}")
|
22 |
+
set_case_insensitive_found(${_comp})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/fix-file_path.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/AddEventLibrary.cmake b/cmake/AddEventLibrary.cmake
|
2 |
+
index 04f5837..95d9808 100644
|
3 |
+
--- a/cmake/AddEventLibrary.cmake
|
4 |
+
+++ b/cmake/AddEventLibrary.cmake
|
5 |
+
@@ -42,7 +42,7 @@ macro(export_install_target TYPE LIB_NAME OUTER_INCLUDES)
|
6 |
+
install(TARGETS "${LIB_NAME}_${TYPE}"
|
7 |
+
LIBRARY DESTINATION "lib" COMPONENT lib
|
8 |
+
ARCHIVE DESTINATION "lib" COMPONENT lib
|
9 |
+
- RUNTIME DESTINATION "lib" COMPONENT lib
|
10 |
+
+ RUNTIME DESTINATION "bin" COMPONENT bin
|
11 |
+
COMPONENT dev
|
12 |
+
)
|
13 |
+
else()
|
14 |
+
@@ -69,7 +69,7 @@ macro(export_install_target TYPE LIB_NAME OUTER_INCLUDES)
|
15 |
+
EXPORT LibeventTargets-${TYPE}
|
16 |
+
LIBRARY DESTINATION "lib" COMPONENT lib
|
17 |
+
ARCHIVE DESTINATION "lib" COMPONENT lib
|
18 |
+
- RUNTIME DESTINATION "lib" COMPONENT lib
|
19 |
+
+ RUNTIME DESTINATION "bin" COMPONENT bin
|
20 |
+
COMPONENT dev
|
21 |
+
)
|
22 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/fix-usage.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 676727f..c83afae 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1453,7 +1453,7 @@ endif()
|
6 |
+
#
|
7 |
+
|
8 |
+
set(EVENT_INSTALL_CMAKE_DIR
|
9 |
+
- "${CMAKE_INSTALL_PREFIX}/lib/cmake/libevent")
|
10 |
+
+ "lib/cmake/libevent")
|
11 |
+
|
12 |
+
export(PACKAGE libevent)
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/portfile.cmake
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libevent/libevent
|
4 |
+
REF release-2.1.12-stable
|
5 |
+
SHA512 5d6c6f0072f69a68b190772d4c973ce8f33961912032cdc104ad0854c0950f9d7e28bc274ca9df23897937f0cd8e45d1f214543d80ec271c5a6678814a7f195e
|
6 |
+
PATCHES
|
7 |
+
fix-file_path.patch
|
8 |
+
fix-LibeventConfig_cmake_in_path.patch
|
9 |
+
fix-usage.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
INVERTED_FEATURES
|
14 |
+
openssl EVENT__DISABLE_OPENSSL
|
15 |
+
thread EVENT__DISABLE_THREAD_SUPPORT
|
16 |
+
)
|
17 |
+
|
18 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
19 |
+
set(LIBEVENT_LIB_TYPE SHARED)
|
20 |
+
else()
|
21 |
+
set(LIBEVENT_LIB_TYPE STATIC)
|
22 |
+
endif()
|
23 |
+
|
24 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
25 |
+
set(LIBEVENT_STATIC_RUNTIME ON)
|
26 |
+
else()
|
27 |
+
set(LIBEVENT_STATIC_RUNTIME OFF)
|
28 |
+
endif()
|
29 |
+
|
30 |
+
vcpkg_cmake_configure(
|
31 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
32 |
+
OPTIONS ${FEATURE_OPTIONS}
|
33 |
+
-DEVENT__LIBRARY_TYPE=${LIBEVENT_LIB_TYPE}
|
34 |
+
-DEVENT__MSVC_STATIC_RUNTIME=${LIBEVENT_STATIC_RUNTIME}
|
35 |
+
-DEVENT__DISABLE_BENCHMARK=ON
|
36 |
+
-DEVENT__DISABLE_TESTS=ON
|
37 |
+
-DEVENT__DISABLE_REGRESS=ON
|
38 |
+
-DEVENT__DISABLE_SAMPLES=ON
|
39 |
+
)
|
40 |
+
|
41 |
+
vcpkg_cmake_install()
|
42 |
+
|
43 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
44 |
+
|
45 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/libevent/")
|
46 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/event_rpcgen.py" "${CURRENT_PACKAGES_DIR}/tools/libevent/event_rpcgen.py")
|
47 |
+
|
48 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
49 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
50 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
51 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
52 |
+
endif()
|
53 |
+
|
54 |
+
set(_target_suffix)
|
55 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
56 |
+
set(_target_suffix static)
|
57 |
+
else()
|
58 |
+
set(_target_suffix shared)
|
59 |
+
endif()
|
60 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/libevent/LibeventTargets-${_target_suffix}.cmake
|
61 |
+
"${CURRENT_PACKAGES_DIR}"
|
62 |
+
"${CURRENT_INSTALLED_DIR}"
|
63 |
+
)
|
64 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/libevent/LibeventConfig.cmake "${SOURCE_PATH}/include;${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/include" "")
|
65 |
+
vcpkg_fixup_pkgconfig()
|
66 |
+
vcpkg_copy_pdbs()
|
67 |
+
|
68 |
+
#Handle copyright
|
69 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevent/vcpkg.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libevent",
|
3 |
+
"version": "2.1.12",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "An event notification library",
|
6 |
+
"homepage": "https://github.com/libevent/libevent",
|
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 |
+
"default-features": [
|
19 |
+
"thread"
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"openssl": {
|
23 |
+
"description": "Support for openssl",
|
24 |
+
"dependencies": [
|
25 |
+
{
|
26 |
+
"name": "libevent",
|
27 |
+
"features": [
|
28 |
+
"thread"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"openssl"
|
32 |
+
]
|
33 |
+
},
|
34 |
+
"thread": {
|
35 |
+
"description": "Support for thread"
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevhtp/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO criticalstack/libevhtp
|
4 |
+
REF e200bfa85bf253e9cfe1c1a9e705fccb176b9171
|
5 |
+
SHA512 d77d6d12dcc2762c8311a04cd3d33c7dfde7b406dbbb544d683e6a3b8e5912ba37a196470bc5aca92b58bd9659fbb396e5a11234b98435534f535046d6dab6eb
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
INVERTED_FEATURES
|
11 |
+
openssl EVHTP_DISABLE_SSL
|
12 |
+
thread EVHTP_DISABLE_EVTHR
|
13 |
+
regex EVHTP_DISABLE_REGEX
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_configure_cmake(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
PREFER_NINJA
|
19 |
+
OPTIONS ${FEATURE_OPTIONS}
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
25 |
+
|
26 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
27 |
+
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
|
30 |
+
# Handle copyright
|
31 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
32 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libevhtp/vcpkg.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libevhtp",
|
3 |
+
"version": "1.2.18",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Libevhtp was created as a replacement API for Libevent's current HTTP API.",
|
6 |
+
"homepage": "https://github.com/criticalstack/libevhtp",
|
7 |
+
"supports": "!windows",
|
8 |
+
"dependencies": [
|
9 |
+
"libevent"
|
10 |
+
],
|
11 |
+
"features": {
|
12 |
+
"openssl": {
|
13 |
+
"description": "Support SSL for libevhtp",
|
14 |
+
"dependencies": [
|
15 |
+
"openssl"
|
16 |
+
]
|
17 |
+
},
|
18 |
+
"regex": {
|
19 |
+
"description": "Support oniguruma for libevhtp",
|
20 |
+
"dependencies": [
|
21 |
+
"oniguruma"
|
22 |
+
]
|
23 |
+
},
|
24 |
+
"thread": {
|
25 |
+
"description": "Support thread for libevhtp"
|
26 |
+
}
|
27 |
+
}
|
28 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/CMakeLists.txt
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libexif LANGUAGES C)
|
3 |
+
|
4 |
+
set(PACKAGE "libexif")
|
5 |
+
|
6 |
+
option(ENABLE_NLS "Enable NLS" OFF)
|
7 |
+
|
8 |
+
set(HEADERS
|
9 |
+
libexif/_stdint.h
|
10 |
+
libexif/exif.h
|
11 |
+
libexif/exif-byte-order.h
|
12 |
+
libexif/exif-content.h
|
13 |
+
libexif/exif-data.h
|
14 |
+
libexif/exif-data-type.h
|
15 |
+
libexif/exif-entry.h
|
16 |
+
libexif/exif-format.h
|
17 |
+
libexif/exif-ifd.h
|
18 |
+
libexif/exif-loader.h
|
19 |
+
libexif/exif-log.h
|
20 |
+
libexif/exif-mem.h
|
21 |
+
libexif/exif-mnote-data.h
|
22 |
+
libexif/exif-mnote-data-priv.h
|
23 |
+
libexif/exif-system.h
|
24 |
+
libexif/exif-tag.h
|
25 |
+
libexif/exif-utils.h
|
26 |
+
)
|
27 |
+
|
28 |
+
set(SOURCES
|
29 |
+
libexif/exif-byte-order.c
|
30 |
+
libexif/exif-content.c
|
31 |
+
libexif/exif-data.c
|
32 |
+
libexif/exif-entry.c
|
33 |
+
libexif/exif-format.c
|
34 |
+
libexif/exif-ifd.c
|
35 |
+
libexif/exif-loader.c
|
36 |
+
libexif/exif-log.c
|
37 |
+
libexif/exif-mem.c
|
38 |
+
libexif/exif-mnote-data.c
|
39 |
+
libexif/exif-tag.c
|
40 |
+
libexif/exif-utils.c
|
41 |
+
)
|
42 |
+
|
43 |
+
set(HEADERS_CANON
|
44 |
+
libexif/canon/exif-mnote-data-canon.h
|
45 |
+
libexif/canon/mnote-canon-entry.h
|
46 |
+
libexif/canon/mnote-canon-tag.h
|
47 |
+
)
|
48 |
+
|
49 |
+
set(SOURCES_CANON
|
50 |
+
libexif/canon/exif-mnote-data-canon.c
|
51 |
+
libexif/canon/mnote-canon-entry.c
|
52 |
+
libexif/canon/mnote-canon-tag.c
|
53 |
+
)
|
54 |
+
|
55 |
+
set(HEADERS_FUJI
|
56 |
+
libexif/fuji/exif-mnote-data-fuji.h
|
57 |
+
libexif/fuji/mnote-fuji-entry.h
|
58 |
+
libexif/fuji/mnote-fuji-tag.h
|
59 |
+
)
|
60 |
+
|
61 |
+
set(SOURCES_FUJI
|
62 |
+
libexif/fuji/exif-mnote-data-fuji.c
|
63 |
+
libexif/fuji/mnote-fuji-entry.c
|
64 |
+
libexif/fuji/mnote-fuji-tag.c
|
65 |
+
)
|
66 |
+
|
67 |
+
set(HEADERS_OLYMPUS
|
68 |
+
libexif/olympus/exif-mnote-data-olympus.h
|
69 |
+
libexif/olympus/mnote-olympus-entry.h
|
70 |
+
libexif/olympus/mnote-olympus-tag.h
|
71 |
+
)
|
72 |
+
|
73 |
+
set(SOURCES_OLYMPUS
|
74 |
+
libexif/olympus/exif-mnote-data-olympus.c
|
75 |
+
libexif/olympus/mnote-olympus-entry.c
|
76 |
+
libexif/olympus/mnote-olympus-tag.c
|
77 |
+
)
|
78 |
+
|
79 |
+
set(HEADERS_PENTAX
|
80 |
+
libexif/pentax/exif-mnote-data-pentax.h
|
81 |
+
libexif/pentax/mnote-pentax-entry.h
|
82 |
+
libexif/pentax/mnote-pentax-tag.h
|
83 |
+
)
|
84 |
+
|
85 |
+
set(SOURCES_PENTAX
|
86 |
+
libexif/pentax/exif-mnote-data-pentax.c
|
87 |
+
libexif/pentax/mnote-pentax-entry.c
|
88 |
+
libexif/pentax/mnote-pentax-tag.c
|
89 |
+
)
|
90 |
+
|
91 |
+
if(MSVC)
|
92 |
+
set(SOURCES_MSVC "libexif.def")
|
93 |
+
endif()
|
94 |
+
|
95 |
+
add_library(libexif
|
96 |
+
${SOURCES}
|
97 |
+
${SOURCES_CANON}
|
98 |
+
${SOURCES_FUJI}
|
99 |
+
${SOURCES_OLYMPUS}
|
100 |
+
${SOURCES_PENTAX}
|
101 |
+
${SOURCES_MSVC}
|
102 |
+
)
|
103 |
+
|
104 |
+
target_include_directories(libexif PRIVATE .)
|
105 |
+
target_include_directories(libexif PRIVATE ${CMAKE_BINARY_DIR})
|
106 |
+
target_compile_definitions(libexif PRIVATE -D_CRT_SECURE_NO_WARNINGS)
|
107 |
+
target_compile_definitions(libexif PRIVATE -DGETTEXT_PACKAGE="${PACKAGE}")
|
108 |
+
|
109 |
+
include(CheckFunctionExists)
|
110 |
+
include(CheckIncludeFile)
|
111 |
+
|
112 |
+
check_function_exists(dcgettext HAVE_DCGETTEXT)
|
113 |
+
check_function_exists(gettext HAVE_DCGETTEXT)
|
114 |
+
check_function_exists(iconv HAVE_DCGETTEXT)
|
115 |
+
check_function_exists(localtime_r HAVE_DCGETTEXT)
|
116 |
+
|
117 |
+
check_include_file(dlfcn.h HAVE_DLFCN_H)
|
118 |
+
check_include_file(inttypes.h HAVE_INTTYPES_H)
|
119 |
+
check_include_file(memory.h HAVE_MEMORY_H)
|
120 |
+
check_include_file(stdint.h HAVE_STDINT_H)
|
121 |
+
check_include_file(stdlib.h HAVE_STDLIB_H)
|
122 |
+
check_include_file(strings.h HAVE_STRINGS_H)
|
123 |
+
check_include_file(string.h HAVE_STRING_H)
|
124 |
+
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
|
125 |
+
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
|
126 |
+
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
127 |
+
check_include_file(unistd.h HAVE_UNISTD_H)
|
128 |
+
|
129 |
+
configure_file(config.h.cmake config.h)
|
130 |
+
|
131 |
+
install(
|
132 |
+
TARGETS libexif
|
133 |
+
RUNTIME DESTINATION bin
|
134 |
+
ARCHIVE DESTINATION lib
|
135 |
+
LIBRARY DESTINATION lib
|
136 |
+
)
|
137 |
+
|
138 |
+
install(FILES ${HEADERS} DESTINATION include/libexif)
|
139 |
+
install(FILES ${HEADERS_CANON} DESTINATION include/libexif/canon)
|
140 |
+
install(FILES ${HEADERS_FUJI} DESTINATION include/libexif/fuji)
|
141 |
+
install(FILES ${HEADERS_OLYMPUS} DESTINATION include/libexif/olympus)
|
142 |
+
install(FILES ${HEADERS_PENTAX} DESTINATION include/libexif/pentax)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/add-missing-_stdint-h.patch
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libexif/_stdint.h b/libexif/_stdint.h
|
2 |
+
new file mode 100644
|
3 |
+
index 0000000..9a6118b
|
4 |
+
--- /dev/null
|
5 |
+
+++ b/libexif/_stdint.h
|
6 |
+
@@ -0,0 +1 @@
|
7 |
+
+#include <stdint.h>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/config.h.cmake
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* config.h.in. Generated from configure.ac by autoheader. */
|
2 |
+
|
3 |
+
/* Define to 1 if translation of program messages to the user's native
|
4 |
+
language is requested. */
|
5 |
+
#cmakedefine ENABLE_NLS
|
6 |
+
|
7 |
+
/* Define if the GNU dcgettext() function is already present or preinstalled.
|
8 |
+
*/
|
9 |
+
#cmakedefine HAVE_DCGETTEXT
|
10 |
+
|
11 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
12 |
+
#cmakedefine HAVE_DLFCN_H
|
13 |
+
|
14 |
+
/* Define if the GNU gettext() function is already present or preinstalled. */
|
15 |
+
#cmakedefine HAVE_GETTEXT
|
16 |
+
|
17 |
+
/* Define if you have the iconv() function. */
|
18 |
+
#cmakedefine HAVE_ICONV
|
19 |
+
|
20 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
21 |
+
#cmakedefine HAVE_INTTYPES_H
|
22 |
+
|
23 |
+
/* Define to 1 if you have the `localtime_r' function. */
|
24 |
+
#cmakedefine HAVE_LOCALTIME_R
|
25 |
+
|
26 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
27 |
+
#cmakedefine HAVE_MEMORY_H
|
28 |
+
|
29 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
30 |
+
#cmakedefine HAVE_STDINT_H
|
31 |
+
|
32 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
33 |
+
#cmakedefine HAVE_STDLIB_H
|
34 |
+
|
35 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
36 |
+
#cmakedefine HAVE_STRINGS_H
|
37 |
+
|
38 |
+
/* Define to 1 if you have the <string.h> header file. */
|
39 |
+
#cmakedefine HAVE_STRING_H
|
40 |
+
|
41 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
42 |
+
#cmakedefine HAVE_SYS_STAT_H
|
43 |
+
|
44 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
45 |
+
#cmakedefine HAVE_SYS_TYPES_H
|
46 |
+
|
47 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
48 |
+
#cmakedefine HAVE_UNISTD_H
|
49 |
+
|
50 |
+
/* Define as const if the declaration of iconv() needs const. */
|
51 |
+
#cmakedefine ICONV_CONST
|
52 |
+
|
53 |
+
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
54 |
+
*/
|
55 |
+
#cmakedefine LT_OBJDIR
|
56 |
+
|
57 |
+
/* Name of package */
|
58 |
+
#cmakedefine PACKAGE
|
59 |
+
|
60 |
+
/* Define to the address where bug reports for this package should be sent. */
|
61 |
+
#cmakedefine PACKAGE_BUGREPORT
|
62 |
+
|
63 |
+
/* Define to the full name of this package. */
|
64 |
+
#cmakedefine PACKAGE_NAME
|
65 |
+
|
66 |
+
/* Define to the full name and version of this package. */
|
67 |
+
#cmakedefine PACKAGE_STRING
|
68 |
+
|
69 |
+
/* Define to the one symbol short name of this package. */
|
70 |
+
#cmakedefine PACKAGE_TARNAME
|
71 |
+
|
72 |
+
/* Define to the home page for this package. */
|
73 |
+
#cmakedefine PACKAGE_URL
|
74 |
+
|
75 |
+
/* Define to the version of this package. */
|
76 |
+
#cmakedefine PACKAGE_VERSION
|
77 |
+
|
78 |
+
/* Define to 1 if you have the ANSI C header files. */
|
79 |
+
#cmakedefine STDC_HEADERS
|
80 |
+
|
81 |
+
/* Version number of package */
|
82 |
+
#cmakedefine VERSION
|
83 |
+
|
84 |
+
/* Define to empty if `const' does not conform to ANSI C. */
|
85 |
+
#cmakedefine const
|
86 |
+
|
87 |
+
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
88 |
+
calls it, or to nothing if 'inline' is not supported under any name. */
|
89 |
+
#ifndef __cplusplus
|
90 |
+
#cmakedefine inline
|
91 |
+
#endif
|
92 |
+
|
93 |
+
#ifdef _MSC_VER
|
94 |
+
#include <BaseTsd.h>
|
95 |
+
typedef SSIZE_T ssize_t;
|
96 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/libexif.def
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
exif_array_set_byte_order
|
3 |
+
exif_byte_order_get_name
|
4 |
+
exif_content_add_entry
|
5 |
+
exif_content_dump
|
6 |
+
exif_content_fix
|
7 |
+
exif_content_foreach_entry
|
8 |
+
exif_content_free
|
9 |
+
exif_content_get_entry
|
10 |
+
exif_content_get_ifd
|
11 |
+
exif_content_log
|
12 |
+
exif_content_new
|
13 |
+
exif_content_new_mem
|
14 |
+
exif_content_ref
|
15 |
+
exif_content_remove_entry
|
16 |
+
exif_content_unref
|
17 |
+
exif_data_dump
|
18 |
+
exif_data_fix
|
19 |
+
exif_data_foreach_content
|
20 |
+
exif_data_free
|
21 |
+
exif_data_get_byte_order
|
22 |
+
exif_data_get_data_type
|
23 |
+
exif_data_get_log
|
24 |
+
exif_data_get_mnote_data
|
25 |
+
exif_data_load_data
|
26 |
+
exif_data_log
|
27 |
+
exif_data_new
|
28 |
+
exif_data_new_from_data
|
29 |
+
exif_data_new_from_file
|
30 |
+
exif_data_new_mem
|
31 |
+
exif_data_option_get_description
|
32 |
+
exif_data_option_get_name
|
33 |
+
exif_data_ref
|
34 |
+
exif_data_save_data
|
35 |
+
exif_data_set_byte_order
|
36 |
+
exif_data_set_data_type
|
37 |
+
exif_data_set_option
|
38 |
+
exif_data_unref
|
39 |
+
exif_data_unset_option
|
40 |
+
exif_entry_dump
|
41 |
+
exif_entry_fix
|
42 |
+
exif_entry_free
|
43 |
+
exif_entry_get_value
|
44 |
+
exif_entry_initialize
|
45 |
+
exif_entry_new
|
46 |
+
exif_entry_new_mem
|
47 |
+
exif_entry_ref
|
48 |
+
exif_entry_unref
|
49 |
+
exif_format_get_name
|
50 |
+
exif_format_get_size
|
51 |
+
exif_get_long
|
52 |
+
exif_get_rational
|
53 |
+
exif_get_short
|
54 |
+
exif_get_slong
|
55 |
+
exif_get_srational
|
56 |
+
exif_get_sshort
|
57 |
+
exif_ifd_get_name
|
58 |
+
exif_loader_get_buf
|
59 |
+
exif_loader_get_data
|
60 |
+
exif_loader_log
|
61 |
+
exif_loader_new
|
62 |
+
exif_loader_new_mem
|
63 |
+
exif_loader_ref
|
64 |
+
exif_loader_reset
|
65 |
+
exif_loader_unref
|
66 |
+
exif_loader_write
|
67 |
+
exif_loader_write_file
|
68 |
+
exif_log
|
69 |
+
exif_log_code_get_message
|
70 |
+
exif_log_code_get_title
|
71 |
+
exif_log_free
|
72 |
+
exif_log_new
|
73 |
+
exif_log_new_mem
|
74 |
+
exif_log_ref
|
75 |
+
exif_log_set_func
|
76 |
+
exif_log_unref
|
77 |
+
exif_logv
|
78 |
+
exif_mem_alloc
|
79 |
+
exif_mem_free
|
80 |
+
exif_mem_new
|
81 |
+
exif_mem_new_default
|
82 |
+
exif_mem_realloc
|
83 |
+
exif_mem_ref
|
84 |
+
exif_mem_unref
|
85 |
+
exif_mnote_data_canon_new
|
86 |
+
exif_mnote_data_construct
|
87 |
+
exif_mnote_data_count
|
88 |
+
exif_mnote_data_get_description
|
89 |
+
exif_mnote_data_get_id
|
90 |
+
exif_mnote_data_get_name
|
91 |
+
exif_mnote_data_get_title
|
92 |
+
exif_mnote_data_get_value
|
93 |
+
exif_mnote_data_load
|
94 |
+
exif_mnote_data_log
|
95 |
+
exif_mnote_data_olympus_new
|
96 |
+
exif_mnote_data_pentax_new
|
97 |
+
exif_mnote_data_ref
|
98 |
+
exif_mnote_data_save
|
99 |
+
exif_mnote_data_set_byte_order
|
100 |
+
exif_mnote_data_set_offset
|
101 |
+
exif_mnote_data_unref
|
102 |
+
exif_set_long
|
103 |
+
exif_set_rational
|
104 |
+
exif_set_short
|
105 |
+
exif_set_slong
|
106 |
+
exif_set_srational
|
107 |
+
exif_set_sshort
|
108 |
+
exif_tag_from_name
|
109 |
+
exif_tag_get_description
|
110 |
+
exif_tag_get_description_in_ifd
|
111 |
+
exif_tag_get_name
|
112 |
+
exif_tag_get_name_in_ifd
|
113 |
+
exif_tag_get_support_level_in_ifd
|
114 |
+
exif_tag_get_title
|
115 |
+
exif_tag_get_title_in_ifd
|
116 |
+
exif_tag_table_count
|
117 |
+
exif_tag_table_get_name
|
118 |
+
exif_tag_table_get_tag
|
119 |
+
mnote_canon_entry_get_value
|
120 |
+
mnote_canon_tag_get_description
|
121 |
+
mnote_canon_tag_get_name
|
122 |
+
mnote_canon_tag_get_title
|
123 |
+
mnote_olympus_entry_get_value
|
124 |
+
mnote_olympus_tag_get_description
|
125 |
+
mnote_olympus_tag_get_name
|
126 |
+
mnote_olympus_tag_get_title
|
127 |
+
mnote_pentax_entry_get_value
|
128 |
+
mnote_pentax_tag_get_description
|
129 |
+
mnote_pentax_tag_get_name
|
130 |
+
mnote_pentax_tag_get_title
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libexif/libexif
|
4 |
+
REF libexif-0_6_22-release
|
5 |
+
SHA512 6c63abe2734c9e83fb04adb00bdd77f687165007c0efd0279df26c101363b990604050c430c7dd73dfa8735dd2fd196334d321bdb114d4869998f21e7bed5b43
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES add-missing-_stdint-h.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h.cmake DESTINATION ${SOURCE_PATH})
|
12 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/libexif.def DESTINATION ${SOURCE_PATH})
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
|
24 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libexif/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libexif",
|
3 |
+
"version": "0.6.22",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "a library for parsing, editing, and saving EXIF data",
|
6 |
+
"homepage": "https://libexif.github.io/",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfabric/add_additional_includes.patch
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libfabric.vcxproj b/libfabric.vcxproj
|
2 |
+
index c1e1792..3acbc81 100644
|
3 |
+
--- a/libfabric.vcxproj
|
4 |
+
+++ b/libfabric.vcxproj
|
5 |
+
@@ -187,7 +187,7 @@
|
6 |
+
<Optimization>Disabled</Optimization>
|
7 |
+
<PreprocessorDefinitions>WIN32;_WINSOCKAPI_=;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_WINDOWS;_USRDLL;LIBFABRIC_EXPORTS;HAVE_CONFIG_H;ENABLE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
8 |
+
<SDLCheck>true</SDLCheck>
|
9 |
+
- <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;</AdditionalIncludeDirectories>
|
10 |
+
+ <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;$(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
11 |
+
<CompileAs>CompileAsC</CompileAs>
|
12 |
+
<DisableSpecificWarnings>4127;4200;4204;4221;4115;4201;4100</DisableSpecificWarnings>
|
13 |
+
<C99Support>true</C99Support>
|
14 |
+
@@ -215,7 +215,7 @@
|
15 |
+
<Optimization>Disabled</Optimization>
|
16 |
+
<PreprocessorDefinitions>WIN32;_WINSOCKAPI_=;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_WINDOWS;_USRDLL;LIBFABRIC_EXPORTS;HAVE_CONFIG_H;ENABLE_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
17 |
+
<SDLCheck>true</SDLCheck>
|
18 |
+
- <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include</AdditionalIncludeDirectories>
|
19 |
+
+ <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;$(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
20 |
+
<CompileAs>CompileAsC</CompileAs>
|
21 |
+
<DisableSpecificWarnings>4127;4200;94;4204;4221;869</DisableSpecificWarnings>
|
22 |
+
<C99Support>true</C99Support>
|
23 |
+
@@ -239,7 +239,7 @@
|
24 |
+
<IntrinsicFunctions>true</IntrinsicFunctions>
|
25 |
+
<PreprocessorDefinitions>WIN32;_WINSOCKAPI_=;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_WINDOWS;_USRDLL;LIBFABRIC_EXPORTS;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
26 |
+
<SDLCheck>true</SDLCheck>
|
27 |
+
- <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include</AdditionalIncludeDirectories>
|
28 |
+
+ <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;$(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
29 |
+
<DisableSpecificWarnings>4127;4200;4204;4221;4115;4201;4100</DisableSpecificWarnings>
|
30 |
+
<C99Support>true</C99Support>
|
31 |
+
<ShowIncludes>false</ShowIncludes>
|
32 |
+
@@ -265,7 +265,7 @@
|
33 |
+
<IntrinsicFunctions>true</IntrinsicFunctions>
|
34 |
+
<PreprocessorDefinitions>WIN32;_WINSOCKAPI_=;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_WINDOWS;_USRDLL;LIBFABRIC_EXPORTS;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
35 |
+
<SDLCheck>true</SDLCheck>
|
36 |
+
- <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;</AdditionalIncludeDirectories>
|
37 |
+
+ <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;$(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
38 |
+
<DisableSpecificWarnings>4127;4200;4204;4221;4115;4201;4100</DisableSpecificWarnings>
|
39 |
+
<C99Support>true</C99Support>
|
40 |
+
<ShowIncludes>false</ShowIncludes>
|
41 |
+
@@ -285,7 +285,7 @@
|
42 |
+
<FunctionLevelLinking>true</FunctionLevelLinking>
|
43 |
+
<IntrinsicFunctions>true</IntrinsicFunctions>
|
44 |
+
<PreprocessorDefinitions>WIN32;_WINSOCKAPI_=;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_WINDOWS;_USRDLL;LIBFABRIC_EXPORTS;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
45 |
+
- <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;</AdditionalIncludeDirectories>
|
46 |
+
+ <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;$(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
47 |
+
<DisableSpecificWarnings>4127;4200;4204;4221;4115;4201;4100</DisableSpecificWarnings>
|
48 |
+
<SDLCheck>true</SDLCheck>
|
49 |
+
<C99Support>true</C99Support>
|
50 |
+
@@ -307,7 +307,7 @@
|
51 |
+
<IntrinsicFunctions>true</IntrinsicFunctions>
|
52 |
+
<PreprocessorDefinitions>WIN32;_WINSOCKAPI_=;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;_WINDOWS;_USRDLL;LIBFABRIC_EXPORTS;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
53 |
+
<SDLCheck>true</SDLCheck>
|
54 |
+
- <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;</AdditionalIncludeDirectories>
|
55 |
+
+ <AdditionalIncludeDirectories>$(ProjectDir)include;$(ProjectDir)include\windows;$(ProjectDir)prov\netdir\NetDirect;$(ProjectDir)prov\hook\src;$(ProjectDir)prov\hook\include;$(ProjectDir)prov\hook\perf\include;$(AdditionalIncludeDirectories);</AdditionalIncludeDirectories>
|
56 |
+
<DisableSpecificWarnings>4127;4200;94;4204;4221;869</DisableSpecificWarnings>
|
57 |
+
<C99Support>true</C99Support>
|
58 |
+
<ShowIncludes>false</ShowIncludes>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfabric/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ofiwg/libfabric
|
6 |
+
REF bcb41c462e1e38559c94096ac06e2f578b466882 # v1.13.2
|
7 |
+
HEAD_REF master
|
8 |
+
SHA512 b3ea464a402aa5b470ba5478350e23682488f785a3b2cb34df02f23d1663f097285f6795ab287db40b2a544c8e3969358a23165664e1fc39542038d726212e6c
|
9 |
+
PATCHES
|
10 |
+
add_additional_includes.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
set(LIBFABRIC_RELEASE_CONFIGURATION "Release-v142")
|
14 |
+
set(LIBFABRIC_DEBUG_CONFIGURATION "Debug-v142")
|
15 |
+
|
16 |
+
vcpkg_install_msbuild(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
PROJECT_SUBPATH libfabric.vcxproj
|
19 |
+
INCLUDES_SUBPATH include
|
20 |
+
LICENSE_SUBPATH COPYING
|
21 |
+
PLATFORM "x64"
|
22 |
+
RELEASE_CONFIGURATION ${LIBFABRIC_RELEASE_CONFIGURATION}
|
23 |
+
DEBUG_CONFIGURATION ${LIBFABRIC_RELEASE_CONFIGURATION}
|
24 |
+
USE_VCPKG_INTEGRATION
|
25 |
+
ALLOW_ROOT_INCLUDES
|
26 |
+
OPTIONS
|
27 |
+
/p:SolutionDir=${SOURCE_PATH}
|
28 |
+
/p:AdditionalIncludeDirectories="${CURRENT_INSTALLED_DIR}/include"
|
29 |
+
)
|
30 |
+
|
31 |
+
#Move includes under subdirectory to avoid colisions with other libraries
|
32 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/include" "${CURRENT_PACKAGES_DIR}/includetemp")
|
33 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include")
|
34 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/includetemp" "${CURRENT_PACKAGES_DIR}/include/libfabric")
|
35 |
+
|
36 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfabric/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libfabric",
|
3 |
+
"version-semver": "1.13.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "The OpenFabrics Interfaces Working Group (OFIWG) and the Libfabric open-source community are pleased to announce the release of version v1.6.2 of libfabric. See NEWS.md for the list of features and enhancements that have been added since the last release.",
|
6 |
+
"homepage": "https://github.com/ofiwg/libfabric",
|
7 |
+
"supports": "windows & !uwp & x64 & !static",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "networkdirect-sdk",
|
11 |
+
"platform": "windows"
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/CMakeLists.txt
ADDED
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(libffi C ASM)
|
3 |
+
|
4 |
+
set(CMAKE_SHARED_LIBRARY_PREFIX)
|
5 |
+
set(CMAKE_STATIC_LIBRARY_PREFIX)
|
6 |
+
|
7 |
+
if(NOT CMAKE_SYSTEM_PROCESSOR)
|
8 |
+
set(CMAKE_SYSTEM_PROCESSOR "${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
9 |
+
endif()
|
10 |
+
|
11 |
+
# config variables for ffi.h.in
|
12 |
+
set(VERSION 3.4.2)
|
13 |
+
|
14 |
+
set(KNOWN_PROCESSORS x86 x86_64 amd64 arm arm64 i386 i686 armv7l armv7-a aarch64)
|
15 |
+
|
16 |
+
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" lower_system_processor)
|
17 |
+
|
18 |
+
if(NOT lower_system_processor IN_LIST KNOWN_PROCESSORS)
|
19 |
+
message(FATAL_ERROR "Unknown processor: ${CMAKE_SYSTEM_PROCESSOR}")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
if(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
23 |
+
set(TARGET ARM_WIN32)
|
24 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
25 |
+
set(TARGET ARM_WIN64)
|
26 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
27 |
+
set(TARGET X86_WIN32)
|
28 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
29 |
+
set(TARGET X86_WIN64)
|
30 |
+
elseif(lower_system_processor MATCHES "arm64|aarch64")
|
31 |
+
set(TARGET ARM64)
|
32 |
+
elseif(lower_system_processor MATCHES "arm")
|
33 |
+
set(TARGET ARM)
|
34 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "BSD" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
35 |
+
set(TARGET X86_FREEBSD)
|
36 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
37 |
+
set(TARGET X86_DARWIN)
|
38 |
+
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
39 |
+
set(TARGET X86_64)
|
40 |
+
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
41 |
+
set(TARGET X86)
|
42 |
+
else()
|
43 |
+
message(FATAL_ERROR "Cannot determine target. Please consult ${CMAKE_CURRENT_SOURCE_DIR}/configure.ac and add your platform to this CMake file.")
|
44 |
+
endif()
|
45 |
+
|
46 |
+
if("${TARGET}" STREQUAL "X86_64")
|
47 |
+
set(HAVE_LONG_DOUBLE 1)
|
48 |
+
else()
|
49 |
+
set(HAVE_LONG_DOUBLE 0)
|
50 |
+
endif()
|
51 |
+
set(FFI_EXEC_TRAMPOLINE_TABLE 0)
|
52 |
+
|
53 |
+
# mimic layout of original buildsystem
|
54 |
+
configure_file(include/ffi.h.in ${CMAKE_BINARY_DIR}/include/ffi.h)
|
55 |
+
file(COPY ${FFI_CONFIG_FILE} DESTINATION ${CMAKE_BINARY_DIR})
|
56 |
+
|
57 |
+
if ("${TARGET}" STREQUAL "ARM_WIN64" OR "${TARGET}" STREQUAL "ARM64")
|
58 |
+
file(COPY src/aarch64/ffitarget.h DESTINATION ${CMAKE_BINARY_DIR}/include)
|
59 |
+
elseif ("${TARGET}" STREQUAL "ARM_WIN32" OR "${TARGET}" STREQUAL "ARM")
|
60 |
+
file(COPY src/arm/ffitarget.h DESTINATION ${CMAKE_BINARY_DIR}/include)
|
61 |
+
else()
|
62 |
+
file(COPY src/x86/ffitarget.h DESTINATION ${CMAKE_BINARY_DIR}/include)
|
63 |
+
endif()
|
64 |
+
|
65 |
+
include_directories(${CMAKE_BINARY_DIR}/include)
|
66 |
+
include_directories(${CMAKE_BINARY_DIR})
|
67 |
+
include_directories(include)
|
68 |
+
|
69 |
+
add_definitions(-DFFI_BUILDING)
|
70 |
+
if(BUILD_SHARED_LIBS AND WIN32)
|
71 |
+
add_definitions(-DFFI_BUILDING_DLL)
|
72 |
+
endif()
|
73 |
+
|
74 |
+
set(FFI_SOURCES
|
75 |
+
src/closures.c
|
76 |
+
src/prep_cif.c
|
77 |
+
src/types.c
|
78 |
+
src/tramp.c)
|
79 |
+
|
80 |
+
if ("${TARGET}" STREQUAL "ARM_WIN64" OR "${TARGET}" STREQUAL "ARM64")
|
81 |
+
set(FFI_SOURCES
|
82 |
+
${FFI_SOURCES}
|
83 |
+
src/aarch64/ffi.c)
|
84 |
+
elseif("${TARGET}" STREQUAL "ARM_WIN32" OR "${TARGET}" STREQUAL "ARM")
|
85 |
+
set(FFI_SOURCES
|
86 |
+
${FFI_SOURCES}
|
87 |
+
src/arm/ffi.c)
|
88 |
+
else()
|
89 |
+
set(FFI_SOURCES
|
90 |
+
${FFI_SOURCES}
|
91 |
+
src/java_raw_api.c
|
92 |
+
src/raw_api.c)
|
93 |
+
if("${TARGET}" STREQUAL "X86_WIN32" OR "${TARGET}" STREQUAL "X86_DARWIN" OR "${TARGET}" STREQUAL "X86")
|
94 |
+
set(FFI_SOURCES
|
95 |
+
${FFI_SOURCES}
|
96 |
+
src/x86/ffi.c)
|
97 |
+
elseif("${TARGET}" STREQUAL "X86_WIN64")
|
98 |
+
set(FFI_SOURCES
|
99 |
+
${FFI_SOURCES}
|
100 |
+
src/x86/ffiw64.c)
|
101 |
+
elseif("${TARGET}" STREQUAL "X86_64")
|
102 |
+
set(FFI_SOURCES
|
103 |
+
${FFI_SOURCES}
|
104 |
+
src/x86/ffi64.c
|
105 |
+
src/x86/ffiw64.c)
|
106 |
+
endif()
|
107 |
+
endif()
|
108 |
+
|
109 |
+
macro(add_assembly ASMFILE)
|
110 |
+
get_filename_component(ASMFILE_FULL "${ASMFILE}" ABSOLUTE)
|
111 |
+
if(MSVC)
|
112 |
+
if ("${TARGET}" STREQUAL "ARM_WIN64")
|
113 |
+
set(ARCH_ASSEMBLER armasm64)
|
114 |
+
elseif ("${TARGET}" STREQUAL "ARM_WIN32")
|
115 |
+
set(ARCH_ASSEMBLER armasm)
|
116 |
+
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
117 |
+
set(ARCH_ASSEMBLER ml /safeseh /c /Zi)
|
118 |
+
else()
|
119 |
+
set(ARCH_ASSEMBLER ml64 /c /Zi)
|
120 |
+
endif()
|
121 |
+
|
122 |
+
get_filename_component(ARCH_ASM_NAME "${ASMFILE_FULL}" NAME_WE)
|
123 |
+
|
124 |
+
execute_process(
|
125 |
+
COMMAND ${CMAKE_C_COMPILER} /nologo /EP /I. /Iinclude /I${CMAKE_CURRENT_SOURCE_DIR}/include "${ASMFILE_FULL}"
|
126 |
+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
127 |
+
OUTPUT_FILE ${ARCH_ASM_NAME}.asm
|
128 |
+
RESULT_VARIABLE retcode
|
129 |
+
)
|
130 |
+
|
131 |
+
if(NOT ${retcode} STREQUAL "0")
|
132 |
+
message(FATAL_ERROR "Unable to assemble, exit code: '${retcode}'.")
|
133 |
+
endif()
|
134 |
+
|
135 |
+
# Produced *.asm file could be just added to sources.
|
136 |
+
# It works in x64 mode, but for some strange reason MASM returns error code when in x86,
|
137 |
+
# (even though it didn't report any errors and correctly generated object file)
|
138 |
+
# which in turn causes MSBUILD to stop.
|
139 |
+
execute_process(
|
140 |
+
COMMAND ${ARCH_ASSEMBLER} ${ARCH_ASM_NAME}.asm
|
141 |
+
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
142 |
+
RESULT_VARIABLE retcode
|
143 |
+
)
|
144 |
+
|
145 |
+
if(NOT ${retcode} STREQUAL "0")
|
146 |
+
message(FATAL_ERROR "Unable to compile assembly, exit code: '${retcode}'.")
|
147 |
+
endif()
|
148 |
+
|
149 |
+
list(APPEND FFI_SOURCES ${CMAKE_BINARY_DIR}/${ARCH_ASM_NAME}.obj)
|
150 |
+
else()
|
151 |
+
list(APPEND FFI_SOURCES ${ASMFILE})
|
152 |
+
endif()
|
153 |
+
endmacro()
|
154 |
+
|
155 |
+
if("${TARGET}" STREQUAL "X86")
|
156 |
+
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -m32")
|
157 |
+
endif()
|
158 |
+
|
159 |
+
if("${TARGET}" STREQUAL "X86" OR "${TARGET}" STREQUAL "X86_DARWIN")
|
160 |
+
add_assembly(src/x86/sysv.S)
|
161 |
+
elseif("${TARGET}" STREQUAL "X86_64")
|
162 |
+
add_assembly(src/x86/unix64.S)
|
163 |
+
add_assembly(src/x86/win64.S)
|
164 |
+
elseif("${TARGET}" STREQUAL "X86_WIN32")
|
165 |
+
if(MSVC)
|
166 |
+
add_assembly(src/x86/sysv_intel.S)
|
167 |
+
else()
|
168 |
+
add_assembly(src/x86/sysv.S)
|
169 |
+
endif()
|
170 |
+
elseif("${TARGET}" STREQUAL "X86_WIN64")
|
171 |
+
if(MSVC)
|
172 |
+
add_assembly(src/x86/win64_intel.S)
|
173 |
+
else()
|
174 |
+
add_assembly(src/x86/win64.S)
|
175 |
+
endif()
|
176 |
+
elseif("${TARGET}" STREQUAL "ARM_WIN32")
|
177 |
+
if(MSVC)
|
178 |
+
add_assembly(src/arm/sysv_msvc_arm32.S)
|
179 |
+
else()
|
180 |
+
add_assembly(src/arm/sysv.S)
|
181 |
+
endif()
|
182 |
+
elseif("${TARGET}" STREQUAL "ARM")
|
183 |
+
add_assembly(src/arm/sysv.S)
|
184 |
+
elseif("${TARGET}" STREQUAL "ARM_WIN64")
|
185 |
+
if(MSVC)
|
186 |
+
add_assembly(src/aarch64/win64_armasm.S)
|
187 |
+
else()
|
188 |
+
add_assembly(src/aarch64/sysv.S)
|
189 |
+
endif()
|
190 |
+
elseif("${TARGET}" STREQUAL "ARM64")
|
191 |
+
add_assembly(src/aarch64/sysv.S)
|
192 |
+
else()
|
193 |
+
message(FATAL_ERROR "Target not implemented")
|
194 |
+
endif()
|
195 |
+
|
196 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
197 |
+
list(APPEND FFI_SOURCES src/debug.c)
|
198 |
+
add_definitions(-DFFI_DEBUG)
|
199 |
+
endif()
|
200 |
+
|
201 |
+
add_library(libffi ${FFI_SOURCES})
|
202 |
+
|
203 |
+
install(TARGETS libffi
|
204 |
+
EXPORT ${PROJECT_NAME}Targets
|
205 |
+
RUNTIME DESTINATION bin
|
206 |
+
ARCHIVE DESTINATION lib
|
207 |
+
LIBRARY DESTINATION lib)
|
208 |
+
|
209 |
+
include(CMakePackageConfigHelpers)
|
210 |
+
|
211 |
+
configure_package_config_file(${PROJECT_NAME}Config.cmake.in
|
212 |
+
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
|
213 |
+
INSTALL_DESTINATION share/${PROJECT_NAME})
|
214 |
+
write_basic_package_version_file(
|
215 |
+
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake
|
216 |
+
VERSION ${VERSION}
|
217 |
+
COMPATIBILITY AnyNewerVersion)
|
218 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
|
219 |
+
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
|
220 |
+
DESTINATION share/${PROJECT_NAME})
|
221 |
+
install(EXPORT ${PROJECT_NAME}Targets
|
222 |
+
DESTINATION share/${PROJECT_NAME})
|
223 |
+
|
224 |
+
if(NOT FFI_SKIP_HEADERS)
|
225 |
+
install(FILES
|
226 |
+
${CMAKE_BINARY_DIR}/include/ffi.h
|
227 |
+
${CMAKE_BINARY_DIR}/include/ffitarget.h
|
228 |
+
DESTINATION include)
|
229 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/fficonfig.h
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifdef __linux__
|
2 |
+
#define EH_FRAME_FLAGS "a"
|
3 |
+
#endif
|
4 |
+
#define HAVE_ALLOCA 1
|
5 |
+
#ifndef _WIN64
|
6 |
+
#define HAVE_AS_ASCII_PSEUDO_OP 1
|
7 |
+
#endif
|
8 |
+
#ifndef _WIN64
|
9 |
+
#define HAVE_AS_STRING_PSEUDO_OP 1
|
10 |
+
#endif
|
11 |
+
#ifndef _WIN64
|
12 |
+
#define HAVE_AS_X86_PCREL 1
|
13 |
+
#endif
|
14 |
+
#ifdef __linux__
|
15 |
+
#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
|
16 |
+
#endif
|
17 |
+
#define HAVE_INTTYPES_H 1
|
18 |
+
#define HAVE_MEMORY_H 1
|
19 |
+
#define HAVE_STDINT_H 1
|
20 |
+
#define HAVE_STDLIB_H 1
|
21 |
+
#define HAVE_STRING_H 1
|
22 |
+
#define HAVE_SYS_STAT_H 1
|
23 |
+
#define HAVE_SYS_TYPES_H 1
|
24 |
+
#define LT_OBJDIR ".libs/"
|
25 |
+
#define PACKAGE "libffi"
|
26 |
+
#define PACKAGE_BUGREPORT "http://github.com/libffi/libffi/issues"
|
27 |
+
#define PACKAGE_NAME "libffi"
|
28 |
+
#define PACKAGE_STRING "libffi 3.4.2"
|
29 |
+
#define PACKAGE_TARNAME "libffi"
|
30 |
+
#define PACKAGE_URL ""
|
31 |
+
#define PACKAGE_VERSION "3.4.2"
|
32 |
+
#define SIZEOF_DOUBLE 8
|
33 |
+
#define SIZEOF_LONG_DOUBLE 8
|
34 |
+
#ifndef _WIN64
|
35 |
+
#define SIZEOF_SIZE_T 4
|
36 |
+
#else
|
37 |
+
#define SIZEOF_SIZE_T 8
|
38 |
+
#endif
|
39 |
+
#define STDC_HEADERS 1
|
40 |
+
#ifndef __linux__
|
41 |
+
#ifndef _WIN64
|
42 |
+
#define SYMBOL_UNDERSCORE 1
|
43 |
+
#endif
|
44 |
+
#endif
|
45 |
+
#define VERSION "3.4.2"
|
46 |
+
#if defined AC_APPLE_UNIVERSAL_BUILD
|
47 |
+
# if defined __BIG_ENDIAN__
|
48 |
+
# define WORDS_BIGENDIAN 1
|
49 |
+
# endif
|
50 |
+
#endif
|
51 |
+
|
52 |
+
#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
|
53 |
+
#ifdef LIBFFI_ASM
|
54 |
+
#define FFI_HIDDEN(name) .hidden name
|
55 |
+
#else
|
56 |
+
#define FFI_HIDDEN __attribute__ ((visibility ("hidden")))
|
57 |
+
#endif
|
58 |
+
#else
|
59 |
+
#ifdef LIBFFI_ASM
|
60 |
+
#define FFI_HIDDEN(name)
|
61 |
+
#else
|
62 |
+
#define FFI_HIDDEN
|
63 |
+
#endif
|
64 |
+
#endif
|
65 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/libffiConfig.cmake.in
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include(CMakeFindDependencyMacro)
|
4 |
+
|
5 |
+
if(NOT TARGET libffi)
|
6 |
+
include("${CMAKE_CURRENT_LIST_DIR}/libffiTargets.cmake")
|
7 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/portfile.cmake
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VERSION 3.4.2)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO libffi/libffi
|
6 |
+
REF v${VERSION}
|
7 |
+
SHA512 d399319efcca375fe901b05722e25eca31d11a4261c6a5d5079480bbc552d4e4b42de2026912689d3b2f886ebb3c8bebbea47102e38a2f6acbc526b8d5bba388
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/libffiConfig.cmake.in" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
PREFER_NINJA
|
17 |
+
OPTIONS
|
18 |
+
-DFFI_CONFIG_FILE=${CMAKE_CURRENT_LIST_DIR}/fficonfig.h
|
19 |
+
OPTIONS_DEBUG
|
20 |
+
-DFFI_SKIP_HEADERS=ON
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
|
25 |
+
# Create pkgconfig file
|
26 |
+
set(PACKAGE_VERSION ${VERSION})
|
27 |
+
set(prefix "${CURRENT_INSTALLED_DIR}")
|
28 |
+
set(exec_prefix "\${prefix}")
|
29 |
+
set(libdir "\${prefix}/lib")
|
30 |
+
set(toolexeclibdir "\${libdir}")
|
31 |
+
set(includedir "\${prefix}/include")
|
32 |
+
configure_file("${SOURCE_PATH}/libffi.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libffi.pc" @ONLY)
|
33 |
+
|
34 |
+
# debug
|
35 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
36 |
+
set(prefix "${CURRENT_INSTALLED_DIR}/debug")
|
37 |
+
set(exec_prefix "\${prefix}")
|
38 |
+
set(libdir "\${prefix}/lib")
|
39 |
+
set(toolexeclibdir "\${libdir}")
|
40 |
+
set(includedir "\${prefix}/../include")
|
41 |
+
configure_file("${SOURCE_PATH}/libffi.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libffi.pc" @ONLY)
|
42 |
+
endif()
|
43 |
+
|
44 |
+
vcpkg_copy_pdbs()
|
45 |
+
vcpkg_cmake_config_fixup()
|
46 |
+
|
47 |
+
if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_MINGW)
|
48 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
49 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libffi.pc"
|
50 |
+
"-lffi" "-llibffi")
|
51 |
+
endif()
|
52 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
53 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libffi.pc"
|
54 |
+
"-lffi" "-llibffi")
|
55 |
+
endif()
|
56 |
+
endif()
|
57 |
+
vcpkg_fixup_pkgconfig()
|
58 |
+
|
59 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
60 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/ffi.h"
|
61 |
+
" *know* they are going to link with the static library. */"
|
62 |
+
" *know* they are going to link with the static library. */
|
63 |
+
|
64 |
+
#define FFI_BUILDING
|
65 |
+
"
|
66 |
+
)
|
67 |
+
endif()
|
68 |
+
|
69 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libffi/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libffi",
|
3 |
+
"version": "3.4.2",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "Portable, high level programming interface to various calling conventions",
|
6 |
+
"homepage": "https://github.com/libffi/libffi",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfido2/fix_cmakelists.patch
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 11a51ac..33b9313 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -156,18 +156,20 @@ if(UNIX)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
if(MSVC)
|
9 |
+
- if((NOT CBOR_INCLUDE_DIRS) OR (NOT CBOR_LIBRARY_DIRS) OR
|
10 |
+
- (NOT CBOR_BIN_DIRS) OR (NOT CRYPTO_INCLUDE_DIRS) OR
|
11 |
+
- (NOT CRYPTO_LIBRARY_DIRS) OR (NOT CRYPTO_BIN_DIRS) OR
|
12 |
+
- (NOT ZLIB_INCLUDE_DIRS) OR (NOT ZLIB_LIBRARY_DIRS) OR
|
13 |
+
- (NOT ZLIB_BIN_DIRS))
|
14 |
+
- message(FATAL_ERROR "please define "
|
15 |
+
- "{CBOR,CRYPTO,ZLIB}_{INCLUDE,LIBRARY,BIN}_DIRS when "
|
16 |
+
- "building under msvc")
|
17 |
+
- endif()
|
18 |
+
- set(CBOR_LIBRARIES cbor)
|
19 |
+
- set(ZLIB_LIBRARIES zlib)
|
20 |
+
- set(CRYPTO_LIBRARIES crypto-47)
|
21 |
+
+ find_package(PkgConfig)
|
22 |
+
+
|
23 |
+
+ find_package(LIBCBOR REQUIRED)
|
24 |
+
+ find_package(OpenSSL REQUIRED)
|
25 |
+
+ find_package(ZLIB REQUIRED)
|
26 |
+
+
|
27 |
+
+ # Handling of different Packagenames in VCPKG
|
28 |
+
+ set(CBOR_INCLUDE_DIRS ${LIBCBOR_INCLUDE_DIR})
|
29 |
+
+ set(CRYPTO_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIRS})
|
30 |
+
+ set(CBOR_LIBRARY_DIRS ${LIBCBOR_LIBRARY_DIRS})
|
31 |
+
+ set(CRYPTO_LIBRARY_DIRS ${OPENSSL_LIBRARY_DIRS})
|
32 |
+
+ set(CBOR_LIBRARIES ${LIBCBOR_LIBRARIES})
|
33 |
+
+ set(CRYPTO_LIBRARIES ${OPENSSL_LIBRARIES})
|
34 |
+
+ add_definitions("-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_NONSTDC_NO_DEPRECATE")
|
35 |
+
set(MSVC_DISABLED_WARNINGS_LIST
|
36 |
+
"C4152" # nonstandard extension used: function/data pointer
|
37 |
+
# conversion in expression;
|
38 |
+
@@ -403,6 +402,9 @@ message(STATUS "USE_HIDAPI: ${USE_HIDAPI}")
|
39 |
+
message(STATUS "USE_WINHELLO: ${USE_WINHELLO}")
|
40 |
+
message(STATUS "NFC_LINUX: ${NFC_LINUX}")
|
41 |
+
|
42 |
+
+set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /wd4996")
|
43 |
+
+set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /wd4996")
|
44 |
+
+
|
45 |
+
subdirs(src)
|
46 |
+
if(BUILD_EXAMPLES)
|
47 |
+
subdirs(examples)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfido2/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Yubico/libfido2
|
4 |
+
REF 1.10.0
|
5 |
+
SHA512 ba03e25d3f42f11cec74dee48c853ae35d03600f24ca06d2b751840408a132290fe22461372ae42ae31419061a63d9908c20a2c0cf3c0c9c8dbc46c34916784f
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
"fix_cmakelists.patch"
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LIBFIDO2_BUILD_STATIC)
|
12 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBFIDO2_BUILD_SHARED)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS
|
17 |
+
-DBUILD_EXAMPLES=OFF
|
18 |
+
-DBUILD_MANPAGES=OFF
|
19 |
+
-DBUILD_STATIC_LIBS=${LIBFIDO2_BUILD_STATIC}
|
20 |
+
-DBUILD_SHARED_LIBS=${LIBFIDO2_BUILD_SHARED}
|
21 |
+
-DBUILD_TOOLS=OFF
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
vcpkg_copy_pdbs()
|
26 |
+
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
28 |
+
|
29 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libfido2/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libfido2",
|
3 |
+
"version": "1.10.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Provides library functionality to communicate with a FIDO device over USB, and to verify attestation and assertion signatures.",
|
6 |
+
"homepage": "https://developers.yubico.com/libfido2/",
|
7 |
+
"license": "BSD-2-Clause",
|
8 |
+
"supports": "!uwp & (x86 | x64) & windows",
|
9 |
+
"dependencies": [
|
10 |
+
"libcbor",
|
11 |
+
"openssl",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"zlib"
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/fix-compile-options.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c83dd83..2d1a7e6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -82,9 +82,11 @@ if(HAVE_WERROR_FLAG)
|
6 |
+
option(ENABLE_WERROR "Enable -Werror in all Makefiles" OFF)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+if(MSVC AND NOT WITH_ASM)
|
10 |
+
+ add_compile_options(/wd4267 /wd4996)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
add_compile_options(
|
14 |
+
- $<$<BOOL:${MSVC}>:/wd4267>
|
15 |
+
- $<$<BOOL:${MSVC}>:/wd4996>
|
16 |
+
$<$<BOOL:${ENABLE_WERROR}>:-Werror>
|
17 |
+
$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:${HAVE_WEFFCXX_FLAG}>>:-Weffc++>
|
18 |
+
$<$<AND:$<COMPILE_LANGUAGE:C>,$<BOOL:${HAVE_DECL_AFTER_STMT_FLAG}>>:-Wdeclaration-after-statement>)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libflac/portfile.cmake
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO xiph/flac
|
4 |
+
REF ce6dd6b5732e319ef60716d9cc9af6a836a4011a
|
5 |
+
SHA512 d0d3b5451f8d74aa0a0832fbe95cca55597ce9654765a95adaac98ecd0da9e803b98551a40a3fb3fd5b86bc5f40cd1a791127c03da5322e7f01e7fa761171a21
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
uwp-library-console.patch
|
9 |
+
uwp-createfile2.patch
|
10 |
+
fix-compile-options.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_IS_MINGW)
|
14 |
+
set(WITH_STACK_PROTECTOR OFF)
|
15 |
+
string(APPEND VCPKG_C_FLAGS " -D_FORTIFY_SOURCE=0")
|
16 |
+
string(APPEND VCPKG_CXX_FLAGS " -D_FORTIFY_SOURCE=0")
|
17 |
+
else()
|
18 |
+
set(WITH_STACK_PROTECTOR ON)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if("asm" IN_LIST FEATURES)
|
22 |
+
if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
23 |
+
message(FATAL_ERROR "Feature asm only supports x86 architecture.")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
VCPKG_FIND_ACQUIRE_PROGRAM(NASM)
|
27 |
+
GET_FILENAME_COMPONENT(NASM_PATH ${NASM} DIRECTORY)
|
28 |
+
vcpkg_add_to_path("${NASM_PATH}")
|
29 |
+
endif()
|
30 |
+
|
31 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
32 |
+
asm WITH_ASM
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_configure_cmake(
|
36 |
+
SOURCE_PATH ${SOURCE_PATH}
|
37 |
+
PREFER_NINJA
|
38 |
+
OPTIONS ${FEATURE_OPTIONS}
|
39 |
+
-DBUILD_PROGRAMS=OFF
|
40 |
+
-DBUILD_EXAMPLES=OFF
|
41 |
+
-DBUILD_DOCS=OFF
|
42 |
+
-DBUILD_TESTING=OFF
|
43 |
+
-DWITH_STACK_PROTECTOR=${WITH_STACK_PROTECTOR})
|
44 |
+
|
45 |
+
vcpkg_install_cmake()
|
46 |
+
|
47 |
+
vcpkg_fixup_cmake_targets(
|
48 |
+
CONFIG_PATH share/FLAC/cmake
|
49 |
+
TARGET_PATH share/FLAC
|
50 |
+
)
|
51 |
+
vcpkg_copy_pdbs()
|
52 |
+
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
54 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
55 |
+
|
56 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
57 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/FLAC/export.h"
|
58 |
+
"#if defined(FLAC__NO_DLL)"
|
59 |
+
"#if 0"
|
60 |
+
)
|
61 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/FLAC++/export.h"
|
62 |
+
"#if defined(FLAC__NO_DLL)"
|
63 |
+
"#if 0"
|
64 |
+
)
|
65 |
+
else()
|
66 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/FLAC/export.h"
|
67 |
+
"#if defined(FLAC__NO_DLL)"
|
68 |
+
"#if 1"
|
69 |
+
)
|
70 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/FLAC++/export.h"
|
71 |
+
"#if defined(FLAC__NO_DLL)"
|
72 |
+
"#if 1"
|
73 |
+
)
|
74 |
+
endif()
|
75 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/flac.pc" "Version:" "Version: 1.3.3")
|
76 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
77 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/flac.pc" " -lm" "")
|
78 |
+
endif()
|
79 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/flac++.pc" "Version:" "Version: 1.3.3")
|
80 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac.pc")
|
81 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac.pc" "Version:" "Version: 1.3.3")
|
82 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac++.pc" "Version:" "Version: 1.3.3")
|
83 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
84 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/flac.pc" " -lm" "")
|
85 |
+
endif()
|
86 |
+
endif()
|
87 |
+
vcpkg_fixup_pkgconfig()
|
88 |
+
|
89 |
+
# This license (BSD) is relevant only for library - if someone would want to install
|
90 |
+
# FLAC cmd line tools as well additional license (GPL) should be included
|
91 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.Xiph" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|