Spaces:
Sleeping
Sleeping
fc873573d96f28a6598799ddc2b5de8ce364fbb6a43a547c867036d1666d1c97
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/enable-install.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-INT_MIN_define.patch +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-gklib-vs14-math.patch +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-linux-build-error.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-metis-vs14-math.patch +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-runtime-install-destination.patch +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/install-metisConfig.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/portfile.cmake +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/CMakeLists.txt +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/Config.cmake.in +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mfl/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mfl/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mgnlibs/portfile.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mgnlibs/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mhook/fix-windows-packing-mismatch.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mhook/portfile.cmake +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mhook/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/microsoft-signalr/portfile.cmake +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/microsoft-signalr/vcpkg.json +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mikktspace/CMakeLists.txt +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mikktspace/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mikktspace/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/FixFindPackageIssue.patch +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/cpp11.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/fix-cmake.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/portfile.cmake +56 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/vcpkg-cmake-wrapper.cmake +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/vcpkg.json +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/build.patch +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/config.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/fix-dependency-hdf5.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/portfile.cmake +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/vcpkg.json +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minhook/fix-usage.patch +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minhook/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minhook/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/fix-arm-build-error.patch +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/fix-build-error.patch +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/fix-install-error.patch +54 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minimp3/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minimp3/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minio-cpp/fix_cmake_file.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minio-cpp/portfile.cmake +21 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/enable-install.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt Sat Mar 30 17:24:45 2013
|
2 |
+
+++ b/CMakeLists.txt Wed Dec 21 18:23:43 2016
|
3 |
+
@@ -4,11 +4,7 @@
|
4 |
+
set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib")
|
5 |
+
set(SHARED FALSE CACHE BOOL "build a shared library")
|
6 |
+
|
7 |
+
-if(MSVC)
|
8 |
+
- set(METIS_INSTALL FALSE)
|
9 |
+
-else()
|
10 |
+
- set(METIS_INSTALL TRUE)
|
11 |
+
-endif()
|
12 |
+
+set(METIS_INSTALL TRUE)
|
13 |
+
|
14 |
+
# Configure libmetis library.
|
15 |
+
if(SHARED)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-INT_MIN_define.patch
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/metis.h b/include/metis.h
|
2 |
+
index dc5406a..7732437 100644
|
3 |
+
--- a/include/metis.h
|
4 |
+
+++ b/include/metis.h
|
5 |
+
@@ -72,10 +72,14 @@ typedef __int64 int64_t;
|
6 |
+
#define PRId64 "I64d"
|
7 |
+
#define SCNd32 "ld"
|
8 |
+
#define SCNd64 "I64d"
|
9 |
+
+#ifdef _WIN32
|
10 |
+
+#include <stdint.h>
|
11 |
+
+#else
|
12 |
+
#define INT32_MIN ((int32_t)_I32_MIN)
|
13 |
+
#define INT32_MAX _I32_MAX
|
14 |
+
#define INT64_MIN ((int64_t)_I64_MIN)
|
15 |
+
#define INT64_MAX _I64_MAX
|
16 |
+
+#endif
|
17 |
+
#else
|
18 |
+
#include <inttypes.h>
|
19 |
+
#endif
|
20 |
+
diff --git a/GKlib/gk_arch.h b/GKlib/gk_arch.h
|
21 |
+
index 78b1431..7258763 100644
|
22 |
+
--- a/GKlib/gk_arch.h
|
23 |
+
+++ b/GKlib/gk_arch.h
|
24 |
+
@@ -32,8 +32,8 @@
|
25 |
+
|
26 |
+
|
27 |
+
#ifdef __MSC__
|
28 |
+
- #include "ms_stdint.h"
|
29 |
+
- #include "ms_inttypes.h"
|
30 |
+
+ #include <stdint.h>
|
31 |
+
+ #include <inttypes.h>
|
32 |
+
#include "ms_stat.h"
|
33 |
+
#else
|
34 |
+
#ifndef SUNOS
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-gklib-vs14-math.patch
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/GKlib/gk_arch.h Wed Dec 21 18:34:18 2016
|
2 |
+
+++ b/GKlib/gk_arch.h Wed Dec 21 18:30:49 2016
|
3 |
+
@@ -58,7 +58,7 @@
|
4 |
+
#define PTRDIFF_MAX INT64_MAX
|
5 |
+
#endif
|
6 |
+
|
7 |
+
-#ifdef __MSC__
|
8 |
+
+#if defined(__MSC__) && (_MSC_VER < 1900)
|
9 |
+
/* MSC does not have rint() function */
|
10 |
+
#define rint(x) ((int)((x)+0.5))
|
11 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-linux-build-error.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index e94f050..b9613a7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,7 +1,8 @@
|
6 |
+
cmake_minimum_required(VERSION 2.8)
|
7 |
+
project(METIS)
|
8 |
+
|
9 |
+
-set(GKLIB_PATH "GKlib" CACHE PATH "path to GKlib")
|
10 |
+
+set(GKLIB_PATH "${CMAKE_SOURCE_DIR}/GKlib" CACHE PATH "path to GKlib")
|
11 |
+
+
|
12 |
+
set(SHARED FALSE CACHE BOOL "build a shared library")
|
13 |
+
|
14 |
+
set(METIS_INSTALL TRUE)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-metis-vs14-math.patch
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/libmetis/metislib.h Sat Mar 30 17:24:45 2013
|
2 |
+
+++ b/libmetis/metislib.h Wed Dec 21 18:30:59 2016
|
3 |
+
@@ -31,7 +31,7 @@
|
4 |
+
#include <proto.h>
|
5 |
+
|
6 |
+
|
7 |
+
-#if defined(COMPILER_MSC)
|
8 |
+
+#if defined(COMPILER_MSC) && (_MSC_VER < 1900)
|
9 |
+
#if defined(rint)
|
10 |
+
#undef rint
|
11 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/fix-runtime-install-destination.patch
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/libmetis/CMakeLists.txt Sat Mar 30 17:24:45 2013
|
2 |
+
+++ b/libmetis/CMakeLists.txt Wed Dec 21 17:41:37 2016
|
3 |
+
@@ -11,6 +11,6 @@
|
4 |
+
if(METIS_INSTALL)
|
5 |
+
install(TARGETS metis
|
6 |
+
LIBRARY DESTINATION lib
|
7 |
+
- RUNTIME DESTINATION lib
|
8 |
+
+ RUNTIME DESTINATION bin
|
9 |
+
ARCHIVE DESTINATION lib)
|
10 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/install-metisConfig.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b9613a7..e43ffee 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -22,3 +22,23 @@ include_directories(include)
|
6 |
+
add_subdirectory("include")
|
7 |
+
add_subdirectory("libmetis")
|
8 |
+
# add_subdirectory("programs")
|
9 |
+
+
|
10 |
+
+if(METIS_INSTALL)
|
11 |
+
+ set(PRJ_NAME metis)
|
12 |
+
+ set(PRJ_VER 5.1.0)
|
13 |
+
+ install(EXPORT metisTargets
|
14 |
+
+ FILE ${PRJ_NAME}Targets.cmake
|
15 |
+
+ DESTINATION lib/cmake/${PRJ_NAME})
|
16 |
+
+ include(CMakePackageConfigHelpers)
|
17 |
+
+ write_basic_package_version_file(
|
18 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/${PRJ_NAME}ConfigVersion.cmake
|
19 |
+
+ VERSION ${PRJ_VER}
|
20 |
+
+ COMPATIBILITY SameMajorVersion)
|
21 |
+
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${PRJ_NAME}Config.cmake
|
22 |
+
+ "include(\${CMAKE_CURRENT_LIST_DIR}/${PRJ_NAME}Targets.cmake)")
|
23 |
+
+ install(FILES
|
24 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/${PRJ_NAME}ConfigVersion.cmake
|
25 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/${PRJ_NAME}Config.cmake
|
26 |
+
+ DESTINATION lib/cmake/${PRJ_NAME})
|
27 |
+
+endif()
|
28 |
+
+
|
29 |
+
diff --git a/libmetis/CMakeLists.txt b/libmetis/CMakeLists.txt
|
30 |
+
index 7a5fc74..5a68cf0 100644
|
31 |
+
--- a/libmetis/CMakeLists.txt
|
32 |
+
+++ b/libmetis/CMakeLists.txt
|
33 |
+
@@ -9,8 +9,9 @@ if(UNIX)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
if(METIS_INSTALL)
|
37 |
+
- install(TARGETS metis
|
38 |
+
+ install(TARGETS metis EXPORT metisTargets
|
39 |
+
LIBRARY DESTINATION lib
|
40 |
+
RUNTIME DESTINATION bin
|
41 |
+
- ARCHIVE DESTINATION lib)
|
42 |
+
+ ARCHIVE DESTINATION lib
|
43 |
+
+ INCLUDES DESTINATION include)
|
44 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
set(OPTIONS -DSHARED=OFF)
|
3 |
+
|
4 |
+
set(METIS_VERSION 5.1.0)
|
5 |
+
|
6 |
+
vcpkg_download_distfile(ARCHIVE
|
7 |
+
URLS "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-${METIS_VERSION}.tar.gz"
|
8 |
+
FILENAME "metis-${METIS_VERSION}.tar.gz"
|
9 |
+
SHA512 deea47749d13bd06fbeaf98a53c6c0b61603ddc17a43dae81d72c8015576f6495fd83c11b0ef68d024879ed5415c14ebdbd87ce49c181bdac680573bea8bdb25
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_extract_source_archive_ex(
|
13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
14 |
+
ARCHIVE ${ARCHIVE}
|
15 |
+
REF ${METIS_VERSION}
|
16 |
+
PATCHES
|
17 |
+
enable-install.patch
|
18 |
+
disable-programs.patch
|
19 |
+
fix-runtime-install-destination.patch
|
20 |
+
fix-metis-vs14-math.patch
|
21 |
+
fix-gklib-vs14-math.patch
|
22 |
+
fix-linux-build-error.patch
|
23 |
+
install-metisConfig.patch
|
24 |
+
fix-INT_MIN_define.patch
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_configure_cmake(
|
28 |
+
SOURCE_PATH ${SOURCE_PATH}
|
29 |
+
PREFER_NINJA
|
30 |
+
OPTIONS ${OPTIONS}
|
31 |
+
)
|
32 |
+
|
33 |
+
vcpkg_install_cmake()
|
34 |
+
vcpkg_copy_pdbs()
|
35 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/metis)
|
36 |
+
|
37 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
38 |
+
|
39 |
+
# Handle copyright
|
40 |
+
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/metis)
|
41 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metis/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "metis",
|
3 |
+
"version-string": "5.1.0",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "Serial Graph Partitioning and Fill-reducing Matrix Ordering",
|
6 |
+
"homepage": "https://glaros.dtc.umn.edu/gkhome/metis/metis/overview"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/CMakeLists.txt
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
project(metrohash LANGUAGES CXX)
|
3 |
+
set(CMAKE_CXX_STANDARD 11)
|
4 |
+
|
5 |
+
add_library(metrohash
|
6 |
+
src/metrohash64.cpp
|
7 |
+
src/metrohash128.cpp
|
8 |
+
)
|
9 |
+
list(APPEND metro_headers src/metrohash.h src/metrohash64.h src/metrohash128.h)
|
10 |
+
|
11 |
+
include(CheckCXXSourceCompiles)
|
12 |
+
include(CheckCXXCompilerFlag)
|
13 |
+
|
14 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
15 |
+
check_cxx_compiler_flag("-msse4.2" HAS_MSSE42)
|
16 |
+
if(HAS_MSSE42)
|
17 |
+
target_compile_options(metrohash PRIVATE -msse4.2)
|
18 |
+
string(APPEND CMAKE_REQUIRED_FLAGS " -msse4.2")
|
19 |
+
endif()
|
20 |
+
endif()
|
21 |
+
|
22 |
+
check_cxx_source_compiles(
|
23 |
+
"#include <nmmintrin.h>
|
24 |
+
int main() {
|
25 |
+
_mm_crc32_u64(0, 0);
|
26 |
+
return 0;
|
27 |
+
}"
|
28 |
+
HAS_mm_crc32_u64)
|
29 |
+
|
30 |
+
if(HAS_mm_crc32_u64)
|
31 |
+
list(APPEND metro_headers src/metrohash128crc.h)
|
32 |
+
target_sources(metrohash PRIVATE src/metrohash128crc.cpp)
|
33 |
+
endif()
|
34 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
35 |
+
target_compile_options(metrohash PRIVATE -march=native)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
set_target_properties(metrohash PROPERTIES
|
39 |
+
PUBLIC_HEADER "${metro_headers}"
|
40 |
+
)
|
41 |
+
|
42 |
+
include(CMakePackageConfigHelpers)
|
43 |
+
|
44 |
+
set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
45 |
+
set(project_config "${generated_dir}/${PROJECT_NAME}Config.cmake")
|
46 |
+
set(config_install_dir "lib/cmake/${PROJECT_NAME}")
|
47 |
+
set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
|
48 |
+
set(namespace "${PROJECT_NAME}::")
|
49 |
+
|
50 |
+
configure_package_config_file(
|
51 |
+
"${CMAKE_SOURCE_DIR}/cmake/Config.cmake.in"
|
52 |
+
"${project_config}"
|
53 |
+
INSTALL_DESTINATION "${config_install_dir}"
|
54 |
+
)
|
55 |
+
#Installation
|
56 |
+
install(TARGETS metrohash
|
57 |
+
EXPORT "${TARGETS_EXPORT_NAME}"
|
58 |
+
LIBRARY DESTINATION "lib"
|
59 |
+
ARCHIVE DESTINATION "lib"
|
60 |
+
PUBLIC_HEADER DESTINATION "include")
|
61 |
+
|
62 |
+
install(
|
63 |
+
FILES "${project_config}"
|
64 |
+
DESTINATION "${config_install_dir}"
|
65 |
+
)
|
66 |
+
install(EXPORT "${TARGETS_EXPORT_NAME}"
|
67 |
+
NAMESPACE "${namespace}"
|
68 |
+
DESTINATION "${config_install_dir}"
|
69 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/Config.cmake.in
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
|
4 |
+
check_required_components("@PROJECT_NAME@")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO jandrewrogers/MetroHash
|
6 |
+
REF v1.1.3
|
7 |
+
SHA512 02b6316e5ebf3d81465eea8a068565452be642394ddf5a53350affbbc9b9bfe1c3d182f7e8f7d49895351c48e11929e465777535e4354e01b6d0ba459e583ac5
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
configure_file(${CURRENT_PORT_DIR}/Config.cmake.in ${SOURCE_PATH}/cmake/Config.cmake.in COPYONLY)
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/include/metrohash128crc.h")
|
24 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/metrohash.h
|
25 |
+
"#include \"metrohash128crc.h\""
|
26 |
+
"//#include \"metrohash128crc.h\" // The target platform does not support _mm_crc32_u64")
|
27 |
+
endif()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
30 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/metrohash/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "metrohash",
|
3 |
+
"version": "1.1.3",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "MetroHash is a set of state-of-the-art hash functions for non-cryptographic use cases",
|
6 |
+
"homepage": "https://github.com/jandrewrogers/MetroHash"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mfl/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
message(WARNING "${PORT} is a C++20 library and requires a corresponding compiler. GCC 10, Clang 10 and MSVC 2019 16.8 are known to work.")
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO cpp-niel/mfl
|
10 |
+
REF v0.0.1
|
11 |
+
SHA512 a609b4ff23a01e9f9d9bf60bfa6e0b2346b054cf0c27e74e6da574dcfd2a6ead30dcb8464cf03cae2bb9995f15f01ffda5f862c0ec2744a9ad38b856ff27f073
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
|
22 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mfl)
|
23 |
+
|
24 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mfl/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mfl",
|
3 |
+
"version": "0.0.1",
|
4 |
+
"description": "Computes the layout information for mathematical formulas provided in TeX-like syntax.",
|
5 |
+
"homepage": "https://github.com/cpp-niel/mfl",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "static",
|
8 |
+
"dependencies": [
|
9 |
+
"cairo",
|
10 |
+
"doctest",
|
11 |
+
"fmt",
|
12 |
+
"freetype",
|
13 |
+
"harfbuzz",
|
14 |
+
"range-v3"
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mgnlibs/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO mattiasgustavsson/libs
|
5 |
+
REF 9a6e7205caecbe336e41aebdc9c79a5c47daa5ec
|
6 |
+
SHA512 87493f883f0752a334bbcec69228e325d9e1f36a99d313be9243f4e6e14876bcd5a976682d3fd7e3e285e426ac69587d35ba3378b2124450b9a8ed6127f110a5
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
# Put the licence file where vcpkg expects it
|
11 |
+
file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/mgnlibs/README.md)
|
12 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/mgnlibs/README.md ${CURRENT_PACKAGES_DIR}/share/mgnlibs/copyright)
|
13 |
+
|
14 |
+
# Copy the header files
|
15 |
+
file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
|
16 |
+
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/mgnlibs)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mgnlibs/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mgnlibs",
|
3 |
+
"version-string": "2019-09-29",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Single-file public domain libraries for C/C++",
|
6 |
+
"homepage": "https://github.com/mattiasgustavsson/libs"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mhook/fix-windows-packing-mismatch.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6e1df9f..e1e6ced 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -4,7 +4,7 @@ project(mhook)
|
6 |
+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
7 |
+
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMake")
|
8 |
+
|
9 |
+
-add_definitions(-DNO_SANITY_CHECKS -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN)
|
10 |
+
+add_definitions(-DNO_SANITY_CHECKS -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -DWINDOWS_IGNORE_PACKING_MISMATCH)
|
11 |
+
|
12 |
+
file(GLOB DisasmSrc disasm-lib/*.c disasm-lib/*.h)
|
13 |
+
file(GLOB MhookSrc mhook-lib/*.cpp mhook-lib/*.h)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mhook/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO apriorit/mhook
|
4 |
+
REF 2.5.1
|
5 |
+
SHA512 914f198417b1e30301a42463af5cfbf9269dc64bcf1be87d3d6d2943fd72b3536f48eb4bfb25a51dd0bbe0f8f099777b2d49c9d58cb2e2eeb517d998917ae976
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES fix-windows-packing-mismatch.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
vcpkg_copy_pdbs()
|
16 |
+
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
18 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/mhook" RENAME copyright)
|
19 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mhook/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mhook",
|
3 |
+
"version": "2.5.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A Windows API hooking library.",
|
6 |
+
"supports": "windows & !uwp & !arm",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/microsoft-signalr/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO aspnet/SignalR-Client-Cpp
|
4 |
+
REF v0.1.0-alpha3
|
5 |
+
SHA512 7dbd75748535c7b7fef36afe246b132b243b8b4932c218a63aa18c7a44d6691c002144c6d2f5603ad63c03d018907436ad259fdfcc0d7749917931bdebef670b
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(
|
10 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
11 |
+
FEATURES
|
12 |
+
cpprestsdk USE_CPPRESTSDK
|
13 |
+
messagepack USE_MSGPACK
|
14 |
+
)
|
15 |
+
|
16 |
+
if("cpprestsdk" IN_LIST FEATURES AND VCPKG_TARGET_IS_UWP)
|
17 |
+
message(FATAL_ERROR "microsoft-signalr[cpprestsdk] is not supported on UWP, use microsoft-signalr[core] instead")
|
18 |
+
endif()
|
19 |
+
|
20 |
+
vcpkg_configure_cmake(
|
21 |
+
SOURCE_PATH ${SOURCE_PATH}
|
22 |
+
PREFER_NINJA
|
23 |
+
OPTIONS
|
24 |
+
-DBUILD_TESTING=OFF
|
25 |
+
${FEATURE_OPTIONS}
|
26 |
+
-DWALL=OFF
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_install_cmake()
|
30 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/share/microsoft-signalr)
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/share ${CURRENT_PACKAGES_DIR}/lib/share)
|
33 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
34 |
+
|
35 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
36 |
+
file(COPY ${SOURCE_PATH}/third-party-notices.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
37 |
+
|
38 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/microsoft-signalr/vcpkg.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "microsoft-signalr",
|
3 |
+
"version-string": "0.1.0-alpha3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C++ Client for ASP.NET Core SignalR.",
|
6 |
+
"homepage": "https://github.com/aspnet/SignalR-Client-Cpp",
|
7 |
+
"default-features": [
|
8 |
+
"default-features"
|
9 |
+
],
|
10 |
+
"features": {
|
11 |
+
"cpprestsdk": {
|
12 |
+
"description": "Add default Http and WebSocket implementations using CppRestSDK",
|
13 |
+
"dependencies": [
|
14 |
+
{
|
15 |
+
"name": "cpprestsdk",
|
16 |
+
"features": [
|
17 |
+
"default-features",
|
18 |
+
"websockets"
|
19 |
+
]
|
20 |
+
}
|
21 |
+
]
|
22 |
+
},
|
23 |
+
"default-features": {
|
24 |
+
"description": "Features installed by default",
|
25 |
+
"dependencies": [
|
26 |
+
{
|
27 |
+
"name": "microsoft-signalr",
|
28 |
+
"features": [
|
29 |
+
"cpprestsdk"
|
30 |
+
],
|
31 |
+
"platform": "!uwp"
|
32 |
+
}
|
33 |
+
]
|
34 |
+
},
|
35 |
+
"messagepack": {
|
36 |
+
"description": "Add support for the messagepack hub protocol, must enable in code still",
|
37 |
+
"dependencies": [
|
38 |
+
"msgpack"
|
39 |
+
]
|
40 |
+
}
|
41 |
+
}
|
42 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mikktspace/CMakeLists.txt
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(mikktspace C)
|
3 |
+
|
4 |
+
set(CMAKE_DEBUG_POSTFIX d)
|
5 |
+
|
6 |
+
add_library(${PROJECT_NAME} "")
|
7 |
+
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
|
8 |
+
target_include_directories(
|
9 |
+
${PROJECT_NAME}
|
10 |
+
PUBLIC
|
11 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
12 |
+
$<INSTALL_INTERFACE:include>
|
13 |
+
)
|
14 |
+
|
15 |
+
target_sources(
|
16 |
+
${PROJECT_NAME}
|
17 |
+
PRIVATE
|
18 |
+
${CMAKE_CURRENT_SOURCE_DIR}/mikktspace.c
|
19 |
+
)
|
20 |
+
|
21 |
+
install(
|
22 |
+
TARGETS ${PROJECT_NAME}
|
23 |
+
EXPORT ${PROJECT_NAME}_target
|
24 |
+
ARCHIVE DESTINATION lib
|
25 |
+
LIBRARY DESTINATION lib
|
26 |
+
RUNTIME DESTINATION bin
|
27 |
+
)
|
28 |
+
|
29 |
+
if(NOT MIKKTSPACE_SKIP_HEADERS)
|
30 |
+
install(FILES
|
31 |
+
${CMAKE_CURRENT_SOURCE_DIR}/mikktspace.h
|
32 |
+
DESTINATION include
|
33 |
+
)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
install(
|
37 |
+
EXPORT ${PROJECT_NAME}_target
|
38 |
+
NAMESPACE ${PROJECT_NAME}::
|
39 |
+
FILE ${PROJECT_NAME}-config.cmake
|
40 |
+
DESTINATION share/${PROJECT_NAME}
|
41 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mikktspace/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO mmikk/MikkTSpace
|
6 |
+
REF 3e895b49d05ea07e4c2133156cfa94369e19e409
|
7 |
+
SHA512 3ca433bd4efd0e048138f9efc5ba9021e4f3f78a535ea48733088ba5f43e60aad7f840f00e0597a0c053cda4776177bf6deb14cecf4d172b9b68acf00d5a1ca7
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS_DEBUG
|
17 |
+
-DMIKKTSPACE_SKIP_HEADERS=ON
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
vcpkg_fixup_cmake_targets()
|
22 |
+
|
23 |
+
file(INSTALL ${SOURCE_PATH}/mikktspace.h DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mikktspace/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mikktspace",
|
3 |
+
"version-string": "2020-10-06",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A common standard for tangent space used in baking tools to produce normal maps",
|
6 |
+
"homepage": "https://github.com/mmikk/MikkTSpace"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/FixFindPackageIssue.patch
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 27b8bd8..33fe623 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -2,7 +2,7 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
6 |
+
message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the source code and call cmake from there")
|
7 |
+
endif ()
|
8 |
+
|
9 |
+
-project(sfml-imgui)
|
10 |
+
+project(milerius-sfml-imgui)
|
11 |
+
cmake_minimum_required(VERSION 3.9)
|
12 |
+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
13 |
+
|
14 |
+
@@ -26,7 +26,7 @@ include(CMakePackageConfigHelpers)
|
15 |
+
|
16 |
+
install(TARGETS
|
17 |
+
${PROJECT_NAME}
|
18 |
+
- EXPORT sfml-imgui-targets
|
19 |
+
+ EXPORT milerius-sfml-imgui-targets
|
20 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
21 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
22 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
23 |
+
@@ -39,7 +39,7 @@ install(EXPORT ${PROJECT_NAME}-targets
|
24 |
+
)
|
25 |
+
|
26 |
+
configure_package_config_file(
|
27 |
+
- "${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}-config.cmake.in"
|
28 |
+
+ "${PROJECT_SOURCE_DIR}/cmake/sfml-imgui-config.cmake.in"
|
29 |
+
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
|
30 |
+
INSTALL_DESTINATION lib/cmake/${PROJECT_NAME}
|
31 |
+
)
|
32 |
+
@@ -51,6 +51,6 @@ install(FILES
|
33 |
+
install(DIRECTORY
|
34 |
+
${CMAKE_CURRENT_SOURCE_DIR}/sfml-imgui
|
35 |
+
DESTINATION
|
36 |
+
- ${CMAKE_INSTALL_INCLUDEDIR}/sfml-imgui
|
37 |
+
+ ${CMAKE_INSTALL_INCLUDEDIR}/
|
38 |
+
FILES_MATCHING PATTERN "*.h*"
|
39 |
+
)
|
40 |
+
diff --git a/cmake/sfml-imgui-config.cmake.in b/cmake/sfml-imgui-config.cmake.in
|
41 |
+
index cd790be..e1bdd77 100644
|
42 |
+
--- a/cmake/sfml-imgui-config.cmake.in
|
43 |
+
+++ b/cmake/sfml-imgui-config.cmake.in
|
44 |
+
@@ -2,5 +2,5 @@
|
45 |
+
find_package(SFML CONFIG REQUIRED graphics)
|
46 |
+
find_package(imgui CONFIG REQUIRED)
|
47 |
+
find_package(OpenGL REQUIRED)
|
48 |
+
-include("${CMAKE_CURRENT_LIST_DIR}/sfml-imgui-targets.cmake")
|
49 |
+
-check_required_components("sfml-imgui")
|
50 |
+
|
51 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/milerius-sfml-imgui-targets.cmake")
|
52 |
+
+check_required_components("milerius-sfml-imgui")
|
53 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/cpp11.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 27b8bd8..ac65300 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -14,6 +14,7 @@ find_package(OpenGL REQUIRED)
|
6 |
+
##! Library
|
7 |
+
add_library(${PROJECT_NAME} SHARED sfml-imgui/imgui-SFML.cpp)
|
8 |
+
target_link_libraries(${PROJECT_NAME} PUBLIC imgui::imgui sfml-graphics OpenGL::GL)
|
9 |
+
+target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
10 |
+
|
11 |
+
target_include_directories(${PROJECT_NAME} PUBLIC
|
12 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/sfml-imgui>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Milerius/imgui-sfml-shared
|
6 |
+
REF 1.1
|
7 |
+
SHA512 191184f7b302f643bd7c241b69d9f9edc0d03c6f5a0b3a49f57ac84f3828202f8065291fb17993073a2c07f1237ba491de677c47e2f8160dc70ea77f20eb1946
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
FixFindPackageIssue.patch
|
11 |
+
cpp11.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/milerius-sfml-imgui)
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/milerius-sfml-imgui/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "milerius-sfml-imgui",
|
3 |
+
"version": "1.1",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "imgui dll for sfml usage",
|
6 |
+
"dependencies": [
|
7 |
+
"imgui",
|
8 |
+
"sfml",
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/fix-cmake.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -315,11 +315,11 @@ target_link_libraries(mimalloc PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/bin/mimalloc-redirect${MIMALLOC_REDIRECT_SUFFIX}.lib)
|
4 |
+
add_custom_command(TARGET mimalloc POST_BUILD
|
5 |
+
COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/bin/mimalloc-redirect${MIMALLOC_REDIRECT_SUFFIX}.dll" $<TARGET_FILE_DIR:mimalloc>
|
6 |
+
COMMENT "Copy mimalloc-redirect${MIMALLOC_REDIRECT_SUFFIX}.dll to output directory")
|
7 |
+
- install(FILES "$<TARGET_FILE_DIR:mimalloc>/mimalloc-redirect${MIMALLOC_REDIRECT_SUFFIX}.dll" DESTINATION ${mi_install_libdir})
|
8 |
+
+ install(FILES "$<TARGET_FILE_DIR:mimalloc>/mimalloc-redirect${MIMALLOC_REDIRECT_SUFFIX}.dll" DESTINATION ${CMAKE_INSTALL_BINDIR})
|
9 |
+
endif()
|
10 |
+
|
11 |
+
- install(TARGETS mimalloc EXPORT mimalloc DESTINATION ${mi_install_libdir} LIBRARY)
|
12 |
+
+ install(TARGETS mimalloc EXPORT mimalloc ARCHIVE DESTINATION ${mi_install_libdir} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${mi_install_libdir} NAMELINK_SKIP)
|
13 |
+
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir})
|
14 |
+
endif()
|
15 |
+
|
16 |
+
# static library
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/portfile.cmake
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO microsoft/mimalloc
|
4 |
+
REF v2.0.5
|
5 |
+
SHA512 d164392ace523a3fa0aa00fc58d8a9e8fbe913f07957e19ca977675b389e6d2a2eaf4772e72cae0d87aabb960f3fd6ea3923a066ece4ba4fdaa0c6860cfa414d
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-cmake.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
asm MI_SEE_ASM
|
14 |
+
secure MI_SECURE
|
15 |
+
override MI_OVERRIDE
|
16 |
+
)
|
17 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" MI_BUILD_STATIC)
|
18 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" MI_BUILD_SHARED)
|
19 |
+
|
20 |
+
vcpkg_cmake_configure(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
22 |
+
OPTIONS_DEBUG
|
23 |
+
-DMI_DEBUG_FULL=ON
|
24 |
+
OPTIONS_RELEASE
|
25 |
+
-DMI_DEBUG_FULL=OFF
|
26 |
+
OPTIONS
|
27 |
+
-DMI_USE_CXX=ON
|
28 |
+
-DMI_BUILD_TESTS=OFF
|
29 |
+
-DMI_BUILD_OBJECT=OFF
|
30 |
+
${FEATURE_OPTIONS}
|
31 |
+
-DMI_BUILD_STATIC=${MI_BUILD_STATIC}
|
32 |
+
-DMI_BUILD_SHARED=${MI_BUILD_SHARED}
|
33 |
+
-DMI_INSTALL_TOPLEVEL=ON
|
34 |
+
)
|
35 |
+
|
36 |
+
vcpkg_cmake_install()
|
37 |
+
|
38 |
+
vcpkg_copy_pdbs()
|
39 |
+
|
40 |
+
file(COPY
|
41 |
+
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
|
42 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
43 |
+
)
|
44 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mimalloc)
|
45 |
+
|
46 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
47 |
+
vcpkg_replace_string(
|
48 |
+
"${CURRENT_PACKAGES_DIR}/include/mimalloc.h"
|
49 |
+
"!defined(MI_SHARED_LIB)"
|
50 |
+
"0 // !defined(MI_SHARED_LIB)"
|
51 |
+
)
|
52 |
+
endif()
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
54 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
55 |
+
|
56 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
|
3 |
+
if(TARGET mimalloc AND NOT TARGET mimalloc-static)
|
4 |
+
add_library(mimalloc-static INTERFACE IMPORTED)
|
5 |
+
set_target_properties(mimalloc-static PROPERTIES INTERFACE_LINK_LIBRARIES mimalloc)
|
6 |
+
elseif(TARGET mimalloc-static AND NOT TARGET mimalloc)
|
7 |
+
add_library(mimalloc INTERFACE IMPORTED)
|
8 |
+
set_target_properties(mimalloc PROPERTIES INTERFACE_LINK_LIBRARIES mimalloc-static)
|
9 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mimalloc/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mimalloc",
|
3 |
+
"version": "2.0.5",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Compact general purpose allocator with excellent performance",
|
6 |
+
"homepage": "https://github.com/microsoft/mimalloc",
|
7 |
+
"license": "MIT",
|
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 |
+
"asm": {
|
21 |
+
"description": "Generate assembly files"
|
22 |
+
},
|
23 |
+
"override": {
|
24 |
+
"description": "Override the standard malloc interface"
|
25 |
+
},
|
26 |
+
"secure": {
|
27 |
+
"description": "Use security mitigations (like guard pages and randomization)"
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/build.patch
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 52cc81ace..d7a1f63f8 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -403,9 +404,11 @@ ENDIF(LIBMINC_MINC1_SUPPORT)
|
6 |
+
# Keep this variable for compatibility
|
7 |
+
SET(VOLUME_IO_LIBRARY ${LIBMINC_EXTERNAL_LIB_PREFIX}minc2)
|
8 |
+
SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
|
9 |
+
|
10 |
+
ADD_LIBRARY(${LIBMINC_LIBRARY} ${LIBRARY_TYPE} ${minc_LIB_SRCS} ${minc_HEADERS} ${volume_io_LIB_SRCS} ${volume_io_HEADERS} )
|
11 |
+
-
|
12 |
+
+if(WIN32)
|
13 |
+
+ target_link_libraries(${LIBMINC_LIBRARY} ws2_32)
|
14 |
+
+endif()
|
15 |
+
IF(NIFTI_FOUND AND NOT LIBMINC_USE_SYSTEM_NIFTI)
|
16 |
+
ADD_DEPENDENCIES(${LIBMINC_LIBRARY} NIFTI)
|
17 |
+
ENDIF()
|
18 |
+
@@ -453,7 +456,7 @@ IF( LIBMINC_INSTALL_LIB_DIR )
|
19 |
+
${LIBMINC_EXPORTED_TARGETS}
|
20 |
+
LIBRARY DESTINATION ${LIBMINC_INSTALL_LIB_DIR} COMPONENT libraries
|
21 |
+
ARCHIVE DESTINATION ${LIBMINC_INSTALL_LIB_DIR} COMPONENT libraries
|
22 |
+
- RUNTIME DESTINATION ${LIBMINC_INSTALL_LIB_DIR} COMPONENT libraries
|
23 |
+
+ RUNTIME DESTINATION ${LIBMINC_INSTALL_BIN_DIR} COMPONENT libraries
|
24 |
+
)
|
25 |
+
ENDIF( LIBMINC_INSTALL_LIB_DIR )
|
26 |
+
|
27 |
+
@@ -538,7 +541,7 @@ IF(LIBMINC_INSTALL_LIB_DIR AND NOT LIBMINC_INSTALL_NO_DEVELOPMENT)
|
28 |
+
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Use${LIBMINC_EXTERNAL_LIB_PREFIX}LIBMINC.cmake
|
29 |
+
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${LIBMINC_EXTERNAL_LIB_PREFIX}LIBMINCConfig.cmake
|
30 |
+
DESTINATION
|
31 |
+
- ${LIBMINC_INSTALL_LIB_DIR}
|
32 |
+
+ ${LIBMINC_INSTALL_LIB_DIR}/cmake
|
33 |
+
COMPONENT Development)
|
34 |
+
|
35 |
+
ENDIF(LIBMINC_INSTALL_LIB_DIR AND NOT LIBMINC_INSTALL_NO_DEVELOPMENT)
|
36 |
+
diff --git a/config.h.cmake b/config.h.cmake
|
37 |
+
index 9ceffa8fc..21c2f3baf 100644
|
38 |
+
--- a/config.h.cmake
|
39 |
+
+++ b/config.h.cmake
|
40 |
+
@@ -1,4 +1,8 @@
|
41 |
+
/* various defines */
|
42 |
+
+#ifdef _MSC_VER
|
43 |
+
+#define strcasecmp _stricmp
|
44 |
+
+#define strncasecmp _strnicmp
|
45 |
+
+#endif
|
46 |
+
|
47 |
+
#ifndef MINC2
|
48 |
+
#define MINC2 @MINC2@
|
49 |
+
diff --git a/libcommon/minc_config.c b/libcommon/minc_config.c
|
50 |
+
index 531ef108e..5472d9274 100644
|
51 |
+
--- a/libcommon/minc_config.c
|
52 |
+
+++ b/libcommon/minc_config.c
|
53 |
+
@@ -20,14 +20,6 @@
|
54 |
+
|
55 |
+
#include "minc_config.h"
|
56 |
+
|
57 |
+
-#ifdef _MSC_VER
|
58 |
+
-#define snprintf _snprintf
|
59 |
+
-#define vsnprintf _vsnprintf
|
60 |
+
-#define strcasecmp _stricmp
|
61 |
+
-#define strncasecmp _strnicmp
|
62 |
+
-#endif
|
63 |
+
-
|
64 |
+
-
|
65 |
+
static const char *_CONFIG_VAR[]=
|
66 |
+
{
|
67 |
+
"MINC_FORCE_V2",
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/config.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/LIBMINCConfig.cmake.in b/LIBMINCConfig.cmake.in
|
2 |
+
index 7790597b2..c041b685a 100644
|
3 |
+
--- a/LIBMINCConfig.cmake.in
|
4 |
+
+++ b/LIBMINCConfig.cmake.in
|
5 |
+
@@ -1,3 +1,4 @@
|
6 |
+
+set(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../../")
|
7 |
+
# LIBMINC CMake configuration file
|
8 |
+
|
9 |
+
get_filename_component(LIBMINC_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH )
|
10 |
+
@@ -37,3 +38,4 @@ set( LIBMINC_FOUND 1 )
|
11 |
+
# set( LIBMINC_TARGETS_IMPORTED 1 )
|
12 |
+
# include( "${LIBMINC_CMAKE_DIR}/@[email protected]" )
|
13 |
+
#endif()
|
14 |
+
+unset(_IMPORT_PREFIX)
|
15 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/fix-dependency-hdf5.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a6830b4..da3d635 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -65,7 +65,12 @@ IF(NOT LIBMINC_EXTERNALLY_CONFIGURED)
|
6 |
+
# external packages
|
7 |
+
FIND_PACKAGE(ZLIB REQUIRED)
|
8 |
+
SET(HDF5_NO_FIND_PACKAGE_CONFIG_FILE ON)
|
9 |
+
- FIND_PACKAGE(HDF5 REQUIRED COMPONENTS C )
|
10 |
+
+ FIND_PACKAGE(hdf5 CONFIG REQUIRED)
|
11 |
+
+ if (TARGET hdf5::hdf5-shared)
|
12 |
+
+ SET(HDF5_LIBRARIES hdf5::hdf5-shared)
|
13 |
+
+ elseif (TARGET hdf5::hdf5-static)
|
14 |
+
+ SET(HDF5_LIBRARIES hdf5::hdf5-static)
|
15 |
+
+ endif()
|
16 |
+
|
17 |
+
IF (LIBMINC_USE_SYSTEM_NIFTI)
|
18 |
+
FIND_PACKAGE(NIFTI)
|
19 |
+
@@ -515,12 +520,8 @@ IF(SUPERBUILD_STAGING_PREFIX)
|
20 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" LIBMINC_LIBRARIES_CONFIG "${LIBMINC_LIBRARIES_CONFIG}")
|
21 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" EZMINC_LIBRARIES "${EZMINC_LIBRARIES}")
|
22 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" NETCDF_INCLUDE_DIR "${NETCDF_INCLUDE_DIR}")
|
23 |
+
- STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" HDF5_INCLUDE_DIR "${HDF5_INCLUDE_DIR}")
|
24 |
+
- STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" HDF5_INCLUDE_DIRS "${HDF5_INCLUDE_DIRS}")
|
25 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" NIFTI_INCLUDE_DIR "${NIFTI_INCLUDE_DIR}")
|
26 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" NETCDF_LIBRARY "${NETCDF_LIBRARY}")
|
27 |
+
- STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" HDF5_LIBRARY "${HDF5_LIBRARY}")
|
28 |
+
- STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" HDF5_LIBRARIES "${HDF5_LIBRARIES}")
|
29 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" NIFTI_LIBRARY "${NIFTI_LIBRARY}")
|
30 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" ZNZ_LIBRARY "${ZNZ_LIBRARY}")
|
31 |
+
STRING(REPLACE "${SUPERBUILD_STAGING_PREFIX}/" "" ZLIB_LIBRARY "${ZLIB_LIBRARY}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/portfile.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO BIC-MNI/libminc
|
4 |
+
REF e75a936c12a305b596d743c26a5437196ebce2a4
|
5 |
+
SHA512 744f879ac8f0594c310d1c1b7fe67543c5feeb3e5a0979035918dbb2bf1d0973fbd389e5357a75631e618cc614b648c21179f7467576bd68e3522e63f21451b0
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
build.patch
|
9 |
+
config.patch
|
10 |
+
fix-dependency-hdf5.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
"minc1" LIBMINC_MINC1_SUPPORT
|
15 |
+
)
|
16 |
+
|
17 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
18 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) # Symbols are not properly exported
|
19 |
+
endif()
|
20 |
+
|
21 |
+
set(OPTIONS)
|
22 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
23 |
+
list(APPEND OPTIONS "-DLIBMINC_BUILD_SHARED_LIBS=ON")
|
24 |
+
else()
|
25 |
+
list(APPEND OPTIONS "-DLIBMINC_BUILD_SHARED_LIBS=OFF")
|
26 |
+
endif()
|
27 |
+
|
28 |
+
vcpkg_configure_cmake(
|
29 |
+
SOURCE_PATH ${SOURCE_PATH}
|
30 |
+
PREFER_NINJA
|
31 |
+
DISABLE_PARALLEL_CONFIGURE
|
32 |
+
OPTIONS
|
33 |
+
"-DBUILD_TESTING=OFF"
|
34 |
+
"-DLIBMINC_USE_SYSTEM_NIFTI=ON"
|
35 |
+
${OPTIONS}
|
36 |
+
${FEATURE_OPTIONS}
|
37 |
+
)
|
38 |
+
|
39 |
+
vcpkg_install_cmake()
|
40 |
+
vcpkg_copy_pdbs()
|
41 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share/libminc)
|
42 |
+
|
43 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
44 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
45 |
+
endif()
|
46 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
47 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
48 |
+
|
49 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minc/vcpkg.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minc",
|
3 |
+
"version-string": "2.4.03",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "MINC - Medical Image NetCDF or MINC isn't netCDF",
|
6 |
+
"homepage": "https://github.com/BIC-MNI/libminc",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "hdf5",
|
10 |
+
"default-features": false
|
11 |
+
},
|
12 |
+
"nifticlib",
|
13 |
+
"zlib"
|
14 |
+
],
|
15 |
+
"features": {
|
16 |
+
"minc1": {
|
17 |
+
"description": "Support minc1 file format, requires NETCDF",
|
18 |
+
"dependencies": [
|
19 |
+
{
|
20 |
+
"name": "netcdf",
|
21 |
+
"default-features": false
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minhook/fix-usage.patch
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/minhook-config.cmake.in b/cmake/minhook-config.cmake.in
|
2 |
+
index 14e6463..28fa17c 100644
|
3 |
+
--- a/cmake/minhook-config.cmake.in
|
4 |
+
+++ b/cmake/minhook-config.cmake.in
|
5 |
+
@@ -36,4 +36,4 @@ set(MINHOOK_FOUND ON)
|
6 |
+
set_and_check(MINHOOK_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/")
|
7 |
+
set_and_check(MINHOOK_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib")
|
8 |
+
|
9 |
+
-include("${PACKAGE_PREFIX_DIR}/lib/minhook/minhook-targets.cmake")
|
10 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/minhook-targets.cmake")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minhook/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
2 |
+
set(BUILD_ARCH "Win32")
|
3 |
+
set(OUTPUT_DIR "Win32")
|
4 |
+
elseif (VCPKG_TARGET_ARCHITECTURE MATCHES "x64")
|
5 |
+
set(BUILD_ARCH "x64")
|
6 |
+
set(OUTPUT_DIR "Win64")
|
7 |
+
else()
|
8 |
+
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
9 |
+
endif()
|
10 |
+
|
11 |
+
# Download files to enable CMake support for minhook - Adds CMakeLists.txt and minhook-config.cmake.in
|
12 |
+
vcpkg_download_distfile(
|
13 |
+
CMAKE_SUPPORT_PATCH
|
14 |
+
URLS https://github.com/TsudaKageyu/minhook/commit/3f2e34976c1685ee372a09f54c0c8c8f4240ef90.patch
|
15 |
+
FILENAME minhook-cmake-support.patch
|
16 |
+
SHA512 5f353b167e2c31e5e06258420c78fbae0095368cf687ff06a350d6b69b30476824785dde5dbcea3e30ff827e7cdb293727a73e6b1e6875f00aa891b2980c3877
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_from_github(
|
20 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
21 |
+
REPO TsudaKageyu/minhook
|
22 |
+
REF v1.3.3
|
23 |
+
SHA512 9f10c92a926a06cde1e4092b664a3aab00477e8b9f20cee54e1d2b3747fad91043d199a2753f7e083497816bbefc5d75d9162d2098dd044420dbca555e80b060
|
24 |
+
HEAD_REF master
|
25 |
+
PATCHES
|
26 |
+
"${CMAKE_SUPPORT_PATCH}"
|
27 |
+
fix-usage.patch
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_configure(
|
31 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
32 |
+
)
|
33 |
+
|
34 |
+
vcpkg_cmake_install()
|
35 |
+
|
36 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/minhook)
|
37 |
+
vcpkg_copy_pdbs()
|
38 |
+
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
40 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minhook/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minhook",
|
3 |
+
"version": "1.3.3",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "The Minimalistic x86/x64 API Hooking Library for Windows.",
|
6 |
+
"supports": "windows & !uwp & !arm",
|
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/minifb/fix-arm-build-error.patch
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 06ba472..0f5874c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -54,6 +54,27 @@ add_library(minifb STATIC
|
6 |
+
${SrcLib}
|
7 |
+
)
|
8 |
+
|
9 |
+
+if (WIN32)
|
10 |
+
+add_executable(noise
|
11 |
+
+ tests/noise.c
|
12 |
+
+)
|
13 |
+
+target_link_libraries(noise minifb Gdi32.lib)
|
14 |
+
+
|
15 |
+
+add_executable(input_events
|
16 |
+
+ tests/input_events.c
|
17 |
+
+)
|
18 |
+
+target_link_libraries(input_events minifb Gdi32.lib)
|
19 |
+
+
|
20 |
+
+add_executable(input_events_cpp
|
21 |
+
+ tests/input_events_cpp.cpp
|
22 |
+
+)
|
23 |
+
+target_link_libraries(input_events_cpp minifb Gdi32.lib)
|
24 |
+
+
|
25 |
+
+add_executable(multiple_windows
|
26 |
+
+ tests/multiple_windows.c
|
27 |
+
+)
|
28 |
+
+target_link_libraries(multiple_windows minifb Gdi32.lib)
|
29 |
+
+else()
|
30 |
+
add_executable(noise
|
31 |
+
tests/noise.c
|
32 |
+
)
|
33 |
+
@@ -73,6 +94,7 @@ add_executable(multiple_windows
|
34 |
+
tests/multiple_windows.c
|
35 |
+
)
|
36 |
+
target_link_libraries(multiple_windows minifb)
|
37 |
+
+endif()
|
38 |
+
|
39 |
+
if (MSVC)
|
40 |
+
elseif (MINGW)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/fix-build-error.patch
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/windows/WinMiniFB.c b/src/windows/WinMiniFB.c
|
2 |
+
index 84ed0cb..b33f252 100644
|
3 |
+
--- a/src/windows/WinMiniFB.c
|
4 |
+
+++ b/src/windows/WinMiniFB.c
|
5 |
+
@@ -19,7 +19,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
6 |
+
{
|
7 |
+
LRESULT res = 0;
|
8 |
+
|
9 |
+
- SWindowData *window_data = (SWindowData *) GetWindowLongPtr(hWnd, GWL_USERDATA);
|
10 |
+
+ SWindowData *window_data = (SWindowData *) GetWindowLongPtr(hWnd, GWLP_USERDATA);
|
11 |
+
SWindowData_Win *window_data_win = 0x0;
|
12 |
+
if(window_data != 0x0) {
|
13 |
+
window_data_win = (SWindowData_Win *) window_data->specific;
|
14 |
+
diff --git a/tests/multiple_windows.c b/tests/multiple_windows.c
|
15 |
+
index 4b301c0..29276be 100644
|
16 |
+
--- a/tests/multiple_windows.c
|
17 |
+
+++ b/tests/multiple_windows.c
|
18 |
+
@@ -1,6 +1,7 @@
|
19 |
+
#include <MiniFB.h>
|
20 |
+
#include <stdio.h>
|
21 |
+
#include <stdint.h>
|
22 |
+
+#define _USE_MATH_DEFINES
|
23 |
+
#include <math.h>
|
24 |
+
|
25 |
+
#define kUnused(var) (void) var;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/fix-install-error.patch
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 06ba472..6dc7988 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -17,6 +17,12 @@ file(GLOB SrcMacOSX "src/macosx/*.c"
|
6 |
+
file(GLOB SrcWayland "src/wayland/*.c")
|
7 |
+
file(GLOB SrcX11 "src/x11/*.c")
|
8 |
+
|
9 |
+
+file(GLOB HEADERS "include/*.h")
|
10 |
+
+file(GLOB HeaderWindows "src/windows/*.h")
|
11 |
+
+file(GLOB HeaderMacOSX "src/macosx/*.h")
|
12 |
+
+file(GLOB HeaderWayland "src/wayland/*.h")
|
13 |
+
+file(GLOB HeaderX11 "src/x11/*.h")
|
14 |
+
+
|
15 |
+
if (NOT MSVC)
|
16 |
+
set (CMAKE_C_FLAGS "-g -Wall -Wextra -pedantic -Wno-switch -Wno-unused-function")
|
17 |
+
set (CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11")
|
18 |
+
@@ -34,19 +40,24 @@ if (MSVC)
|
19 |
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
20 |
+
add_definitions(-D_WIN32_WINNT=0x0600)
|
21 |
+
list (APPEND SrcLib ${SrcWindows})
|
22 |
+
+ list (APPEND HEADERS ${HeaderWindows})
|
23 |
+
elseif (MINGW)
|
24 |
+
add_definitions(-D_WIN32_WINNT=0x0600)
|
25 |
+
list(APPEND SrcLib ${SrcWindows})
|
26 |
+
+ list (APPEND HEADERS ${HeaderWindows})
|
27 |
+
elseif (APPLE)
|
28 |
+
if(USE_METAL_API)
|
29 |
+
add_definitions(-DUSE_METAL_API)
|
30 |
+
endif()
|
31 |
+
list(APPEND SrcLib ${SrcMacOSX})
|
32 |
+
+ list (APPEND HEADERS ${HeaderMacOSX})
|
33 |
+
elseif (UNIX)
|
34 |
+
if(USE_WAYLAND_API)
|
35 |
+
list(APPEND SrcLib ${SrcWayland})
|
36 |
+
+ list (APPEND HEADERS ${HeaderWayland})
|
37 |
+
else()
|
38 |
+
list(APPEND SrcLib ${SrcX11})
|
39 |
+
+ list (APPEND HEADERS ${HeaderX11})
|
40 |
+
endif()
|
41 |
+
endif()
|
42 |
+
|
43 |
+
@@ -112,3 +123,11 @@ elseif (UNIX)
|
44 |
+
target_link_libraries(multiple_windows -lX11)
|
45 |
+
endif()
|
46 |
+
endif()
|
47 |
+
+
|
48 |
+
+install(TARGETS minifb
|
49 |
+
+ RUNTIME DESTINATION bin
|
50 |
+
+ LIBRARY DESTINATION lib
|
51 |
+
+ ARCHIVE DESTINATION lib
|
52 |
+
+ )
|
53 |
+
+
|
54 |
+
+install(FILES ${HEADERS} DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
4 |
+
message(FATAL_ERROR "${PORT} currently doesn't supports UWP.")
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO emoon/minifb
|
10 |
+
REF 25a440f8226f12b8014d24288ad0587724005afc
|
11 |
+
SHA512 e54d86e43193d22263003a9539b11cc61cfd4a1b7093c982165cdd6e6f150b431a44e7d4dc8512b62b9853a7605e29cee19f85b8d25a34b3b530f9aa41a2f4a9
|
12 |
+
HEAD_REF master
|
13 |
+
PATCHES
|
14 |
+
fix-install-error.patch
|
15 |
+
fix-build-error.patch
|
16 |
+
fix-arm-build-error.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_configure_cmake(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
PREFER_NINJA
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_install_cmake()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
30 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minifb/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minifb",
|
3 |
+
"version-string": "2019-08-20",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "MiniFB (Mini FrameBuffer) is a small cross platform library that makes it easy to render (32-bit) pixels in a window.",
|
6 |
+
"homepage": "https://github.com/emoon/minifb",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minimp3/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO lieff/minimp3
|
4 |
+
REF 95864e8e0d3b34402a49ae9af6c66f7e98c13c35 #committed on Nov 27
|
5 |
+
SHA512 6e5364a83e882b54fd1eb5ba35ec7c7179b5b5c0ceb2c658615a2306ae0c28252ca8591ec6b515483c6ff0ed608db7eb73fba3d201a20ad4a85ce7b3a091a695
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY ${SOURCE_PATH}/minimp3.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
10 |
+
file(COPY ${SOURCE_PATH}/minimp3_ex.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
11 |
+
|
12 |
+
# Handle copyright
|
13 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minimp3/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minimp3",
|
3 |
+
"version-string": "2020-12-25",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Minimalistic, single-header library for decoding MP3. minimp3 is designed to be small, fast (with SSE and NEON support), and accurate (ISO conformant).",
|
6 |
+
"homepage": "https://github.com/lieff/minimp3"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minio-cpp/fix_cmake_file.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6df202c..98eeeb0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -114,6 +114,6 @@ else (DOXYGEN_FOUND)
|
6 |
+
message("Doxygen need to be installed to generate the doxygen documentation")
|
7 |
+
endif (DOXYGEN_FOUND)
|
8 |
+
|
9 |
+
configure_file(miniocpp.pc.in miniocpp.pc @ONLY)
|
10 |
+
-install(FILES ${CMAKE_BINARY_DIR}/miniocpp.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig)
|
11 |
+
+install(FILES ${CMAKE_BINARY_DIR}/miniocpp.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
12 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minio-cpp/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO minio/minio-cpp
|
4 |
+
REF 0847e56f31e13d32c924029d5ffaa865f8396462
|
5 |
+
SHA512 47817c8acc92060afca5ebd7c9bc7c9a9e09a50046180d7d3d67993f207d295c90e491417702ebb1ab2b0a6e85a5fcc334054ce4f6d542cb42c3675b5aed1c3f
|
6 |
+
HEAD_REF main
|
7 |
+
PATCHES
|
8 |
+
fix_cmake_file.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_EXAMPLES=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
vcpkg_fixup_pkgconfig()
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|