Spaces:
Sleeping
Sleeping
e245801fc73a616b419dd6ddf07e318ffb4423f070f7f95bffc0b0e82d8e89ea
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/Config.cmake.in +60 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/portfile.cmake +120 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/remove_lame_init_old_from_symbol_list.patch +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpark-variant/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpark-variant/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpc/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpc/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/dll.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/portfile.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/src-only.patch +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/fix-modulejack.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/no-executables.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpi/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpi/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpir/enable-runtimelibrary-toggle.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpir/portfile.cmake +134 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpir/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpmcqueue/portfile.cmake +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpmcqueue/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mqtt-cpp/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mqtt-cpp/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-angle/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-angle/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/fix-apple-filesystem.patch +66 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/fix-install.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/vcpkg.json +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gsl/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gsl/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/fix-install.patch +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/fix-platform.patch +56 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/fix-warnings.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/portfile.cmake +80 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/vcpkg.json +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msdfgen/portfile.cmake +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msdfgen/vcpkg.json +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack/portfile.cmake +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/disable-werror.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/fix-additerator.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/msvc.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msinttypes/portfile.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msinttypes/vcpkg.json +7 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/Config.cmake.in
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
get_filename_component(_mp3lame_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
3 |
+
get_filename_component(_mp3lame_root "${_mp3lame_root}" PATH)
|
4 |
+
get_filename_component(_mp3lame_root "${_mp3lame_root}" PATH)
|
5 |
+
|
6 |
+
set(_mp3lame_rel_lib "${_mp3lame_root}/lib/@MP3LAME_LIB@")
|
7 |
+
set(_mp3lame_dbg_lib "${_mp3lame_root}/debug/lib/@MP3LAME_LIB@")
|
8 |
+
|
9 |
+
if (EXISTS "${_mp3lame_rel_lib}" OR EXISTS "${_mp3lame_dbg_lib}")
|
10 |
+
|
11 |
+
add_library(mp3lame::mp3lame UNKNOWN IMPORTED)
|
12 |
+
set_target_properties(mp3lame::mp3lame
|
13 |
+
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_mp3lame_root}/include")
|
14 |
+
|
15 |
+
if (EXISTS "${_mp3lame_rel_lib}")
|
16 |
+
set_target_properties(mp3lame::mp3lame
|
17 |
+
PROPERTIES IMPORTED_LOCATION_RELEASE "${_mp3lame_rel_lib}")
|
18 |
+
set_property(TARGET mp3lame::mp3lame APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
19 |
+
endif()
|
20 |
+
if (EXISTS "${_mp3lame_dbg_lib}")
|
21 |
+
set_target_properties(mp3lame::mp3lame
|
22 |
+
PROPERTIES IMPORTED_LOCATION_DEBUG "${_mp3lame_dbg_lib}")
|
23 |
+
set_property(TARGET mp3lame::mp3lame APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
24 |
+
endif()
|
25 |
+
|
26 |
+
set(_mp3lame_mpghip_rel_lib "${_mp3lame_root}/lib/libmpghip-static.lib")
|
27 |
+
set(_mp3lame_mpghip_dbg_lib "${_mp3lame_root}/debug/lib/libmpghip-static.lib")
|
28 |
+
|
29 |
+
if (EXISTS "${_mp3lame_mpghip_rel_lib}" OR EXISTS "${_mp3lame_mpghip_dbg_lib}")
|
30 |
+
|
31 |
+
add_library(mp3lame::mpghip UNKNOWN IMPORTED)
|
32 |
+
|
33 |
+
if (EXISTS "${_mp3lame_rel_lib}")
|
34 |
+
set_target_properties(mp3lame::mpghip
|
35 |
+
PROPERTIES IMPORTED_LOCATION_RELEASE "${_mp3lame_mpghip_rel_lib}")
|
36 |
+
set_property(TARGET mp3lame::mpghip APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
37 |
+
endif()
|
38 |
+
if (EXISTS "${_mp3lame_dbg_lib}")
|
39 |
+
set_target_properties(mp3lame::mpghip
|
40 |
+
PROPERTIES IMPORTED_LOCATION_DEBUG "${_mp3lame_mpghip_dbg_lib}")
|
41 |
+
set_property(TARGET mp3lame::mpghip APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
42 |
+
endif()
|
43 |
+
|
44 |
+
set_target_properties(mp3lame::mp3lame PROPERTIES INTERFACE_LINK_LIBRARIES mp3lame::mpghip)
|
45 |
+
|
46 |
+
endif()
|
47 |
+
|
48 |
+
unset(_mp3lame_mpghip_rel_lib)
|
49 |
+
unset(_mp3lame_mpghip_dbg_lib)
|
50 |
+
|
51 |
+
else()
|
52 |
+
|
53 |
+
set(mp3lame_FOUND FALSE)
|
54 |
+
|
55 |
+
endif()
|
56 |
+
|
57 |
+
unset(_mp3lame_rel_lib)
|
58 |
+
unset(_mp3lame_dbg_lib)
|
59 |
+
|
60 |
+
unset(_mp3lame_root)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/portfile.cmake
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VERSION 3.100)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO lame/lame
|
6 |
+
REF ${VERSION}
|
7 |
+
FILENAME "lame-${VERSION}.tar.gz"
|
8 |
+
SHA512 0844b9eadb4aacf8000444621451277de365041cc1d97b7f7a589da0b7a23899310afd4e4d81114b9912aa97832621d20588034715573d417b2923948c08634b
|
9 |
+
PATCHES
|
10 |
+
00001-msvc-upgrade-solution-up-to-vc11.patch
|
11 |
+
remove_lame_init_old_from_symbol_list.patch # deprecated https://github.com/zlargon/lame/blob/master/include/lame.h#L169
|
12 |
+
)
|
13 |
+
|
14 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
15 |
+
|
16 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
17 |
+
set(platform "ARM64")
|
18 |
+
set(machine "ARM64")
|
19 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
20 |
+
set(platform "ARM")
|
21 |
+
set(machine "ARM")
|
22 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
23 |
+
set(platform "x64")
|
24 |
+
set(machine "x64")
|
25 |
+
else()
|
26 |
+
set(platform "Win32")
|
27 |
+
set(machine "x86")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
file(READ "${SOURCE_PATH}/vc_solution/vc11_lame.sln" sln_con)
|
31 |
+
string(REPLACE "|Win32" "|${platform}" sln_con "${sln_con}")
|
32 |
+
string(REPLACE "\"vc11_" "\"${machine}_vc11_" sln_con "${sln_con}")
|
33 |
+
file(WRITE "${SOURCE_PATH}/vc_solution/${machine}_vc11_lame.sln" "${sln_con}")
|
34 |
+
|
35 |
+
|
36 |
+
file(GLOB vcxprojs RELATIVE "${SOURCE_PATH}/vc_solution" "${SOURCE_PATH}/vc_solution/vc11_*.vcxproj")
|
37 |
+
foreach(vcxproj ${vcxprojs})
|
38 |
+
file(READ "${SOURCE_PATH}/vc_solution/${vcxproj}" vcxproj_con)
|
39 |
+
|
40 |
+
if(NOT VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
41 |
+
string(REPLACE "DLL</RuntimeLibrary>" "</RuntimeLibrary>" vcxproj_con "${vcxproj_con}")
|
42 |
+
endif()
|
43 |
+
|
44 |
+
string(REPLACE "/machine:x86" "/machine:${machine}" vcxproj_con "${vcxproj_con}")
|
45 |
+
string(REPLACE "<Platform>Win32</Platform>" "<Platform>${platform}</Platform>" vcxproj_con "${vcxproj_con}")
|
46 |
+
string(REPLACE "|Win32" "|${platform}" vcxproj_con "${vcxproj_con}")
|
47 |
+
string(REPLACE "Include=\"vc11_" "Include=\"${machine}_vc11_" vcxproj_con "${vcxproj_con}")
|
48 |
+
|
49 |
+
if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
50 |
+
string(REPLACE "/APPCONTAINER" "" vcxproj_con "${vcxproj_con}")
|
51 |
+
endif()
|
52 |
+
|
53 |
+
file(WRITE "${SOURCE_PATH}/vc_solution/${machine}_${vcxproj}" "${vcxproj_con}")
|
54 |
+
endforeach()
|
55 |
+
|
56 |
+
vcpkg_install_msbuild(
|
57 |
+
SOURCE_PATH ${SOURCE_PATH}
|
58 |
+
PROJECT_SUBPATH "vc_solution/${machine}_vc11_lame.sln"
|
59 |
+
TARGET "lame"
|
60 |
+
PLATFORM "${platform}"
|
61 |
+
)
|
62 |
+
|
63 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
64 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
65 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
66 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libmp3lame.lib)
|
67 |
+
endif()
|
68 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
69 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
70 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libmp3lame.lib)
|
71 |
+
endif()
|
72 |
+
set(MP3LAME_LIB "libmp3lame-static.lib")
|
73 |
+
else()
|
74 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
75 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libmp3lame-static.lib)
|
76 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libmpghip-static.lib)
|
77 |
+
endif()
|
78 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
79 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libmp3lame-static.lib)
|
80 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libmpghip-static.lib)
|
81 |
+
endif()
|
82 |
+
set(MP3LAME_LIB "libmp3lame.lib")
|
83 |
+
endif()
|
84 |
+
|
85 |
+
else()
|
86 |
+
|
87 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
88 |
+
set(OPTIONS --enable-static=yes --enable-shared=no)
|
89 |
+
set(MP3LAME_LIB "libmp3lame${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
|
90 |
+
else()
|
91 |
+
set(OPTIONS --enable-shared=yes --enable-static=no)
|
92 |
+
if(VCPKG_TARGET_IMPORT_LIBRARY_SUFFIX)
|
93 |
+
set(MP3LAME_LIB "libmp3lame${VCPKG_TARGET_IMPORT_LIBRARY_SUFFIX}")
|
94 |
+
else()
|
95 |
+
set(MP3LAME_LIB "libmp3lame${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}")
|
96 |
+
endif()
|
97 |
+
endif()
|
98 |
+
|
99 |
+
if(NOT VCPKG_TARGET_IS_MINGW)
|
100 |
+
string(APPEND OPTIONS --with-pic=yes)
|
101 |
+
endif()
|
102 |
+
|
103 |
+
vcpkg_configure_make(
|
104 |
+
SOURCE_PATH ${SOURCE_PATH}
|
105 |
+
DETERMINE_BUILD_TRIPLET
|
106 |
+
OPTIONS ${OPTIONS}
|
107 |
+
)
|
108 |
+
|
109 |
+
vcpkg_install_make()
|
110 |
+
file(REMOVE_RECURSE
|
111 |
+
${CURRENT_PACKAGES_DIR}/debug/include
|
112 |
+
${CURRENT_PACKAGES_DIR}/debug/share
|
113 |
+
)
|
114 |
+
|
115 |
+
endif()
|
116 |
+
|
117 |
+
file(COPY ${SOURCE_PATH}/include/lame.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/lame)
|
118 |
+
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
119 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in ${CURRENT_PACKAGES_DIR}/share/${PORT}/mp3lame-config.cmake @ONLY)
|
120 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/remove_lame_init_old_from_symbol_list.patch
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --color -Naur src_old/include/libmp3lame.sym src/include/libmp3lame.sym
|
2 |
+
--- src_old/include/libmp3lame.sym 2017-09-07 02:33:35.000000000 +0700
|
3 |
+
+++ src/include/libmp3lame.sym 2020-11-12 17:45:59.946448300 +0700
|
4 |
+
@@ -1,5 +1,4 @@
|
5 |
+
lame_init
|
6 |
+
-lame_init_old
|
7 |
+
lame_set_num_samples
|
8 |
+
lame_get_num_samples
|
9 |
+
lame_set_in_samplerate
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package mp3lame provides CMake targets:
|
2 |
+
|
3 |
+
find_package(mp3lame CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE mp3lame::mp3lame)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mp3lame",
|
3 |
+
"version-string": "3.100",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL.",
|
6 |
+
"homepage": "http://lame.sourceforge.net/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpark-variant/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mpark/variant
|
4 |
+
REF v1.4.0
|
5 |
+
SHA512 598ef21824f9cd7586f88de5a51bfe24dde4c492e8e6b8288d2912920812c48fd01c54d9683e1620cb034563c4eac737a382620e6b4af473808a2e77017a89e3
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_install_cmake()
|
15 |
+
|
16 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mpark_variant TARGET_PATH share/mpark_variant)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
19 |
+
|
20 |
+
file(INSTALL
|
21 |
+
${SOURCE_PATH}/LICENSE.md
|
22 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpark-variant RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpark-variant/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mpark-variant",
|
3 |
+
"version-string": "1.4.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "an implementation of C++17 std::variant for C++11/14/17."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpc/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://ftp.gnu.org/gnu/mpc/mpc-1.2.0.tar.gz"
|
3 |
+
FILENAME "mpc-1.2.0.tar.gz"
|
4 |
+
SHA512 84fa3338f51d369111456a63ad040256a1beb70699e21e2a932c779aa1c3bd08b201412c1659ecbb58403ea0548faacc35996d94f88f0639549269b7563c61b7
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_configure_make(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
AUTOCONFIG
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_make()
|
18 |
+
|
19 |
+
vcpkg_fixup_pkgconfig()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
23 |
+
|
24 |
+
# # Handle copyright
|
25 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
26 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpc/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mpc",
|
3 |
+
"version": "1.2.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result.",
|
6 |
+
"homepage": "http://www.multiprecision.org/mpc/",
|
7 |
+
"dependencies": [
|
8 |
+
"gmp",
|
9 |
+
"mpfr"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/dll.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index fdee5978d..0791b2528 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -593,7 +593,7 @@ case $host in
|
6 |
+
AC_MSG_CHECKING(for DLL/static GMP)
|
7 |
+
if test "$enable_shared" = yes; then
|
8 |
+
MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
|
9 |
+
- LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def"
|
10 |
+
+ LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -W1,--no-undefined"
|
11 |
+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
12 |
+
#include "gmp.h"
|
13 |
+
#if !__GMP_LIBGMP_DLL
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_IS_LINUX)
|
2 |
+
message(WARNING "${PORT} currently requires the following packages:\n autoconf-archive\nThese can be installed on Ubuntu systems via\n sudo apt-get update -y\n sudo apt-get install -y autoconf-archive\n")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
set(VERSION 4.1.0)
|
6 |
+
vcpkg_download_distfile(ARCHIVE
|
7 |
+
URLS "http://www.mpfr.org/mpfr-${VERSION}/mpfr-${VERSION}.tar.xz" "https://ftp.gnu.org/gnu/mpfr/mpfr-${VERSION}.tar.xz"
|
8 |
+
FILENAME "mpfr-${VERSION}.tar.xz"
|
9 |
+
SHA512 1bd1c349741a6529dfa53af4f0da8d49254b164ece8a46928cdb13a99460285622d57fe6f68cef19c6727b3f9daa25ddb3d7d65c201c8f387e421c7f7bee6273
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_extract_source_archive_ex(
|
13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
14 |
+
ARCHIVE "${ARCHIVE}"
|
15 |
+
PATCHES
|
16 |
+
dll.patch
|
17 |
+
src-only.patch
|
18 |
+
)
|
19 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/m4")
|
20 |
+
|
21 |
+
vcpkg_configure_make(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
AUTOCONFIG
|
24 |
+
ADDITIONAL_MSYS_PACKAGES autoconf-archive
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_install_make()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
vcpkg_fixup_pkgconfig()
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
33 |
+
|
34 |
+
# Handle copyright
|
35 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/src-only.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Makefile.am b/Makefile.am
|
2 |
+
index 89242c6..662ce24 100644
|
3 |
+
--- a/Makefile.am
|
4 |
+
+++ b/Makefile.am
|
5 |
+
@@ -24,12 +24,14 @@ AUTOMAKE_OPTIONS = gnu
|
6 |
+
# old Automake version.
|
7 |
+
ACLOCAL_AMFLAGS = -I m4
|
8 |
+
|
9 |
+
-SUBDIRS = doc src tests tune tools/bench
|
10 |
+
+SUBDIRS = src # Skipping: doc tests tune tools/bench
|
11 |
+
|
12 |
+
pkgconfigdir = $(libdir)/pkgconfig
|
13 |
+
pkgconfig_DATA = mpfr.pc
|
14 |
+
|
15 |
+
nobase_dist_doc_DATA = AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO \
|
16 |
+
+ # BREAK
|
17 |
+
+VCPKG_SKIP_EXAMPLES = \
|
18 |
+
examples/ReadMe examples/can_round.c examples/divworst.c \
|
19 |
+
examples/rndo-add.c examples/sample.c examples/threads.c \
|
20 |
+
examples/version.c
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpfr/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mpfr",
|
3 |
+
"version": "4.1.0",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "The MPFR library is a C library for multiple-precision floating-point computations with correct rounding",
|
6 |
+
"homepage": "https://www.mpfr.org",
|
7 |
+
"license": "LGPL-3.0-or-later",
|
8 |
+
"dependencies": [
|
9 |
+
"gmp"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/fix-modulejack.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
|
2 |
+
index 7147174..76e1743 100644
|
3 |
+
--- a/ports/cmake/src/CMakeLists.txt
|
4 |
+
+++ b/ports/cmake/src/CMakeLists.txt
|
5 |
+
@@ -238,7 +238,7 @@ if(BUILD_LIBOUT123)
|
6 |
+
endif()
|
7 |
+
endif()
|
8 |
+
|
9 |
+
- if(NOT CHECK_MODULES OR NOT JACK_REQUIRED EQUAL -1)
|
10 |
+
+ if(0)
|
11 |
+
pkg_search_module(JACK jack)
|
12 |
+
if(JACK_FOUND)
|
13 |
+
list(APPEND OUTPUT_MODULES jack)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/no-executables.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
|
2 |
+
index c7ba36f..7147174 100644
|
3 |
+
--- a/ports/cmake/src/CMakeLists.txt
|
4 |
+
+++ b/ports/cmake/src/CMakeLists.txt
|
5 |
+
@@ -372,7 +372,7 @@ if(BUILD_LIBOUT123)
|
6 |
+
endif()
|
7 |
+
add_subdirectory("libsyn123")
|
8 |
+
|
9 |
+
-if(UNIX)
|
10 |
+
+if(0)
|
11 |
+
add_subdirectory("tests")
|
12 |
+
|
13 |
+
if(BUILD_LIBOUT123)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(MPG123_VERSION 1.29.2)
|
2 |
+
set(MPG123_HASH ffb82ffbebedeb12783338b5159bf055afd25cb77e1b705bef29f04fa50bcb2ceaf2a6418d0e111fab1151ea956fe48ba3576d978e6b0c8f4ca72c3883608ec0)
|
3 |
+
|
4 |
+
vcpkg_from_sourceforge(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO mpg123/mpg123
|
7 |
+
REF ${MPG123_VERSION}
|
8 |
+
FILENAME "mpg123-${MPG123_VERSION}.tar.bz2"
|
9 |
+
SHA512 ${MPG123_HASH}
|
10 |
+
PATCHES
|
11 |
+
no-executables.patch
|
12 |
+
fix-modulejack.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
16 |
+
include("${CURRENT_INSTALLED_DIR}/share/yasm-tool-helper/yasm-tool-helper.cmake")
|
17 |
+
yasm_tool_helper(APPEND_TO_PATH)
|
18 |
+
endif()
|
19 |
+
|
20 |
+
vcpkg_cmake_configure(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}/ports/cmake"
|
22 |
+
OPTIONS -DUSE_MODULES=OFF
|
23 |
+
)
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
26 |
+
vcpkg_fixup_pkgconfig()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
|
31 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpg123/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mpg123",
|
3 |
+
"version": "1.29.2",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "mpg123 is a real time MPEG 1.0/2.0/2.5 audio player/decoder for layers 1, 2 and 3 (MPEG 1.0 layer 3 also known as MP3).",
|
6 |
+
"homepage": "https://sourceforge.net/projects/mpg123/",
|
7 |
+
"license": "LGPL-2.1-or-later",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "yasm-tool-helper",
|
19 |
+
"platform": "windows"
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpi/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpi/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mpi",
|
3 |
+
"version-string": "1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Message Passing Interface (MPI) is a standardized and portable message-passing standard designed by a group of researchers from academia and industry to function on a wide variety of parallel computing architectures. The standard defines the syntax and semantics of a core of library routines useful to a wide range of users writing portable message-passing programs in C, C++, and Fortran. There are several well-tested and efficient implementations of MPI, many of which are open-source or in the public domain.",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "msmpi",
|
10 |
+
"platform": "windows"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "openmpi",
|
14 |
+
"platform": "!windows"
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpir/enable-runtimelibrary-toggle.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/build.vc/mpir_debug_lib.props b/build.vc/mpir_debug_lib.props
|
2 |
+
index b2fd57b..3937570 100644
|
3 |
+
--- a/build.vc/mpir_debug_lib.props
|
4 |
+
+++ b/build.vc/mpir_debug_lib.props
|
5 |
+
@@ -9,7 +9,8 @@
|
6 |
+
<ItemDefinitionGroup>
|
7 |
+
<ClCompile>
|
8 |
+
<ObjectFileName>$(IntDir)dum\my\%(RelativeDir)</ObjectFileName>
|
9 |
+
- <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
10 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
11 |
+
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
|
12 |
+
<ProgramDataBaseFileName>$(TargetDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
13 |
+
</ClCompile>
|
14 |
+
<Link>
|
15 |
+
diff --git a/build.vc/mpir_release_lib.props b/build.vc/mpir_release_lib.props
|
16 |
+
index 6cdff3e..3937570 100644
|
17 |
+
--- a/build.vc/mpir_release_lib.props
|
18 |
+
+++ b/build.vc/mpir_release_lib.props
|
19 |
+
@@ -9,7 +9,7 @@
|
20 |
+
<ItemDefinitionGroup>
|
21 |
+
<ClCompile>
|
22 |
+
<ObjectFileName>$(IntDir)dum\my\%(RelativeDir)</ObjectFileName>
|
23 |
+
- <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
24 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
25 |
+
<ProgramDataBaseFileName>$(TargetDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
26 |
+
</ClCompile>
|
27 |
+
<Link>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpir/portfile.cmake
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(EXISTS "${CURRENT_INSTALLED_DIR}/include/gmp.h" OR "${CURRENT_INSTALLED_DIR}/include/gmpxx.h")
|
2 |
+
message(FATAL_ERROR "Can't build ${PORT} if gmp is installed. Please remove gmp, and try to install ${PORT} again if you need it.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "static" AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
6 |
+
message(FATAL_ERROR "${PORT} currently can only be built using the dynamic CRT when building DLLs")
|
7 |
+
endif()
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
REPO wbhart/mpir
|
12 |
+
REF cdd444aedfcbb190f00328526ef278428702d56e # 3.0.0
|
13 |
+
SHA512 f46e45bdba27c9f89953ba23186b694486fd3010bd370ea2de71a4649a2816e716a6520c9baa96936f1884437ef03f92b21c0b1fb5b757beba5a05fed30b2bfc
|
14 |
+
HEAD_REF master
|
15 |
+
PATCHES enable-runtimelibrary-toggle.patch
|
16 |
+
)
|
17 |
+
|
18 |
+
if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
19 |
+
vcpkg_find_acquire_program(YASM)
|
20 |
+
|
21 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
22 |
+
set(SHARED_STATIC "--enable-static --disable-shared")
|
23 |
+
else()
|
24 |
+
set(SHARED_STATIC "--disable-static --enable-shared")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
set(OPTIONS "--disable-silent-rules --enable-gmpcompat --enable-cxx ${SHARED_STATIC}")
|
28 |
+
|
29 |
+
string(APPEND VCPKG_C_FLAGS " -Wno-implicit-function-declaration")
|
30 |
+
string(APPEND VCPKG_CXX_FLAGS " -Wno-implicit-function-declaration")
|
31 |
+
|
32 |
+
# on Linux, autoconf is required; on macOS, it isn't
|
33 |
+
if(VCPKG_TARGET_IS_LINUX)
|
34 |
+
set(AUTOCONFIG "AUTOCONFIG")
|
35 |
+
endif()
|
36 |
+
|
37 |
+
vcpkg_configure_make(
|
38 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
39 |
+
${AUTOCONFIG}
|
40 |
+
OPTIONS ${OPTIONS}
|
41 |
+
)
|
42 |
+
|
43 |
+
vcpkg_install_make()
|
44 |
+
|
45 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
46 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
47 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
48 |
+
endif()
|
49 |
+
|
50 |
+
elseif(VCPKG_TARGET_IS_WINDOWS)
|
51 |
+
if(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
|
52 |
+
set(MSVC_VERSION 15)
|
53 |
+
else()
|
54 |
+
set(MSVC_VERSION 14)
|
55 |
+
endif()
|
56 |
+
|
57 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
58 |
+
set(DLL_OR_LIB dll)
|
59 |
+
else()
|
60 |
+
set(DLL_OR_LIB lib)
|
61 |
+
endif()
|
62 |
+
|
63 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
64 |
+
set(RuntimeLibraryExt "")
|
65 |
+
else()
|
66 |
+
set(RuntimeLibraryExt "DLL")
|
67 |
+
endif()
|
68 |
+
|
69 |
+
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
|
70 |
+
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
|
71 |
+
file(GLOB FILES "${SOURCE_PATH}/*")
|
72 |
+
file(COPY ${FILES} DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
|
73 |
+
|
74 |
+
vcpkg_build_msbuild(
|
75 |
+
PROJECT_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/build.vc${MSVC_VERSION}/${DLL_OR_LIB}_mpir_gc/${DLL_OR_LIB}_mpir_gc.vcxproj"
|
76 |
+
OPTIONS_DEBUG "/p:RuntimeLibrary=MultiThreadedDebug${RuntimeLibraryExt}"
|
77 |
+
OPTIONS_RELEASE "/p:RuntimeLibrary=MultiThreaded${RuntimeLibraryExt}"
|
78 |
+
)
|
79 |
+
|
80 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
81 |
+
vcpkg_build_msbuild(
|
82 |
+
PROJECT_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/build.vc${MSVC_VERSION}/${DLL_OR_LIB}_mpir_cxx/${DLL_OR_LIB}_mpir_cxx.vcxproj"
|
83 |
+
OPTIONS_DEBUG "/p:RuntimeLibrary=MultiThreadedDebug${RuntimeLibraryExt}"
|
84 |
+
OPTIONS_RELEASE "/p:RuntimeLibrary=MultiThreaded${RuntimeLibraryExt}"
|
85 |
+
)
|
86 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
87 |
+
file(GLOB REL_LIBS_CXX "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Release/mpirxx.lib")
|
88 |
+
endif()
|
89 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
90 |
+
file(GLOB DBG_LIBS_CXX "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Debug/mpirxx.lib")
|
91 |
+
endif()
|
92 |
+
endif()
|
93 |
+
|
94 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
95 |
+
file(GLOB HEADERS
|
96 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Release/gmp.h"
|
97 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Release/gmpxx.h"
|
98 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Release/mpir.h"
|
99 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Release/mpirxx.h"
|
100 |
+
)
|
101 |
+
file(INSTALL ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
102 |
+
|
103 |
+
file(GLOB REL_DLLS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Release/mpir.dll")
|
104 |
+
file(GLOB REL_LIBS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Release/mpir.lib")
|
105 |
+
list(APPEND REL_LIBS ${REL_LIBS_CXX})
|
106 |
+
|
107 |
+
file(INSTALL ${REL_DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
108 |
+
file(INSTALL ${REL_LIBS} DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
109 |
+
endif()
|
110 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
111 |
+
file(GLOB HEADERS
|
112 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Debug/gmp.h"
|
113 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Debug/gmpxx.h"
|
114 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Debug/mpir.h"
|
115 |
+
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Debug/mpirxx.h"
|
116 |
+
)
|
117 |
+
file(INSTALL ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
118 |
+
|
119 |
+
file(GLOB DBG_DLLS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Debug/mpir.dll")
|
120 |
+
file(GLOB DBG_LIBS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}/*/*/Debug/mpir.lib")
|
121 |
+
list(APPEND DBG_LIBS ${DBG_LIBS_CXX})
|
122 |
+
|
123 |
+
file(INSTALL ${DBG_DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
124 |
+
file(INSTALL ${DBG_LIBS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
125 |
+
|
126 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
127 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
128 |
+
endif()
|
129 |
+
endif()
|
130 |
+
|
131 |
+
vcpkg_copy_pdbs()
|
132 |
+
endif()
|
133 |
+
|
134 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpir/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mpir",
|
3 |
+
"version-date": "2022-03-02",
|
4 |
+
"description": "Multiple Precision Integers and Rationals",
|
5 |
+
"homepage": "https://github.com/wbhart/mpir",
|
6 |
+
"license": "GPL-3.0-only",
|
7 |
+
"supports": "!(uwp | arm)"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpmcqueue/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO rigtorp/MPMCQueue
|
6 |
+
REF 5883e32b07e8a60c22d532d9120ea5c11348aea9
|
7 |
+
SHA512 4adbbe5e014e0ef5c7030aaa9faa4e07e2c65753cd89c770da250811c13776576c4f1caf4144542318c41ebc7433b106e802c482a5d44572963a5ab59047257e
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY
|
12 |
+
${SOURCE_PATH}/include/rigtorp/MPMCQueue.h
|
13 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include/rigtorp
|
14 |
+
)
|
15 |
+
|
16 |
+
# Handle copyright
|
17 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mpmcqueue/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mpmcqueue",
|
3 |
+
"version-string": "2019-07-26",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A bounded multi-producer multi-consumer lock-free queue written in C++11",
|
6 |
+
"homepage": "https://github.com/rigtorp/MPMCQueue"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mqtt-cpp/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO redboltz/mqtt_cpp
|
4 |
+
REF v12.0.0
|
5 |
+
SHA512 60f2497633373a316724b7c8f87c090eb2bb26202bf48a55c32a13888bf3ec5e9bdc8854056735f625af5b016bcd9bca179d980077fb8752e16710992a0ea0c5
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DMQTT_BUILD_EXAMPLES=OFF
|
13 |
+
-DMQTT_BUILD_TESTS=OFF
|
14 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mqtt_cpp_iface)
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mqtt-cpp/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mqtt-cpp",
|
3 |
+
"version-semver": "12.0.0",
|
4 |
+
"description": "Header-only MQTT client/server for C++14 based on Boost.Asio.",
|
5 |
+
"homepage": "https://github.com/redboltz/mqtt_cpp",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-any",
|
8 |
+
"boost-asio",
|
9 |
+
"boost-log",
|
10 |
+
"boost-multi-index",
|
11 |
+
"boost-type-erasure",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
]
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-angle/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-angle/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ms-angle",
|
3 |
+
"version-string": "alias",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Deprecated alias for ms-angle",
|
6 |
+
"dependencies": [
|
7 |
+
"angle"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/fix-apple-filesystem.patch
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/GLTFSDK.Samples/CMakeLists.txt b/GLTFSDK.Samples/CMakeLists.txt
|
2 |
+
index a66ed93..d948ee2 100644
|
3 |
+
--- a/GLTFSDK.Samples/CMakeLists.txt
|
4 |
+
+++ b/GLTFSDK.Samples/CMakeLists.txt
|
5 |
+
@@ -1,4 +1,6 @@
|
6 |
+
cmake_minimum_required(VERSION 3.5)
|
7 |
+
-
|
8 |
+
+if(APPLE)
|
9 |
+
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
|
10 |
+
+endif()
|
11 |
+
add_subdirectory(Deserialize)
|
12 |
+
add_subdirectory(Serialize)
|
13 |
+
diff --git a/GLTFSDK.Samples/Deserialize/CMakeLists.txt b/GLTFSDK.Samples/Deserialize/CMakeLists.txt
|
14 |
+
index 791898c..6474aee 100644
|
15 |
+
--- a/GLTFSDK.Samples/Deserialize/CMakeLists.txt
|
16 |
+
+++ b/GLTFSDK.Samples/Deserialize/CMakeLists.txt
|
17 |
+
@@ -17,6 +17,8 @@ if (MSVC)
|
18 |
+
|
19 |
+
# Make sure that all PDB files on Windows are installed to the output folder. By default, only the debug build does this.
|
20 |
+
set_target_properties(Deserialize PROPERTIES COMPILE_PDB_NAME "Deserialize" COMPILE_PDB_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIRECTORY}")
|
21 |
+
+elseif(APPLE)
|
22 |
+
+ set_target_properties(Deserialize PROPERTIES CXX_STANDARD 17)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
26 |
+
diff --git a/GLTFSDK.Samples/Deserialize/Source/main.cpp b/GLTFSDK.Samples/Deserialize/Source/main.cpp
|
27 |
+
index 80198fa..fb560e0 100644
|
28 |
+
--- a/GLTFSDK.Samples/Deserialize/Source/main.cpp
|
29 |
+
+++ b/GLTFSDK.Samples/Deserialize/Source/main.cpp
|
30 |
+
@@ -8,6 +8,9 @@
|
31 |
+
|
32 |
+
// Replace this with <filesystem> (and use std::filesystem rather than
|
33 |
+
// std::experimental::filesystem) if your toolchain fully supports C++17
|
34 |
+
+#if defined(__APPLE__)
|
35 |
+
+#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM
|
36 |
+
+#endif
|
37 |
+
#include <experimental/filesystem>
|
38 |
+
|
39 |
+
#include <fstream>
|
40 |
+
diff --git a/GLTFSDK.Samples/Serialize/CMakeLists.txt b/GLTFSDK.Samples/Serialize/CMakeLists.txt
|
41 |
+
index 5269da8..1129ea0 100644
|
42 |
+
--- a/GLTFSDK.Samples/Serialize/CMakeLists.txt
|
43 |
+
+++ b/GLTFSDK.Samples/Serialize/CMakeLists.txt
|
44 |
+
@@ -17,6 +17,8 @@ if (MSVC)
|
45 |
+
|
46 |
+
# Make sure that all PDB files on Windows are installed to the output folder. By default, only the debug build does this.
|
47 |
+
set_target_properties(Serialize PROPERTIES COMPILE_PDB_NAME "Serialize" COMPILE_PDB_OUTPUT_DIRECTORY "${RUNTIME_OUTPUT_DIRECTORY}")
|
48 |
+
+elseif(APPLE)
|
49 |
+
+ set_target_properties(Serialize PROPERTIES CXX_STANDARD 17)
|
50 |
+
endif()
|
51 |
+
|
52 |
+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
53 |
+
diff --git a/GLTFSDK.Samples/Serialize/Source/main.cpp b/GLTFSDK.Samples/Serialize/Source/main.cpp
|
54 |
+
index ac87c10..f5c6e0b 100644
|
55 |
+
--- a/GLTFSDK.Samples/Serialize/Source/main.cpp
|
56 |
+
+++ b/GLTFSDK.Samples/Serialize/Source/main.cpp
|
57 |
+
@@ -10,6 +10,9 @@
|
58 |
+
|
59 |
+
// Replace this with <filesystem> (and use std::filesystem rather than
|
60 |
+
// std::experimental::filesystem) if your toolchain fully supports C++17
|
61 |
+
+#if defined(__APPLE__)
|
62 |
+
+#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM
|
63 |
+
+#endif
|
64 |
+
#include <experimental/filesystem>
|
65 |
+
|
66 |
+
#include <fstream>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/fix-install.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Build/CMake/Modules/GLTFPlatform.cmake b/Build/CMake/Modules/GLTFPlatform.cmake
|
2 |
+
index 3d940f5..322f029 100644
|
3 |
+
--- a/Build/CMake/Modules/GLTFPlatform.cmake
|
4 |
+
+++ b/Build/CMake/Modules/GLTFPlatform.cmake
|
5 |
+
@@ -55,14 +55,14 @@ endfunction(GetGLTFPlatform)
|
6 |
+
function(CreateGLTFInstallTargets target platform)
|
7 |
+
|
8 |
+
install(TARGETS ${target}
|
9 |
+
- ARCHIVE DESTINATION ${CMAKE_SOURCE_DIR}/Built/Out/${platform}/$<CONFIG>/${PROJECT_NAME}
|
10 |
+
- LIBRARY DESTINATION ${CMAKE_SOURCE_DIR}/Built/Out/${platform}/$<CONFIG>/${PROJECT_NAME}
|
11 |
+
- RUNTIME DESTINATION ${CMAKE_SOURCE_DIR}/Built/Out/${platform}/$<CONFIG>/${PROJECT_NAME}
|
12 |
+
- BUNDLE DESTINATION ${CMAKE_SOURCE_DIR}/Built/Out/${platform}/$<CONFIG>/${PROJECT_NAME}
|
13 |
+
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
|
14 |
+
+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
|
15 |
+
+ RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
16 |
+
+ BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
17 |
+
)
|
18 |
+
|
19 |
+
if (MSVC)
|
20 |
+
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${PROJECT_NAME}.pdb DESTINATION ${CMAKE_SOURCE_DIR}/Built/Out/${platform}/$<CONFIG>/${PROJECT_NAME})
|
21 |
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${PROJECT_NAME}.pdb DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
22 |
+
endif()
|
23 |
+
|
24 |
+
endfunction(CreateGLTFInstallTargets)
|
25 |
+
diff --git a/GLTFSDK.Test/CMakeLists.txt b/GLTFSDK.Test/CMakeLists.txt
|
26 |
+
index 5c8eca7..a0752a3 100644
|
27 |
+
--- a/GLTFSDK.Test/CMakeLists.txt
|
28 |
+
+++ b/GLTFSDK.Test/CMakeLists.txt
|
29 |
+
@@ -46,4 +46,4 @@ add_custom_command(TARGET GLTFSDK.Test
|
30 |
+
AddGLTFIOSAppProperties(GLTFSDK.Test)
|
31 |
+
CreateGLTFInstallTargets(GLTFSDK.Test ${Platform})
|
32 |
+
|
33 |
+
-install(FILES ${PROJECT_BINARY_DIR}/$<CONFIG>/Resources/ DESTINATION ${CMAKE_SOURCE_DIR}/Built/Out/${Platform}/$<CONFIG>/${PROJECT_NAME}/Resources)
|
34 |
+
+install(FILES ${PROJECT_BINARY_DIR}/$<CONFIG>/Resources/ DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
35 |
+
diff --git a/GLTFSDK/CMakeLists.txt b/GLTFSDK/CMakeLists.txt
|
36 |
+
index 3c53c74..1e8d223 100644
|
37 |
+
--- a/GLTFSDK/CMakeLists.txt
|
38 |
+
+++ b/GLTFSDK/CMakeLists.txt
|
39 |
+
@@ -46,4 +46,5 @@ target_include_directories(GLTFSDK
|
40 |
+
PRIVATE "${CMAKE_BINARY_DIR}/GeneratedFiles"
|
41 |
+
)
|
42 |
+
|
43 |
+
+install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/Inc/GLTFSDK DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
|
44 |
+
CreateGLTFInstallTargets(GLTFSDK ${Platform})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO microsoft/glTF-SDK
|
8 |
+
REF ac3e70392feb6aef18a07314669f6af2ebc72787 # r1.9.5.4
|
9 |
+
SHA512 389b801ddc6f0b29269bcd1215fa9e63fe46a1f1a8778125c6439e34fe0925d5534b1cdbea30824a4a8aa008015124dc7cc4558daa9522fc6d85e00e8e41e4a9
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-install.patch
|
13 |
+
fix-apple-filesystem.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
# note: Test/Sample executables won't be installed
|
17 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
18 |
+
FEATURES
|
19 |
+
test ENABLE_UNIT_TESTS
|
20 |
+
samples ENABLE_SAMPLES
|
21 |
+
)
|
22 |
+
|
23 |
+
# note: Platform-native buildsystem will be more helpful to launch/debug the tests/samples.
|
24 |
+
# note: The PDB file path is making Ninja fails to install.
|
25 |
+
# For Windows, we rely on /MP. The other platforms should be able to build with PREFER_NINJA.
|
26 |
+
set(WINDOWS_USE_MSBUILD)
|
27 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
28 |
+
set(WINDOWS_USE_MSBUILD "WINDOWS_USE_MSBUILD")
|
29 |
+
endif()
|
30 |
+
|
31 |
+
vcpkg_cmake_configure(
|
32 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
33 |
+
${WINDOWS_USE_MSBUILD}
|
34 |
+
OPTIONS
|
35 |
+
${FEATURE_OPTIONS}
|
36 |
+
)
|
37 |
+
vcpkg_cmake_install()
|
38 |
+
vcpkg_copy_pdbs()
|
39 |
+
|
40 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
41 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
42 |
+
endif()
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
44 |
+
|
45 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gltf/vcpkg.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ms-gltf",
|
3 |
+
"version-string": "r1.9.5.4",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "glTF-SDK is a C++ Software Development Kit for glTF",
|
6 |
+
"homepage": "https://github.com/microsoft/glTF-SDK",
|
7 |
+
"supports": "!linux",
|
8 |
+
"dependencies": [
|
9 |
+
"rapidjson",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
],
|
15 |
+
"default-features": [
|
16 |
+
"test"
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"samples": {
|
20 |
+
"description": "Build with GLTF samples"
|
21 |
+
},
|
22 |
+
"test": {
|
23 |
+
"description": "Build test programs",
|
24 |
+
"dependencies": [
|
25 |
+
"gtest"
|
26 |
+
]
|
27 |
+
}
|
28 |
+
}
|
29 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gsl/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library with an install target
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO Microsoft/GSL
|
5 |
+
REF a3534567187d2edc428efd3f13466ff75fe5805c
|
6 |
+
SHA512 5bd6aad37fee3b56a2ee2fed10d6ef02fdcf37a1f40b3fb1bbec8146a573e235169b315405d010ab75175674ed82658c8202f40b128a849c5250b4a1b8b0a1b3
|
7 |
+
HEAD_REF main
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
12 |
+
OPTIONS
|
13 |
+
-DGSL_TEST=OFF
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
vcpkg_cmake_config_fixup(
|
19 |
+
PACKAGE_NAME Microsoft.GSL
|
20 |
+
CONFIG_PATH share/cmake/Microsoft.GSL
|
21 |
+
)
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-gsl/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ms-gsl",
|
3 |
+
"version": "4.0.0",
|
4 |
+
"description": "Microsoft implementation of the Guidelines Support Library",
|
5 |
+
"homepage": "https://github.com/Microsoft/GSL",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/fix-install.patch
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 96ea265..87eaed5 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -647,6 +647,8 @@ if(QUIC_CODE_CHECK)
|
6 |
+
endif()
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+include(GNUInstallDirs)
|
10 |
+
+
|
11 |
+
add_subdirectory(src/inc)
|
12 |
+
|
13 |
+
# Product code
|
14 |
+
@@ -657,6 +659,8 @@ add_subdirectory(src/bin)
|
15 |
+
# Tool code
|
16 |
+
if(QUIC_BUILD_TOOLS)
|
17 |
+
add_subdirectory(src/tools)
|
18 |
+
+ install(TARGETS quicattack quicinterop quicinteropserver quicipclient quicipserver
|
19 |
+
+ quicpcp quicping quicpost quicreach quicsample spinquic)
|
20 |
+
endif()
|
21 |
+
|
22 |
+
# Performance code
|
23 |
+
diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt
|
24 |
+
index 4dda469..2797670 100644
|
25 |
+
--- a/src/bin/CMakeLists.txt
|
26 |
+
+++ b/src/bin/CMakeLists.txt
|
27 |
+
@@ -29,7 +29,7 @@ endif()
|
28 |
+
|
29 |
+
target_include_directories(msquic PUBLIC
|
30 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../inc>
|
31 |
+
- $<INSTALL_INTERFACE:${include_dest}>)
|
32 |
+
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
33 |
+
|
34 |
+
set(PUBLIC_HEADERS
|
35 |
+
../inc/msquic.h
|
36 |
+
@@ -37,14 +37,17 @@ set(PUBLIC_HEADERS
|
37 |
+
../inc/msquic_posix.h
|
38 |
+
../inc/quic_sal_stub.h)
|
39 |
+
|
40 |
+
-install(TARGETS msquic EXPORT msquic DESTINATION "${main_lib_dest}")
|
41 |
+
-install(FILES ${PUBLIC_HEADERS} DESTINATION "${include_dest}")
|
42 |
+
+install(TARGETS msquic EXPORT msquic-targets
|
43 |
+
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
44 |
+
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
45 |
+
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
46 |
+
+install(FILES ${PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
47 |
+
|
48 |
+
configure_file(msquic-config.cmake.in ${CMAKE_BINARY_DIR}/msquic-config.cmake)
|
49 |
+
|
50 |
+
-install(FILES ${CMAKE_BINARY_DIR}/msquic-config.cmake DESTINATION ${msquic_dest})
|
51 |
+
+install(FILES ${CMAKE_BINARY_DIR}/msquic-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/msquic)
|
52 |
+
|
53 |
+
-install(EXPORT msquic DESTINATION ${msquic_dest})
|
54 |
+
+install(EXPORT msquic-targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/msquic)
|
55 |
+
|
56 |
+
if(WIN32)
|
57 |
+
add_library(msquic.lttng INTERFACE)
|
58 |
+
diff --git a/src/bin/msquic-config.cmake.in b/src/bin/msquic-config.cmake.in
|
59 |
+
index dd67624..c561361 100644
|
60 |
+
--- a/src/bin/msquic-config.cmake.in
|
61 |
+
+++ b/src/bin/msquic-config.cmake.in
|
62 |
+
@@ -1,4 +1,4 @@
|
63 |
+
include(CMakeFindDependencyMacro)
|
64 |
+
@FILENAME_DEP_REPLACE@
|
65 |
+
|
66 |
+
-include(${SELF_DIR}/msquic.cmake)
|
67 |
+
+include(${SELF_DIR}/msquic-targets.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/fix-platform.patch
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 0b670cf..f94f4c6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -309,7 +309,7 @@ if(WIN32)
|
6 |
+
endif()
|
7 |
+
else()
|
8 |
+
# Just doing a normal build. Use the PGD file if present.
|
9 |
+
- if(EXISTS "${QUIC_PGO_FILE}")
|
10 |
+
+ if(FALSE)
|
11 |
+
message(STATUS "Using profile-guided optimization")
|
12 |
+
configure_file("${QUIC_PGO_FILE}" "${QUIC_OUTPUT_DIR}/msquic.pgd" COPYONLY)
|
13 |
+
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /USEPROFILE:PGD=${QUIC_OUTPUT_DIR}/msquic.pgd")
|
14 |
+
@@ -387,21 +387,29 @@ endif()
|
15 |
+
if(QUIC_TLS STREQUAL "openssl")
|
16 |
+
if (WIN32)
|
17 |
+
if (QUIC_UWP_BUILD)
|
18 |
+
- message(FATAL_ERROR "UWP is not supported with OpenSSL")
|
19 |
+
- endif()
|
20 |
+
-
|
21 |
+
- if (${CMAKE_GENERATOR_PLATFORM} STREQUAL "arm64")
|
22 |
+
- set(QUIC_OPENSSL_WIN_ARCH "VC-WIN64-ARM")
|
23 |
+
- elseif (${CMAKE_GENERATOR_PLATFORM} STREQUAL "arm")
|
24 |
+
- set(QUIC_OPENSSL_WIN_ARCH "VC-WIN32-ARM")
|
25 |
+
- elseif (${CMAKE_GENERATOR_PLATFORM} STREQUAL "Win32")
|
26 |
+
- set(QUIC_OPENSSL_WIN_ARCH "VC-WIN32")
|
27 |
+
- elseif (${CMAKE_GENERATOR_PLATFORM} STREQUAL "x64")
|
28 |
+
- set(QUIC_OPENSSL_WIN_ARCH "VC-WIN64A")
|
29 |
+
+ if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
30 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN64-ARM")
|
31 |
+
+ elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
32 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN32-ARM")
|
33 |
+
+ elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
34 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN32-ONECORE")
|
35 |
+
+ elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
36 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN64A-ONECORE")
|
37 |
+
+ endif()
|
38 |
+
else()
|
39 |
+
- message(FATAL_ERROR "Unknown Generator Platform ${CMAKE_GENERATOR_PLATFORM}")
|
40 |
+
+ if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
41 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN64-ARM")
|
42 |
+
+ elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
43 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN32-ARM")
|
44 |
+
+ elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
45 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN32")
|
46 |
+
+ elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
47 |
+
+ set(QUIC_OPENSSL_WIN_ARCH "VC-WIN64A")
|
48 |
+
+ endif()
|
49 |
+
+ endif()
|
50 |
+
+ if(NOT DEFINED QUIC_OPENSSL_WIN_ARCH)
|
51 |
+
+ message(FATAL_ERROR "Unknown Platform ${VCPKG_TARGET_ARCHITECTURE}")
|
52 |
+
endif()
|
53 |
+
-
|
54 |
+
set(OPENSSL_DIR ${QUIC_BUILD_DIR}/openssl)
|
55 |
+
|
56 |
+
add_library(OpenSSL_Crypto STATIC IMPORTED)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/fix-warnings.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 0f5abcb..aeae310 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -184,7 +184,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${QUIC_OUTPUT_DIR})
|
6 |
+
set(QUIC_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/inc)
|
7 |
+
|
8 |
+
if (WIN32)
|
9 |
+
- set(QUIC_WARNING_FLAGS /WX /W4 /sdl CACHE INTERNAL "")
|
10 |
+
+ set(QUIC_WARNING_FLAGS /W4 /sdl CACHE INTERNAL "")
|
11 |
+
set(QUIC_COMMON_FLAGS "")
|
12 |
+
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
13 |
+
list(APPEND QUIC_COMMON_FLAGS /MP)
|
14 |
+
@@ -193,7 +193,7 @@ if (WIN32)
|
15 |
+
else()
|
16 |
+
set(QUIC_COMMON_FLAGS "")
|
17 |
+
set(QUIC_COMMON_DEFINES _GNU_SOURCE)
|
18 |
+
- set(QUIC_WARNING_FLAGS -Werror -Wall -Wextra -Wformat=2 -Wno-type-limits
|
19 |
+
+ set(QUIC_WARNING_FLAGS -Wall -Wextra -Wformat=2 -Wno-type-limits
|
20 |
+
-Wno-unknown-pragmas -Wno-multichar -Wno-missing-field-initializers
|
21 |
+
CACHE INTERNAL "")
|
22 |
+
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/portfile.cmake
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH QUIC_SOURCE_PATH
|
5 |
+
REPO microsoft/msquic
|
6 |
+
REF v1.2.0
|
7 |
+
SHA512 6f63d42d950cbba88764332b31818a8627e7d3ecf7393cdef77daedd35a7bb04ac39c642991afb7cca502a346999233023e3b36011916c67e348179838aa7042
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-warnings.patch # Remove /WX, -Werror
|
11 |
+
fix-platform.patch # Make OpenSSL build use VCPKG_TARGET_ARCHITECTURE
|
12 |
+
fix-install.patch # Adjust install path of build outputs
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_from_github(
|
16 |
+
OUT_SOURCE_PATH OPENSSL_SOURCE_PATH
|
17 |
+
REPO quictls/openssl
|
18 |
+
REF a6e9d76db343605dae9b59d71d2811b195ae7434
|
19 |
+
SHA512 23510a11203b96476c194a1987c7d4e758375adef0f6dfe319cd8ec4b8dd9b12ea64c4099cf3ba35722b992dad75afb1cfc5126489a5fa59f5ee4d46bdfbeaf6
|
20 |
+
HEAD_REF OpenSSL_1_1_1k+quic
|
21 |
+
)
|
22 |
+
file(REMOVE_RECURSE ${QUIC_SOURCE_PATH}/submodules)
|
23 |
+
file(MAKE_DIRECTORY ${QUIC_SOURCE_PATH}/submodules)
|
24 |
+
file(RENAME ${OPENSSL_SOURCE_PATH} ${QUIC_SOURCE_PATH}/submodules/openssl)
|
25 |
+
|
26 |
+
vcpkg_find_acquire_program(PERL)
|
27 |
+
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
28 |
+
vcpkg_add_to_path(${PERL_EXE_PATH})
|
29 |
+
|
30 |
+
if(NOT VCPKG_HOST_IS_WINDOWS)
|
31 |
+
find_program(MAKE make)
|
32 |
+
get_filename_component(MAKE_EXE_PATH ${MAKE} DIRECTORY)
|
33 |
+
vcpkg_add_to_path(PREPEND ${MAKE_EXE_PATH})
|
34 |
+
endif()
|
35 |
+
|
36 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
37 |
+
vcpkg_find_acquire_program(NASM)
|
38 |
+
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
39 |
+
vcpkg_add_to_path(PREPEND ${NASM_EXE_PATH})
|
40 |
+
endif()
|
41 |
+
|
42 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
43 |
+
FEATURES
|
44 |
+
tools QUIC_BUILD_TOOLS
|
45 |
+
)
|
46 |
+
|
47 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
48 |
+
|
49 |
+
vcpkg_cmake_configure(
|
50 |
+
SOURCE_PATH ${QUIC_SOURCE_PATH}
|
51 |
+
OPTIONS
|
52 |
+
${FEATURE_OPTIONS}
|
53 |
+
-DQUIC_SOURCE_LINK=OFF
|
54 |
+
-DQUIC_TLS=openssl
|
55 |
+
-DQUIC_TLS_SECRETS_SUPPORT=ON
|
56 |
+
-DQUIC_USE_SYSTEM_LIBCRYPTO=OFF
|
57 |
+
-DQUIC_BUILD_PERF=OFF
|
58 |
+
-DQUIC_BUILD_TEST=OFF
|
59 |
+
-DQUIC_STATIC_LINK_CRT=${STATIC_CRT}
|
60 |
+
-DQUIC_UWP_BUILD=${VCPKG_TARGET_IS_UWP}
|
61 |
+
)
|
62 |
+
|
63 |
+
vcpkg_cmake_build(TARGET OpenSSL_Build) # separate build log for quictls/openssl
|
64 |
+
vcpkg_cmake_install()
|
65 |
+
vcpkg_copy_pdbs()
|
66 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME msquic CONFIG_PATH lib/cmake/msquic)
|
67 |
+
|
68 |
+
if("tools" IN_LIST FEATURES)
|
69 |
+
vcpkg_copy_tools(TOOL_NAMES quicattack quicinterop quicinteropserver quicipclient quicipserver
|
70 |
+
quicpcp quicping quicpost quicreach quicsample spinquic
|
71 |
+
AUTO_CLEAN
|
72 |
+
)
|
73 |
+
endif()
|
74 |
+
|
75 |
+
file(INSTALL ${QUIC_SOURCE_PATH}/LICENSE
|
76 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
|
77 |
+
)
|
78 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share
|
79 |
+
${CURRENT_PACKAGES_DIR}/debug/include
|
80 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ms-quic/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ms-quic",
|
3 |
+
"version": "1.2.0",
|
4 |
+
"description": "Cross-platform, C implementation of the IETF QUIC protocol",
|
5 |
+
"homepage": "https://github.com/microsoft/msquic",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!(static & staticcrt)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"tools": {
|
20 |
+
"description": "Install the tools after build"
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msdfgen/portfile.cmake
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# No symbols are exported in msdfgen source
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
|
4 |
+
if ("tools" IN_LIST FEATURES AND VCPKG_TARGET_IS_UWP)
|
5 |
+
message(FATAL_ERROR "Tools cannot be built on UWP.")
|
6 |
+
endif()
|
7 |
+
|
8 |
+
vcpkg_from_github(
|
9 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
10 |
+
REPO Chlumsky/msdfgen
|
11 |
+
REF v1.9.1
|
12 |
+
SHA512 7A721B38027548F66D1C3EB862C1F27EA0A431C325119504D072BA6D7ED87539BA4D6020C663354B7B82BA48725D77CC642DB05FB596749292A2A12BE21CE528
|
13 |
+
HEAD_REF master
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_check_features(
|
17 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
18 |
+
FEATURES
|
19 |
+
tools MSDFGEN_BUILD_MSDFGEN_STANDALONE
|
20 |
+
openmp MSDFGEN_USE_OPENMP
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS
|
26 |
+
${FEATURE_OPTIONS}
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
|
31 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/msdfgen)
|
32 |
+
|
33 |
+
# move exe to tools
|
34 |
+
if("tools" IN_LIST FEATURES AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
35 |
+
vcpkg_copy_tools(TOOL_NAMES msdfgen AUTO_CLEAN)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
# cleanup
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
40 |
+
|
41 |
+
# license
|
42 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msdfgen/vcpkg.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "msdfgen",
|
3 |
+
"version": "1.9.1",
|
4 |
+
"description": "Multi-channel signed distance field generator",
|
5 |
+
"homepage": "https://github.com/Chlumsky/msdfgen",
|
6 |
+
"dependencies": [
|
7 |
+
"freetype",
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"openmp": {
|
19 |
+
"description": "Build with OpenMP support for multi-threaded code."
|
20 |
+
},
|
21 |
+
"tools": {
|
22 |
+
"description": "Generates an executable inside the tools folder. Not supported on UWP."
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (EXISTS ${CURRENT_INSTALLED_DIR}/include/msgpack/pack.h)
|
2 |
+
message(FATAL_ERROR "Cannot install ${PORT} when rest-rpc is already installed, please remove rest-rpc using \"./vcpkg remove rest-rpc:${TARGET_TRIPLET}\"")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO msgpack/msgpack-c
|
8 |
+
REF cpp-3.3.0
|
9 |
+
SHA512 33ed87b23d776cadcc230666e6435088e402c5813e7e4dce5ce79c8c3aceba5a36db8f395278042c6ac44c474b33018ff1635889d8b20bc41c5f6f1d1c963cae
|
10 |
+
HEAD_REF master
|
11 |
+
)
|
12 |
+
|
13 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
14 |
+
set(MSGPACK_ENABLE_SHARED OFF)
|
15 |
+
set(MSGPACK_ENABLE_STATIC ON)
|
16 |
+
else()
|
17 |
+
set(MSGPACK_ENABLE_SHARED ON)
|
18 |
+
set(MSGPACK_ENABLE_STATIC OFF)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_configure_cmake(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
23 |
+
PREFER_NINJA
|
24 |
+
OPTIONS
|
25 |
+
-DMSGPACK_ENABLE_SHARED=${MSGPACK_ENABLE_SHARED}
|
26 |
+
-DMSGPACK_ENABLE_STATIC=${MSGPACK_ENABLE_STATIC}
|
27 |
+
-DMSGPACK_BUILD_EXAMPLES=OFF
|
28 |
+
-DMSGPACK_BUILD_TESTS=OFF)
|
29 |
+
|
30 |
+
vcpkg_install_cmake()
|
31 |
+
vcpkg_copy_pdbs()
|
32 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/msgpack)
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
35 |
+
|
36 |
+
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/msgpack)
|
37 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/msgpack/COPYING ${CURRENT_PACKAGES_DIR}/share/msgpack/copyright)
|
38 |
+
|
39 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "msgpack",
|
3 |
+
"version-string": "3.3.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "MessagePack is an efficient binary serialization format, which lets you exchange data among multiple languages like JSON, except that it's faster and smaller.",
|
6 |
+
"homepage": "https://github.com/msgpack/msgpack-c"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/disable-werror.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 080cefa..b73072a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -9,9 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
6 |
+
add_library(msgpack11 STATIC msgpack11.cpp)
|
7 |
+
target_include_directories(msgpack11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
8 |
+
target_compile_options(msgpack11 PRIVATE -fno-rtti)
|
9 |
+
-if(NOT MSVC)
|
10 |
+
- target_compile_options(msgpack11 PRIVATE -Wall -Wextra -Werror)
|
11 |
+
-endif()
|
12 |
+
configure_file("msgpack11.pc.in" "msgpack11.pc" @ONLY)
|
13 |
+
|
14 |
+
if (MSGPACK11_BUILD_TESTS)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/fix-additerator.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/msgpack11.cpp b/msgpack11.cpp
|
2 |
+
index fa572fa..640ba9a 100644
|
3 |
+
--- a/msgpack11.cpp
|
4 |
+
+++ b/msgpack11.cpp
|
5 |
+
@@ -10,6 +10,7 @@
|
6 |
+
#include <algorithm>
|
7 |
+
#include <functional>
|
8 |
+
#include <stdexcept>
|
9 |
+
+#include <iterator>
|
10 |
+
|
11 |
+
namespace msgpack11 {
|
12 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/msvc.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9424838..080cefa 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -6,9 +6,12 @@ option(MSGPACK11_BUILD_TESTS "Build unit tests" ON)
|
6 |
+
set(CMAKE_CXX_STANDARD 11)
|
7 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
8 |
+
|
9 |
+
-add_library(msgpack11 msgpack11.cpp)
|
10 |
+
+add_library(msgpack11 STATIC msgpack11.cpp)
|
11 |
+
target_include_directories(msgpack11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
12 |
+
-target_compile_options(msgpack11 PRIVATE -fno-rtti -Wall -Wextra -Werror)
|
13 |
+
+target_compile_options(msgpack11 PRIVATE -fno-rtti)
|
14 |
+
+if(NOT MSVC)
|
15 |
+
+ target_compile_options(msgpack11 PRIVATE -Wall -Wextra -Werror)
|
16 |
+
+endif()
|
17 |
+
configure_file("msgpack11.pc.in" "msgpack11.pc" @ONLY)
|
18 |
+
|
19 |
+
if (MSGPACK11_BUILD_TESTS)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO ar90n/msgpack11
|
5 |
+
REF v0.0.10
|
6 |
+
SHA512 7b90893f9cdec529789f6e75703f5945c6fc5c946b8708a7a2cb295faf4af111c8cc61265b636f385641031b85181929205be9c5d155f405909445dce85b4ce8
|
7 |
+
HEAD_REF master
|
8 |
+
PATCHES
|
9 |
+
msvc.patch
|
10 |
+
fix-additerator.patch
|
11 |
+
disable-werror.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA
|
17 |
+
OPTIONS
|
18 |
+
-DMSGPACK11_BUILD_TESTS=OFF
|
19 |
+
-DMSGPACK11_BUILD_EXAMPLES=OFF
|
20 |
+
)
|
21 |
+
|
22 |
+
|
23 |
+
vcpkg_install_cmake()
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
28 |
+
|
29 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msgpack11/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "msgpack11",
|
3 |
+
"version": "0.0.10",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.",
|
6 |
+
"homepage": "https://msgpack.org",
|
7 |
+
"dependencies": [
|
8 |
+
"gtest"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msinttypes/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO chemeris/msinttypes
|
4 |
+
REF f9e7c5758ed9e3b9f4b2394de1881c704dd79de0
|
5 |
+
SHA512 943ccb1245e41ad554908fd7664725f2aac929222bd823b375fbd2e8a4c4ffc42c268543c43a817b65dca047c3253d04527378ec3902e5e7df7f6ba5a736d6f3
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(INSTALL ${SOURCE_PATH}/inttypes.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/msinttypes)
|
10 |
+
file(INSTALL ${SOURCE_PATH}/stdint.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/msinttypes)
|
11 |
+
file(INSTALL ${SOURCE_PATH}/stdint.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/msinttypes RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msinttypes/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "msinttypes",
|
3 |
+
"version-string": "2018-02-25",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "msinttypes is a package to provide missing ISO C9x compliant headers for Microsoft Visual Studio",
|
6 |
+
"homepage": "https://github.com/chemeris/msinttypes"
|
7 |
+
}
|