Spaces:
Sleeping
Sleeping
f30d60542f844d87b7c395a8f995fced970baf0b63b92f4273e9779aa34b10c6
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/CMakeLists.txt +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/fix-dependency-catch2.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/install-cmake.patch +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/portfile.cmake +51 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msmpi/portfile.cmake +125 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/msmpi/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mstch/do-not-force-release.patch +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mstch/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mstch/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mujs/CMakeLists.txt +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mujs/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mujs/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/munit/fix-install.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/munit/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/munit/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/muparser/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/muparser/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/murmurhash/CMakeLists.txt +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/murmurhash/Config.cmake.in +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/murmurhash/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/murmurhash/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mvfst/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mvfst/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mygui/fix-generation.patch +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mygui/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mygui/vcpkg.json +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nameof/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nameof/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/CMakeLists.txt +86 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/config.cmake.in +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/fix-build-error.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/portfile.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nano-signal-slot/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nano-signal-slot/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanobench/portfile.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanobench/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/add-missing-include.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/find-unixodbc.patch +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/rename-version.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanoflann/portfile.cmake +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanoflann/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanogui/fix-cmakelists.patch +72 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanogui/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanogui/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanomsg/portfile.cmake +65 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanomsg/vcpkg.json +14 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/CMakeLists.txt
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
add_custom_target(LIBS)
|
4 |
+
|
5 |
+
find_package(XercesC CONFIG REQUIRED)
|
6 |
+
add_library(xerces-c INTERFACE IMPORTED GLOBAL)
|
7 |
+
target_link_libraries(xerces-c INTERFACE XercesC::XercesC)
|
8 |
+
|
9 |
+
find_package(ZLIB REQUIRED)
|
10 |
+
|
11 |
+
add_library(zlib INTERFACE IMPORTED GLOBAL)
|
12 |
+
add_library(zlibstatic INTERFACE IMPORTED GLOBAL)
|
13 |
+
|
14 |
+
target_link_libraries(zlib INTERFACE ZLIB::ZLIB)
|
15 |
+
target_link_libraries(zlibstatic INTERFACE ZLIB::ZLIB)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/fix-dependency-catch2.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/test/msixtest/CMakeLists.txt b/src/test/msixtest/CMakeLists.txt
|
2 |
+
index e991231..e5c43ed 100644
|
3 |
+
--- a/src/test/msixtest/CMakeLists.txt
|
4 |
+
+++ b/src/test/msixtest/CMakeLists.txt
|
5 |
+
@@ -5,6 +5,8 @@
|
6 |
+
cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)
|
7 |
+
project (msixtest)
|
8 |
+
|
9 |
+
+find_package(Catch2 CONFIG REQUIRED)
|
10 |
+
+
|
11 |
+
if(WIN32)
|
12 |
+
set(DESCRIPTION "msixtest manifest")
|
13 |
+
configure_file(${MSIX_PROJECT_ROOT}/manifest.cmakein ${MSIX_TEST_OUTPUT_DIRECTORY}/${PROJECT_NAME}.exe.manifest CRLF)
|
14 |
+
@@ -91,7 +93,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
|
15 |
+
)
|
16 |
+
|
17 |
+
add_dependencies(${PROJECT_NAME} msix)
|
18 |
+
-target_link_libraries(${PROJECT_NAME} msix)
|
19 |
+
+target_link_libraries(${PROJECT_NAME} msix Catch2::Catch2)
|
20 |
+
|
21 |
+
# For windows copy the library
|
22 |
+
if(WIN32)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/install-cmake.patch
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 20098bf..38c3c95 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -190,3 +190,5 @@ message(STATUS "src processed")
|
6 |
+
add_subdirectory(sample)
|
7 |
+
message(STATUS "sample processed")
|
8 |
+
message(STATUS "DONE!")
|
9 |
+
+
|
10 |
+
+install(TARGETS msix)
|
11 |
+
|
12 |
+
diff --git a/src/msix/CMakeLists.txt b/src/msix/CMakeLists.txt
|
13 |
+
index 296eda4..cf87993 100644
|
14 |
+
--- a/src/msix/CMakeLists.txt
|
15 |
+
+++ b/src/msix/CMakeLists.txt
|
16 |
+
@@ -87,9 +87,9 @@ endif()
|
17 |
+
include(msix_resources) # Handles all the certificates and schemas we are going to use.
|
18 |
+
|
19 |
+
set(LIB_PUBLIC_HEADERS
|
20 |
+
- ../inc/AppxPackaging.hpp
|
21 |
+
- ../inc/MSIXWindows.hpp
|
22 |
+
- ../inc/MsixErrors.hpp
|
23 |
+
+ ${CMAKE_CURRENT_SOURCE_DIR}/../inc/AppxPackaging.hpp
|
24 |
+
+ ${CMAKE_CURRENT_SOURCE_DIR}/../inc/MSIXWindows.hpp
|
25 |
+
+ ${CMAKE_CURRENT_SOURCE_DIR}/../inc/MsixErrors.hpp
|
26 |
+
)
|
27 |
+
|
28 |
+
set(MsixSrc) # list with all the files we are going to use
|
29 |
+
@@ -260,7 +260,7 @@ if(WIN32)
|
30 |
+
"/DELAYLOAD:api-ms-win-core-winrt-l1-1-0.dll")
|
31 |
+
string(REPLACE ";" " " DELAYFLAGS "${DELAYFLAGS}")
|
32 |
+
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS "${DELAYFLAGS} /LTCG")
|
33 |
+
- set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " /DEF:windowsexports.def")
|
34 |
+
+ set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " /DEF:${CMAKE_CURRENT_BINARY_DIR}/windowsexports.def")
|
35 |
+
if(USE_STATIC_MSVC)
|
36 |
+
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
37 |
+
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " /NODEFAULTLIB:MSVCRTD")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/portfile.cmake
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO microsoft/msix-packaging
|
6 |
+
REF ab322965d64baf1448548cbe18139e8872d686f2 # v1.7
|
7 |
+
SHA512 d64767c84d5933bf3d1e0e62e9dc21fa13e02b8cf31776ccbe2e7066e514798d8ff758dc2b6fd64f6eabcf3deb83ef0eaa03e1a7d407307f347a045e8a75d3dd
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
install-cmake.patch
|
11 |
+
fix-dependency-catch2.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/lib)
|
15 |
+
file(MAKE_DIRECTORY ${SOURCE_PATH}/lib)
|
16 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt ${SOURCE_PATH}/lib/CMakeLists.txt)
|
17 |
+
|
18 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
19 |
+
set(PLATFORM WIN32)
|
20 |
+
set(CRYPTO_LIB crypt32)
|
21 |
+
elseif(VCPKG_TARGET_IS_LINUX)
|
22 |
+
set(PLATFORM LINUX)
|
23 |
+
set(CRYPTO_LIB openssl)
|
24 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
25 |
+
set(PLATFORM MACOS)
|
26 |
+
set(CRYPTO_LIB openssl)
|
27 |
+
else()
|
28 |
+
message(FATAL_ERROR "Unknown system: ${VCPKG_CMAKE_SYSTEM_NAME}")
|
29 |
+
endif()
|
30 |
+
|
31 |
+
vcpkg_configure_cmake(
|
32 |
+
SOURCE_PATH ${SOURCE_PATH}
|
33 |
+
PREFER_NINJA
|
34 |
+
NO_CHARSET_FLAG
|
35 |
+
DISABLE_PARALLEL_CONFIGURE
|
36 |
+
OPTIONS
|
37 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
38 |
+
-DINSTALL_LIBMSIX=ON
|
39 |
+
-DUSE_SHARED_ZLIB=ON
|
40 |
+
-D${PLATFORM}=ON
|
41 |
+
-DXML_PARSER=xerces
|
42 |
+
-DCRYPTO_LIB=${CRYPTO_LIB}
|
43 |
+
)
|
44 |
+
|
45 |
+
vcpkg_install_cmake()
|
46 |
+
|
47 |
+
vcpkg_copy_pdbs()
|
48 |
+
|
49 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
50 |
+
|
51 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msix/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "msix",
|
3 |
+
"version": "1.7",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "The MSIX Packaging SDK project is an effort to enable developers on a variety of platforms to pack and unpack packages for the purposes of distribution from either the Microsoft Store, or their own content distribution networks.The MSIX Packaging APIs that a client app would use to interact with .msix/.appx packages are a subset of those documented here. See sample/ExtractContentsSample/ExtractContentsSample.cpp for additional details.",
|
6 |
+
"homepage": "https://github.com/microsoft/msix-packaging",
|
7 |
+
"dependencies": [
|
8 |
+
"catch2",
|
9 |
+
{
|
10 |
+
"name": "openssl",
|
11 |
+
"platform": "!uwp & !windows"
|
12 |
+
},
|
13 |
+
"xerces-c",
|
14 |
+
"zlib"
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msmpi/portfile.cmake
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(MSMPI_VERSION "10.1.12498")
|
2 |
+
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/msmpi-${MSMPI_VERSION})
|
3 |
+
|
4 |
+
vcpkg_download_distfile(SDK_ARCHIVE
|
5 |
+
URLS "https://download.microsoft.com/download/a/5/2/a5207ca5-1203-491a-8fb8-906fd68ae623/msmpisdk.msi"
|
6 |
+
FILENAME "msmpisdk-${MSMPI_VERSION}-b0087dfd.msi"
|
7 |
+
SHA512 b0087dfd21423bf87b94b17d7cb03576838585371bbf8b03cca95c3ad73670108c7bc6517b0de852ef595072cc4143be2011636e7242bcb080394d94294848a7
|
8 |
+
)
|
9 |
+
|
10 |
+
|
11 |
+
#to enable CI, you should modify the following URL also in ${VCPKG_ROOT}/scripts/azure-pipelines/windows/provision-image.ps1
|
12 |
+
macro(download_msmpi_redistributable_package)
|
13 |
+
vcpkg_download_distfile(REDIST_ARCHIVE
|
14 |
+
URLS "https://download.microsoft.com/download/a/5/2/a5207ca5-1203-491a-8fb8-906fd68ae623/msmpisetup.exe"
|
15 |
+
FILENAME "msmpisetup-${MSMPI_VERSION}.exe"
|
16 |
+
SHA512 1ee463e7dfc3e55a7ac048fdfde13fef09a5eea4b74d8fd7c22a7aad667a025b467ce939e5de308e25bbc186c3fe66e0e24ac03a3741656fc7558f2af2fa132a
|
17 |
+
)
|
18 |
+
endmacro()
|
19 |
+
|
20 |
+
### Check for correct version of installed redistributable package
|
21 |
+
|
22 |
+
# We always want the ProgramFiles folder even on a 64-bit machine (not the ProgramFilesx86 folder)
|
23 |
+
vcpkg_get_program_files_platform_bitness(PROGRAM_FILES_PLATFORM_BITNESS)
|
24 |
+
set(SYSTEM_MPIEXEC_FILEPATH "${PROGRAM_FILES_PLATFORM_BITNESS}/Microsoft MPI/Bin/mpiexec.exe")
|
25 |
+
|
26 |
+
if(EXISTS "${SYSTEM_MPIEXEC_FILEPATH}")
|
27 |
+
set(MPIEXEC_VERSION_LOGNAME "mpiexec-version")
|
28 |
+
vcpkg_execute_required_process(
|
29 |
+
COMMAND ${SYSTEM_MPIEXEC_FILEPATH}
|
30 |
+
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}
|
31 |
+
LOGNAME ${MPIEXEC_VERSION_LOGNAME}
|
32 |
+
)
|
33 |
+
file(READ ${CURRENT_BUILDTREES_DIR}/${MPIEXEC_VERSION_LOGNAME}-out.log MPIEXEC_OUTPUT)
|
34 |
+
|
35 |
+
if(MPIEXEC_OUTPUT MATCHES "\\[Version ([0-9]+\\.[0-9]+\\.[0-9]+)\\.[0-9]+\\]")
|
36 |
+
if(NOT CMAKE_MATCH_1 STREQUAL MSMPI_VERSION)
|
37 |
+
download_msmpi_redistributable_package()
|
38 |
+
|
39 |
+
message(FATAL_ERROR
|
40 |
+
" The version of the installed MSMPI redistributable packages does not match the version to be installed\n"
|
41 |
+
" Expected version: ${MSMPI_VERSION}\n"
|
42 |
+
" Found version: ${CMAKE_MATCH_1}\n"
|
43 |
+
" Please upgrade the installed version on your system.\n"
|
44 |
+
" The appropriate installer for the expected version has been downloaded to:\n"
|
45 |
+
" ${REDIST_ARCHIVE}\n")
|
46 |
+
endif()
|
47 |
+
else()
|
48 |
+
message(FATAL_ERROR
|
49 |
+
" Could not determine installed MSMPI redistributable package version.\n"
|
50 |
+
" See logs for more information:\n"
|
51 |
+
" ${CURRENT_BUILDTREES_DIR}\\${MPIEXEC_VERSION_LOGNAME}-out.log\n"
|
52 |
+
" ${CURRENT_BUILDTREES_DIR}\\${MPIEXEC_VERSION_LOGNAME}-err.log\n")
|
53 |
+
endif()
|
54 |
+
else()
|
55 |
+
download_msmpi_redistributable_package()
|
56 |
+
|
57 |
+
message(FATAL_ERROR
|
58 |
+
" Could not find:\n"
|
59 |
+
" ${SYSTEM_MPIEXEC_FILEPATH}\n"
|
60 |
+
" Please install the MSMPI redistributable package before trying to install this port.\n"
|
61 |
+
" The appropriate installer has been downloaded to:\n"
|
62 |
+
" ${REDIST_ARCHIVE}\n")
|
63 |
+
endif()
|
64 |
+
|
65 |
+
file(TO_NATIVE_PATH "${SDK_ARCHIVE}" SDK_ARCHIVE)
|
66 |
+
file(TO_NATIVE_PATH "${SOURCE_PATH}/sdk" SDK_SOURCE_DIR)
|
67 |
+
file(TO_NATIVE_PATH "${CURRENT_BUILDTREES_DIR}/msiexec-${TARGET_TRIPLET}.log" MSIEXEC_LOG_PATH)
|
68 |
+
|
69 |
+
set(PARAM_MSI "/a \"${SDK_ARCHIVE}\"")
|
70 |
+
set(PARAM_LOG "/log \"${MSIEXEC_LOG_PATH}\"")
|
71 |
+
set(PARAM_TARGET_DIR "TARGETDIR=\"${SDK_SOURCE_DIR}\"")
|
72 |
+
set(SCRIPT_FILE ${CURRENT_BUILDTREES_DIR}/msiextract-msmpi.bat)
|
73 |
+
# Write the command out to a script file and run that to avoid weird escaping behavior when spaces are present
|
74 |
+
file(WRITE ${SCRIPT_FILE} "msiexec ${PARAM_MSI} /qn ${PARAM_LOG} ${PARAM_TARGET_DIR}")
|
75 |
+
|
76 |
+
vcpkg_execute_required_process(
|
77 |
+
COMMAND ${SCRIPT_FILE}
|
78 |
+
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}
|
79 |
+
LOGNAME extract-sdk
|
80 |
+
)
|
81 |
+
|
82 |
+
set(SOURCE_INCLUDE_PATH "${SOURCE_PATH}/sdk/PFiles/Microsoft SDKs/MPI/Include")
|
83 |
+
set(SOURCE_LIB_PATH "${SOURCE_PATH}/sdk/PFiles/Microsoft SDKs/MPI/Lib")
|
84 |
+
|
85 |
+
# Install include files
|
86 |
+
file(INSTALL
|
87 |
+
"${SOURCE_INCLUDE_PATH}/mpi.h"
|
88 |
+
"${SOURCE_INCLUDE_PATH}/mpif.h"
|
89 |
+
"${SOURCE_INCLUDE_PATH}/mpi.f90"
|
90 |
+
"${SOURCE_INCLUDE_PATH}/mpio.h"
|
91 |
+
"${SOURCE_INCLUDE_PATH}/mspms.h"
|
92 |
+
"${SOURCE_INCLUDE_PATH}/pmidbg.h"
|
93 |
+
"${SOURCE_INCLUDE_PATH}/${TRIPLET_SYSTEM_ARCH}/mpifptr.h"
|
94 |
+
DESTINATION
|
95 |
+
${CURRENT_PACKAGES_DIR}/include
|
96 |
+
)
|
97 |
+
|
98 |
+
# NOTE: since the binary distribution does not include any debug libraries we always install the release libraries
|
99 |
+
SET(VCPKG_POLICY_ONLY_RELEASE_CRT enabled)
|
100 |
+
|
101 |
+
file(GLOB STATIC_LIBS
|
102 |
+
${SOURCE_LIB_PATH}/${TRIPLET_SYSTEM_ARCH}/msmpifec.lib
|
103 |
+
${SOURCE_LIB_PATH}/${TRIPLET_SYSTEM_ARCH}/msmpifmc.lib
|
104 |
+
${SOURCE_LIB_PATH}/${TRIPLET_SYSTEM_ARCH}/msmpifes.lib
|
105 |
+
${SOURCE_LIB_PATH}/${TRIPLET_SYSTEM_ARCH}/msmpifms.lib
|
106 |
+
)
|
107 |
+
|
108 |
+
file(INSTALL
|
109 |
+
"${SOURCE_LIB_PATH}/${TRIPLET_SYSTEM_ARCH}/msmpi.lib"
|
110 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
111 |
+
)
|
112 |
+
file(INSTALL
|
113 |
+
"${SOURCE_LIB_PATH}/${TRIPLET_SYSTEM_ARCH}/msmpi.lib"
|
114 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
115 |
+
)
|
116 |
+
|
117 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
118 |
+
file(INSTALL ${STATIC_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
119 |
+
file(INSTALL ${STATIC_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
120 |
+
endif()
|
121 |
+
|
122 |
+
# Handle copyright
|
123 |
+
file(COPY "${SOURCE_PATH}/sdk/PFiles/Microsoft SDKs/MPI/License/MicrosoftMPI-SDK-EULA.rtf" DESTINATION ${CURRENT_PACKAGES_DIR}/share/msmpi)
|
124 |
+
file(COPY "${SOURCE_PATH}/sdk/PFiles/Microsoft SDKs/MPI/License/MPI-SDK-TPN.txt" DESTINATION ${CURRENT_PACKAGES_DIR}/share/msmpi)
|
125 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/msmpi/copyright "See the accompanying MicrosoftMPI-SDK-EULA.rtf and MPI-SDK-TPN.txt")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/msmpi/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "msmpi",
|
3 |
+
"version": "10.1.12498",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Microsoft MPI (MS-MPI) is a Microsoft implementation of the Message Passing Interface standard for developing and running parallel applications on the Windows platform.",
|
6 |
+
"homepage": "https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "windows & !uwp"
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mstch/do-not-force-release.patch
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8d8e0c7..4304ad7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -5,17 +5,17 @@ option(WITH_UNIT_TESTS "enable building unit test executable" OFF)
|
6 |
+
option(WITH_BENCHMARK "enable building benchmark executable" OFF)
|
7 |
+
|
8 |
+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
9 |
+
-set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
|
10 |
+
-set(CMAKE_BUILD_TYPE Release)
|
11 |
+
|
12 |
+
set(mstch_VERSION 1.0.1)
|
13 |
+
|
14 |
+
if(NOT MSVC)
|
15 |
+
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -O3")
|
16 |
+
+ set(CMAKE_CXX_STANDARD 11)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
add_subdirectory(src)
|
20 |
+
|
21 |
+
+target_include_directories(mstch PUBLIC $<INSTALL_INTERFACE:include>)
|
22 |
+
+
|
23 |
+
if(WITH_UNIT_TESTS)
|
24 |
+
enable_testing()
|
25 |
+
add_subdirectory(vendor/headerize)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mstch/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO no1msd/mstch
|
6 |
+
REF ff459067bd02e80dc399006bb610238223d41c50 #1.0.2
|
7 |
+
SHA512 b01f4c3e39a40fc9a6accc81ecbfac4b8a9ce1c2ec3df441a16039f4bf126dfeef83f87d3a5e9ec03dc133a1c5f54f5bc931479915e8a92bbfc8ebbc87c8e4dd
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES do-not-force-release.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_configure_cmake(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
PREFER_NINJA
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mstch)
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mstch/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mstch",
|
3 |
+
"version-string": "1.0.2",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Mstch is a complete implementation of {{mustache}} templates using modern C++",
|
6 |
+
"homepage": "https://github.com/no1msd/mstch",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-variant"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mujs/CMakeLists.txt
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(mujs)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
file(GLOB libmujs_sources js*.c utf*.c regexp.c)
|
9 |
+
|
10 |
+
include_directories(.)
|
11 |
+
|
12 |
+
|
13 |
+
add_library(libmujs ${libmujs_sources})
|
14 |
+
|
15 |
+
install(
|
16 |
+
TARGETS libmujs
|
17 |
+
RUNTIME DESTINATION bin
|
18 |
+
LIBRARY DESTINATION lib
|
19 |
+
ARCHIVE DESTINATION lib
|
20 |
+
)
|
21 |
+
|
22 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
23 |
+
install(FILES mujs.h DESTINATION include)
|
24 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mujs/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ccxvii/mujs
|
6 |
+
REF c86267d8b2b5f9a6ae318dc69886109eee0c7b61
|
7 |
+
SHA512 927b000cd6a28b785d510917445a5a39a4dbaf0e13eab920cf83c7838b111b8a0542cfab0110f8493dc65b88a48261deb6ba7a871cbe77fb46119b536a69d470
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mujs RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mujs/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mujs",
|
3 |
+
"version-string": "2018-07-30",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "An embeddable Javascript interpreter in C",
|
6 |
+
"homepage": "https://github.com/ccxvii/mujs"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/munit/fix-install.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/meson.build b/meson.build
|
2 |
+
index c15b405..44ee737 100644
|
3 |
+
--- a/meson.build
|
4 |
+
+++ b/meson.build
|
5 |
+
@@ -11,7 +11,7 @@ root_include = include_directories('.')
|
6 |
+
|
7 |
+
munit = library('munit',
|
8 |
+
['munit.c'],
|
9 |
+
- install: meson.is_subproject())
|
10 |
+
+ install: not meson.is_subproject())
|
11 |
+
|
12 |
+
if meson.is_subproject()
|
13 |
+
munit_dep = declare_dependency(
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/munit/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 nemequ/munit
|
6 |
+
REF da8f73412998e4f1adf1100dc187533a51af77fd
|
7 |
+
SHA512 cd08c1291a73487f15fdba7bf8675fea9177f0ec9766900f65efb5f00c662532a16499447e9087d304de34ff9138f47d04ebf18713f5aa8aacede22c5e23b98b
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-install.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_configure_meson(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_meson()
|
18 |
+
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
22 |
+
|
23 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/munit/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "munit",
|
3 |
+
"version-date": "2019-04-06",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A small but full-featured unit testing framework for C",
|
6 |
+
"homepage": "https://github.com/nemequ/munit",
|
7 |
+
"supports": "!(arm | uwp)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-tool-meson",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/muparser/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO beltoforion/muparser
|
4 |
+
REF 6d65387be8f4ef329829c6d6ace779b26942e075 # v2.3.3-1
|
5 |
+
SHA512 cda1133b534b1c77d80b15d50d71f372a423fab2bc7b9204d106589350b3cfc955dbfdcfe8c17890e3cfd747b559f4d3c4f0ea6c9c3c73e6aa159afc82bcc6c0
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DENABLE_SAMPLES=OFF
|
13 |
+
-DENABLE_OPENMP=OFF
|
14 |
+
-DENABLE_WIDE_CHAR=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/muparser")
|
21 |
+
vcpkg_fixup_pkgconfig()
|
22 |
+
|
23 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDef.h" "#if defined(_UNICODE)" "#if 0")
|
24 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDLL.h" "#ifndef _UNICODE" "#if 1")
|
25 |
+
|
26 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
27 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 0")
|
28 |
+
else()
|
29 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 1")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
33 |
+
|
34 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/muparser/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "muparser",
|
3 |
+
"version": "2.3.3",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Fast math parser library",
|
6 |
+
"homepage": "https://github.com/beltoforion/muparser",
|
7 |
+
"license": "BSD-2-Clause",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/murmurhash/CMakeLists.txt
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
set(VERSION "1.0.0")
|
4 |
+
project(murmurhash LANGUAGES CXX VERSION ${VERSION})
|
5 |
+
|
6 |
+
set(CMAKE_CXX_STANDARD 17)
|
7 |
+
|
8 |
+
add_library(murmurhash
|
9 |
+
src/MurmurHash2.cpp
|
10 |
+
src/MurmurHash3.cpp
|
11 |
+
)
|
12 |
+
|
13 |
+
set(MURMUR_HEADERS
|
14 |
+
src/MurmurHash2.h
|
15 |
+
src/MurmurHash3.h
|
16 |
+
)
|
17 |
+
set_target_properties(murmurhash PROPERTIES
|
18 |
+
PUBLIC_HEADER "${MURMUR_HEADERS}"
|
19 |
+
)
|
20 |
+
|
21 |
+
#Configuration
|
22 |
+
set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
23 |
+
set(config_install_dir "lib/cmake/${PROJECT_NAME}")
|
24 |
+
set(version_config "${generated_dir}/${PROJECT_NAME}ConfigVersion.cmake")
|
25 |
+
set(project_config "${generated_dir}/${PROJECT_NAME}Config.cmake")
|
26 |
+
set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
|
27 |
+
set(namespace "${PROJECT_NAME}::")
|
28 |
+
|
29 |
+
include(CMakePackageConfigHelpers)
|
30 |
+
|
31 |
+
write_basic_package_version_file(
|
32 |
+
"${version_config}" COMPATIBILITY SameMajorVersion
|
33 |
+
)
|
34 |
+
|
35 |
+
configure_package_config_file(
|
36 |
+
"${CMAKE_SOURCE_DIR}/Config.cmake.in"
|
37 |
+
"${project_config}"
|
38 |
+
INSTALL_DESTINATION "${config_install_dir}"
|
39 |
+
)
|
40 |
+
#Installation
|
41 |
+
install(TARGETS murmurhash
|
42 |
+
EXPORT "${TARGETS_EXPORT_NAME}"
|
43 |
+
LIBRARY DESTINATION "lib"
|
44 |
+
ARCHIVE DESTINATION "lib"
|
45 |
+
PUBLIC_HEADER DESTINATION "include")
|
46 |
+
|
47 |
+
install(FILES "${project_config}" "${version_config}"
|
48 |
+
DESTINATION "${config_install_dir}"
|
49 |
+
)
|
50 |
+
install(EXPORT "${TARGETS_EXPORT_NAME}"
|
51 |
+
NAMESPACE "${namespace}"
|
52 |
+
DESTINATION "${config_install_dir}"
|
53 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/murmurhash/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/murmurhash/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO aappleby/smhasher
|
6 |
+
REF 61a0530f28277f2e850bfc39600ce61d02b518de
|
7 |
+
SHA512 36877b53386153c20421ccd32d544c28ee72f6f13ea37c14ab1a1db378f6463db28339b2149671c12611384497bf595b798e99c34ea0ebceb6f9ef2f8908a2b6
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
configure_file(${CURRENT_PORT_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
|
12 |
+
configure_file(${CURRENT_PORT_DIR}/Config.cmake.in ${SOURCE_PATH}/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 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
24 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author hereby disclaims copyright to this source code.")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/murmurhash/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "murmurhash",
|
3 |
+
"version-date": "2016-01-09",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "MurmurHash a family of hash functions.",
|
6 |
+
"homepage": "https://github.com/aappleby/smhasher",
|
7 |
+
"supports": "!uwp & !arm"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mvfst/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO facebookincubator/mvfst
|
4 |
+
REF 7c52380a5c445fe478096d7ca10e92797747ae87
|
5 |
+
SHA512 5ccebec9652e7a481b599b20a07b0d6585d300cdde3e6b62985c5ce448c0890d537bced6c9dbd77009f89c16311c56fde1f2131064ff5cc3fcb34bf69cb11f06
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DBUILD_TESTS=OFF
|
13 |
+
-DBUILD_EXAMPLES=OFF
|
14 |
+
)
|
15 |
+
|
16 |
+
# Prefer installed config files
|
17 |
+
file(REMOVE
|
18 |
+
${SOURCE_PATH}/fizz/cmake/FindGMock.cmake
|
19 |
+
${SOURCE_PATH}/fizz/cmake/FindGflags.cmake
|
20 |
+
${SOURCE_PATH}/fizz/cmake/FindGlog.cmake
|
21 |
+
${SOURCE_PATH}/fizz/cmake/FindLibevent.cmake
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mvfst)
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
|
28 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mvfst/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mvfst",
|
3 |
+
"version-date": "2022-03-27",
|
4 |
+
"description": "mvfst (Pronounced move fast) is a client and server implementation of IETF QUIC protocol in C++ by Facebook.",
|
5 |
+
"homepage": "https://github.com/facebookincubator/mvfst",
|
6 |
+
"supports": "!windows",
|
7 |
+
"dependencies": [
|
8 |
+
"boost",
|
9 |
+
"fizz",
|
10 |
+
"fmt",
|
11 |
+
"folly",
|
12 |
+
"glog",
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "vcpkg-cmake-config",
|
19 |
+
"host": true
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mygui/fix-generation.patch
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt
|
2 |
+
index a0ef573..b77566e 100644
|
3 |
+
--- a/CMake/CMakeLists.txt
|
4 |
+
+++ b/CMake/CMakeLists.txt
|
5 |
+
@@ -5,7 +5,7 @@
|
6 |
+
#############################################################
|
7 |
+
|
8 |
+
if(WIN32)
|
9 |
+
- set(MYGUI_CMAKE_DIR "CMake")
|
10 |
+
+ set(MYGUI_CMAKE_DIR "share")
|
11 |
+
else(WIN32)
|
12 |
+
set(MYGUI_CMAKE_DIR "lib/MYGUI/cmake")
|
13 |
+
endif(WIN32)
|
14 |
+
diff --git a/CMake/Utils/MyGUIConfigTargets.cmake b/CMake/Utils/MyGUIConfigTargets.cmake
|
15 |
+
index 8fb1ce4..6483339 100644
|
16 |
+
--- a/CMake/Utils/MyGUIConfigTargets.cmake
|
17 |
+
+++ b/CMake/Utils/MyGUIConfigTargets.cmake
|
18 |
+
@@ -7,10 +7,10 @@ if (WIN32)
|
19 |
+
set(MYGUI_RELWDBG_PATH "/RelWithDebInfo")
|
20 |
+
set(MYGUI_MINSIZE_PATH "/MinSizeRel")
|
21 |
+
set(MYGUI_DEBUG_PATH "/Debug")
|
22 |
+
- set(MYGUI_LIB_RELEASE_PATH "/Release")
|
23 |
+
+ set(MYGUI_LIB_RELEASE_PATH "")
|
24 |
+
set(MYGUI_LIB_RELWDBG_PATH "/RelWithDebInfo")
|
25 |
+
set(MYGUI_LIB_MINSIZE_PATH "/MinSizeRel")
|
26 |
+
- set(MYGUI_LIB_DEBUG_PATH "/Debug")
|
27 |
+
+ set(MYGUI_LIB_DEBUG_PATH "")
|
28 |
+
set(MYGUI_PLUGIN_PATH "/opt")
|
29 |
+
elseif (UNIX)
|
30 |
+
set(MYGUI_RELEASE_PATH "")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mygui/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# MyGUI supports compiling itself as a DLL,
|
2 |
+
# but it seems platform-related stuff doesn't support dynamic linkage
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO MyGUI/mygui
|
8 |
+
REF 81e5c67e92920607d16bc2aee1ac32f6fd7d446b #v3.4.1
|
9 |
+
SHA512 b13e0a08559b3ddfe42ffcc6cf017fb20d50168785fb551e16f613c60b9ea28a65056a9bc42bdab876368f40dcba1772bc704ad0928c45d8b32e909abc0f1916
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-generation.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
if("opengl" IN_LIST FEATURES)
|
16 |
+
set(MYGUI_RENDERSYSTEM 4)
|
17 |
+
else()
|
18 |
+
set(MYGUI_RENDERSYSTEM 1)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS
|
24 |
+
-DMYGUI_STATIC=TRUE
|
25 |
+
-DMYGUI_BUILD_DEMOS=FALSE
|
26 |
+
-DMYGUI_BUILD_PLUGINS=TRUE
|
27 |
+
-DMYGUI_BUILD_TOOLS=FALSE
|
28 |
+
-DMYGUI_BUILD_UNITTESTS=FALSE
|
29 |
+
-DMYGUI_BUILD_TEST_APP=FALSE
|
30 |
+
-DMYGUI_BUILD_WRAPPER=FALSE
|
31 |
+
-DMYGUI_BUILD_DOCS=FALSE
|
32 |
+
-DMYGUI_RENDERSYSTEM=${MYGUI_RENDERSYSTEM}
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_cmake_install()
|
36 |
+
|
37 |
+
file(REMOVE_RECURSE
|
38 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
39 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
40 |
+
)
|
41 |
+
|
42 |
+
vcpkg_fixup_pkgconfig()
|
43 |
+
|
44 |
+
# Handle copyright
|
45 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mygui/vcpkg.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mygui",
|
3 |
+
"version": "3.4.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Fast, flexible and simple GUI",
|
6 |
+
"homepage": "http://mygui.info",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"freetype",
|
10 |
+
"sdl2-image",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"features": {
|
21 |
+
"opengl": {
|
22 |
+
"description": "Use OpenGL render system.",
|
23 |
+
"dependencies": [
|
24 |
+
"opengl"
|
25 |
+
]
|
26 |
+
}
|
27 |
+
}
|
28 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nameof/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Neargye/nameof
|
6 |
+
REF v0.10.1
|
7 |
+
SHA512 9b3ed7a3f5dcf1ad309341102d2aaa07fc8e9d6db7e08e42c2d9b5453c822ec16d6c6910adf7c4af8879c4084cac362f4fb4c07559cc49594b72b4917816ef5d
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS
|
15 |
+
-DNAMEOF_OPT_BUILD_EXAMPLES=OFF
|
16 |
+
-DNAMEOF_OPT_BUILD_TESTS=OFF
|
17 |
+
-DNAMEOF_OPT_INSTALL=ON
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
|
22 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nameof TARGET_PATH share/nameof)
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nameof/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nameof",
|
3 |
+
"version-string": "0.10.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum.",
|
6 |
+
"homepage": "https://github.com/Neargye/nameof"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/CMakeLists.txt
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
|
2 |
+
project(nana VERSION 1.7.4 LANGUAGES CXX)
|
3 |
+
|
4 |
+
option(NANA_ENABLE_PNG "Enable PNG support" OFF)
|
5 |
+
option(NANA_ENABLE_JPEG "Enable JPEG support" OFF)
|
6 |
+
option(NANA_INSTALL_HEADERS "Install headers" ON)
|
7 |
+
|
8 |
+
if(APPLE)
|
9 |
+
add_definitions(-DAPPLE)
|
10 |
+
elseif(UNIX)
|
11 |
+
add_definitions(-Dlinux)
|
12 |
+
endif()
|
13 |
+
|
14 |
+
file(GLOB_RECURSE headers include/*.hpp)
|
15 |
+
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/include PREFIX "include" FILES ${headers})
|
16 |
+
|
17 |
+
file(GLOB sources source/*.hpp source/*.cpp)
|
18 |
+
foreach(subdir detail filesystem gui paint system threads)
|
19 |
+
file(GLOB_RECURSE sources_subdir source/${subdir}/*.hpp source/${subdir}/*.cpp)
|
20 |
+
list(APPEND sources ${sources_subdir})
|
21 |
+
endforeach()
|
22 |
+
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/source PREFIX "source" FILES ${sources})
|
23 |
+
|
24 |
+
add_library(nana ${headers} ${sources})
|
25 |
+
target_include_directories(nana PUBLIC
|
26 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
27 |
+
$<INSTALL_INTERFACE:include>)
|
28 |
+
|
29 |
+
target_compile_features(nana PUBLIC cxx_std_17)
|
30 |
+
|
31 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
32 |
+
target_link_libraries(nana PUBLIC c++experimental)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES "GCC")
|
36 |
+
target_link_libraries(nana PUBLIC stdc++fs)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
if(UNIX)
|
40 |
+
find_package(Threads REQUIRED)
|
41 |
+
target_link_libraries(nana PUBLIC Threads::Threads)
|
42 |
+
|
43 |
+
find_package(Freetype REQUIRED)
|
44 |
+
target_link_libraries(nana PUBLIC Freetype::Freetype)
|
45 |
+
|
46 |
+
find_package(X11 REQUIRED)
|
47 |
+
target_include_directories(nana PUBLIC ${X11_INCLUDE_DIR})
|
48 |
+
target_link_libraries(nana PUBLIC ${X11_LIBRARIES} ${X11_Xft_LIB})
|
49 |
+
|
50 |
+
find_package(Fontconfig REQUIRED)
|
51 |
+
target_link_libraries(nana PUBLIC Fontconfig::Fontconfig)
|
52 |
+
endif()
|
53 |
+
|
54 |
+
if(NANA_ENABLE_PNG)
|
55 |
+
find_package(PNG REQUIRED)
|
56 |
+
target_link_libraries(nana PUBLIC PNG::PNG)
|
57 |
+
target_compile_definitions(nana PUBLIC NANA_ENABLE_PNG=1 USE_LIBPNG_FROM_OS=1)
|
58 |
+
endif()
|
59 |
+
|
60 |
+
if(NANA_ENABLE_JPEG)
|
61 |
+
find_package(JPEG REQUIRED)
|
62 |
+
target_include_directories(nana PUBLIC ${JPEG_INCLUDE_DIR})
|
63 |
+
target_link_libraries(nana PUBLIC $<BUILD_INTERFACE:${JPEG_LIBRARIES}>)
|
64 |
+
target_compile_definitions(nana PUBLIC NANA_ENABLE_JPEG=1 USE_LIBJPEG_FROM_OS=1)
|
65 |
+
endif()
|
66 |
+
|
67 |
+
install(TARGETS nana EXPORT nana
|
68 |
+
RUNTIME DESTINATION bin
|
69 |
+
LIBRARY DESTINATION lib
|
70 |
+
ARCHIVE DESTINATION lib)
|
71 |
+
|
72 |
+
if(NANA_INSTALL_HEADERS)
|
73 |
+
install(DIRECTORY include/nana DESTINATION include)
|
74 |
+
endif()
|
75 |
+
|
76 |
+
include(CMakePackageConfigHelpers)
|
77 |
+
|
78 |
+
configure_package_config_file(config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/unofficial-nana-config.cmake
|
79 |
+
INSTALL_DESTINATION share/unofficial-nana)
|
80 |
+
|
81 |
+
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/unofficial-nana-config-version.cmake
|
82 |
+
VERSION ${PROJECT_VERSION} COMPATIBILITY SameMajorVersion)
|
83 |
+
|
84 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-nana-config.cmake DESTINATION share/unofficial-nana)
|
85 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-nana-config-version.cmake DESTINATION share/unofficial-nana)
|
86 |
+
install(EXPORT nana FILE unofficial-nana-targets.cmake NAMESPACE unofficial::nana:: DESTINATION share/unofficial-nana)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/config.cmake.in
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
include(CMakeFindDependencyMacro)
|
3 |
+
|
4 |
+
if(UNIX)
|
5 |
+
find_dependency(Threads)
|
6 |
+
find_dependency(Freetype)
|
7 |
+
find_dependency(X11)
|
8 |
+
find_dependency(Fontconfig)
|
9 |
+
endif()
|
10 |
+
|
11 |
+
option(NANA_ENABLE_PNG "Enable PNG support" @NANA_ENABLE_PNG@)
|
12 |
+
option(NANA_ENABLE_JPEG "Enable JPEG support" @NANA_ENABLE_JPEG@)
|
13 |
+
|
14 |
+
if(NANA_ENABLE_PNG)
|
15 |
+
find_dependency(PNG)
|
16 |
+
endif()
|
17 |
+
|
18 |
+
if(NANA_ENABLE_JPEG)
|
19 |
+
find_dependency(JPEG)
|
20 |
+
endif()
|
21 |
+
|
22 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-nana-targets.cmake")
|
23 |
+
|
24 |
+
if(UNIX)
|
25 |
+
target_link_libraries(unofficial::nana::nana INTERFACE Fontconfig::Fontconfig ${X11_LIBRARIES} ${X11_Xft_LIB})
|
26 |
+
endif()
|
27 |
+
|
28 |
+
if(NANA_ENABLE_JPEG)
|
29 |
+
target_link_libraries(unofficial::nana::nana INTERFACE ${JPEG_LIBRARIES})
|
30 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/fix-build-error.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/system/split_string.cpp b/source/system/split_string.cpp
|
2 |
+
index 8269db6..c40016b 100644
|
3 |
+
--- a/source/system/split_string.cpp
|
4 |
+
+++ b/source/system/split_string.cpp
|
5 |
+
@@ -18,7 +18,7 @@ std::vector<split_string_type> split_string (const split_string_type& text, char
|
6 |
+
sep_pos = text.find(sep, sep_pos);
|
7 |
+
sep_pos = (text.npos == sep_pos ? text.size() : sep_pos);
|
8 |
+
const std::size_t end = sep_pos;
|
9 |
+
- while (sep_pos < text.size() and sep == text[sep_pos]) {
|
10 |
+
+ while (sep_pos < text.size() && sep == text[sep_pos]) {
|
11 |
+
++sep_pos;
|
12 |
+
}
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
4 |
+
message(WARNING "You will need to install Xorg dependencies to use nana:\napt install libx11-dev libxft-dev libxcursor-dev\n")
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO cnjinhao/nana
|
10 |
+
REF 554c4fe87fc31b8ee104228e9117d545d34855b5 # v1.7.4
|
11 |
+
SHA512 d9db8ea1bd47fe663b8e2443a1a3e279760dbd11ef6bc78d9dc8f6fd12f9736b8c8315dfc84d21325e02ad6b2dc3a429593ac80e7610097ddc7253668c383178
|
12 |
+
HEAD_REF develop
|
13 |
+
PATCHES
|
14 |
+
fix-build-error.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
18 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.cmake.in DESTINATION ${SOURCE_PATH})
|
19 |
+
|
20 |
+
vcpkg_configure_cmake(
|
21 |
+
SOURCE_PATH ${SOURCE_PATH}
|
22 |
+
PREFER_NINJA
|
23 |
+
OPTIONS
|
24 |
+
-DNANA_ENABLE_PNG=ON
|
25 |
+
-DNANA_ENABLE_JPEG=ON
|
26 |
+
OPTIONS_DEBUG
|
27 |
+
-DNANA_INSTALL_HEADERS=OFF)
|
28 |
+
|
29 |
+
vcpkg_install_cmake()
|
30 |
+
|
31 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-nana TARGET_PATH share/unofficial-nana)
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nana/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nana",
|
3 |
+
"version-string": "1.7.4",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Cross-platform library for GUI programming in modern C++ style.",
|
6 |
+
"homepage": "https://github.com/cnjinhao/nana",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "fontconfig",
|
10 |
+
"platform": "!uwp & !windows & !mingw"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "freetype",
|
14 |
+
"platform": "!uwp & !windows & !mingw"
|
15 |
+
},
|
16 |
+
"libjpeg-turbo",
|
17 |
+
"libpng"
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nano-signal-slot/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO NoAvailableAlias/nano-signal-slot
|
4 |
+
REF 7e237d75e72501109d1276d7c0c97b33e9d7caf1
|
5 |
+
SHA512 a998e59bfded36d9fe2c88d8f3c5229db4fa3c02062f218267f070f4809f63d0bad07300d3cf1f60141ab84bb1802402ac11de06159df6af460f0be4c47f8b9a
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(GLOB INCLUDES ${SOURCE_PATH}/*.hpp)
|
10 |
+
file(INSTALL ${INCLUDES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
11 |
+
|
12 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nano-signal-slot/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nano-signal-slot",
|
3 |
+
"version-string": "2.0.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Pure C++17 Signals and Slots",
|
6 |
+
"homepage": "https://github.com/NoAvailableAlias/nano-signal-slot",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanobench/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO martinus/nanobench
|
5 |
+
REF v4.3.6
|
6 |
+
SHA512 03e92a9fe903d273ee76c30bb6474c739858f0a65adebdcdd1e4b9ae294bd790a8e20161cb2d493fc1ea2987dbfa25a2a620cf7c3739d909595f81693f1f17d4
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(
|
11 |
+
COPY ${SOURCE_PATH}/src/include/nanobench.h
|
12 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
13 |
+
)
|
14 |
+
|
15 |
+
# Handle copyright
|
16 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanobench/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanobench",
|
3 |
+
"version": "4.3.6",
|
4 |
+
"description": "Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20",
|
5 |
+
"homepage": "https://nanobench.ankerl.com",
|
6 |
+
"license": "MIT"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/add-missing-include.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/nanodbc/nanodbc.cpp b/nanodbc/nanodbc.cpp
|
2 |
+
index e6ca73f..3ad724a 100644
|
3 |
+
--- a/nanodbc/nanodbc.cpp
|
4 |
+
+++ b/nanodbc/nanodbc.cpp
|
5 |
+
@@ -23,6 +23,7 @@
|
6 |
+
#include <cstring>
|
7 |
+
#include <ctime>
|
8 |
+
#include <iomanip>
|
9 |
+
+#include <limits>
|
10 |
+
#include <map>
|
11 |
+
#include <type_traits>
|
12 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/find-unixodbc.patch
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- "a/CMakeLists.txt"
|
2 |
+
+++ "b/CMakeLists.txt"
|
3 |
+
@@ -110,6 +110,13 @@ message(STATUS "nanodbc feature: Enable SQL_NO_DATA bug workaround - ${NANODBC_E
|
4 |
+
## find unixODBC or iODBC config binary
|
5 |
+
########################################
|
6 |
+
if(UNIX)
|
7 |
+
+ # Try to find unixodbc package first
|
8 |
+
+ find_package(unixodbc)
|
9 |
+
+ if(unixodbc_FOUND)
|
10 |
+
+ message(STATUS "nanodbc build: unixODBC package found")
|
11 |
+
+ set(ODBCLIB UNIX::odbc)
|
12 |
+
+ set(ODBC_CONFIG true)
|
13 |
+
+ else()
|
14 |
+
# Try to find unixODBC first via odbc_config program.
|
15 |
+
find_program(ODBC_CONFIG odbc_config
|
16 |
+
PATHS $ENV{ODBC_PATH}/bin /usr/bin /usr/local/bin)
|
17 |
+
@@ -158,6 +165,7 @@ if(UNIX)
|
18 |
+
endif()
|
19 |
+
endif()
|
20 |
+
endif()
|
21 |
+
+ endif()
|
22 |
+
|
23 |
+
if(NOT ODBC_CONFIG)
|
24 |
+
message(FATAL_ERROR "can not find a suitable odbc driver manager")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Only static libraries are supported.
|
2 |
+
# See https://github.com/nanodbc/nanodbc/issues/13
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO nanodbc/nanodbc
|
8 |
+
REF 7404a4dd7697e188df5724ab95a7553d2fc404eb # v2.13.0
|
9 |
+
SHA512 35ca098e783d771f3df611bce84e9b8207a6a5b72c492d2f3909977bc91a7c22bb262c34768b0d97ebfbdf12eeda0214064a8ea171e7bdda7b759f93ff346f45
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
rename-version.patch
|
13 |
+
add-missing-include.patch
|
14 |
+
find-unixodbc.patch
|
15 |
+
)
|
16 |
+
file(RENAME "${SOURCE_PATH}/VERSION" "${SOURCE_PATH}/VERSION.txt")
|
17 |
+
|
18 |
+
if(DEFINED NANODBC_ODBC_VERSION)
|
19 |
+
set(NANODBC_ODBC_VERSION -DNANODBC_ODBC_VERSION=${NANODBC_ODBC_VERSION})
|
20 |
+
endif()
|
21 |
+
|
22 |
+
vcpkg_cmake_configure(
|
23 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
24 |
+
OPTIONS
|
25 |
+
-DNANODBC_DISABLE_EXAMPLES=ON
|
26 |
+
-DNANODBC_DISABLE_TESTS=ON
|
27 |
+
-DNANODBC_ENABLE_UNICODE=OFF
|
28 |
+
${NANODBC_ODBC_VERSION}
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_cmake_install()
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
34 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
35 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
36 |
+
else()
|
37 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
38 |
+
endif()
|
39 |
+
|
40 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/rename-version.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -20,8 +20,8 @@
|
4 |
+
########################################
|
5 |
+
## nanodbc version
|
6 |
+
########################################
|
7 |
+
-file(STRINGS VERSION NANODBC_VERSION REGEX "[0-9]+\\.[0-9]+\\.[0-9]+")
|
8 |
+
+file(STRINGS "VERSION.txt" NANODBC_VERSION REGEX "[0-9]+\\.[0-9]+\\.[0-9]+")
|
9 |
+
string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+" "\\1" NANODBC_VERSION_MAJOR "${NANODBC_VERSION}")
|
10 |
+
string(REGEX REPLACE "^[0-9]+\\.([0-9])+\\.[0-9]+" "\\1" NANODBC_VERSION_MINOR "${NANODBC_VERSION}")
|
11 |
+
string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+)" "\\1" NANODBC_VERSION_PATCH "${NANODBC_VERSION}")
|
12 |
+
message(STATUS "nanodbc version: ${NANODBC_VERSION}")
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanodbc/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanodbc",
|
3 |
+
"version": "2.13.0",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "A small C++ wrapper for the native C ODBC API.",
|
6 |
+
"homepage": "https://github.com/nanodbc/nanodbc",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "unixodbc",
|
10 |
+
"platform": "!windows"
|
11 |
+
},
|
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/nanoflann/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jlblancoc/nanoflann
|
4 |
+
REF v1.3.2
|
5 |
+
SHA512 937D3787DF389EFE530060CD2723130251E2CA7937B10F8D770C7B0D21FFD972E6DA21B2B9E655C5740D57B4AF8F76F0CC6D9AE39527C440BE8863BE0DEAA7ED
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_install()
|
14 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
15 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
16 |
+
|
17 |
+
# Handle copyright
|
18 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
19 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanoflann/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanoflann",
|
3 |
+
"version": "1.3.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "nanoflann is a C++11 header-only library for building KD-Trees of datasets with different topologies: R2, R3 (point clouds), SO(2) and SO(3) (2D and 3D rotation groups).",
|
6 |
+
"homepage": "https://github.com/jlblancoc/nanoflann",
|
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/nanogui/fix-cmakelists.patch
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8c59277..3fe6f5d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -11,11 +11,7 @@ if (POLICY CMP0058)
|
6 |
+
cmake_policy(SET CMP0058 NEW)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
-if (NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ext/glfw/src")
|
10 |
+
- message(FATAL_ERROR "The NanoGUI dependency repositories (GLFW, etc.) are missing! "
|
11 |
+
- "You probably did not clone the project with --recursive. It is possible to recover "
|
12 |
+
- "by calling \"git submodule update --init --recursive\"")
|
13 |
+
-endif()
|
14 |
+
+
|
15 |
+
|
16 |
+
if (WIN32)
|
17 |
+
set(NANOGUI_USE_GLAD_DEFAULT ON)
|
18 |
+
@@ -78,13 +74,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
19 |
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
-add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/ext/glfw" "ext_build/glfw")
|
23 |
+
# Two targets have now been defined: `glfw_objects`, which will be merged into
|
24 |
+
# NanoGUI at the end, and `glfw`. The `glfw` target is the library itself
|
25 |
+
# (e.g., libglfw.so), but can be skipped as we do not need to link against it
|
26 |
+
# (because we merge `glfw_objects` into NanoGUI). Skipping is required for
|
27 |
+
# XCode, but preferable for all build systems (reduces build artifacts).
|
28 |
+
-set_target_properties(glfw PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
|
29 |
+
|
30 |
+
# Python support: add NANOGUI_PYTHON flag to all targets
|
31 |
+
if (NANOGUI_BUILD_PYTHON)
|
32 |
+
@@ -310,7 +304,6 @@ add_definitions(${NANOGUI_EXTRA_DEFS})
|
33 |
+
# Compile main NanoGUI library
|
34 |
+
add_library(nanogui-obj OBJECT
|
35 |
+
# Merge NanoVG into the NanoGUI library
|
36 |
+
- ext/nanovg/src/nanovg.c
|
37 |
+
# Merge GLAD into the NanoGUI library (only if needed)
|
38 |
+
${LIBNANOGUI_EXTRA_SOURCE}
|
39 |
+
# Fonts etc.
|
40 |
+
@@ -352,6 +345,11 @@ add_library(nanogui-obj OBJECT
|
41 |
+
src/serializer.cpp
|
42 |
+
)
|
43 |
+
|
44 |
+
+find_path(EIGEN_INCLUDE_DIR Eigen/Core)
|
45 |
+
+target_include_directories(nanogui-obj PRIVATE ${EIGEN_INCLUDE_DIR})
|
46 |
+
+find_path(STB_INCLUDE_DIR stb_image.h)
|
47 |
+
+target_include_directories(nanogui-obj PRIVATE ${STB_INCLUDE_DIR})
|
48 |
+
+
|
49 |
+
# XCode has a serious bug where the XCode project produces an invalid target
|
50 |
+
# that will not get linked if it consists only of objects from object libraries,
|
51 |
+
# it will not generate any products (executables, libraries). The only work
|
52 |
+
@@ -363,15 +361,18 @@ if (CMAKE_GENERATOR STREQUAL Xcode)
|
53 |
+
add_library(nanogui ${NANOGUI_LIBRARY_TYPE}
|
54 |
+
${XCODE_DUMMY}
|
55 |
+
$<TARGET_OBJECTS:nanogui-obj>
|
56 |
+
- $<TARGET_OBJECTS:glfw_objects>
|
57 |
+
)
|
58 |
+
else()
|
59 |
+
add_library(nanogui ${NANOGUI_LIBRARY_TYPE}
|
60 |
+
$<TARGET_OBJECTS:nanogui-obj>
|
61 |
+
- $<TARGET_OBJECTS:glfw_objects>
|
62 |
+
)
|
63 |
+
endif()
|
64 |
+
|
65 |
+
+find_package(nanovg CONFIG REQUIRED)
|
66 |
+
+find_package(Eigen3 CONFIG REQUIRED)
|
67 |
+
+find_package(glfw3 CONFIG REQUIRED)
|
68 |
+
+target_link_libraries(nanogui glfw nanovg::nanovg Eigen3::Eigen)
|
69 |
+
+
|
70 |
+
if (NANOGUI_BUILD_SHARED)
|
71 |
+
set_property(TARGET nanogui-obj PROPERTY POSITION_INDEPENDENT_CODE ON)
|
72 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanogui/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO wjakob/nanogui
|
4 |
+
REF e9ec8a1a9861cf578d9c6e85a6420080aa715c03 #Commits on Sep 23, 2019
|
5 |
+
SHA512 36c93bf977862ced2df4030211e2b83625e60a11fc9fdb6c1f2996bb234758331d3f41a7fbafd25a5bca0239ed9bac9c93446a4a7fac4c5e6d7943af2be3e14a
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-cmakelists.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
OPTIONS
|
14 |
+
-DNANOGUI_EIGEN_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include/eigen3
|
15 |
+
-DEIGEN_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include/eigen3
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
21 |
+
|
22 |
+
# Handle copyright
|
23 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanogui/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanogui",
|
3 |
+
"version-date": "2019-09-23",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "NanoGUI is a minimalistic cross-platform widget library for OpenGL 3.x or higher.",
|
6 |
+
"homepage": "https://github.com/wjakob/nanogui",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"eigen3",
|
10 |
+
"glfw3",
|
11 |
+
"nanovg"
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanomsg/portfile.cmake
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO nanomsg/nanomsg
|
4 |
+
REF 1.1.5
|
5 |
+
SHA512 773b8e169a7accac21414c63972423a249164f5b843c6c65c1b03a2eb90d21da788a98debdeb396dab795e52d30605696bc2cf65e5e05687bf115438d5b22717
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" NN_STATIC_LIB)
|
10 |
+
|
11 |
+
if("tool" IN_LIST FEATURES)
|
12 |
+
set(NN_ENABLE_NANOCAT ON)
|
13 |
+
else()
|
14 |
+
set(NN_ENABLE_NANOCAT OFF)
|
15 |
+
endif()
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE
|
22 |
+
-DNN_STATIC_LIB=${NN_STATIC_LIB}
|
23 |
+
-DNN_TESTS=OFF
|
24 |
+
-DNN_TOOLS=OFF
|
25 |
+
-DNN_ENABLE_DOC=OFF
|
26 |
+
-DNN_ENABLE_NANOCAT=${NN_ENABLE_NANOCAT}
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_install_cmake()
|
30 |
+
|
31 |
+
file(STRINGS ${SOURCE_PATH}/.version NN_PACKAGE_VERSION)
|
32 |
+
|
33 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nanomsg-${NN_PACKAGE_VERSION})
|
34 |
+
|
35 |
+
vcpkg_replace_string(
|
36 |
+
${CURRENT_PACKAGES_DIR}/share/${PORT}/nanomsg-config.cmake
|
37 |
+
"lib/cmake/nanomsg-${NN_PACKAGE_VERSION}"
|
38 |
+
"share/nanomsg"
|
39 |
+
)
|
40 |
+
|
41 |
+
if(NN_ENABLE_NANOCAT)
|
42 |
+
vcpkg_copy_tools(TOOL_NAMES nanocat AUTO_CLEAN)
|
43 |
+
endif()
|
44 |
+
|
45 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
46 |
+
|
47 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
48 |
+
vcpkg_replace_string(
|
49 |
+
${CURRENT_PACKAGES_DIR}/include/nanomsg/nn.h
|
50 |
+
"defined(NN_STATIC_LIB)"
|
51 |
+
"1 // defined(NN_STATIC_LIB)"
|
52 |
+
)
|
53 |
+
|
54 |
+
vcpkg_replace_string(
|
55 |
+
${CURRENT_PACKAGES_DIR}/share/${PORT}/nanomsg-config.cmake
|
56 |
+
"set_and_check(nanomsg_BINDIR \${PACKAGE_PREFIX_DIR}/bin)"
|
57 |
+
""
|
58 |
+
)
|
59 |
+
endif()
|
60 |
+
|
61 |
+
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
62 |
+
|
63 |
+
vcpkg_copy_pdbs()
|
64 |
+
|
65 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nanomsg/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanomsg",
|
3 |
+
"version-string": "1.1.5",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": [
|
6 |
+
"a simple high-performance implementation of several \"scalability protocols\".",
|
7 |
+
"These scalability protocols are light-weight messaging protocols which can be used to solve a number of very common messaging patterns, such as request/reply, publish/subscribe, surveyor/respondent, and so forth. These protocols can run over a variety of transports such as TCP, UNIX sockets, and even WebSocket."
|
8 |
+
],
|
9 |
+
"features": {
|
10 |
+
"tool": {
|
11 |
+
"description": "nanomsg tool (nanocat)"
|
12 |
+
}
|
13 |
+
}
|
14 |
+
}
|