Spaces:
Sleeping
Sleeping
41539f18632dfe674299e1f88b93269d773df823099702a9ac71bc6a781266fc
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/CMakeLists.txt +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/fix-sweep-h-codepage.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/FindCLIPPER.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/fix_targets.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/portfile.cmake +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/vcpkg-cmake-wrapper.cmake +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyhook2/portfile.cmake +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyhook2/vcpkg.json +64 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/001_no_catch_submodule.patch +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/002_fixed_config.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/github-121.patch +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/no-install-unused.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/portfile.cmake +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/cmake-project-include.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/export-unofficial-poppler.patch +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/portfile.cmake +76 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/unofficial-poppler-config.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/usage +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/vcpkg.json +83 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/popsift/fix_missing_thrust_include.patch +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/popsift/portfile.cmake +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/popsift/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portable-snippets/CMakeLists.txt +96 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portable-snippets/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portable-snippets/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portaudio/fix-library-can-not-be-found.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portaudio/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portaudio/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portmidi/portfile.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portmidi/vcpkg.json +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portsmf/portfile.cmake +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/portsmf/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppconsul/cmake_build.patch +70 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppconsul/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppconsul/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppmagic/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppmagic/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/pprint/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/pprint/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/CMakeLists.txt +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/LICENSE +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/fix-math-functions.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/vcpkg.json +7 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/CMakeLists.txt
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
|
3 |
+
project(poly2tri LANGUAGES C CXX)
|
4 |
+
|
5 |
+
set(INSTALL_BIN_DIR "bin" CACHE PATH "Path where exe and dll will be installed")
|
6 |
+
set(INSTALL_LIB_DIR "lib" CACHE PATH "Path where lib will be installed")
|
7 |
+
set(INSTALL_INCLUDE_DIR "include/${PROJECT_NAME}" CACHE PATH "Path where headers will be installed")
|
8 |
+
set(INSTALL_CMAKE_DIR "share/${PROJECT_NAME}" CACHE PATH "Path where cmake configs will be installed")
|
9 |
+
|
10 |
+
set(${PROJECT_NAME}_HEADERS
|
11 |
+
"poly2tri/poly2tri.h"
|
12 |
+
)
|
13 |
+
|
14 |
+
set(${PROJECT_NAME}_COMMON_HEADERS
|
15 |
+
"poly2tri/common/shapes.h"
|
16 |
+
"poly2tri/common/utils.h"
|
17 |
+
)
|
18 |
+
|
19 |
+
set(${PROJECT_NAME}_SWEEP_HEADERS
|
20 |
+
"poly2tri/sweep/advancing_front.h"
|
21 |
+
"poly2tri/sweep/cdt.h"
|
22 |
+
"poly2tri/sweep/sweep.h"
|
23 |
+
"poly2tri/sweep/sweep_context.h"
|
24 |
+
)
|
25 |
+
|
26 |
+
set(${PROJECT_NAME}_SOURCES
|
27 |
+
"poly2tri/common/shapes.cc"
|
28 |
+
"poly2tri/sweep/advancing_front.cc"
|
29 |
+
"poly2tri/sweep/cdt.cc"
|
30 |
+
"poly2tri/sweep/sweep.cc"
|
31 |
+
"poly2tri/sweep/sweep_context.cc"
|
32 |
+
)
|
33 |
+
|
34 |
+
add_library(${PROJECT_NAME} "${${PROJECT_NAME}_HEADERS}" "${${PROJECT_NAME}_COMMON_HEADERS}" "${${PROJECT_NAME}_SWEEP_HEADERS}" "${${PROJECT_NAME}_SOURCES}")
|
35 |
+
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "${${PROJECT_NAME}_HEADERS}")
|
36 |
+
target_include_directories(${PROJECT_NAME} PUBLIC
|
37 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/poly2tri>
|
38 |
+
$<INSTALL_INTERFACE:include>
|
39 |
+
$<INSTALL_INTERFACE:include/${PROJECT_NAME}>
|
40 |
+
)
|
41 |
+
|
42 |
+
install(FILES ${${PROJECT_NAME}_COMMON_HEADERS} DESTINATION "${INSTALL_INCLUDE_DIR}/common")
|
43 |
+
install(FILES ${${PROJECT_NAME}_SWEEP_HEADERS} DESTINATION "${INSTALL_INCLUDE_DIR}/sweep")
|
44 |
+
|
45 |
+
install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Targets
|
46 |
+
RUNTIME DESTINATION "${INSTALL_BIN_DIR}"
|
47 |
+
LIBRARY DESTINATION "${INSTALL_LIB_DIR}"
|
48 |
+
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}"
|
49 |
+
PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}"
|
50 |
+
COMPONENT dev
|
51 |
+
)
|
52 |
+
|
53 |
+
install (EXPORT ${PROJECT_NAME}Targets
|
54 |
+
FILE ${PROJECT_NAME}Config.cmake
|
55 |
+
NAMESPACE ${PROJECT_NAME}::
|
56 |
+
DESTINATION "${INSTALL_CMAKE_DIR}"
|
57 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/fix-sweep-h-codepage.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/poly2tri/sweep/sweep.h b/poly2tri/sweep/sweep.h
|
2 |
+
index f62c4cc..af8af69 100644
|
3 |
+
--- a/poly2tri/sweep/sweep.h
|
4 |
+
+++ b/poly2tri/sweep/sweep.h
|
5 |
+
@@ -33,7 +33,7 @@
|
6 |
+
* Zalik, B.(2008)'Sweep-line algorithm for constrained Delaunay triangulation',
|
7 |
+
* International Journal of Geographical Information Science
|
8 |
+
*
|
9 |
+
- * "FlipScan" Constrained Edge Algorithm invented by Thomas �hl�n, [email protected]
|
10 |
+
+ * "FlipScan" Constrained Edge Algorithm invented by Thomas, [email protected]
|
11 |
+
*/
|
12 |
+
|
13 |
+
#ifndef SWEEP_H
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/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 greenm01/poly2tri
|
6 |
+
REF 88de49021b6d9bef6faa1bc94ceb3fbd85c3c204
|
7 |
+
SHA512 fa256bcf923ad59f42205edf5a7e07cac6cbd9a37cefb9a0961a2e06aea7fa8ffd09d4e26154c0028601c12804483842cb935d9f602385f5f203c9628382c4fb
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-sweep-h-codepage.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_cmake_config_fixup()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
24 |
+
|
25 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poly2tri/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "poly2tri",
|
3 |
+
"version-string": "2020-07-21",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.",
|
6 |
+
"homepage": "https://github.com/greenm01/poly2tri",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/FindCLIPPER.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Distributed under the OSI-approved BSD 3-Clause License.
|
2 |
+
|
3 |
+
#.rst:
|
4 |
+
# FindCLIPPER
|
5 |
+
# --------
|
6 |
+
#
|
7 |
+
# Result Variables
|
8 |
+
# ^^^^^^^^^^^^^^^^
|
9 |
+
#
|
10 |
+
# This module will set the following variables in your project::
|
11 |
+
#
|
12 |
+
# ``CLIPPER_FOUND``
|
13 |
+
# True if CLIPPER found on the local system
|
14 |
+
#
|
15 |
+
# ``CLIPPER_INCLUDE_DIRS``
|
16 |
+
# Location of CLIPPER header files.
|
17 |
+
#
|
18 |
+
# ``CLIPPER_LIBRARIES``
|
19 |
+
# The clipper libraries.
|
20 |
+
#
|
21 |
+
|
22 |
+
include(FindPackageHandleStandardArgs)
|
23 |
+
include(SelectLibraryConfigurations)
|
24 |
+
|
25 |
+
if(NOT CLIPPER_INCLUDE_DIR)
|
26 |
+
find_path(CLIPPER_INCLUDE_DIR clipper.hpp
|
27 |
+
PATH_SUFFIXES polyclipping)
|
28 |
+
endif()
|
29 |
+
|
30 |
+
if(NOT CLIPPER_LIBRARY)
|
31 |
+
find_library(CLIPPER_LIBRARY_RELEASE NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH)
|
32 |
+
find_library(CLIPPER_LIBRARY_DEBUG NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH)
|
33 |
+
select_library_configurations(CLIPPER)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
mark_as_advanced(CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR)
|
37 |
+
|
38 |
+
find_package_handle_standard_args(CLIPPER
|
39 |
+
REQUIRED_VARS CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR
|
40 |
+
)
|
41 |
+
|
42 |
+
if(CLIPPER_FOUND)
|
43 |
+
set(CLIPPER_LIBRARIES ${CLIPPER_LIBRARY})
|
44 |
+
set(CLIPPER_INCLUDE_DIRS ${CLIPPER_INCLUDE_DIR})
|
45 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/fix_targets.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
|
2 |
+
index f0ed7e8..a5ed444 100644
|
3 |
+
--- a/cpp/CMakeLists.txt
|
4 |
+
+++ b/cpp/CMakeLists.txt
|
5 |
+
@@ -19,3 +19,12 @@ INSTALL (TARGETS polyclipping LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
6 |
+
INSTALL (FILES "${PCFILE}" DESTINATION "${CMAKE_INSTALL_PKGCONFIGDIR}")
|
7 |
+
|
8 |
+
SET_TARGET_PROPERTIES(polyclipping PROPERTIES VERSION 22.0.0 SOVERSION 22 )
|
9 |
+
+
|
10 |
+
+install(TARGETS polyclipping EXPORT polyclippingConfig)
|
11 |
+
+
|
12 |
+
+install(
|
13 |
+
+ EXPORT polyclippingConfig
|
14 |
+
+ NAMESPACE polyclipping::
|
15 |
+
+ DESTINATION share/polyclipping
|
16 |
+
+)
|
17 |
+
+target_include_directories(polyclipping PUBLIC $<INSTALL_INTERFACE:include>)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO polyclipping
|
6 |
+
FILENAME "clipper_ver6.4.2.zip"
|
7 |
+
NO_REMOVE_ONE_LEVEL
|
8 |
+
SHA512 ffc88818c44a38aa278d5010db6cfd505796f39664919f1e48c7fa9267563f62135868993e88f7246dcd688241d1172878e4a008a390648acb99738452e3e5dd
|
9 |
+
PATCHES
|
10 |
+
fix_targets.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}/cpp
|
15 |
+
PREFER_NINJA
|
16 |
+
)
|
17 |
+
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
vcpkg_fixup_cmake_targets()
|
21 |
+
|
22 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
23 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
24 |
+
endif()
|
25 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
26 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
27 |
+
endif()
|
28 |
+
vcpkg_fixup_pkgconfig()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
31 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
32 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/FindCLIPPER.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/clipper)
|
33 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/clipper)
|
34 |
+
|
35 |
+
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
36 |
+
|
37 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
list(REMOVE_ITEM ARGS "NO_MODULE")
|
2 |
+
list(REMOVE_ITEM ARGS "CONFIG")
|
3 |
+
list(REMOVE_ITEM ARGS "MODULE")
|
4 |
+
|
5 |
+
set(clipper_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
6 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
7 |
+
|
8 |
+
_find_package(${ARGS})
|
9 |
+
|
10 |
+
set(CMAKE_MODULE_PATH ${clipper_PREV_MODULE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyclipping/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "polyclipping",
|
3 |
+
"version-string": "6.4.2",
|
4 |
+
"port-version": 10,
|
5 |
+
"description": "The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.",
|
6 |
+
"homepage": "https://sourceforge.net/projects/polyclipping/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyhook2/portfile.cmake
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO stevemk14ebr/PolyHook_2_0
|
4 |
+
REF 750e78f8d7ebfc291e1c0dce3a0763c3a4b86737
|
5 |
+
SHA512 c542288cfde258bcb54960593f2b596b6a967cf128a691e4b8ad699127567c58dc55ce2bbf21f4d3ccbaa2d794bcacd3540503b039ee58c614a854f13d51d30e
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
capstone POLYHOOK_DISASM_CAPSTONE
|
12 |
+
zydis POLYHOOK_DISASM_ZYDIS
|
13 |
+
exception POLYHOOK_FEATURE_EXCEPTION
|
14 |
+
detours POLYHOOK_FEATURE_DETOURS
|
15 |
+
inlinentd POLYHOOK_FEATURE_INLINENTD
|
16 |
+
pe POLYHOOK_FEATURE_PE
|
17 |
+
virtuals POLYHOOK_FEATURE_VIRTUALS
|
18 |
+
)
|
19 |
+
|
20 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIB)
|
21 |
+
|
22 |
+
if (VCPKG_CRT_LINKAGE STREQUAL "static")
|
23 |
+
set(BUILD_STATIC_RUNTIME ON)
|
24 |
+
else()
|
25 |
+
set(BUILD_STATIC_RUNTIME OFF)
|
26 |
+
endif()
|
27 |
+
|
28 |
+
vcpkg_cmake_configure(
|
29 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
30 |
+
OPTIONS ${FEATURE_OPTIONS}
|
31 |
+
-DPOLYHOOK_BUILD_SHARED_LIB=${BUILD_SHARED_LIB}
|
32 |
+
-DPOLYHOOK_BUILD_STATIC_RUNTIME=${BUILD_STATIC_RUNTIME}
|
33 |
+
-DPOLYHOOK_USE_EXTERNAL_ASMJIT=ON
|
34 |
+
-DPOLYHOOK_USE_EXTERNAL_CAPSTONE=ON
|
35 |
+
-DPOLYHOOK_USE_EXTERNAL_ZYDIS=ON
|
36 |
+
)
|
37 |
+
|
38 |
+
vcpkg_cmake_install()
|
39 |
+
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
41 |
+
|
42 |
+
vcpkg_copy_pdbs()
|
43 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME PolyHook_2 CONFIG_PATH lib/PolyHook_2)
|
44 |
+
|
45 |
+
# Handle copyright
|
46 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polyhook2/vcpkg.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "polyhook2",
|
3 |
+
"version-date": "2022-03-01",
|
4 |
+
"description": "C++17, x86/x64 Hooking Library v2.0",
|
5 |
+
"homepage": "https://github.com/stevemk14ebr/PolyHook_2_0",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!(arm | uwp | linux | osx)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"default-features": [
|
19 |
+
"capstone",
|
20 |
+
"detours",
|
21 |
+
"exception",
|
22 |
+
"inlinentd",
|
23 |
+
"pe",
|
24 |
+
"virtuals",
|
25 |
+
"zydis"
|
26 |
+
],
|
27 |
+
"features": {
|
28 |
+
"capstone": {
|
29 |
+
"description": "Capstone disassembler integration.",
|
30 |
+
"dependencies": [
|
31 |
+
{
|
32 |
+
"name": "capstone",
|
33 |
+
"features": [
|
34 |
+
"x86"
|
35 |
+
]
|
36 |
+
}
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"detours": {
|
40 |
+
"description": "Implement detour functionality"
|
41 |
+
},
|
42 |
+
"exception": {
|
43 |
+
"description": "Implement all exception hooking functionality"
|
44 |
+
},
|
45 |
+
"inlinentd": {
|
46 |
+
"description": "Support inline hooks without specifying typedefs by generating callback stubs at runtime with AsmJit",
|
47 |
+
"dependencies": [
|
48 |
+
"asmjit"
|
49 |
+
]
|
50 |
+
},
|
51 |
+
"pe": {
|
52 |
+
"description": "Implement all win pe hooking functionality"
|
53 |
+
},
|
54 |
+
"virtuals": {
|
55 |
+
"description": "Implement all virtual table hooking functionality"
|
56 |
+
},
|
57 |
+
"zydis": {
|
58 |
+
"description": "Zydis disassembler integration.",
|
59 |
+
"dependencies": [
|
60 |
+
"zydis"
|
61 |
+
]
|
62 |
+
}
|
63 |
+
}
|
64 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/001_no_catch_submodule.patch
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git C:/Users/Charles Barto/Source/vcpkg/buildtrees/polymorphic-value/src/1.3.0-33dc249788/CMakeLists.txt C:/Users/Charles Barto/patched_list.txt
|
2 |
+
index 2819bf6a4..0ee5fba76 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -9,9 +9,9 @@ set(POLYMOPHIC_VALUE_VERSION "1.3.0") # Revision 3, see paper p0201r3
|
6 |
+
project(polymorphic_value VERSION ${POLYMOPHIC_VALUE_VERSION})
|
7 |
+
|
8 |
+
option(ENABLE_SANITIZERS "Enable Address Sanitizer and Undefined Behaviour Sanitizer if available" OFF)
|
9 |
+
-
|
10 |
+
+if(BUILD_TESTING)
|
11 |
+
add_subdirectory(externals/catch)
|
12 |
+
-
|
13 |
+
+endif()
|
14 |
+
add_library(polymorphic_value INTERFACE)
|
15 |
+
target_include_directories(polymorphic_value
|
16 |
+
INTERFACE
|
17 |
+
@@ -45,6 +45,7 @@ target_compile_features(polymorphic_value
|
18 |
+
add_library(polymorphic_value::polymorphic_value ALIAS polymorphic_value)
|
19 |
+
|
20 |
+
if(POLYMORPHIC_IS_NOT_SUBPROJECT)
|
21 |
+
+ if(BUILD_TESTING)
|
22 |
+
add_executable(test_polymorphic_value test_polymorphic_value.cpp)
|
23 |
+
target_link_libraries(test_polymorphic_value
|
24 |
+
PRIVATE
|
25 |
+
@@ -107,7 +108,7 @@ if(POLYMORPHIC_IS_NOT_SUBPROJECT)
|
26 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/externals/catch/contrib)
|
27 |
+
include(Catch)
|
28 |
+
catch_discover_tests(test_polymorphic_value)
|
29 |
+
-
|
30 |
+
+ endif()
|
31 |
+
install(
|
32 |
+
FILES
|
33 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/polymorphic_value.h"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/002_fixed_config.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/./broken_config.cmake.in b/./fixed_config.cmake.in
|
2 |
+
index e64f8a20f..38c441451 100644
|
3 |
+
--- a/polymorphic_value-config.cmake.in
|
4 |
+
+++ b/polymorphic_value-config.cmake.in
|
5 |
+
@@ -1,5 +1,7 @@
|
6 |
+
@PACKAGE_INIT@
|
7 |
+
|
8 |
+
-set_and_check(POLYMORPHIC_VALUE_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
9 |
+
|
10 |
+
-check_required_components(Foo)
|
11 |
+
+
|
12 |
+
+check_required_components(polymorphic_value)
|
13 |
+
+
|
14 |
+
+include(${CMAKE_CURRENT_LIST_DIR}/polymorphic_value-target.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jbcoe/polymorphic_value
|
4 |
+
REF 1.3.0
|
5 |
+
SHA512 67d49933c46d2a2bccb68c65c6f28b92603e193c68ff434b2c6b1602a573855a176fc98227d85cd24a64ae9299461adb42e792b4f165482bb250488620161742
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES 001_no_catch_submodule.patch
|
8 |
+
002_fixed_config.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS
|
15 |
+
-DBUILD_TESTING=OFF
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
if(VCPKG_HEAD_VERSION)
|
20 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/polymorphic_value TARGET_PATH share/polymorphic_value)
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
22 |
+
else()
|
23 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/polymorphic_value)
|
24 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/LICENSE.txt")
|
25 |
+
endif()
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
27 |
+
file(
|
28 |
+
INSTALL ${SOURCE_PATH}/LICENSE.txt
|
29 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
30 |
+
RENAME copyright
|
31 |
+
)
|
32 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/polymorphic-value/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "polymorphic-value",
|
3 |
+
"version-string": "1.3.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A polymorphic value-type for C++",
|
6 |
+
"homepage": "https://github.com/jbcoe/polymorphic_value"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/github-121.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 83b292f263b92082e981a82f5777d927a61772ee Mon Sep 17 00:00:00 2001
|
2 |
+
From: Cheney-Wang <[email protected]>
|
3 |
+
Date: Fri, 13 Mar 2020 02:50:33 -0700
|
4 |
+
Subject: [PATCH] Include <ostream> in config.h
|
5 |
+
|
6 |
+
---
|
7 |
+
include/ponder/config.hpp | 1 +
|
8 |
+
1 file changed, 1 insertion(+)
|
9 |
+
|
10 |
+
diff --git a/include/ponder/config.hpp b/include/ponder/config.hpp
|
11 |
+
index cd035c19..814403cd 100644
|
12 |
+
--- a/include/ponder/config.hpp
|
13 |
+
+++ b/include/ponder/config.hpp
|
14 |
+
@@ -60,6 +60,7 @@
|
15 |
+
#if defined(_MSC_VER)
|
16 |
+
#pragma warning(disable: 4275) // non dll-interface class 'X' used as base for dll-interface class 'Y'
|
17 |
+
#pragma warning(disable: 4251) // class 'X' needs to have dll-interface to be used by clients of class 'Y'
|
18 |
+
+ #include <ostream> //In future MSVC, <string> doesn't transitively <ostream>, ponder will compile failed with error C2027 and C2065, so add <ostream> for fixing these issues.
|
19 |
+
#endif
|
20 |
+
|
21 |
+
#if defined(__GNUC__) && __GNUC__ <= 4 && __GNUC_MINOR__ < 9
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/no-install-unused.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 091f56d..715f86e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -325,14 +325,14 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PonderConfig.cmake ${CMAKE_CURRENT_BIN
|
6 |
+
COMPONENT devel
|
7 |
+
)
|
8 |
+
|
9 |
+
-install(FILES README.md COPYING.txt
|
10 |
+
- DESTINATION ${INSTALL_MISC_DIR}
|
11 |
+
-)
|
12 |
+
-
|
13 |
+
-install(DIRECTORY cmake
|
14 |
+
- DESTINATION ${INSTALL_MISC_DIR}
|
15 |
+
- COMPONENT utils
|
16 |
+
-)
|
17 |
+
+#install(FILES README.md COPYING.txt
|
18 |
+
+# DESTINATION ${INSTALL_MISC_DIR}
|
19 |
+
+#)
|
20 |
+
+
|
21 |
+
+#install(DIRECTORY cmake
|
22 |
+
+# DESTINATION ${INSTALL_MISC_DIR}
|
23 |
+
+# COMPONENT utils
|
24 |
+
+#)
|
25 |
+
|
26 |
+
###############################
|
27 |
+
# packaging
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO billyquith/ponder
|
4 |
+
REF 3.0.0
|
5 |
+
SHA512 b6ba1ce9fa0584b16085c56afb70e31f204a66b57193c1a4225bfe18abbda561bb71b3279dd0a4f1b21867b985ef5ce78c8e360f3fc654c61ce61c44d35c5f38
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
no-install-unused.patch
|
9 |
+
github-121.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
DISABLE_PARALLEL_CONFIGURE
|
15 |
+
OPTIONS
|
16 |
+
-DUSES_RAPIDJSON=OFF
|
17 |
+
-DUSES_RAPIDXML=OFF
|
18 |
+
-DBUILD_TEST=OFF
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
|
23 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/${PORT}/cmake)
|
24 |
+
vcpkg_fixup_pkgconfig()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE
|
27 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
28 |
+
"${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}"
|
29 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
30 |
+
"${CURRENT_PACKAGES_DIR}/lib/${PORT}"
|
31 |
+
)
|
32 |
+
|
33 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
34 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/${PORT}/config.hpp" "ifndef PONDER_STATIC" "if 0 //ifndef PONDER_STATIC")
|
35 |
+
endif()
|
36 |
+
|
37 |
+
# Handle copyright
|
38 |
+
configure_file("${SOURCE_PATH}/COPYING.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
39 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ponder/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ponder",
|
3 |
+
"version-string": "3.0.0",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "A C++ multi-purpose reflection library.",
|
6 |
+
"homepage": "https://github.com/billyquith/ponder",
|
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/poppler/cmake-project-include.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if("${FONT_CONFIGURATION}" STREQUAL "fontconfig")
|
2 |
+
# Poppler uses different variable names than CMake.
|
3 |
+
find_package(Fontconfig REQUIRED)
|
4 |
+
set(FONTCONFIG_DEFINITIONS "")
|
5 |
+
set(FONTCONFIG_INCLUDE_DIR "${Fontconfig_INCLUDE_DIRS}")
|
6 |
+
set(FONTCONFIG_LIBRARIES "Fontconfig::Fontconfig")
|
7 |
+
endif()
|
8 |
+
|
9 |
+
# Poppler uses different variable names than CMake,
|
10 |
+
# plus ICONV_SECOND_ARGUMENT_IS_CONST
|
11 |
+
find_package(Iconv REQUIRED)
|
12 |
+
set(ICONV_INCLUDE_DIR "${Iconv_INCLUDE_DIR}")
|
13 |
+
set(ICONV_LIBRARIES "${Iconv_LIBRARIES}")
|
14 |
+
|
15 |
+
# Create helper file for iconv usage requirement
|
16 |
+
set(poppler_iconv [[
|
17 |
+
Name: poppler-vcpkg-iconv
|
18 |
+
Description: iconv linking requirements for poppler
|
19 |
+
Version: 0
|
20 |
+
Libs:]])
|
21 |
+
string(TOLOWER "${Iconv_LIBRARIES}" iconv_libraries)
|
22 |
+
if(iconv_libraries MATCHES "iconv")
|
23 |
+
string(APPEND poppler_iconv " -liconv")
|
24 |
+
endif()
|
25 |
+
if(iconv_libraries MATCHES "charset")
|
26 |
+
string(APPEND poppler_iconv " -lcharset")
|
27 |
+
endif()
|
28 |
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/poppler-vcpkg-iconv.pc" "${poppler_iconv}")
|
29 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/poppler-vcpkg-iconv.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/export-unofficial-poppler.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9a0dcb1..c1f2f02 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -585,9 +585,16 @@ if(MINGW AND BUILD_SHARED_LIBS)
|
6 |
+
set_target_properties(poppler PROPERTIES SUFFIX "-${POPPLER_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
7 |
+
endif()
|
8 |
+
target_link_libraries(poppler LINK_PRIVATE ${poppler_LIBS})
|
9 |
+
-install(TARGETS poppler RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
10 |
+
+target_include_directories(poppler PUBLIC $<INSTALL_INTERFACE:include/poppler>)
|
11 |
+
+set_target_properties(poppler PROPERTIES EXPORT_NAME poppler-private)
|
12 |
+
+install(TARGETS poppler EXPORT unofficial-poppler-targets RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
13 |
+
+install(EXPORT unofficial-poppler-targets NAMESPACE unofficial::poppler:: DESTINATION share/unofficial-poppler)
|
14 |
+
|
15 |
+
if(ENABLE_UNSTABLE_API_ABI_HEADERS)
|
16 |
+
+ target_include_directories(poppler PUBLIC
|
17 |
+
+ $<INSTALL_INTERFACE:include/poppler/fofi>
|
18 |
+
+ $<INSTALL_INTERFACE:include/poppler/goo>
|
19 |
+
+ )
|
20 |
+
install(FILES
|
21 |
+
poppler/Annot.h
|
22 |
+
poppler/AnnotStampImageHelper.h
|
23 |
+
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
|
24 |
+
index c37936b..344933c 100644
|
25 |
+
--- a/cpp/CMakeLists.txt
|
26 |
+
+++ b/cpp/CMakeLists.txt
|
27 |
+
@@ -32,7 +32,8 @@ if(MINGW AND BUILD_SHARED_LIBS)
|
28 |
+
set_target_properties(poppler-cpp PROPERTIES SUFFIX "-${POPPLER_CPP_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
29 |
+
endif()
|
30 |
+
target_link_libraries(poppler-cpp poppler ${ICONV_LIBRARIES})
|
31 |
+
-install(TARGETS poppler-cpp RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
32 |
+
+install(TARGETS poppler-cpp EXPORT unofficial-poppler-cpp-targets RUNTIME DESTINATION bin LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
33 |
+
+install(EXPORT unofficial-poppler-cpp-targets NAMESPACE unofficial::poppler:: DESTINATION share/unofficial-poppler)
|
34 |
+
|
35 |
+
install(FILES
|
36 |
+
poppler-destination.h
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/portfile.cmake
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.freedesktop.org
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO poppler/poppler
|
5 |
+
REF poppler-22.03.0
|
6 |
+
SHA512 0229e50bbf21154f398480730649fd15ca37c7edae5abd63ed41ab722852d09e4dc2b9df66b13b1cfe3e7a0da945916e1bd39c75c4879ded2759eb465f69424a
|
7 |
+
HEAD_REF master
|
8 |
+
PATCHES
|
9 |
+
export-unofficial-poppler.patch
|
10 |
+
)
|
11 |
+
file(REMOVE "${SOURCE_PATH}/cmake/Modules/FindFontconfig.cmake")
|
12 |
+
|
13 |
+
set(POPPLER_PC_REQUIRES "freetype2 libjpeg libopenjp2 libpng libtiff-4 poppler-vcpkg-iconv")
|
14 |
+
|
15 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
16 |
+
FEATURES
|
17 |
+
cairo WITH_Cairo
|
18 |
+
curl ENABLE_LIBCURL
|
19 |
+
private-api ENABLE_UNSTABLE_API_ABI_HEADERS
|
20 |
+
zlib ENABLE_ZLIB
|
21 |
+
)
|
22 |
+
if("fontconfig" IN_LIST FEATURES)
|
23 |
+
list(APPEND FEATURE_OPTIONS "-DFONT_CONFIGURATION=fontconfig")
|
24 |
+
string(APPEND POPPLER_PC_REQUIRES " fontconfig")
|
25 |
+
elseif(VCPKG_TARGET_IS_WINDOWS)
|
26 |
+
list(APPEND FEATURE_OPTIONS "-DFONT_CONFIGURATION=win32")
|
27 |
+
else()
|
28 |
+
list(APPEND FEATURE_OPTIONS "-DFONT_CONFIGURATION=generic")
|
29 |
+
endif()
|
30 |
+
if("cairo" IN_LIST FEATURES)
|
31 |
+
string(APPEND POPPLER_PC_REQUIRES " cairo")
|
32 |
+
endif()
|
33 |
+
if("curl" IN_LIST FEATURES)
|
34 |
+
string(APPEND POPPLER_PC_REQUIRES " libcurl")
|
35 |
+
endif()
|
36 |
+
if("zlib" IN_LIST FEATURES)
|
37 |
+
string(APPEND POPPLER_PC_REQUIRES " zlib")
|
38 |
+
endif()
|
39 |
+
|
40 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
41 |
+
|
42 |
+
vcpkg_cmake_configure(
|
43 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
44 |
+
OPTIONS
|
45 |
+
"-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
|
46 |
+
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
47 |
+
-DBUILD_GTK_TESTS=OFF
|
48 |
+
-DBUILD_QT5_TESTS=OFF
|
49 |
+
-DBUILD_QT6_TESTS=OFF
|
50 |
+
-DBUILD_CPP_TESTS=OFF
|
51 |
+
-DBUILD_MANUAL_TESTS=OFF
|
52 |
+
-DENABLE_UTILS=OFF
|
53 |
+
-DENABLE_GLIB=OFF
|
54 |
+
-DENABLE_GOBJECT_INTROSPECTION=OFF
|
55 |
+
-DENABLE_QT5=OFF
|
56 |
+
-DENABLE_QT6=OFF
|
57 |
+
-DENABLE_CMS=none
|
58 |
+
-DRUN_GPERF_IF_PRESENT=OFF
|
59 |
+
-DENABLE_RELOCATABLE=OFF # https://gitlab.freedesktop.org/poppler/poppler/-/issues/1209
|
60 |
+
-DWITH_NSS3=OFF
|
61 |
+
${FEATURE_OPTIONS}
|
62 |
+
)
|
63 |
+
vcpkg_cmake_install()
|
64 |
+
|
65 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-poppler-config.cmake" "${CURRENT_PACKAGES_DIR}/share/unofficial-poppler/unofficial-poppler-config.cmake" @ONLY)
|
66 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-poppler)
|
67 |
+
|
68 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/poppler.pc" "Libs:" "Requires.private: ${POPPLER_PC_REQUIRES}\nLibs:")
|
69 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE)
|
70 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/poppler.pc" "Libs:" "Requires.private: ${POPPLER_PC_REQUIRES}\nLibs:")
|
71 |
+
endif()
|
72 |
+
vcpkg_fixup_pkgconfig()
|
73 |
+
|
74 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
75 |
+
|
76 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/unofficial-poppler-config.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(CMakeFindDependencyMacro)
|
2 |
+
cmake_policy(SET CMP0012 NEW)
|
3 |
+
cmake_policy(SET CMP0057 NEW)
|
4 |
+
set(features "@FEATURES@")
|
5 |
+
find_dependency(Boost)
|
6 |
+
if("fontconfig" IN_LIST features)
|
7 |
+
find_dependency(Fontconfig) # CMake 3.14
|
8 |
+
endif()
|
9 |
+
find_dependency(Freetype)
|
10 |
+
find_dependency(JPEG)
|
11 |
+
find_dependency(PNG)
|
12 |
+
find_dependency(TIFF)
|
13 |
+
find_dependency(OpenJPEG CONFIG)
|
14 |
+
if("curl" IN_LIST features)
|
15 |
+
find_dependency(CURL)
|
16 |
+
endif()
|
17 |
+
if("zlib" IN_LIST features)
|
18 |
+
find_dependency(ZLIB)
|
19 |
+
endif()
|
20 |
+
find_dependency(Iconv) # CMake 3.11
|
21 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-poppler-targets.cmake")
|
22 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-poppler-cpp-targets.cmake")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/usage
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package poppler can be imported via CMake FindPkgConfig module:
|
2 |
+
|
3 |
+
find_package(PkgConfig)
|
4 |
+
pkg_check_modules(POPPLER_CPP REQUIRED IMPORTED_TARGET poppler-cpp)
|
5 |
+
|
6 |
+
target_link_libraries(main PRIVATE PkgConfig::POPPLER_CPP)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poppler/vcpkg.json
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "poppler",
|
3 |
+
"version": "22.3.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A PDF rendering library",
|
6 |
+
"homepage": "https://poppler.freedesktop.org/",
|
7 |
+
"license": "GPL-2.0-or-later",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
"boost-container",
|
11 |
+
"boost-move",
|
12 |
+
"freetype",
|
13 |
+
"libiconv",
|
14 |
+
"libjpeg-turbo",
|
15 |
+
"libpng",
|
16 |
+
"openjpeg",
|
17 |
+
"tiff",
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake",
|
20 |
+
"host": true
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "vcpkg-cmake-config",
|
24 |
+
"host": true
|
25 |
+
}
|
26 |
+
],
|
27 |
+
"default-features": [
|
28 |
+
"font-configuration",
|
29 |
+
"zlib"
|
30 |
+
],
|
31 |
+
"features": {
|
32 |
+
"cairo": {
|
33 |
+
"description": "Enable the Cairo graphics backend",
|
34 |
+
"dependencies": [
|
35 |
+
{
|
36 |
+
"name": "cairo",
|
37 |
+
"default-features": false
|
38 |
+
}
|
39 |
+
]
|
40 |
+
},
|
41 |
+
"curl": {
|
42 |
+
"description": "curl for poppler",
|
43 |
+
"dependencies": [
|
44 |
+
{
|
45 |
+
"name": "curl",
|
46 |
+
"default-features": false
|
47 |
+
}
|
48 |
+
]
|
49 |
+
},
|
50 |
+
"font-configuration": {
|
51 |
+
"description": "Defaut font configuration backend",
|
52 |
+
"dependencies": [
|
53 |
+
{
|
54 |
+
"name": "poppler",
|
55 |
+
"default-features": false,
|
56 |
+
"features": [
|
57 |
+
"fontconfig"
|
58 |
+
],
|
59 |
+
"platform": "!windows & !android"
|
60 |
+
}
|
61 |
+
]
|
62 |
+
},
|
63 |
+
"fontconfig": {
|
64 |
+
"description": "Use fontconfig",
|
65 |
+
"supports": "!windows, mingw",
|
66 |
+
"dependencies": [
|
67 |
+
"fontconfig"
|
68 |
+
]
|
69 |
+
},
|
70 |
+
"private-api": {
|
71 |
+
"description": "Install headers for private API (aka unstable API/ABI headers)"
|
72 |
+
},
|
73 |
+
"splash": {
|
74 |
+
"description": "The splash backend is always enabled. This option is kept for compatibility."
|
75 |
+
},
|
76 |
+
"zlib": {
|
77 |
+
"description": "zlib for poppler",
|
78 |
+
"dependencies": [
|
79 |
+
"zlib"
|
80 |
+
]
|
81 |
+
}
|
82 |
+
}
|
83 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/popsift/fix_missing_thrust_include.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 273adb1c375b12f285694488280e04efd251a76a Mon Sep 17 00:00:00 2001
|
2 |
+
From: =?UTF-8?q?Thomas=20Sch=C3=B6ps?= <[email protected]>
|
3 |
+
Date: Sat, 28 Aug 2021 16:52:25 +0200
|
4 |
+
Subject: [PATCH] Add missing thrust include
|
5 |
+
|
6 |
+
---
|
7 |
+
src/popsift/s_filtergrid.cu | 1 +
|
8 |
+
1 file changed, 1 insertion(+)
|
9 |
+
|
10 |
+
diff --git a/src/popsift/s_filtergrid.cu b/src/popsift/s_filtergrid.cu
|
11 |
+
index 078eb114..301c6a96 100644
|
12 |
+
--- a/src/popsift/s_filtergrid.cu
|
13 |
+
+++ b/src/popsift/s_filtergrid.cu
|
14 |
+
@@ -21,6 +21,7 @@
|
15 |
+
#include <thrust/copy.h>
|
16 |
+
#include <thrust/device_vector.h>
|
17 |
+
#include <thrust/execution_policy.h>
|
18 |
+
+#include <thrust/host_vector.h>
|
19 |
+
#include <thrust/iterator/discard_iterator.h>
|
20 |
+
#include <thrust/sequence.h>
|
21 |
+
#include <thrust/sort.h>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/popsift/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO alicevision/popsift
|
4 |
+
REF v0.9
|
5 |
+
SHA512 56789520872203eea86e07e8210e00c0b67d85486af16df9d620b1aff10f8d9ef5d910cf1dda6c68af7ca2ed11658ab5414ac79117b543f91a7d8d6a96a17ce0
|
6 |
+
HEAD_REF develop
|
7 |
+
PATCHES
|
8 |
+
fix_missing_thrust_include.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
include("${CURRENT_INSTALLED_DIR}/share/cuda/vcpkg_find_cuda.cmake")
|
12 |
+
vcpkg_find_cuda(OUT_CUDA_TOOLKIT_ROOT CUDA_TOOLKIT_ROOT)
|
13 |
+
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
apps PopSift_BUILD_EXAMPLES
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_configure_cmake(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
PREFER_NINJA
|
22 |
+
OPTIONS ${FEATURE_OPTIONS}
|
23 |
+
-DCUDA_TOOLKIT_ROOT_DIR=${CUDA_TOOLKIT_ROOT}
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_install_cmake()
|
27 |
+
|
28 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PopSift)
|
29 |
+
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
33 |
+
|
34 |
+
# copy the apps in tools directory
|
35 |
+
if ("apps" IN_LIST FEATURES)
|
36 |
+
vcpkg_copy_tools(TOOL_NAMES popsift-demo AUTO_CLEAN)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/popsift/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "popsift",
|
3 |
+
"version": "0.9",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "PopSift is an implementation of the SIFT algorithm in CUDA.",
|
6 |
+
"homepage": "https://github.com/alicevision/popsift",
|
7 |
+
"supports": "!(uwp | arm | arm64 | android | x86)",
|
8 |
+
"dependencies": [
|
9 |
+
"cuda"
|
10 |
+
],
|
11 |
+
"features": {
|
12 |
+
"apps": {
|
13 |
+
"description": "Application programs for popsift (detection and matching)",
|
14 |
+
"dependencies": [
|
15 |
+
"boost-algorithm",
|
16 |
+
"boost-filesystem",
|
17 |
+
"boost-program-options",
|
18 |
+
"boost-system"
|
19 |
+
]
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portable-snippets/CMakeLists.txt
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
project(portable-snippets LANGUAGES C)
|
4 |
+
|
5 |
+
include(GNUInstallDirs)
|
6 |
+
|
7 |
+
option(PSNIP_INSTALL_HEADERS "Install header files" ON)
|
8 |
+
|
9 |
+
# https://stackoverflow.com/questions/7787823/cmake-how-to-get-the-name-of-all-subdirectories-of-a-directory
|
10 |
+
function (list_subdir output_variable path)
|
11 |
+
file(GLOB sub_entries RELATIVE ${path} ${path}/*)
|
12 |
+
|
13 |
+
set(dirlist "")
|
14 |
+
|
15 |
+
foreach (entry ${sub_entries})
|
16 |
+
if (IS_DIRECTORY ${path}/${entry})
|
17 |
+
list(APPEND dirlist ${entry})
|
18 |
+
endif ()
|
19 |
+
endforeach ()
|
20 |
+
|
21 |
+
set(${output_variable} ${dirlist} PARENT_SCOPE)
|
22 |
+
endfunction ()
|
23 |
+
|
24 |
+
function (check_if_header_only output_variable files)
|
25 |
+
set(is_header_only 1)
|
26 |
+
|
27 |
+
foreach (entry ${files})
|
28 |
+
get_filename_component(file_ext ${entry} EXT)
|
29 |
+
if (file_ext STREQUAL .c)
|
30 |
+
set(is_header_only 0)
|
31 |
+
endif ()
|
32 |
+
endforeach ()
|
33 |
+
|
34 |
+
set(${output_variable} ${is_header_only} PARENT_SCOPE)
|
35 |
+
endfunction ()
|
36 |
+
|
37 |
+
list_subdir(subdirs ${CMAKE_CURRENT_LIST_DIR})
|
38 |
+
list(REMOVE_ITEM subdirs tests)
|
39 |
+
|
40 |
+
set(namespace unofficial::portable-snippets)
|
41 |
+
|
42 |
+
foreach (subdir ${subdirs})
|
43 |
+
set(module ${subdir})
|
44 |
+
set(module_path "${CMAKE_CURRENT_LIST_DIR}/${subdir}")
|
45 |
+
|
46 |
+
file(GLOB entries
|
47 |
+
LIST_DIRECTORIES false
|
48 |
+
${module_path}/*.h
|
49 |
+
${module_path}/*.c
|
50 |
+
)
|
51 |
+
|
52 |
+
check_if_header_only(header_only "${entries}")
|
53 |
+
|
54 |
+
if (header_only)
|
55 |
+
add_library(${module} INTERFACE)
|
56 |
+
|
57 |
+
target_include_directories(
|
58 |
+
${module}
|
59 |
+
INTERFACE
|
60 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
61 |
+
)
|
62 |
+
else ()
|
63 |
+
add_library(${module} STATIC ${entries})
|
64 |
+
|
65 |
+
set_target_properties(
|
66 |
+
${module}
|
67 |
+
PROPERTIES
|
68 |
+
PREFIX ""
|
69 |
+
OUTPUT_NAME "psnip-${module}"
|
70 |
+
)
|
71 |
+
|
72 |
+
target_include_directories(
|
73 |
+
${module}
|
74 |
+
PUBLIC
|
75 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
76 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
77 |
+
)
|
78 |
+
|
79 |
+
list(FILTER entries EXCLUDE REGEX "\.c$")
|
80 |
+
endif ()
|
81 |
+
|
82 |
+
add_library(${namespace}::${module} ALIAS ${module})
|
83 |
+
|
84 |
+
if (PSNIP_INSTALL_HEADERS)
|
85 |
+
install(FILES ${entries} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${subdir})
|
86 |
+
endif ()
|
87 |
+
|
88 |
+
install(TARGETS ${module} EXPORT unofficial-portable-snippets-config)
|
89 |
+
endforeach ()
|
90 |
+
|
91 |
+
install(
|
92 |
+
EXPORT unofficial-portable-snippets-config
|
93 |
+
NAMESPACE ${namespace}::
|
94 |
+
DESTINATION share/unofficial-portable-snippets
|
95 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
96 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portable-snippets/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO nemequ/portable-snippets
|
6 |
+
REF 26496acb37ab46ee249ea19d45381da6955d89c4
|
7 |
+
SHA512 6213b22e4358b06f92396731d94fd27d4cf3568a47c56c057174c1839929c6a569ad5b1e1302fe0d092c4f393c570607b96e9e977223f86a9e3c2862010f3af0
|
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 |
+
-DPSNIP_INSTALL_HEADERS=OFF
|
18 |
+
OPTIONS_RELEASE
|
19 |
+
-DPSNIP_INSTALL_HEADERS=ON
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
configure_file(${SOURCE_PATH}/COPYING.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portable-snippets/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "portable-snippets",
|
3 |
+
"version-string": "2019-09-20",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Collection of miscellaneous portable C snippets",
|
6 |
+
"homepage": "https://github.com/nemequ/portable-snippets"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portaudio/fix-library-can-not-be-found.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 122fe93..b571c38 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -360,11 +360,6 @@ ENDIF()
|
6 |
+
# embedded builds this is not an issue as they will only build the configuration
|
7 |
+
# used in the host application.
|
8 |
+
MARK_AS_ADVANCED(PA_LIBNAME_ADD_SUFFIX)
|
9 |
+
-IF(MSVC AND PA_BUILD_STATIC AND PA_BUILD_SHARED AND NOT PA_LIBNAME_ADD_SUFFIX)
|
10 |
+
- MESSAGE(WARNING "Building both shared and static libraries, and avoiding the suffix _static will lead to a name conflict")
|
11 |
+
- SET(PA_LIBNAME_ADD_SUFFIX ON CACHE BOOL "Forcing use of suffix _static to avoid name conflict between static and import library" FORCE)
|
12 |
+
- MESSAGE(WARNING "PA_LIBNAME_ADD_SUFFIX was set to ON")
|
13 |
+
-ENDIF()
|
14 |
+
|
15 |
+
SET(PA_TARGETS "")
|
16 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portaudio/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO PortAudio/portaudio
|
4 |
+
REF 147dd722548358763a8b649b3e4b41dfffbcfbb6
|
5 |
+
SHA512 0f56e5f5b004f51915f29771b8fc1fe886f1fef5d65ab5ea1db43f43c49917476b9eec14b36aa54d3e9fb4d8bdf61e68c79624d00b7e548d4c493395a758233a
|
6 |
+
PATCHES
|
7 |
+
fix-library-can-not-be-found.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} dynamic PA_BUILD_SHARED)
|
11 |
+
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} static PA_BUILD_STATIC)
|
12 |
+
|
13 |
+
# NOTE: the ASIO backend will be built automatically if the ASIO-SDK is provided
|
14 |
+
# in a sibling folder of the portaudio source in vcpkg/buildtrees/portaudio/src
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS
|
19 |
+
-DPA_USE_DS=ON
|
20 |
+
-DPA_USE_WASAPI=ON
|
21 |
+
-DPA_USE_WDMKS=ON
|
22 |
+
-DPA_USE_WMME=ON
|
23 |
+
-DPA_LIBNAME_ADD_SUFFIX=OFF
|
24 |
+
-DPA_BUILD_SHARED=${PA_BUILD_SHARED}
|
25 |
+
-DPA_BUILD_STATIC=${PA_BUILD_STATIC}
|
26 |
+
-DPA_DLL_LINK_WITH_STATIC_RUNTIME=OFF
|
27 |
+
OPTIONS_DEBUG
|
28 |
+
-DPA_ENABLE_DEBUG_OUTPUT:BOOL=ON
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_install_cmake()
|
32 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
36 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
37 |
+
|
38 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
39 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
40 |
+
endif()
|
41 |
+
|
42 |
+
# Handle copyright
|
43 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
44 |
+
|
45 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portaudio/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "portaudio",
|
3 |
+
"version": "19.7",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "PortAudio Portable Cross-platform Audio I/O API PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O.",
|
6 |
+
"homepage": "http://www.portaudio.com",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portmidi/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO PortMidi/portmidi
|
4 |
+
REF v2.0.2
|
5 |
+
SHA512 36c43dc1f8b304c36de1c4672b8d2abe67c72dd8ea46044ebd479896a0e346f00207d4483e08701a04cdf3f342790c874f8a1c07d71d5d55d763bf97a1276021
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
10 |
+
vcpkg_cmake_install()
|
11 |
+
|
12 |
+
vcpkg_fixup_pkgconfig()
|
13 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PortMidi)
|
14 |
+
|
15 |
+
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
16 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portmidi/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "portmidi",
|
3 |
+
"version": "2.0.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "PortMidi is a cross platform (Windows, macOS, Linux, and BSDs which support alsalib) library for interfacing with operating systems' MIDI I/O APIs.",
|
6 |
+
"homepage": "https://github.com/PortMidi/portmidi",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "alsa",
|
12 |
+
"platform": "!(windows | osx)"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake-config",
|
20 |
+
"host": true
|
21 |
+
}
|
22 |
+
]
|
23 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portsmf/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO tenacityteam/portsmf
|
4 |
+
REF 238
|
5 |
+
SHA512 af619d1b0a656361af8f8b8b65d7f98047613ac8e9ea51354031629c1732ad02755f84d63ac7c4ed24cdf0ad3db46381061bf32d9afe29b7be3226dc814ef552
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
10 |
+
vcpkg_cmake_install()
|
11 |
+
|
12 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PortSMF)
|
13 |
+
vcpkg_fixup_pkgconfig()
|
14 |
+
vcpkg_copy_pdbs()
|
15 |
+
|
16 |
+
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/portsmf/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "portsmf",
|
3 |
+
"version": "0.238",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Portsmf is 'Port Standard MIDI File', a cross-platform, C++ library for reading and writing Standard MIDI Files.",
|
6 |
+
"homepage": "https://github.com/tenacityteam/portsmf",
|
7 |
+
"license": "MIT",
|
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/ppconsul/cmake_build.patch
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 92e4698..aa643aa 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -52,6 +52,8 @@ endif()
|
6 |
+
|
7 |
+
enable_testing()
|
8 |
+
|
9 |
+
+find_package(json11 REQUIRED)
|
10 |
+
+
|
11 |
+
if (${USE_CPPNETLIB})
|
12 |
+
find_package(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS thread filesystem system date_time chrono regex)
|
13 |
+
|
14 |
+
@@ -75,6 +77,8 @@ else ()
|
15 |
+
set (CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${CURL_ROOT}/lib")
|
16 |
+
endif ()
|
17 |
+
find_package(CURL REQUIRED)
|
18 |
+
+ find_package(OpenSSL REQUIRED)
|
19 |
+
+ find_package(ZLIB REQUIRED)
|
20 |
+
endif ()
|
21 |
+
|
22 |
+
set(LIBB64_DIR "${PROJECT_SOURCE_DIR}/ext/b64")
|
23 |
+
@@ -87,9 +91,7 @@ if (WIN32 AND NOT BUILD_STATIC_LIB)
|
24 |
+
message(FATAL_ERROR "Building Ppconsul as dynamic library on Windows is not supported, see https://github.com/oliora/ppconsul/issues/25")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
-add_subdirectory(ext/json11)
|
28 |
+
add_subdirectory(src)
|
29 |
+
-add_subdirectory(tests)
|
30 |
+
|
31 |
+
install(
|
32 |
+
DIRECTORY "${HEADERS_DIR}"
|
33 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
34 |
+
index d747100..966c7e2 100644
|
35 |
+
--- a/src/CMakeLists.txt
|
36 |
+
+++ b/src/CMakeLists.txt
|
37 |
+
@@ -78,7 +78,7 @@ target_include_directories(${PROJECT_NAME}
|
38 |
+
|
39 |
+
target_link_libraries(${PROJECT_NAME}
|
40 |
+
PRIVATE
|
41 |
+
- json11
|
42 |
+
+ ${JSON11_LIBRARIES}
|
43 |
+
${Boost_LIBRARIES}
|
44 |
+
)
|
45 |
+
|
46 |
+
@@ -87,7 +87,10 @@ if (${USE_CPPNETLIB})
|
47 |
+
target_link_libraries(${PROJECT_NAME} PRIVATE ${CPPNETLIB_LIBRARIES})
|
48 |
+
else ()
|
49 |
+
target_include_directories(${PROJECT_NAME} PRIVATE ${CURL_INCLUDE_DIR})
|
50 |
+
- target_link_libraries(${PROJECT_NAME} PRIVATE ${CURL_LIBRARIES})
|
51 |
+
+ target_link_libraries(${PROJECT_NAME} PRIVATE ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES} ZLIB::ZLIB)
|
52 |
+
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
53 |
+
+ target_link_libraries(${PROJECT_NAME} PRIVATE "-framework CoreFoundation" "-framework Security")
|
54 |
+
+ endif ()
|
55 |
+
endif ()
|
56 |
+
|
57 |
+
source_group(${PROJECT_NAME} FILES ${SOURCES})
|
58 |
+
diff --git a/src/s11n.h b/src/s11n.h
|
59 |
+
index c317834..3cb03c4 100644
|
60 |
+
--- a/src/s11n.h
|
61 |
+
+++ b/src/s11n.h
|
62 |
+
@@ -6,7 +6,7 @@
|
63 |
+
|
64 |
+
#include "ppconsul/config.h"
|
65 |
+
#include "ppconsul/error.h"
|
66 |
+
-#include <json11/json11.hpp>
|
67 |
+
+#include <json11.hpp>
|
68 |
+
#include <vector>
|
69 |
+
#include <chrono>
|
70 |
+
#include <set>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppconsul/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO oliora/ppconsul
|
4 |
+
REF 8aed30cae0e2df76d920b5cd77933604a4644ee9
|
5 |
+
SHA512 756f07c7c8099868fa181571941f511987088abc110ad5eda517ad591ed10b40532cd7b1541dbdad76c2617ce804a1dc26a121380f20f8e4a40e29063523cbbd
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES "cmake_build.patch"
|
8 |
+
)
|
9 |
+
|
10 |
+
# Force the use of the vcpkg installed versions
|
11 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/ext/json11)
|
12 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/ext/catch)
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA
|
17 |
+
)
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
|
20 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
21 |
+
|
22 |
+
|
23 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
25 |
+
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppconsul/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ppconsul",
|
3 |
+
"version-string": "0.5",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A C++ client library for Consul. Consul is a distributed tool for discovering and configuring services in your infrastructure.",
|
6 |
+
"homepage": "https://github.com/oliora/ppconsul",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-core",
|
9 |
+
"boost-fusion",
|
10 |
+
"boost-optional",
|
11 |
+
"boost-variant",
|
12 |
+
{
|
13 |
+
"name": "curl",
|
14 |
+
"features": [
|
15 |
+
"openssl"
|
16 |
+
]
|
17 |
+
},
|
18 |
+
"json11"
|
19 |
+
]
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppmagic/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO kobalicek/ppmagic
|
6 |
+
REF 2c7894e3056c610d383027b2d48149ba9d4a1c62
|
7 |
+
SHA512 4ab5f1dbef4c9b7892d8042e2a2b01df21a201b2b05a1b75a6ad594f50e2ec1c6a3e4782bb1d702266c90440df679d7eb24dfe595ce35680f7d263ec6c371a3b
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${SOURCE_PATH}/ppmagic.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
12 |
+
|
13 |
+
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ppmagic/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ppmagic",
|
3 |
+
"version-string": "2020-07-03",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C/C++ preprocessor macros that you can use to simplify your life.",
|
6 |
+
"homepage": "https://github.com/kobalicek/ppmagic"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pprint/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO p-ranav/pprint
|
6 |
+
REF 2fb81cd4af62c019ea28ea1707164fc3637bc656
|
7 |
+
SHA512 51bdf0e06666511fb475b46ff2d512e5d04b231f63c274c021f56b194501885a0302af95cc90977b0a3b39b555d1076926f618d0a6751926acb5f8b2a968bc0a
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS
|
15 |
+
-DPPRINT_BUILD_TESTS=OFF
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
|
20 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
23 |
+
|
24 |
+
# Handle copyright
|
25 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pprint/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "pprint",
|
3 |
+
"version-string": "2019-07-19",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Pretty Printer for Modern C++",
|
6 |
+
"homepage": "https://github.com/p-ranav/pprint"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/CMakeLists.txt
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(pqp)
|
3 |
+
|
4 |
+
set(SOURCE_CUSTOM_DIR "PQP_v1.3")
|
5 |
+
include_directories(${SOURCE_CUSTOM_DIR}/src)
|
6 |
+
|
7 |
+
file(GLOB SRCS
|
8 |
+
"${SOURCE_CUSTOM_DIR}/src/*.cpp")
|
9 |
+
file(GLOB HDRS
|
10 |
+
"${SOURCE_CUSTOM_DIR}/src/*.h")
|
11 |
+
|
12 |
+
add_library(pqp STATIC ${SRCS})
|
13 |
+
|
14 |
+
install(TARGETS pqp EXPORT pqpConfig
|
15 |
+
RUNTIME DESTINATION bin
|
16 |
+
LIBRARY DESTINATION lib
|
17 |
+
ARCHIVE DESTINATION lib)
|
18 |
+
|
19 |
+
foreach (file ${HDRS})
|
20 |
+
get_filename_component(dir ${file} DIRECTORY)
|
21 |
+
install(FILES ${file} DESTINATION include/ CONFIGURATIONS Release)
|
22 |
+
endforeach()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/LICENSE
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright 1999 University of North Carolina at Chapel Hill.
|
2 |
+
All rights reserved.
|
3 |
+
|
4 |
+
Permission to use, copy, modify, and distribute this software and its
|
5 |
+
documentation for educational, research, and non-profit purposes, without fee,
|
6 |
+
and without a written agreement is hereby granted, provided that the above
|
7 |
+
copyright notice and the following three paragraphs appear in all copies.
|
8 |
+
|
9 |
+
IN NO EVENT SHALL THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL BE LIABLE TO
|
10 |
+
ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
11 |
+
INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
|
12 |
+
DOCUMENTATION, EVEN IF THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL HAS
|
13 |
+
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
14 |
+
|
15 |
+
THE UNIVERSITY OF NORTH CAROLINA AT CHAPEL HILL SPECIFICALLY DISCLAIMS ANY
|
16 |
+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
17 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED
|
18 |
+
HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF NORTH CAROLINA AT
|
19 |
+
CHAPEL HILL HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
|
20 |
+
ENHANCEMENTS, OR MODIFICATIONS.
|
21 |
+
|
22 |
+
The authors may be contacted via:
|
23 |
+
|
24 |
+
US Mail: Eric Larsen, Stefan Gottschalk
|
25 |
+
Department of Computer Science
|
26 |
+
Sitterson Hall, CB #3175
|
27 |
+
University of North Carolina
|
28 |
+
Chapel Hill, NC 27599-3175
|
29 |
+
|
30 |
+
Phone: (919) 962-1749
|
31 |
+
|
32 |
+
Email: [email protected]
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/fix-math-functions.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/PQP_v1.3/src/PQP_Compile.h
|
2 |
+
+++ b/PQP_v1.3/src/PQP_Compile.h
|
3 |
+
@@ -44,10 +44,10 @@
|
4 |
+
// prevents compiler warnings when PQP_REAL is float
|
5 |
+
|
6 |
+
#include <math.h>
|
7 |
+
-inline float sqrt(float x) { return (float)sqrt((double)x); }
|
8 |
+
-inline float cos(float x) { return (float)cos((double)x); }
|
9 |
+
-inline float sin(float x) { return (float)sin((double)x); }
|
10 |
+
-inline float fabs(float x) { return (float)fabs((double)x); }
|
11 |
+
+//inline float sqrt(float x) { return (float)sqrt((double)x); }
|
12 |
+
+//inline float cos(float x) { return (float)cos((double)x); }
|
13 |
+
+//inline float sin(float x) { return (float)sin((double)x); }
|
14 |
+
+//inline float fabs(float x) { return (float)fabs((double)x); }
|
15 |
+
|
16 |
+
//-------------------------------------------------------------------------
|
17 |
+
//
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "http://gamma.cs.unc.edu/software/downloads/SSV/pqp-1.3.tar.gz"
|
5 |
+
FILENAME "pqp-1.3.tar.gz"
|
6 |
+
SHA512 baad7b050b13a6d13de5110cdec443048a3543b65b0d3b30d1b5f737b46715052661f762ef71345d39978c0c788a30a3a935717664806b4729722ee3594ebdc1
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
PATCHES
|
13 |
+
fix-math-functions.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
17 |
+
|
18 |
+
vcpkg_configure_cmake(
|
19 |
+
SOURCE_PATH ${SOURCE_PATH}
|
20 |
+
PREFER_NINJA
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_install_cmake()
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pqp)
|
27 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pqp/LICENSE ${CURRENT_PACKAGES_DIR}/share/pqp/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pqp/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "pqp",
|
3 |
+
"version-string": "1.3",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "a proximity query package",
|
6 |
+
"homepage": "https://gamma.cs.unc.edu/SSV/"
|
7 |
+
}
|