Spaces:
Sleeping
Sleeping
ccd4ff41c6ded3eea729725b098ab5e0118a6a7d7411e1fcd2382f1d905f09fe
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0001-fix-dependencies.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0002-export-cmake-targets.patch +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0003-add-Wno-error-implicit-funciton-declaration-to-cmake.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0004-pkg-config.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/portfile.cmake +73 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/vcpkg.json +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgal/portfile.cmake +55 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgal/usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgal/vcpkg.json +77 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/CMakeLists.txt +121 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/fix-define.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/fix-static-build.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/portfile.cmake +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/CMakeLists.txt +125 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/Config.cmake.in +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/fix-c1083-error.patch +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgltf/portfile.cmake +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgltf/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/cgnsconfig.h +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/hdf5.patch +88 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/linux_lfs.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/portfile.cmake +82 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/vcpkg.json +64 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chaiscript/portfile.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chaiscript/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/fix-debug-linux-build.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/no-warning-as-error.props +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/portfile.cmake +146 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/charls/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/charls/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/Config.cmake.in +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/chartdir.h +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/portfile.cmake +93 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/check/fix-lib-path.patch +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/check/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/check/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chipmunk/portfile.cmake +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chipmunk/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chmlib/CMakeLists.txt +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chmlib/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chmlib/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromaprint/fix_lrintf_detection.patch +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromaprint/portfile.cmake +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromaprint/vcpkg.json +11 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0001-fix-dependencies.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6d6af49..9e7d2ee 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -94,9 +94,8 @@ IF (NOT MSVC)
|
6 |
+
|
7 |
+
# Find curl library, for HTTPS support:
|
8 |
+
IF (UseCurl)
|
9 |
+
- FIND_PACKAGE(CURL)
|
10 |
+
+ FIND_PACKAGE(CURL CONFIG REQUIRED)
|
11 |
+
IF (CURL_FOUND)
|
12 |
+
- INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
|
13 |
+
ADD_DEFINITIONS(-DCFITSIO_HAVE_CURL)
|
14 |
+
ENDIF()
|
15 |
+
ENDIF()
|
16 |
+
@@ -128,18 +127,20 @@ SET(SRC_FILES
|
17 |
+
|
18 |
+
# Only include zlib source files if we are building a shared library.
|
19 |
+
# Users will need to link their executable with zlib independently.
|
20 |
+
-IF (BUILD_SHARED_LIBS)
|
21 |
+
+IF (0)
|
22 |
+
set(SRC_FILES ${SRC_FILES}
|
23 |
+
zlib/adler32.c zlib/crc32.c zlib/deflate.c zlib/infback.c
|
24 |
+
zlib/inffast.c zlib/inflate.c zlib/inftrees.c zlib/trees.c
|
25 |
+
zlib/uncompr.c zlib/zutil.c
|
26 |
+
)
|
27 |
+
+ELSE()
|
28 |
+
+ FIND_PACKAGE(ZLIB REQUIRED)
|
29 |
+
ENDIF()
|
30 |
+
|
31 |
+
ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${H_FILES} ${SRC_FILES})
|
32 |
+
-TARGET_LINK_LIBRARIES(${LIB_NAME} ${PTHREADS_LIBRARY} ${M_LIB})
|
33 |
+
+TARGET_LINK_LIBRARIES(${LIB_NAME} ${PTHREADS_LIBRARY} ${M_LIB} ZLIB::ZLIB)
|
34 |
+
IF (CURL_FOUND)
|
35 |
+
- TARGET_LINK_LIBRARIES(${LIB_NAME} ${CURL_LIBRARIES})
|
36 |
+
+ TARGET_LINK_LIBRARIES(${LIB_NAME} CURL::libcurl)
|
37 |
+
ENDIF(CURL_FOUND)
|
38 |
+
|
39 |
+
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES VERSION ${${PROJECT_NAME}_VERSION} SOVERSION ${${PROJECT_NAME}_MAJOR_VERSION})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0002-export-cmake-targets.patch
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9e7d2ee..5b37adc 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -24,7 +24,7 @@ OPTION(UseCurl "UseCurl" ON)
|
6 |
+
|
7 |
+
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
|
8 |
+
set (LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
|
9 |
+
-set (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/")
|
10 |
+
+set (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/cfitsio")
|
11 |
+
|
12 |
+
# Define project version
|
13 |
+
SET(${PROJECT_NAME}_MAJOR_VERSION 3)
|
14 |
+
@@ -138,19 +138,31 @@ ELSE()
|
15 |
+
ENDIF()
|
16 |
+
|
17 |
+
ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${H_FILES} ${SRC_FILES})
|
18 |
+
-TARGET_LINK_LIBRARIES(${LIB_NAME} ${PTHREADS_LIBRARY} ${M_LIB} ZLIB::ZLIB)
|
19 |
+
+TARGET_INCLUDE_DIRECTORIES(${LIB_NAME} PUBLIC $<INSTALL_INTERFACE:include/cfitsio>)
|
20 |
+
+TARGET_LINK_LIBRARIES(${LIB_NAME} PUBLIC ${PTHREADS_LIBRARY} ${M_LIB} ZLIB::ZLIB)
|
21 |
+
IF (CURL_FOUND)
|
22 |
+
- TARGET_LINK_LIBRARIES(${LIB_NAME} CURL::libcurl)
|
23 |
+
+ TARGET_LINK_LIBRARIES(${LIB_NAME} PUBLIC CURL::libcurl)
|
24 |
+
ENDIF(CURL_FOUND)
|
25 |
+
|
26 |
+
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES VERSION ${${PROJECT_NAME}_VERSION} SOVERSION ${${PROJECT_NAME}_MAJOR_VERSION})
|
27 |
+
-install(TARGETS ${LIB_NAME} DESTINATION ${LIB_DESTINATION})
|
28 |
+
install(TARGETS ${LIB_NAME}
|
29 |
+
+ EXPORT unofficial-${LIB_NAME}-config
|
30 |
+
RUNTIME DESTINATION bin
|
31 |
+
LIBRARY DESTINATION lib
|
32 |
+
ARCHIVE DESTINATION lib)
|
33 |
+
install(FILES ${H_FILES} DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|
34 |
+
|
35 |
+
+set(CFITSIO_VERSION 3.49)
|
36 |
+
+include(CMakePackageConfigHelpers)
|
37 |
+
+write_basic_package_version_file(unofficial-${LIB_NAME}-version.cmake VERSION ${CFITSIO_VERSION} COMPATIBILITY ExactVersion)
|
38 |
+
+
|
39 |
+
+install(FILES ${CMAKE_BINARY_DIR}/unofficial-${LIB_NAME}-version.cmake DESTINATION share/unofficial-${LIB_NAME})
|
40 |
+
+
|
41 |
+
+install(
|
42 |
+
+ EXPORT unofficial-${LIB_NAME}-config
|
43 |
+
+ DESTINATION share/unofficial-${LIB_NAME}
|
44 |
+
+)
|
45 |
+
+
|
46 |
+
# Only build test code and executables if building a shared library:
|
47 |
+
IF (BUILD_SHARED_LIBS)
|
48 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0003-add-Wno-error-implicit-funciton-declaration-to-cmake.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From af09ca45ad71a540aafc4989676e9a0b88bf2948 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Nicole Mazzuca <[email protected]>
|
3 |
+
Date: Fri, 16 Oct 2020 12:28:37 -0700
|
4 |
+
Subject: [PATCH] add `-Wno-error=implicit-funciton-declaration` to cmake
|
5 |
+
|
6 |
+
---
|
7 |
+
CMakeLists.txt | 4 ++++
|
8 |
+
1 file changed, 4 insertions(+)
|
9 |
+
|
10 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
11 |
+
index 5b37adc..fead70c 100644
|
12 |
+
--- a/CMakeLists.txt
|
13 |
+
+++ b/CMakeLists.txt
|
14 |
+
@@ -6,6 +6,10 @@ SET(CMAKE_LEGACY_CYGWIN_WIN32 0)
|
15 |
+
PROJECT(CFITSIO)
|
16 |
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
|
17 |
+
|
18 |
+
+if (NOT MSVC)
|
19 |
+
+ add_compile_options(-Wno-error=implicit-function-declaration)
|
20 |
+
+endif()
|
21 |
+
+
|
22 |
+
# Allow @rpath token in target install name on Macs.
|
23 |
+
# See "cmake --help-policy CMP0042" for more information.
|
24 |
+
IF(POLICY CMP0042)
|
25 |
+
--
|
26 |
+
2.28.0.windows.1
|
27 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/0004-pkg-config.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -urw cfitsio-3-7822097674.clean/cfitsio.pc.cmake cfitsio-3-7822097674/cfitsio.pc.cmake
|
2 |
+
--- cfitsio-3-7822097674.clean/cfitsio.pc.cmake 2020-08-12 20:01:04.000000000 +0200
|
3 |
+
+++ cfitsio-3-7822097674/cfitsio.pc.cmake 2021-05-06 08:46:49.160351519 +0200
|
4 |
+
@@ -6,7 +6,8 @@
|
5 |
+
Name: cfitsio
|
6 |
+
Description: FITS File Subroutine Library
|
7 |
+
URL: https://heasarc.gsfc.nasa.gov/fitsio/
|
8 |
+
-Version: @CFITSIO_MAJOR@.@CFITSIO_MINOR@
|
9 |
+
+Version: @CFITSIO_VERSION@
|
10 |
+
+Requires.private: @PKG_CONFIG_REQUIRES_PRIVATE@
|
11 |
+
Libs: -L${libdir} @PKG_CONFIG_LIBS@
|
12 |
+
Libs.private: -lm
|
13 |
+
Cflags: -I${includedir}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/portfile.cmake
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-3.49.tar.gz"
|
3 |
+
FILENAME "cfitsio-3.49.tar.gz"
|
4 |
+
SHA512 9836a4af3bbbfed1ea1b4c70b9d500ac485d7c3d8131eb8a25ee6ef6662f46ba52b5161c45c709ed9a601ff0e9ec36daa5650eaaf4f2cc7d6f4bb5640f10da15
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
PATCHES
|
11 |
+
0001-fix-dependencies.patch
|
12 |
+
0002-export-cmake-targets.patch
|
13 |
+
0003-add-Wno-error-implicit-funciton-declaration-to-cmake.patch
|
14 |
+
0004-pkg-config.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_check_features(
|
18 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
19 |
+
FEATURES
|
20 |
+
curl UseCurl
|
21 |
+
)
|
22 |
+
|
23 |
+
set(PKG_CONFIG_REQUIRES_PRIVATE zlib)
|
24 |
+
if ("curl" IN_LIST FEATURES)
|
25 |
+
set(FIND_CURL_DEPENDENCY "find_dependency(CURL CONFIG)")
|
26 |
+
string(APPEND PKG_CONFIG_REQUIRES_PRIVATE " libcurl")
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if ("pthreads" IN_LIST FEATURES)
|
30 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
31 |
+
set(WITH_PTHREADS ON)
|
32 |
+
set(FIND_PTHREADS_DEPENDENCY "find_dependency(pthreads)")
|
33 |
+
else()
|
34 |
+
message(WARNING "Feature pthreads only support Windows, disable it now.")
|
35 |
+
set(WITH_PTHREADS OFF)
|
36 |
+
endif()
|
37 |
+
endif()
|
38 |
+
|
39 |
+
vcpkg_configure_cmake(
|
40 |
+
SOURCE_PATH ${SOURCE_PATH}
|
41 |
+
PREFER_NINJA
|
42 |
+
OPTIONS
|
43 |
+
${FEATURE_OPTIONS}
|
44 |
+
-DUSE_PTHREADS=${WITH_PTHREADS}
|
45 |
+
"-DPKG_CONFIG_REQUIRES_PRIVATE=${PKG_CONFIG_REQUIRES_PRIVATE}"
|
46 |
+
-DPKG_CONFIG_LIBS=-lcfitsio
|
47 |
+
)
|
48 |
+
|
49 |
+
vcpkg_install_cmake()
|
50 |
+
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES m)
|
51 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-cfitsio TARGET_PATH share/unofficial-cfitsio)
|
52 |
+
|
53 |
+
file(READ ${CURRENT_PACKAGES_DIR}/share/unofficial-cfitsio/unofficial-cfitsio-config.cmake ASSIMP_CONFIG)
|
54 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/unofficial-cfitsio/unofficial-cfitsio-config.cmake "
|
55 |
+
include(CMakeFindDependencyMacro)
|
56 |
+
${FIND_CURL_DEPENDENCY}
|
57 |
+
${FIND_PTHREADS_DEPENDENCY}
|
58 |
+
find_dependency(ZLIB)
|
59 |
+
${ASSIMP_CONFIG}
|
60 |
+
")
|
61 |
+
|
62 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/unofficial-cfitsio/unofficial-cfitsio-config.cmake
|
63 |
+
"cmake_policy(VERSION 2.6)"
|
64 |
+
"cmake_policy(VERSION 2.6)\r\n\
|
65 |
+
# Required for the evaluation of \"if(@BUILD_SHARED_LIBS@)\" below to function\r\n\
|
66 |
+
cmake_policy(SET CMP0012 NEW)\r\n"
|
67 |
+
)
|
68 |
+
|
69 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/include/unistd.h ${CURRENT_PACKAGES_DIR}/debug/share)
|
70 |
+
|
71 |
+
file(INSTALL ${SOURCE_PATH}/FindPthreads.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/unofficial-cfitsio)
|
72 |
+
|
73 |
+
file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cfitsio/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cfitsio",
|
3 |
+
"version": "3.49",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format",
|
6 |
+
"homepage": "https://heasarc.gsfc.nasa.gov/fitsio/",
|
7 |
+
"dependencies": [
|
8 |
+
"zlib"
|
9 |
+
],
|
10 |
+
"features": {
|
11 |
+
"curl": {
|
12 |
+
"description": "UseCurl",
|
13 |
+
"dependencies": [
|
14 |
+
"curl"
|
15 |
+
]
|
16 |
+
},
|
17 |
+
"pthreads": {
|
18 |
+
"description": "Thread-safe build (using pthreads)",
|
19 |
+
"dependencies": [
|
20 |
+
{
|
21 |
+
"name": "pthreads",
|
22 |
+
"platform": "windows"
|
23 |
+
}
|
24 |
+
]
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgal/portfile.cmake
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_buildpath_length_warning(37)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO CGAL/cgal
|
6 |
+
REF v5.4
|
7 |
+
SHA512 c9cdacc74844a6eca94980d0350ae6defb99462ef70ddc3e15e825f06b171a21571efd9246a4abac16a6efc350aa9fa79330d2e89dcec24fc6ecff51905efdeb
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
qt WITH_CGAL_Qt5
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
-DCGAL_HEADER_ONLY=ON
|
20 |
+
-DCGAL_INSTALL_CMAKE_DIR=share/cgal
|
21 |
+
${FEATURE_OPTIONS}
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
|
26 |
+
vcpkg_cmake_config_fixup()
|
27 |
+
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
|
30 |
+
# Clean
|
31 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
32 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
33 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
34 |
+
else()
|
35 |
+
foreach(ROOT ${CURRENT_PACKAGES_DIR}/bin)
|
36 |
+
file(REMOVE
|
37 |
+
${ROOT}/cgal_create_CMakeLists
|
38 |
+
${ROOT}/cgal_create_cmake_script
|
39 |
+
${ROOT}/cgal_make_macosx_app
|
40 |
+
)
|
41 |
+
endforeach()
|
42 |
+
endif()
|
43 |
+
|
44 |
+
file(INSTALL ${SOURCE_PATH}/Installation/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
45 |
+
|
46 |
+
file(
|
47 |
+
COPY
|
48 |
+
${SOURCE_PATH}/Installation/LICENSE.BSL
|
49 |
+
${SOURCE_PATH}/Installation/LICENSE.RFL
|
50 |
+
${SOURCE_PATH}/Installation/LICENSE.GPL
|
51 |
+
${SOURCE_PATH}/Installation/LICENSE.LGPL
|
52 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
53 |
+
)
|
54 |
+
|
55 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgal/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package cgal provides CMake targets:
|
2 |
+
|
3 |
+
find_package(CGAL CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE CGAL::CGAL)
|
5 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgal/vcpkg.json
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cgal",
|
3 |
+
"version": "5.4",
|
4 |
+
"description": "The Computational Geometry Algorithms Library (CGAL) is a C++ library that aims to provide easy access to efficient and reliable algorithms in computational geometry.",
|
5 |
+
"homepage": "https://github.com/CGAL/cgal",
|
6 |
+
"license": "GPL-3.0-or-later AND LGPL-3.0-or-later AND BSL-1.0",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-accumulators",
|
9 |
+
"boost-algorithm",
|
10 |
+
"boost-bimap",
|
11 |
+
"boost-callable-traits",
|
12 |
+
"boost-concept-check",
|
13 |
+
"boost-container",
|
14 |
+
"boost-core",
|
15 |
+
"boost-detail",
|
16 |
+
"boost-filesystem",
|
17 |
+
"boost-functional",
|
18 |
+
"boost-fusion",
|
19 |
+
"boost-geometry",
|
20 |
+
"boost-graph",
|
21 |
+
"boost-heap",
|
22 |
+
"boost-intrusive",
|
23 |
+
"boost-iostreams",
|
24 |
+
"boost-iterator",
|
25 |
+
"boost-lambda",
|
26 |
+
"boost-logic",
|
27 |
+
"boost-math",
|
28 |
+
"boost-mpl",
|
29 |
+
"boost-multi-index",
|
30 |
+
"boost-multiprecision",
|
31 |
+
"boost-numeric-conversion",
|
32 |
+
"boost-optional",
|
33 |
+
"boost-parameter",
|
34 |
+
"boost-pool",
|
35 |
+
"boost-preprocessor",
|
36 |
+
"boost-property-map",
|
37 |
+
"boost-property-tree",
|
38 |
+
"boost-ptr-container",
|
39 |
+
"boost-random",
|
40 |
+
"boost-range",
|
41 |
+
"boost-serialization",
|
42 |
+
"boost-spirit",
|
43 |
+
"boost-thread",
|
44 |
+
"boost-tuple",
|
45 |
+
"boost-type-traits",
|
46 |
+
"boost-units",
|
47 |
+
"boost-utility",
|
48 |
+
"boost-variant",
|
49 |
+
"gmp",
|
50 |
+
"mpfr",
|
51 |
+
{
|
52 |
+
"name": "vcpkg-cmake",
|
53 |
+
"host": true
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"name": "vcpkg-cmake-config",
|
57 |
+
"host": true
|
58 |
+
},
|
59 |
+
"zlib"
|
60 |
+
],
|
61 |
+
"features": {
|
62 |
+
"qt": {
|
63 |
+
"description": "Qt GUI support for CGAL",
|
64 |
+
"dependencies": [
|
65 |
+
"eigen3",
|
66 |
+
"qt5-3d",
|
67 |
+
{
|
68 |
+
"name": "qt5-base",
|
69 |
+
"default-features": false
|
70 |
+
},
|
71 |
+
"qt5-script",
|
72 |
+
"qt5-svg",
|
73 |
+
"qt5-xmlpatterns"
|
74 |
+
]
|
75 |
+
}
|
76 |
+
}
|
77 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/CMakeLists.txt
ADDED
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
cmake_minimum_required (VERSION 3.8)
|
3 |
+
project (cgicc)
|
4 |
+
include (CheckIncludeFiles)
|
5 |
+
include(CheckSymbolExists)
|
6 |
+
include (CheckCXXSourceCompiles)
|
7 |
+
|
8 |
+
set (VERSION "3.2.19")
|
9 |
+
execute_process (COMMAND hostname OUTPUT_VARIABLE HOST OUTPUT_STRIP_TRAILING_WHITESPACE)
|
10 |
+
check_include_files (dlfcn.h HAVE_DLFCN_H)
|
11 |
+
check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
|
12 |
+
check_include_files (inttypes.h HAVE_INTTYPES_H)
|
13 |
+
check_include_files (memory.h HAVE_MEMORY_H)
|
14 |
+
|
15 |
+
check_cxx_source_compiles ("
|
16 |
+
namespace test { }
|
17 |
+
int main(int, char**) {
|
18 |
+
using namespace ::test;
|
19 |
+
}" HAVE_NAMESPACES)
|
20 |
+
check_include_files (stdint.h HAVE_STDINT_H)
|
21 |
+
check_include_files (stdlib.h HAVE_STDLIB_H)
|
22 |
+
set (CMAKE_REQUIRED_FLAGS "-DHAVE_NAMESPACES")
|
23 |
+
check_cxx_source_compiles ("
|
24 |
+
#include <list>
|
25 |
+
#include <deque>
|
26 |
+
#ifdef HAVE_NAMESPACES
|
27 |
+
using namespace std;
|
28 |
+
#endif
|
29 |
+
int
|
30 |
+
main ()
|
31 |
+
{
|
32 |
+
list<int> x; x.push_back(5);
|
33 |
+
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
|
34 |
+
;
|
35 |
+
return 0;
|
36 |
+
}" HAVE_STL)
|
37 |
+
check_include_files (strings.h HAVE_STRINGS_H)
|
38 |
+
check_include_files (string.h HAVE_STRING_H)
|
39 |
+
check_include_files (sys/stat.h HAVE_SYS_STAT_H)
|
40 |
+
check_include_files (sys/time.h HAVE_SYS_TIME_H)
|
41 |
+
check_include_files (sys/types.h HAVE_SYS_TYPES_H)
|
42 |
+
check_include_files (sys/utsname.h HAVE_SYS_UTSNAME_H)
|
43 |
+
check_symbol_exists (uname sys/utsname.h HAVE_UNAME)
|
44 |
+
check_include_files (unistd.h HAVE_UNISTD_H)
|
45 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cgicc/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY)
|
46 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cgicc/CgiDefs.h.in ${CMAKE_CURRENT_BINARY_DIR}/CgiDefs.h @ONLY)
|
47 |
+
add_definitions (-DHAVE_CONFIG_H)
|
48 |
+
set (cgicc_SOURCES
|
49 |
+
cgicc/CgiEnvironment.cpp
|
50 |
+
cgicc/CgiInput.cpp
|
51 |
+
cgicc/CgiUtils.cpp
|
52 |
+
cgicc/Cgicc.cpp
|
53 |
+
cgicc/FormEntry.cpp
|
54 |
+
cgicc/FormFile.cpp
|
55 |
+
cgicc/HTMLAttribute.cpp
|
56 |
+
cgicc/HTMLAttributeList.cpp
|
57 |
+
cgicc/HTMLDoctype.cpp
|
58 |
+
cgicc/HTMLElement.cpp
|
59 |
+
cgicc/HTMLElementList.cpp
|
60 |
+
cgicc/HTTPContentHeader.cpp
|
61 |
+
cgicc/HTTPCookie.cpp
|
62 |
+
cgicc/HTTPHTMLHeader.cpp
|
63 |
+
cgicc/HTTPHeader.cpp
|
64 |
+
cgicc/HTTPPlainHeader.cpp
|
65 |
+
cgicc/HTTPRedirectHeader.cpp
|
66 |
+
cgicc/HTTPResponseHeader.cpp
|
67 |
+
cgicc/HTTPStatusHeader.cpp
|
68 |
+
cgicc/HTTPXHTMLHeader.cpp
|
69 |
+
cgicc/MStreamable.cpp
|
70 |
+
cgicc/XHTMLDoctype.cpp
|
71 |
+
cgicc/XMLPI.cpp)
|
72 |
+
set (cgicc_HEADERS
|
73 |
+
cgicc/Cgicc.h
|
74 |
+
cgicc/CgiEnvironment.h
|
75 |
+
cgicc/CgiInput.h
|
76 |
+
cgicc/CgiUtils.h
|
77 |
+
cgicc/FormEntry.h
|
78 |
+
cgicc/FormFile.h
|
79 |
+
cgicc/HTMLAtomicElement.h
|
80 |
+
cgicc/HTMLAttribute.h
|
81 |
+
cgicc/HTMLAttributeList.h
|
82 |
+
cgicc/HTMLBooleanElement.h
|
83 |
+
cgicc/HTMLClasses.h
|
84 |
+
cgicc/HTMLDoctype.h
|
85 |
+
cgicc/HTMLElement.h
|
86 |
+
cgicc/HTMLElementList.h
|
87 |
+
cgicc/HTTPContentHeader.h
|
88 |
+
cgicc/HTTPCookie.h
|
89 |
+
cgicc/HTTPHeader.h
|
90 |
+
cgicc/HTTPHTMLHeader.h
|
91 |
+
cgicc/HTTPPlainHeader.h
|
92 |
+
cgicc/HTTPRedirectHeader.h
|
93 |
+
cgicc/HTTPResponseHeader.h
|
94 |
+
cgicc/HTTPStatusHeader.h
|
95 |
+
cgicc/HTTPXHTMLHeader.h
|
96 |
+
cgicc/MStreamable.h
|
97 |
+
cgicc/XHTMLDoctype.h
|
98 |
+
cgicc/XMLDeclaration.h
|
99 |
+
cgicc/XMLPI.h
|
100 |
+
${CMAKE_CURRENT_BINARY_DIR}/CgiDefs.h
|
101 |
+
${CMAKE_CURRENT_BINARY_DIR}/config.h
|
102 |
+
)
|
103 |
+
|
104 |
+
include_directories (. ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
105 |
+
add_library (cgicc ${cgicc_SOURCES} ${cgicc_HEADERS})
|
106 |
+
|
107 |
+
if (BUILD_SHARED_LIBS)
|
108 |
+
add_definitions(-DCGICC_EXPORTS)
|
109 |
+
else()
|
110 |
+
add_definitions(-DCGICC_STATIC)
|
111 |
+
endif()
|
112 |
+
|
113 |
+
install(TARGETS cgicc
|
114 |
+
RUNTIME DESTINATION bin
|
115 |
+
LIBRARY DESTINATION lib
|
116 |
+
ARCHIVE DESTINATION lib
|
117 |
+
)
|
118 |
+
|
119 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
120 |
+
install(FILES ${cgicc_HEADERS} DESTINATION include/cgicc)
|
121 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/fix-define.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cgicc/config.h.in b/cgicc/config.h.in
|
2 |
+
index 6870cc2..ee7b5b4 100644
|
3 |
+
--- a/cgicc/config.h.in
|
4 |
+
+++ b/cgicc/config.h.in
|
5 |
+
@@ -76,7 +76,7 @@
|
6 |
+
#undef HAVE__BOOL
|
7 |
+
|
8 |
+
/* The host system cgicc was configured for */
|
9 |
+
-#undef HOST
|
10 |
+
+#cmakedefine HOST "@HOST@"
|
11 |
+
|
12 |
+
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
13 |
+
#undef LT_OBJDIR
|
14 |
+
@@ -106,7 +106,7 @@
|
15 |
+
#undef STDC_HEADERS
|
16 |
+
|
17 |
+
/* Version number of package */
|
18 |
+
-#undef VERSION
|
19 |
+
+#cmakedefine VERSION "@VERSION@"
|
20 |
+
|
21 |
+
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
22 |
+
calls it, or to nothing if 'inline' is not supported under any name. */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/fix-static-build.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cgicc/CgiDefs.h.in b/cgicc/CgiDefs.h.in
|
2 |
+
index 71b70ad..3793cd8 100644
|
3 |
+
--- a/cgicc/CgiDefs.h.in
|
4 |
+
+++ b/cgicc/CgiDefs.h.in
|
5 |
+
@@ -47,7 +47,9 @@
|
6 |
+
#ifdef WIN32
|
7 |
+
|
8 |
+
// export library symbols
|
9 |
+
-# ifdef CGICC_EXPORTS
|
10 |
+
+# ifdef CGICC_STATIC
|
11 |
+
+# define CGICC_API
|
12 |
+
+# elif defined(CGICC_EXPORTS)
|
13 |
+
# define CGICC_API __declspec(dllexport)
|
14 |
+
# else
|
15 |
+
# define CGICC_API __declspec(dllimport)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(CGICC_VERSION 3.2.19)
|
2 |
+
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_download_distfile(ARCHIVE
|
6 |
+
URLS "https://ftp.gnu.org/gnu/cgicc/cgicc-${CGICC_VERSION}.tar.gz" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/cgicc/cgicc-${CGICC_VERSION}.tar.gz"
|
7 |
+
FILENAME "cgicc-${CGICC_VERSION}.tar.gz"
|
8 |
+
SHA512 c361923cf3ac876bc3fc94dffd040d2be7cd44751d8534f4cfa3545e9f58a8ec35ebcd902a8ce6a19da0efe52db67506d8b02e5cc868188d187ce3092519abdf
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_extract_source_archive_ex(
|
12 |
+
ARCHIVE ${ARCHIVE}
|
13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
14 |
+
PATCHES
|
15 |
+
fix-define.patch
|
16 |
+
fix-static-build.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
20 |
+
|
21 |
+
vcpkg_configure_cmake(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
23 |
+
PREFER_NINJA
|
24 |
+
OPTIONS_DEBUG
|
25 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
26 |
+
-DDISABLE_INSTALL_TOOLS=ON
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_install_cmake()
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
|
32 |
+
file(READ ${CURRENT_PACKAGES_DIR}/include/cgicc/CgiDefs.h CGI_H)
|
33 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
34 |
+
string(REPLACE "# ifdef CGICC_STATIC" "# if 0" CGI_H "${CGI_H}")
|
35 |
+
else()
|
36 |
+
string(REPLACE "# ifdef CGICC_STATIC" "# if 1" CGI_H "${CGI_H}")
|
37 |
+
endif()
|
38 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/include/cgicc/CgiDefs.h "${CGI_H}")
|
39 |
+
|
40 |
+
|
41 |
+
file(INSTALL ${SOURCE_PATH}/COPYING.DOC DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgicc/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cgicc",
|
3 |
+
"version-string": "3.2.19",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "GNU Cgicc is an ANSI C++ compliant class library that greatly simplifies the creation of CGI applications for the World Wide Web",
|
6 |
+
"homepage": "https://www.gnu.org/software/cgicc/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/CMakeLists.txt
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.11)
|
2 |
+
|
3 |
+
project(Cgl LANGUAGES C CXX)
|
4 |
+
|
5 |
+
set(PROJECT_VERSION 0.60.2)
|
6 |
+
set(PROJECT_VERSION_MAJOR 0)
|
7 |
+
set(PROJECT_VERSION_MINOR 60)
|
8 |
+
set(PROJECT_VERSION_PATCH 2)
|
9 |
+
|
10 |
+
set(CMAKE_CXX_STANDARD 14)
|
11 |
+
|
12 |
+
set(INSTALL_BIN_DIR "bin" CACHE PATH "Path where exe and dll will be installed")
|
13 |
+
set(INSTALL_LIB_DIR "lib" CACHE PATH "Path where lib will be installed")
|
14 |
+
set(INSTALL_INCLUDE_DIR "include/Coin" CACHE PATH "Path where headers will be installed")
|
15 |
+
set(INSTALL_CMAKE_DIR "share/cgl" CACHE PATH "Path where cmake configs will be installed")
|
16 |
+
|
17 |
+
# Make relative paths absolute (needed later on)
|
18 |
+
set(RELATIVE_INSTALL_INCLUDE_DIR ${INSTALL_INCLUDE_DIR})
|
19 |
+
foreach(p LIB BIN INCLUDE CMAKE)
|
20 |
+
set(var INSTALL_${p}_DIR)
|
21 |
+
if(NOT IS_ABSOLUTE "${${var}}")
|
22 |
+
set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
|
23 |
+
endif()
|
24 |
+
endforeach()
|
25 |
+
|
26 |
+
find_package(CoinUtils REQUIRED)
|
27 |
+
find_package(Osi REQUIRED)
|
28 |
+
find_package(Clp REQUIRED)
|
29 |
+
|
30 |
+
file(GLOB CGL_SOURCES
|
31 |
+
Cgl/src/CglConfig.h
|
32 |
+
Cgl/src/*.hpp
|
33 |
+
Cgl/src/*.cpp
|
34 |
+
Cgl/src/CglAllDifferent/*.cpp
|
35 |
+
Cgl/src/CglAllDifferent/*.hpp
|
36 |
+
Cgl/src/CglBKClique/*.cpp
|
37 |
+
Cgl/src/CglBKClique/*.hpp
|
38 |
+
Cgl/src/CglClique/*.cpp
|
39 |
+
Cgl/src/CglClique/*.hpp
|
40 |
+
Cgl/src/CglCliqueMerging/*.cpp
|
41 |
+
Cgl/src/CglCliqueMerging/*.hpp
|
42 |
+
Cgl/src/CglDuplicateRow/*.cpp
|
43 |
+
Cgl/src/CglDuplicateRow/*.hpp
|
44 |
+
Cgl/src/CglFlowCover/*.cpp
|
45 |
+
Cgl/src/CglFlowCover/*.hpp
|
46 |
+
Cgl/src/CglGMI/*.cpp
|
47 |
+
Cgl/src/CglGMI/*.hpp
|
48 |
+
Cgl/src/CglGomory/*.cpp
|
49 |
+
Cgl/src/CglGomory/*.hpp
|
50 |
+
Cgl/src/CglKnapsackCover/*.cpp
|
51 |
+
Cgl/src/CglKnapsackCover/*.hpp
|
52 |
+
Cgl/src/CglLandP/*.cpp
|
53 |
+
Cgl/src/CglLandP/*.hpp
|
54 |
+
Cgl/src/CglLiftAndProject/*.cpp
|
55 |
+
Cgl/src/CglLiftAndProject/*.hpp
|
56 |
+
Cgl/src/CglMixedIntegerRounding/*.cpp
|
57 |
+
Cgl/src/CglMixedIntegerRounding/*.hpp
|
58 |
+
Cgl/src/CglMixedIntegerRounding2/*.cpp
|
59 |
+
Cgl/src/CglMixedIntegerRounding2/*.hpp
|
60 |
+
Cgl/src/CglOddHole/*.cpp
|
61 |
+
Cgl/src/CglOddHole/*.hpp
|
62 |
+
Cgl/src/CglOddHoleWC/*.cpp
|
63 |
+
Cgl/src/CglOddHoleWC/*.hpp
|
64 |
+
Cgl/src/CglPreProcess/*.cpp
|
65 |
+
Cgl/src/CglPreProcess/*.hpp
|
66 |
+
Cgl/src/CglProbing/*.cpp
|
67 |
+
Cgl/src/CglProbing/*.hpp
|
68 |
+
Cgl/src/CglRedSplit/*.cpp
|
69 |
+
Cgl/src/CglRedSplit/*.hpp
|
70 |
+
Cgl/src/CglRedSplit2/*.cpp
|
71 |
+
Cgl/src/CglRedSplit2/*.hpp
|
72 |
+
Cgl/src/CglResidualCapacity/*.cpp
|
73 |
+
Cgl/src/CglResidualCapacity/*.hpp
|
74 |
+
Cgl/src/CglSimpleRounding/*.cpp
|
75 |
+
Cgl/src/CglSimpleRounding/*.hpp
|
76 |
+
Cgl/src/CglTwomir/*.cpp
|
77 |
+
Cgl/src/CglTwomir/*.hpp
|
78 |
+
Cgl/src/CglZeroHalf/*.cpp
|
79 |
+
Cgl/src/CglZeroHalf/*.hpp)
|
80 |
+
|
81 |
+
add_library(${PROJECT_NAME} ${CGL_SOURCES})
|
82 |
+
|
83 |
+
target_include_directories(${PROJECT_NAME}
|
84 |
+
PUBLIC
|
85 |
+
$<INSTALL_INTERFACE:${RELATIVE_INSTALL_INCLUDE_DIR}>
|
86 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Cgl/src/>)
|
87 |
+
|
88 |
+
target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_CMATH)
|
89 |
+
target_compile_definitions(${PROJECT_NAME} PUBLIC COIN_HAS_CLP)
|
90 |
+
|
91 |
+
target_link_libraries(${PROJECT_NAME} PRIVATE Coin::CoinUtils Coin::Osi Coin::Clp)
|
92 |
+
|
93 |
+
install(DIRECTORY Cgl/src/
|
94 |
+
DESTINATION ${INSTALL_INCLUDE_DIR}
|
95 |
+
FILES_MATCHING
|
96 |
+
PATTERN "*.h"
|
97 |
+
PATTERN "*.hpp"
|
98 |
+
PATTERN "config_default.h" EXCLUDE)
|
99 |
+
|
100 |
+
install(TARGETS ${PROJECT_NAME}
|
101 |
+
EXPORT "${PROJECT_NAME}Targets"
|
102 |
+
LIBRARY DESTINATION lib
|
103 |
+
ARCHIVE DESTINATION lib
|
104 |
+
RUNTIME DESTINATION bin)
|
105 |
+
|
106 |
+
include(CMakePackageConfigHelpers)
|
107 |
+
|
108 |
+
set(version_config "${CMAKE_CURRENT_BINARY_DIR}/temp/${PROJECT_NAME}ConfigVersion.cmake")
|
109 |
+
set(project_config "${CMAKE_CURRENT_BINARY_DIR}/temp/${PROJECT_NAME}Config.cmake")
|
110 |
+
set(namespace "Coin::")
|
111 |
+
|
112 |
+
write_basic_package_version_file("${version_config}"
|
113 |
+
COMPATIBILITY SameMajorVersion)
|
114 |
+
|
115 |
+
configure_package_config_file("Config.cmake.in"
|
116 |
+
"${project_config}"
|
117 |
+
INSTALL_DESTINATION
|
118 |
+
"${INSTALL_CMAKE_DIR}")
|
119 |
+
|
120 |
+
install(FILES "${project_config}" "${version_config}"
|
121 |
+
DESTINATION "${INSTALL_CMAKE_DIR}")
|
122 |
+
|
123 |
+
install(EXPORT "${PROJECT_NAME}Targets"
|
124 |
+
NAMESPACE "${namespace}"
|
125 |
+
DESTINATION "${INSTALL_CMAKE_DIR}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/Config.cmake.in
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
@PACKAGE_INIT@
|
3 |
+
|
4 |
+
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
|
5 |
+
check_required_components("@PROJECT_NAME@")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/fix-c1083-error.patch
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Cgl/src/CglLandP/CglLandP.cpp b/Cgl/src/CglLandP/CglLandP.cpp
|
2 |
+
index 2676790..af90a6e 100644
|
3 |
+
--- a/Cgl/src/CglLandP/CglLandP.cpp
|
4 |
+
+++ b/Cgl/src/CglLandP/CglLandP.cpp
|
5 |
+
@@ -22,7 +22,7 @@
|
6 |
+
#define CLONE_SI //Solver is cloned between two cuts
|
7 |
+
|
8 |
+
#include "CoinTime.hpp"
|
9 |
+
-#include "CglGomory.hpp"
|
10 |
+
+#include "CglGomory/CglGomory.hpp"
|
11 |
+
#include "CoinFactorization.hpp"
|
12 |
+
#include <fstream>
|
13 |
+
namespace LAP
|
14 |
+
diff --git a/Cgl/src/CglPreProcess/CglPreProcess.cpp b/Cgl/src/CglPreProcess/CglPreProcess.cpp
|
15 |
+
index 17cf372..8cb738f 100644
|
16 |
+
--- a/Cgl/src/CglPreProcess/CglPreProcess.cpp
|
17 |
+
+++ b/Cgl/src/CglPreProcess/CglPreProcess.cpp
|
18 |
+
@@ -24,9 +24,9 @@
|
19 |
+
#include "CoinHelperFunctions.hpp"
|
20 |
+
#include "CoinWarmStartBasis.hpp"
|
21 |
+
|
22 |
+
-#include "CglProbing.hpp"
|
23 |
+
-#include "CglDuplicateRow.hpp"
|
24 |
+
-#include "CglClique.hpp"
|
25 |
+
+#include "CglProbing/CglProbing.hpp"
|
26 |
+
+#include "CglDuplicateRow/CglDuplicateRow.hpp"
|
27 |
+
+#include "CglClique/CglClique.hpp"
|
28 |
+
//#define PRINT_DEBUG 1
|
29 |
+
//#define COIN_DEVELOP 1
|
30 |
+
#ifdef COIN_DEVELOP
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/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 coin-or/Cgl
|
6 |
+
REF 31797b2997219934db02a40d501c4b6d8efa7398 # 0.60.3
|
7 |
+
SHA512 33e01acdfd2057541492f4e83c0554ed74489995c47cef0b954529d4603090d03457fdababb331132b3fd286c985e46a3c8e3abbdb2eed36e7eaa8102acd095e
|
8 |
+
PATCHES fix-c1083-error.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup()
|
21 |
+
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
26 |
+
|
27 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgl/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cgl",
|
3 |
+
"version": "0.60.3",
|
4 |
+
"description": "The COIN-OR Cut Generation Library (Cgl) is a collection of cut generators that can be used with other COIN-OR packages that make use of cuts, such as, among others, the linear solver Clp or the mixed integer linear programming solvers Cbc or BCP.",
|
5 |
+
"homepage": "https://github.com/coin-or/Cgl",
|
6 |
+
"dependencies": [
|
7 |
+
"clp",
|
8 |
+
"coinutils",
|
9 |
+
"osi",
|
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/cgltf/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO jkuhlmann/cgltf
|
6 |
+
REF v1.11
|
7 |
+
SHA512 b3350d34670dac6756ea010bd030c4709f3a6c86d43b5099d10b505437422951e5db7f8e521ec9590a7aada535146614936ff990533d07084b1e50c216572943
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${SOURCE_PATH}/cgltf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
12 |
+
file(COPY "${SOURCE_PATH}/cgltf_write.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
13 |
+
|
14 |
+
# Handle copyright
|
15 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgltf/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cgltf",
|
3 |
+
"version": "1.11",
|
4 |
+
"description": "Single-file glTF 2.0 loader and writer written in C99",
|
5 |
+
"homepage": "https://github.com/jkuhlmann/cgltf"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/cgnsconfig.h
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef CGNSCONFIG_H
|
2 |
+
#define CGNSCONFIG_H
|
3 |
+
|
4 |
+
#include "cgnstypes.h"
|
5 |
+
|
6 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/hdf5.patch
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d871a9dc8..d2c631023 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -232,46 +232,12 @@ if (CGNS_ENABLE_HDF5)
|
6 |
+
cmake_policy(SET CMP0074 NEW)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
- find_package (HDF5 NAMES ${SEARCH_PACKAGE_NAME} COMPONENTS ${FIND_HDF_COMPONENTS})
|
10 |
+
- message (STATUS "HDF5 C libs:${HDF5_FOUND} static:${HDF5_static_C_FOUND} and shared:${HDF5_shared_C_FOUND}")
|
11 |
+
- if (HDF5_FOUND)
|
12 |
+
- if (NOT HDF5_static_C_FOUND AND NOT HDF5_shared_C_FOUND)
|
13 |
+
- set (FIND_HDF_COMPONENTS C)
|
14 |
+
-
|
15 |
+
- find_package (HDF5 NAMES ${SEARCH_PACKAGE_NAME} COMPONENTS ${FIND_HDF_COMPONENTS})
|
16 |
+
- message (STATUS "HDF5 libs:${HDF5_FOUND} C:${HDF5_C_FOUND}")
|
17 |
+
- set (LINK_LIBS ${LINK_LIBS} ${HDF5_LIBRARIES})
|
18 |
+
- if (HDF5_BUILD_SHARED_LIBS)
|
19 |
+
- add_definitions (-DH5_BUILT_AS_DYNAMIC_LIB)
|
20 |
+
- else (HDF5_BUILD_SHARED_LIBS)
|
21 |
+
- add_definitions (-DH5_BUILT_AS_STATIC_LIB)
|
22 |
+
- endif (HDF5_BUILD_SHARED_LIBS)
|
23 |
+
- else (NOT HDF5_static_C_FOUND AND NOT HDF5_shared_C_FOUND)
|
24 |
+
- if (CGNS_BUILD_SHARED AND HDF5_shared_C_FOUND)
|
25 |
+
- set (LINK_LIBS ${LINK_LIBS} ${HDF5_C_SHARED_LIBRARY})
|
26 |
+
- else (CGNS_BUILD_SHARED AND HDF5_shared_C_FOUND)
|
27 |
+
- set (LINK_LIBS ${LINK_LIBS} ${HDF5_C_STATIC_LIBRARY})
|
28 |
+
- endif (CGNS_BUILD_SHARED AND HDF5_shared_C_FOUND)
|
29 |
+
- endif (NOT HDF5_static_C_FOUND AND NOT HDF5_shared_C_FOUND)
|
30 |
+
-
|
31 |
+
- else (HDF5_FOUND)
|
32 |
+
- find_package (HDF5) # Legacy find
|
33 |
+
-
|
34 |
+
- #Legacy find_package does not set HDF5_TOOLS_DIR, so we set it here
|
35 |
+
- set(HDF5_TOOLS_DIR ${HDF5_LIBRARY}/../bin)
|
36 |
+
-
|
37 |
+
- #Legacy find_package does not set HDF5_BUILD_SHARED_LIBS, so we set it here
|
38 |
+
- if (CGNS_BUILD_SHARED AND EXISTS "${HDF5_LIBRARY}/libhdf5${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
39 |
+
- set (HDF5_BUILD_SHARED_LIBS 1)
|
40 |
+
- add_definitions (-DH5_BUILT_AS_DYNAMIC_LIB)
|
41 |
+
- else ()
|
42 |
+
- set (HDF5_BUILD_SHARED_LIBS 0)
|
43 |
+
- add_definitions (-DH5_BUILT_AS_STATIC_LIB)
|
44 |
+
- endif ()
|
45 |
+
- set (LINK_LIBS ${LINK_LIBS} ${HDF5_LIBRARIES})
|
46 |
+
-
|
47 |
+
- endif (HDF5_FOUND)
|
48 |
+
- set (HDF5_PACKAGE_NAME ${SEARCH_PACKAGE_NAME})
|
49 |
+
+ find_package (HDF5 CONFIG REQUIRED)
|
50 |
+
+ if (TARGET hdf5::hdf5-shared)
|
51 |
+
+ set (LINK_LIBS ${LINK_LIBS} hdf5::hdf5-shared)
|
52 |
+
+ else ()
|
53 |
+
+ set (LINK_LIBS ${LINK_LIBS} hdf5::hdf5-static)
|
54 |
+
+ endif ()
|
55 |
+
|
56 |
+
if (HDF5_FOUND)
|
57 |
+
if (NOT DEFINED HDF5_INCLUDE_DIRS)
|
58 |
+
@@ -289,20 +255,10 @@ if (CGNS_ENABLE_HDF5)
|
59 |
+
endif (HDF5_FOUND)
|
60 |
+
|
61 |
+
set(HDF5_NEED_ZLIB "OFF" CACHE BOOL "Does the HDF5 library require linking to zlib?")
|
62 |
+
- if(HDF5_NEED_ZLIB)
|
63 |
+
- find_library(ZLIB_LIBRARY z)
|
64 |
+
- mark_as_advanced(CLEAR ZLIB_LIBRARY)
|
65 |
+
- else (HDF5_NEED_ZLIB)
|
66 |
+
- mark_as_advanced(FORCE ZLIB_LIBRARY)
|
67 |
+
- endif(HDF5_NEED_ZLIB)
|
68 |
+
+ set(HDF5_NEED_ZLIB ${HDF5_ENABLE_Z_LIB_SUPPORT} CACHE INTERNAL "" FORCE)
|
69 |
+
|
70 |
+
set(HDF5_NEED_SZIP "OFF" CACHE BOOL "Does the HDF5 library require linking to szip?")
|
71 |
+
- if (HDF5_NEED_SZIP)
|
72 |
+
- find_library(SZIP_LIBRARY szip)
|
73 |
+
- mark_as_advanced(CLEAR SZIP_LIBRARY)
|
74 |
+
- else (HDF5_NEED_SZIP)
|
75 |
+
- mark_as_advanced(FORCE SZIP_LIBRARY)
|
76 |
+
- endif (HDF5_NEED_SZIP)
|
77 |
+
+ set(HDF5_NEED_SZIP ${HDF5_ENABLE_SZIP_SUPPORT} CACHE INTERNAL "" FORCE)
|
78 |
+
|
79 |
+
# Check if HDF5 version is 1.8 or greater
|
80 |
+
if (HDF5_VERSION VERSION_LESS "1.8.0")
|
81 |
+
@@ -310,6 +266,7 @@ if (CGNS_ENABLE_HDF5)
|
82 |
+
endif (HDF5_VERSION VERSION_LESS "1.8.0")
|
83 |
+
|
84 |
+
set(HDF5_NEED_MPI "OFF" CACHE BOOL "Does the HDF5 library require linking to mpi? (Only true if using parallel HDF5)")
|
85 |
+
+ set(HDF5_NEED_MPI ${HDF5_ENABLE_PARALLEL} CACHE INTERNAL "" FORCE)
|
86 |
+
set(MPI_INC)
|
87 |
+
set(MPI_LIBS)
|
88 |
+
if (HDF5_NEED_MPI)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/linux_lfs.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 46446da8a..a3d8cd98f 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -82,6 +82,7 @@ if (CGNS_ENABLE_LFS)
|
6 |
+
else (WIN32)
|
7 |
+
check_symbol_exists(open64 "sys/types.h;sys/stat.h;unistd.h" HAVE_OPEN64)
|
8 |
+
check_symbol_exists(lseek64 "sys/types.h;unistd.h" HAVE_LSEEK64)
|
9 |
+
+ add_definitions(-D_FILE_OFFSET_BITS=64 -D__LARGEFILE64_SOURCE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)
|
10 |
+
endif (WIN32)
|
11 |
+
if (HAVE_OPEN64)
|
12 |
+
add_definitions(-DHAVE_OPEN64)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/portfile.cmake
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO CGNS/CGNS
|
5 |
+
REF 86b686bce292eef7782cfb56b6acdb5123c96f49 # v4.2.0
|
6 |
+
SHA512 88df741acc1b650724bcbeb82ab0f7e593bf01e0a30c04b14b9915f4ea4331725cc24b87715dd08d93d5a3708660ca7f7874bc0a9c5505b76471802cf033e35d
|
7 |
+
HEAD_REF develop
|
8 |
+
PATCHES
|
9 |
+
hdf5.patch
|
10 |
+
linux_lfs.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
fortran CGNS_ENABLE_FORTRAN
|
16 |
+
tests CGNS_ENABLE_TESTS
|
17 |
+
hdf5 CGNS_ENABLE_HDF5
|
18 |
+
lfs CGNS_ENABLE_LFS
|
19 |
+
legacy CGNS_ENABLE_LEGACY
|
20 |
+
)
|
21 |
+
|
22 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "64")
|
23 |
+
list(APPEND CGNS_BUILD_OPTS "-DCGNS_ENABLE_64BIT=ON")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
27 |
+
list(APPEND CGNS_BUILD_OPTS "-DCGNS_BUILD_SHARED=ON;-DCGNS_USE_SHARED=ON")
|
28 |
+
else()
|
29 |
+
list(APPEND CGNS_BUILD_OPTS "-DCGNS_BUILD_SHARED=OFF;-DCGNS_USE_SHARED=OFF")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
vcpkg_configure_cmake(
|
33 |
+
SOURCE_PATH ${SOURCE_PATH}
|
34 |
+
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
35 |
+
OPTIONS
|
36 |
+
${FEATURE_OPTIONS}
|
37 |
+
${CGNS_BUILD_OPTS}
|
38 |
+
)
|
39 |
+
|
40 |
+
vcpkg_install_cmake()
|
41 |
+
|
42 |
+
file(INSTALL ${CURRENT_PACKAGES_DIR}/include/cgnsBuild.defs DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
43 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/cgnsBuild.defs ${CURRENT_PACKAGES_DIR}/include/cgnsconfig.h)
|
44 |
+
|
45 |
+
file(INSTALL ${CURRENT_PORT_DIR}/cgnsconfig.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) # the include is all that is needed
|
46 |
+
|
47 |
+
set(TOOLS cgnscheck cgnscompress cgnsconvert cgnsdiff cgnslist cgnsnames)
|
48 |
+
|
49 |
+
foreach(tool ${TOOLS})
|
50 |
+
set(suffix ${VCPKG_TARGET_EXECUTABLE_SUFFIX})
|
51 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/${tool}${suffix}")
|
52 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${tool}${suffix}")
|
53 |
+
endif()
|
54 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/${tool}${suffix}")
|
55 |
+
file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/${tool}${suffix}"
|
56 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
57 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${tool}${suffix}")
|
58 |
+
endif()
|
59 |
+
endforeach()
|
60 |
+
|
61 |
+
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
62 |
+
|
63 |
+
IF(EXISTS ${CURRENT_PACKAGES_DIR}/debug)
|
64 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/include/cgnsBuild.defs ${CURRENT_PACKAGES_DIR}/debug/include/cgnsconfig.h)
|
65 |
+
endif()
|
66 |
+
|
67 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/cgnsBuild.defs ${CURRENT_PACKAGES_DIR}/include/cgnsconfig.h)
|
68 |
+
file(GLOB_RECURSE BATCH_FILES ${CURRENT_PACKAGES_DIR}/bin/*.bat)
|
69 |
+
|
70 |
+
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
71 |
+
|
72 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
73 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
74 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
75 |
+
endif()
|
76 |
+
|
77 |
+
# # Moves all .cmake files from /debug/share/cgns/ to /share/cgns/
|
78 |
+
# # See /docs/maintainers/vcpkg_fixup_cmake_targets.md for more details
|
79 |
+
# vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/cgns)
|
80 |
+
|
81 |
+
# # Handle copyright
|
82 |
+
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cgns/vcpkg.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cgns",
|
3 |
+
"version-semver": "4.2.0",
|
4 |
+
"description": "The CFD General Notation System (CGNS) provides a standard for recording and recovering computer data associated with the numerical solution of fluid dynamics equations.",
|
5 |
+
"homepage": "http://cgns.org/",
|
6 |
+
"default-features": [
|
7 |
+
"hdf5",
|
8 |
+
"lfsselector"
|
9 |
+
],
|
10 |
+
"features": {
|
11 |
+
"fortran": {
|
12 |
+
"description": "Enable fortran support (not yet implemented)"
|
13 |
+
},
|
14 |
+
"hdf5": {
|
15 |
+
"description": "Enable hdf5 support",
|
16 |
+
"dependencies": [
|
17 |
+
{
|
18 |
+
"name": "hdf5",
|
19 |
+
"default-features": false,
|
20 |
+
"features": [
|
21 |
+
"tools"
|
22 |
+
]
|
23 |
+
}
|
24 |
+
]
|
25 |
+
},
|
26 |
+
"legacy": {
|
27 |
+
"description": "Enable legacy support"
|
28 |
+
},
|
29 |
+
"lfs": {
|
30 |
+
"description": "Enable LFS support"
|
31 |
+
},
|
32 |
+
"lfsselector": {
|
33 |
+
"description": "Selector for LFS",
|
34 |
+
"dependencies": [
|
35 |
+
{
|
36 |
+
"name": "cgns",
|
37 |
+
"default-features": false,
|
38 |
+
"features": [
|
39 |
+
"lfs"
|
40 |
+
],
|
41 |
+
"platform": "!osx"
|
42 |
+
}
|
43 |
+
]
|
44 |
+
},
|
45 |
+
"mpi": {
|
46 |
+
"description": "Enable MPI support",
|
47 |
+
"dependencies": [
|
48 |
+
{
|
49 |
+
"name": "hdf5",
|
50 |
+
"default-features": false,
|
51 |
+
"features": [
|
52 |
+
"parallel"
|
53 |
+
]
|
54 |
+
}
|
55 |
+
]
|
56 |
+
},
|
57 |
+
"tests": {
|
58 |
+
"description": "Build tests"
|
59 |
+
},
|
60 |
+
"tools": {
|
61 |
+
"description": "Build tools"
|
62 |
+
}
|
63 |
+
}
|
64 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chaiscript/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ChaiScript/ChaiScript
|
4 |
+
REF v6.1.0
|
5 |
+
SHA512 7728abd8d3e1e8007f4d95c8065ba5a9154583bcd1d493bfd96d608ff91f4c9bb23e538378b77c1cfd6c637d6b4885af94ac0a2a9a34b6bae19581d9f1a831cc
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
|
10 |
+
|
11 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chaiscript/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chaiscript",
|
3 |
+
"version-string": "6.1.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Embedded Scripting Language Designed for C++",
|
6 |
+
"homepage": "https://github.com/ChaiScript/ChaiScript"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/fix-debug-linux-build.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/lib/Common/Memory/RecyclerObjectGraphDumper.cpp b/lib/Common/Memory/RecyclerObjectGraphDumper.cpp
|
2 |
+
index 0885df3fb..12bdfb96e 100644
|
3 |
+
--- a/lib/Common/Memory/RecyclerObjectGraphDumper.cpp
|
4 |
+
+++ b/lib/Common/Memory/RecyclerObjectGraphDumper.cpp
|
5 |
+
@@ -58,7 +58,7 @@ void RecyclerObjectGraphDumper::BeginDumpObject(void * objectAddress)
|
6 |
+
{
|
7 |
+
Assert(false);
|
8 |
+
this->dumpObjectTypeInfo = nullptr;
|
9 |
+
- this->dumpObjectIsArray = nullptr;
|
10 |
+
+ this->dumpObjectIsArray = 0;
|
11 |
+
}
|
12 |
+
}
|
13 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/no-warning-as-error.props
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3 |
+
<ItemDefinitionGroup>
|
4 |
+
<ClCompile>
|
5 |
+
<TreatWarningAsError>false</TreatWarningAsError>
|
6 |
+
</ClCompile>
|
7 |
+
</ItemDefinitionGroup>
|
8 |
+
</Project>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/portfile.cmake
ADDED
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Microsoft/ChakraCore
|
6 |
+
REF 385409ee4b634b860e090606a28acbc99f4d2567
|
7 |
+
SHA512 ef47db988c4ddd77fa87f4c5e1ac91d9f6b31b35aa6934d8b2863ee1274776d90a2b85dbad51eef069c96777d3cd7729349b89f23eda8c61b4cb637150bead71
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-debug-linux-build.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
if(WIN32)
|
14 |
+
find_path(COR_H_PATH cor.h)
|
15 |
+
if(COR_H_PATH MATCHES "NOTFOUND")
|
16 |
+
message(FATAL_ERROR "Could not find <cor.h>. Ensure the NETFXSDK is installed.")
|
17 |
+
endif()
|
18 |
+
get_filename_component(NETFXSDK_PATH "${COR_H_PATH}/../.." ABSOLUTE)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
set(BUILDTREE_PATH ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET})
|
22 |
+
file(REMOVE_RECURSE ${BUILDTREE_PATH})
|
23 |
+
file(COPY ${SOURCE_PATH}/ DESTINATION ${BUILDTREE_PATH})
|
24 |
+
|
25 |
+
if(WIN32)
|
26 |
+
set(CHAKRA_RUNTIME_LIB "static_library") # ChakraCore only supports static CRT linkage
|
27 |
+
vcpkg_build_msbuild(
|
28 |
+
PROJECT_PATH "${BUILDTREE_PATH}/Build/Chakra.Core.sln"
|
29 |
+
OPTIONS
|
30 |
+
"/p:DotNetSdkRoot=${NETFXSDK_PATH}/"
|
31 |
+
"/p:CustomBeforeMicrosoftCommonTargets=${CMAKE_CURRENT_LIST_DIR}/no-warning-as-error.props"
|
32 |
+
"/p:RuntimeLib=${CHAKRA_RUNTIME_LIB}"
|
33 |
+
)
|
34 |
+
else()
|
35 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "x64")
|
36 |
+
set(CHAKRACORE_TARGET_ARCH amd64)
|
37 |
+
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
38 |
+
set(CHAKRACORE_TARGET_ARCH x86)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
if (VCPKG_TARGET_IS_LINUX)
|
42 |
+
message(WARNING "${PORT} requires Clang from the system package manager, this can be installed on Ubuntu systems via sudo apt install clang")
|
43 |
+
endif()
|
44 |
+
|
45 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
46 |
+
list(APPEND configs "debug")
|
47 |
+
execute_process(
|
48 |
+
COMMAND bash "build.sh" "--arch=${CHAKRACORE_TARGET_ARCH}" "--debug" "-j=${VCPKG_CONCURRENCY}"
|
49 |
+
WORKING_DIRECTORY "${BUILDTREE_PATH}"
|
50 |
+
|
51 |
+
OUTPUT_VARIABLE CHAKRA_BUILD_SH_OUT
|
52 |
+
ERROR_VARIABLE CHAKRA_BUILD_SH_ERR
|
53 |
+
RESULT_VARIABLE CHAKRA_BUILD_SH_RES
|
54 |
+
ECHO_OUTPUT_VARIABLE
|
55 |
+
ECHO_ERROR_VARIABLE
|
56 |
+
)
|
57 |
+
endif()
|
58 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
59 |
+
list(APPEND configs "release")
|
60 |
+
execute_process(
|
61 |
+
COMMAND bash "build.sh" "--arch=${CHAKRACORE_TARGET_ARCH}" "-j=${VCPKG_CONCURRENCY}"
|
62 |
+
WORKING_DIRECTORY "${BUILDTREE_PATH}"
|
63 |
+
OUTPUT_VARIABLE CHAKRA_BUILD_SH_OUT
|
64 |
+
ERROR_VARIABLE CHAKRA_BUILD_SH_ERR
|
65 |
+
RESULT_VARIABLE CHAKRA_BUILD_SH_RES
|
66 |
+
ECHO_OUTPUT_VARIABLE
|
67 |
+
ECHO_ERROR_VARIABLE
|
68 |
+
)
|
69 |
+
endif()
|
70 |
+
endif()
|
71 |
+
|
72 |
+
file(INSTALL
|
73 |
+
"${BUILDTREE_PATH}/lib/Jsrt/ChakraCore.h"
|
74 |
+
"${BUILDTREE_PATH}/lib/Jsrt/ChakraCommon.h"
|
75 |
+
"${BUILDTREE_PATH}/lib/Jsrt/ChakraDebug.h"
|
76 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
77 |
+
)
|
78 |
+
if(WIN32)
|
79 |
+
file(INSTALL
|
80 |
+
"${BUILDTREE_PATH}/lib/Jsrt/ChakraCommonWindows.h"
|
81 |
+
"${BUILDTREE_PATH}/lib/Jsrt/ChakraCoreWindows.h"
|
82 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
83 |
+
)
|
84 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
85 |
+
file(INSTALL
|
86 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_debug/ChakraCore.dll"
|
87 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_debug/ChakraCore.pdb"
|
88 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin"
|
89 |
+
)
|
90 |
+
file(INSTALL
|
91 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_debug/Chakracore.lib"
|
92 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib"
|
93 |
+
)
|
94 |
+
endif()
|
95 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
96 |
+
file(INSTALL
|
97 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_release/ChakraCore.dll"
|
98 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_release/ChakraCore.pdb"
|
99 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/bin"
|
100 |
+
)
|
101 |
+
file(INSTALL
|
102 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_release/Chakracore.lib"
|
103 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/lib"
|
104 |
+
)
|
105 |
+
file(INSTALL
|
106 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_release/ch.exe"
|
107 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_release/GCStress.exe"
|
108 |
+
"${BUILDTREE_PATH}/Build/VcBuild/bin/${TRIPLET_SYSTEM_ARCH}_release/rl.exe"
|
109 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/chakracore"
|
110 |
+
)
|
111 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/chakracore")
|
112 |
+
endif()
|
113 |
+
else()
|
114 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
115 |
+
set(out_file libChakraCore.so)
|
116 |
+
else()
|
117 |
+
set(out_file lib/libChakraCoreStatic.a)
|
118 |
+
endif()
|
119 |
+
|
120 |
+
set(destination_dir_debug "${CURRENT_PACKAGES_DIR}/debug/bin")
|
121 |
+
set(destination_dir_release "${CURRENT_PACKAGES_DIR}/bin")
|
122 |
+
set(out_dir_debug "${BUILDTREE_PATH}/out/Debug")
|
123 |
+
set(out_dir_release "${BUILDTREE_PATH}/out/Release")
|
124 |
+
foreach(config ${configs})
|
125 |
+
file(INSTALL
|
126 |
+
${out_dir_${config}}/${out_file}
|
127 |
+
DESTINATION ${destination_dir_${config}}
|
128 |
+
)
|
129 |
+
endforeach()
|
130 |
+
|
131 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
132 |
+
file(INSTALL
|
133 |
+
"${out_dir_release}/ch"
|
134 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/chakracore"
|
135 |
+
)
|
136 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/chakracore")
|
137 |
+
endif()
|
138 |
+
endif()
|
139 |
+
|
140 |
+
vcpkg_copy_pdbs()
|
141 |
+
|
142 |
+
file(INSTALL
|
143 |
+
"${SOURCE_PATH}/LICENSE.txt"
|
144 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/chakracore"
|
145 |
+
RENAME copyright
|
146 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chakracore/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chakracore",
|
3 |
+
"version-date": "2021-04-22",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Core part of the Chakra Javascript engine",
|
6 |
+
"homepage": "https://github.com/Microsoft/ChakraCore",
|
7 |
+
"supports": "!osx & !uwp & (linux | (!static & !staticcrt))"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/charls/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO team-charls/charls
|
4 |
+
REF 662d4f2a0238357ccc4d89cd14b1fa67d2597ff1 #v2.3.4
|
5 |
+
SHA512 f022d025ae1d5ff624982ceb61ee88c5a42ee958afcff39fbc3e698030092b6667c3a685b66b7fd16ab7c3d3af1d44b773f761e2eefd7f026432b80176b6894b
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DCHARLS_BUILD_TESTS=OFF
|
13 |
+
-DCHARLS_BUILD_SAMPLES=OFF
|
14 |
+
-DCHARLS_BUILD_FUZZ_TEST=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/charls)
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/charls/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "charls",
|
3 |
+
"version": "2.3.4",
|
4 |
+
"description": "CharLS, a C++ JPEG-LS library implementation.",
|
5 |
+
"homepage": "https://github.com/team-charls/charls",
|
6 |
+
"license": "BSD-3-Clause",
|
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/chartdir/Config.cmake.in
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
get_filename_component(_chartdir_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
3 |
+
get_filename_component(_chartdir_root "${_chartdir_root}" PATH)
|
4 |
+
get_filename_component(_chartdir_root "${_chartdir_root}" PATH)
|
5 |
+
|
6 |
+
set(_chartdir_lib "${_chartdir_root}/lib/@CHARTDIR_LIB@")
|
7 |
+
if (EXISTS "${_chartdir_lib}")
|
8 |
+
|
9 |
+
add_library(chartdir UNKNOWN IMPORTED)
|
10 |
+
set_target_properties(chartdir PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_chartdir_root}/include")
|
11 |
+
set_target_properties(chartdir PROPERTIES IMPORTED_LOCATION "${_chartdir_lib}")
|
12 |
+
set_property(TARGET chartdir APPEND PROPERTY IMPORTED_CONFIGURATIONS)
|
13 |
+
|
14 |
+
else()
|
15 |
+
|
16 |
+
set(chartdir_FOUND FALSE)
|
17 |
+
|
18 |
+
endif()
|
19 |
+
unset(_chartdir_lib)
|
20 |
+
|
21 |
+
unset(_chartdir_root)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/chartdir.h
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef __CHARTDIR_H__
|
2 |
+
#define __CHARTDIR_H__
|
3 |
+
|
4 |
+
#include <chartdir/chartdir.h>
|
5 |
+
|
6 |
+
#endif // __CHARTDIR_H__
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/portfile.cmake
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
if(TRIPLET_SYSTEM_ARCH MATCHES "arm" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
4 |
+
|
5 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
6 |
+
|
7 |
+
elseif(VCPKG_TARGET_IS_WINDOWS)
|
8 |
+
|
9 |
+
vcpkg_download_distfile(ARCHIVE_FILE
|
10 |
+
URLS "https://www.advsofteng.net/chartdir_cpp_win.zip"
|
11 |
+
FILENAME "chartdir_cpp_win-7.0.0.zip"
|
12 |
+
SHA512 e5b5d387cff693a7f5ee98c2d2df75f421129b006e4324ae30ace0cbaac58867f048868ddfacdb3224c7165c8f27219c4273f3c778be3330d39ef95260d4186b
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_extract_source_archive_ex(
|
16 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
17 |
+
ARCHIVE "${ARCHIVE_FILE}"
|
18 |
+
REF 7.0.0
|
19 |
+
)
|
20 |
+
|
21 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
22 |
+
set(LIBDIR "${SOURCE_PATH}/lib64")
|
23 |
+
else()
|
24 |
+
set(LIBDIR "${SOURCE_PATH}/lib32")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
file(COPY "${LIBDIR}/chartdir70.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
28 |
+
file(COPY "${LIBDIR}/chartdir70.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
29 |
+
file(COPY "${LIBDIR}/chartdir70.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
30 |
+
file(COPY "${LIBDIR}/chartdir70.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
31 |
+
|
32 |
+
set(CHARTDIR_LIB "chartdir70.lib")
|
33 |
+
|
34 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
35 |
+
|
36 |
+
vcpkg_download_distfile(ARCHIVE_FILE
|
37 |
+
URLS "https://www.advsofteng.net/chartdir_cpp_mac.tar.gz"
|
38 |
+
FILENAME "chartdir_cpp_mac-7.0.0.tar.gz"
|
39 |
+
SHA512 3f00a4eb7c6b7fc1ebd4856c287ca9a76ca4ce813b4203350526c7ef10c946baa3768446178b664af8e8222275f10f9ee6f5f87cf1e23f23c4a221f431864744
|
40 |
+
)
|
41 |
+
|
42 |
+
vcpkg_extract_source_archive_ex(
|
43 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
44 |
+
ARCHIVE "${ARCHIVE_FILE}"
|
45 |
+
REF 7.0.0
|
46 |
+
)
|
47 |
+
|
48 |
+
file(COPY "${SOURCE_PATH}/lib/libchartdir.7.dylib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
49 |
+
file(COPY "${SOURCE_PATH}/lib/libchartdir.7.dylib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
50 |
+
|
51 |
+
set(CHARTDIR_LIB "libchartdir.7.dylib")
|
52 |
+
|
53 |
+
elseif(VCPKG_TARGET_IS_LINUX)
|
54 |
+
|
55 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
56 |
+
|
57 |
+
vcpkg_download_distfile(ARCHIVE_FILE
|
58 |
+
URLS "https://www.advsofteng.net/chartdir_cpp_linux_64.tar.gz"
|
59 |
+
FILENAME "chartdir_cpp_linux_64-7.0.0.tar.gz"
|
60 |
+
SHA512 ea2e05f28dd9647fed49feaf130d8034065067463965f144b3fae4eae482579b1ecf528dc86d1b3602887d5ca0c3b1569404489b0f4cb2300b798fed940cd467
|
61 |
+
)
|
62 |
+
|
63 |
+
else()
|
64 |
+
|
65 |
+
vcpkg_download_distfile(ARCHIVE_FILE
|
66 |
+
URLS "https://www.advsofteng.net/chartdir_cpp_linux.tar.gz"
|
67 |
+
FILENAME "chartdir_cpp_linux-7.0.0.tar.gz"
|
68 |
+
SHA512 54720fb431fa0fb34be3a187ec3886b0f2a7307ea52a0415fab8513117a157f64a8c0e0b01304aac1d313e4557768242e6b12002509fde2e5303d930c78c0e03
|
69 |
+
)
|
70 |
+
|
71 |
+
endif()
|
72 |
+
|
73 |
+
vcpkg_extract_source_archive_ex(
|
74 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
75 |
+
ARCHIVE "${ARCHIVE_FILE}"
|
76 |
+
REF 7.0.0
|
77 |
+
)
|
78 |
+
|
79 |
+
file(COPY "${SOURCE_PATH}/lib/libchartdir.so.7.0.0" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
80 |
+
file(COPY "${SOURCE_PATH}/lib/libchartdir.so.7.0.0" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
81 |
+
|
82 |
+
set(CHARTDIR_LIB "libchartdir.so.7.0.0")
|
83 |
+
|
84 |
+
file(COPY "${SOURCE_PATH}/lib/fonts" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
85 |
+
|
86 |
+
endif()
|
87 |
+
|
88 |
+
file(GLOB HEADERS "${SOURCE_PATH}/include/*.h")
|
89 |
+
file(COPY ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
90 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/chartdir.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
91 |
+
file(COPY "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|
92 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/chartdir-config.cmake" @ONLY)
|
93 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package chartdir provides CMake targets:
|
2 |
+
|
3 |
+
find_package(chartdir CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE chartdir)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chartdir/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chartdir",
|
3 |
+
"version": "7.0.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "ChartDirector is a powerful chart component for creating professional looking charts for web and windows applications.",
|
6 |
+
"homepage": "https://www.advsofteng.com/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/check/fix-lib-path.patch
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/doc/example/src/CMakeLists.txt b/doc/example/src/CMakeLists.txt
|
2 |
+
index b5e211e..2a92a1a 100644
|
3 |
+
--- a/doc/example/src/CMakeLists.txt
|
4 |
+
+++ b/doc/example/src/CMakeLists.txt
|
5 |
+
@@ -18,7 +18,7 @@ target_link_libraries(main money)
|
6 |
+
|
7 |
+
install(TARGETS money
|
8 |
+
RUNTIME DESTINATION bin
|
9 |
+
- LIBRARY DESTINATION lib
|
10 |
+
- ARCHIVE DESTINATION lib)
|
11 |
+
+ LIBRARY DESTINATION lib/manual-link
|
12 |
+
+ ARCHIVE DESTINATION lib/manual-link)
|
13 |
+
|
14 |
+
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/money.h DESTINATION include)
|
15 |
+
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
16 |
+
index 38cbc53..d8a4272 100644
|
17 |
+
--- a/lib/CMakeLists.txt
|
18 |
+
+++ b/lib/CMakeLists.txt
|
19 |
+
@@ -75,5 +75,11 @@ set(HEADERS libcompat.h)
|
20 |
+
|
21 |
+
add_library(compat STATIC ${SOURCES} ${HEADERS})
|
22 |
+
|
23 |
+
+install(TARGETS compat
|
24 |
+
+ RUNTIME DESTINATION bin
|
25 |
+
+ LIBRARY DESTINATION lib/manual-link
|
26 |
+
+ ARCHIVE DESTINATION lib/manual-link
|
27 |
+
+)
|
28 |
+
+
|
29 |
+
# vim: shiftwidth=2:softtabstop=2:tabstop=2:expandtab:autoindent
|
30 |
+
|
31 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
32 |
+
index 4a02dbe..ade4cfd 100644
|
33 |
+
--- a/src/CMakeLists.txt
|
34 |
+
+++ b/src/CMakeLists.txt
|
35 |
+
@@ -191,8 +191,8 @@ if(NOT THIS_IS_SUBPROJECT)
|
36 |
+
install(TARGETS check checkShared
|
37 |
+
EXPORT check-targets
|
38 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
39 |
+
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
40 |
+
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
41 |
+
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/manual-link
|
42 |
+
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}/manual-link
|
43 |
+
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
44 |
+
)
|
45 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/check/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libcheck/check
|
4 |
+
REF 11970a7e112dfe243a2e68773f014687df2900e8 # 0.15.2
|
5 |
+
SHA512 210c9617fa1c1ce16bef983b0e6cb587b1774c3f7ce27a53ca7799642dc7a14be8de567d69dc0e57845684c6f7991d772c73654f63c8755afda3b37a35c7156e
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES fix-lib-path.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_cmake(
|
11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
12 |
+
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_install_cmake()
|
16 |
+
|
17 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/check)
|
18 |
+
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
# cleanup
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
file(INSTALL ${SOURCE_PATH}/COPYING.LESSER DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
30 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/check/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "check",
|
3 |
+
"version-string": "0.15.2",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A unit testing framework for C",
|
6 |
+
"homepage": "https://github.com/libcheck/check"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chipmunk/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO slembcke/Chipmunk2D
|
4 |
+
REF 87340c216bf97554dc552371bbdecf283f7c540e
|
5 |
+
SHA512 9094017755e9c140aa5bf8a1b5502077ae4fb2b0a3e12f1114e86d8591a6188f89822ecc578a2b5e95f61c555018f1b3273fe50e833fe2daf30e94b180a3d07c
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KEYSTONE_BUILD_STATIC)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" KEYSTONE_BUILD_SHARED)
|
11 |
+
|
12 |
+
vcpkg_configure_cmake(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
PREFER_NINJA
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_DEMOS=OFF
|
17 |
+
-DBUILD_SHARED=${KEYSTONE_BUILD_SHARED}
|
18 |
+
-DBUILD_STATIC=${KEYSTONE_BUILD_STATIC}
|
19 |
+
-DINSTALL_STATIC=${KEYSTONE_BUILD_STATIC}
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug)
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
26 |
+
endif()
|
27 |
+
|
28 |
+
file(GLOB DLLS ${CURRENT_PACKAGES_DIR}/lib/*.dll)
|
29 |
+
if(DLLS)
|
30 |
+
file(COPY ${DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
|
31 |
+
file(REMOVE ${DLLS})
|
32 |
+
endif()
|
33 |
+
|
34 |
+
file(INSTALL
|
35 |
+
${SOURCE_PATH}/include/chipmunk
|
36 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
37 |
+
)
|
38 |
+
|
39 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chipmunk/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chipmunk",
|
3 |
+
"version-string": "7.0.3",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A fast and lightweight 2D game physics library.",
|
6 |
+
"homepage": "https://github.com/slembcke/Chipmunk2D"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chmlib/CMakeLists.txt
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
project(chm C)
|
3 |
+
|
4 |
+
add_library(chm src/lzx.c src/chm_lib.c)
|
5 |
+
|
6 |
+
if(BUILD_TOOLS)
|
7 |
+
link_libraries(chm)
|
8 |
+
add_executable(enum_chmLib src/enum_chmLib.c)
|
9 |
+
add_executable(enumdir_chmLib src/enumdir_chmLib.c)
|
10 |
+
add_executable(extract_chmLib src/extract_chmLib.c)
|
11 |
+
|
12 |
+
install(TARGETS enum_chmLib extract_chmLib enumdir_chmLib
|
13 |
+
RUNTIME DESTINATION tools/chmlib
|
14 |
+
LIBRARY DESTINATION lib
|
15 |
+
ARCHIVE DESTINATION lib
|
16 |
+
)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
install(TARGETS chm
|
20 |
+
RUNTIME DESTINATION bin
|
21 |
+
LIBRARY DESTINATION lib
|
22 |
+
ARCHIVE DESTINATION lib
|
23 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chmlib/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
set(CHMLIB_VERSION chmlib-0.40)
|
4 |
+
set(CHMLIB_FILENAME ${CHMLIB_VERSION}.zip)
|
5 |
+
set(CHMLIB_URL http://www.jedrea.com/chmlib/${CHMLIB_FILENAME})
|
6 |
+
|
7 |
+
vcpkg_download_distfile(
|
8 |
+
ARCHIVE
|
9 |
+
URLS ${CHMLIB_URL}
|
10 |
+
FILENAME ${CHMLIB_FILENAME}
|
11 |
+
SHA512 ad3b0d49fcf99e724c0c38b9c842bae9508d0e4ad47122b0f489c113160f5344223d311abb79f25cbb0b662bb00e2925d338d60dd20a0c309bda2822cda4cd24
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_extract_source_archive_ex(
|
15 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
16 |
+
ARCHIVE ${ARCHIVE}
|
17 |
+
)
|
18 |
+
|
19 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
20 |
+
|
21 |
+
vcpkg_configure_cmake(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
23 |
+
PREFER_NINJA
|
24 |
+
OPTIONS_RELEASE -DBUILD_TOOLS=ON
|
25 |
+
OPTIONS_DEBUG -DBUILD_TOOLS=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_cmake()
|
29 |
+
|
30 |
+
file(INSTALL ${SOURCE_PATH}/src/chm_lib.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
31 |
+
|
32 |
+
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/chmlib)
|
33 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/chmlib/COPYING ${CURRENT_PACKAGES_DIR}/share/chmlib/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chmlib/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chmlib",
|
3 |
+
"version-string": "0.40",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. Right now, it is a very simple library, but sufficient for dealing with all of the .chm files I've come across. Due to the fairly well-designed indexing built into this particular file format, even a small library is able to gain reasonably good performance indexing into ITSS archives.",
|
6 |
+
"homepage": "https://www.jedrea.com/chmlib/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromaprint/fix_lrintf_detection.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 3a0eecb..4fa5e8d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -17,6 +17,7 @@ set_property(CACHE FFT_LIB PROPERTY STRINGS avfft fftw3 fftw3f kissfft vdsp)
|
6 |
+
|
7 |
+
include(CMakePushCheckState)
|
8 |
+
include(CheckFunctionExists)
|
9 |
+
+include(CheckSymbolExists)
|
10 |
+
include(CheckCXXCompilerFlag)
|
11 |
+
|
12 |
+
find_package(Threads)
|
13 |
+
@@ -37,8 +38,8 @@ endif()
|
14 |
+
|
15 |
+
cmake_push_check_state(RESET)
|
16 |
+
set(CMAKE_REQUIRED_LIBRARIES -lm)
|
17 |
+
-check_function_exists(lrintf HAVE_LRINTF)
|
18 |
+
-check_function_exists(round HAVE_ROUND)
|
19 |
+
+check_symbol_exists(lrintf math.h HAVE_LRINTF)
|
20 |
+
+check_symbol_exists(round math.h HAVE_ROUND)
|
21 |
+
cmake_pop_check_state()
|
22 |
+
|
23 |
+
add_definitions(
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromaprint/portfile.cmake
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO acoustid/chromaprint
|
4 |
+
REF v1.5.0
|
5 |
+
SHA512 333114949928abdf5d4b11aba1db6ec487eebe526324c68d903b3fa80a3af87a28d942af765a2f873e63a1bf222b658b6438cd10cde4446f61b26ea91f537469
|
6 |
+
PATCHES
|
7 |
+
fix_lrintf_detection.patch # submitted upstream as https://github.com/acoustid/chromaprint/pull/85
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_cmake(
|
11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
12 |
+
PREFER_NINJA
|
13 |
+
)
|
14 |
+
vcpkg_install_cmake()
|
15 |
+
vcpkg_fixup_pkgconfig()
|
16 |
+
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
18 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromaprint/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chromaprint",
|
3 |
+
"version": "1.5.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C library for generating audio fingerprints used by AcoustID",
|
6 |
+
"homepage": "https://github.com/acoustid/chromaprint",
|
7 |
+
"license": "LGPL-2.1-or-later",
|
8 |
+
"dependencies": [
|
9 |
+
"ffmpeg"
|
10 |
+
]
|
11 |
+
}
|