Spaces:
Sleeping
Sleeping
24f5e82a3b25bfe516b987a72fcf4f534975971fbebd815966c205403df75c07
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/remove_configure_checks.patch +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfio/portfile.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfio/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfutils/configure.ac.patch +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfutils/portfile.cmake +54 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfutils/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree2/cmake_policy.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree2/portfile.cmake +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree2/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/cmake_policy.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/fix-path.patch +85 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/fix-static-usage.patch +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/fix-targets-file-not-found.patch +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/portfile.cmake +77 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/vcpkg.json +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/enet/CMakeLists.txt +103 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/enet/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/enet/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ensmallen/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ensmallen/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/entityx/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/entityx/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/entt/portfile.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/entt/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/0001-VS2015-provides-snprintf.patch +51 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/0002-Add-CFLAGS-for-CRT-selection-and-warning-supression.patch +81 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/0003-Fix-build-error.patch +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/portfile.cmake +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/esaxx/portfile.cmake +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/esaxx/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eve/portfile.cmake +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eve/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eventpp/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eventpp/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/fix-linux-build.patch +112 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/fix-osx-build.patch +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/fix-rapidjson-1-1.patch +159 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/vcpkg.json +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/fix-find_expat.patch +64 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/portfile.cmake +76 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/vcpkg-cmake-wrapper.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/vcpkg.json +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/expat/portfile.cmake +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/expat/vcpkg-cmake-wrapper.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/expat/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/expected-lite/portfile.cmake +29 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/remove_configure_checks.patch
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f3e69b845..12fb2188d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -66,12 +66,14 @@ option(EIGEN_TEST_CXX11 "Enable testing with C++11 and C++11 features (e.g. Tens
|
6 |
+
|
7 |
+
|
8 |
+
macro(ei_add_cxx_compiler_flag FLAG)
|
9 |
+
+ if(FALSE) # Since eigen3 is header only and vcpkg does not build tests this can be disabled by default.
|
10 |
+
string(REGEX REPLACE "-" "" SFLAG1 ${FLAG})
|
11 |
+
string(REGEX REPLACE "\\+" "p" SFLAG ${SFLAG1})
|
12 |
+
check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})
|
13 |
+
if(COMPILER_SUPPORT_${SFLAG})
|
14 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${FLAG}")
|
15 |
+
endif()
|
16 |
+
+ endif()
|
17 |
+
endmacro()
|
18 |
+
|
19 |
+
check_cxx_compiler_flag("-std=c++11" EIGEN_COMPILER_SUPPORT_CPP11)
|
20 |
+
@@ -142,7 +144,7 @@ endif()
|
21 |
+
|
22 |
+
set(EIGEN_TEST_MAX_SIZE "320" CACHE STRING "Maximal matrix/vector size, default is 320")
|
23 |
+
|
24 |
+
-if(NOT MSVC)
|
25 |
+
+if(NOT MSVC AND FALSE)
|
26 |
+
# We assume that other compilers are partly compatible with GNUCC
|
27 |
+
|
28 |
+
# clang outputs some warnings for unknown flags that are not caught by check_cxx_compiler_flag
|
29 |
+
@@ -330,7 +332,7 @@ if(NOT MSVC)
|
30 |
+
endif()
|
31 |
+
endif()
|
32 |
+
|
33 |
+
-else()
|
34 |
+
+elseif(FALSE)
|
35 |
+
|
36 |
+
# C4127 - conditional expression is constant
|
37 |
+
# C4714 - marked as __forceinline not inlined (I failed to deactivate it selectively)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "eigen3",
|
3 |
+
"version": "3.4.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.",
|
6 |
+
"homepage": "http://eigen.tuxfamily.org",
|
7 |
+
"license": "MPL-2.0",
|
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/elfio/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO serge1/ELFIO
|
4 |
+
REF Release_3.10
|
5 |
+
SHA512 f609fe5162d1609d1d65f441dbf01011ca5ae36195d8b3a74dec2b72891e9f8f90d3fdbc9bf893f7186494071606e898e5519fda18665fc88ae9781c504cd4a9)
|
6 |
+
|
7 |
+
vcpkg_cmake_configure(
|
8 |
+
SOURCE_PATH ${SOURCE_PATH}
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_install()
|
12 |
+
|
13 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/${PORT}/cmake)
|
14 |
+
|
15 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
16 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfio/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "elfio",
|
3 |
+
"version": "3.10",
|
4 |
+
"description": "A header-only C++ library intended for reading and generating files in the ELF binary format.",
|
5 |
+
"homepage": "https://github.com/serge1/ELFIO",
|
6 |
+
"license": "MIT",
|
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/elfutils/configure.ac.patch
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/Makefile.am b/src/Makefile.am
|
2 |
+
index e462e7d7a..7f68d0348 100644
|
3 |
+
--- a/src/Makefile.am
|
4 |
+
+++ b/src/Makefile.am
|
5 |
+
@@ -41,8 +41,8 @@ CLEANFILES += make-debug-archive
|
6 |
+
|
7 |
+
if BUILD_STATIC
|
8 |
+
libasm = ../libasm/libasm.a
|
9 |
+
-libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) -ldl -lpthread
|
10 |
+
-libelf = ../libelf/libelf.a -lz
|
11 |
+
+libdw = ../libdw/libdw.a $(zip_LIBS) $(libelf) -ldl -lpthread
|
12 |
+
+libelf = ../libelf/libelf.a $(zip_LIBS)
|
13 |
+
else
|
14 |
+
libasm = ../libasm/libasm.so
|
15 |
+
libdw = ../libdw/libdw.so
|
16 |
+
diff --git a/configure.ac b/configure.ac
|
17 |
+
index 5a2dc373e..b1928831e 100644
|
18 |
+
--- a/configure.ac
|
19 |
+
+++ b/configure.ac
|
20 |
+
@@ -383,7 +383,7 @@ AM_CONDITIONAL(TESTS_RPATH, test "$tests_use_rpath" = yes)
|
21 |
+
dnl zlib is mandatory.
|
22 |
+
save_LIBS="$LIBS"
|
23 |
+
LIBS=
|
24 |
+
-eu_ZIPLIB(zlib,ZLIB,z,gzdirect,gzip)
|
25 |
+
+eu_ZIPLIB(zlib,ZLIB,[z zlib zlibd],gzdirect,gzip)
|
26 |
+
AS_IF([test "x$with_zlib" = xno], [AC_MSG_ERROR([zlib not found but is required])])
|
27 |
+
LIBS="$save_LIBS"
|
28 |
+
|
29 |
+
@@ -391,13 +391,13 @@ dnl Test for bzlib and xz/lzma, gives BZLIB/LZMALIB .am
|
30 |
+
dnl conditional and config.h USE_BZLIB/USE_LZMALIB/USE_ZSTD #define.
|
31 |
+
save_LIBS="$LIBS"
|
32 |
+
LIBS=
|
33 |
+
-eu_ZIPLIB(bzlib,BZLIB,bz2,BZ2_bzdopen,bzip2)
|
34 |
+
+eu_ZIPLIB(bzlib,BZLIB,[bz2 bz2d],BZ2_bzdopen,bzip2)
|
35 |
+
# We need this since bzip2 doesn't have a pkgconfig file.
|
36 |
+
BZ2_LIB="$LIBS"
|
37 |
+
AC_SUBST([BZ2_LIB])
|
38 |
+
eu_ZIPLIB(lzma,LZMA,lzma,lzma_auto_decoder,[LZMA (xz)])
|
39 |
+
AS_IF([test "x$with_lzma" = xyes], [LIBLZMA="liblzma"], [LIBLZMA=""])
|
40 |
+
AC_SUBST([LIBLZMA])
|
41 |
+
eu_ZIPLIB(zstd,ZSTD,zstd,ZSTD_decompress,[ZSTD (zst)])
|
42 |
+
AS_IF([test "x$with_zstd" = xyes], [LIBZSTD="libzstd"], [LIBLZSTD=""])
|
43 |
+
AC_SUBST([LIBZSTD])
|
44 |
+
-zip_LIBS="$LIBS"
|
45 |
+
+zip_LIBS="$LIBS $ac_cv_search_lzma_auto_decoder $ac_cv_search_BZ2_bzdopen $ac_cv_search_gzdirect $ac_cv_search_ZSTD_decompress"
|
46 |
+
LIBS="$save_LIBS"
|
47 |
+
AC_SUBST([zip_LIBS])
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfutils/portfile.cmake
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_git(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
URL https://sourceware.org/git/elfutils
|
4 |
+
REF ca4a785fc3061c7d136b198e9ffe0b14cf90c2be #elfutils-0.186
|
5 |
+
|
6 |
+
PATCHES configure.ac.patch
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_find_acquire_program(FLEX)
|
10 |
+
get_filename_component(FLEX_DIR "${FLEX}" DIRECTORY )
|
11 |
+
vcpkg_add_to_path(PREPEND "${FLEX_DIR}")
|
12 |
+
vcpkg_find_acquire_program(BISON)
|
13 |
+
get_filename_component(BISON_DIR "${BISON}" DIRECTORY )
|
14 |
+
vcpkg_add_to_path(PREPEND "${BISON_DIR}")
|
15 |
+
|
16 |
+
vcpkg_configure_make(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
AUTOCONFIG
|
19 |
+
OPTIONS --disable-debuginfod
|
20 |
+
--enable-libdebuginfod=dummy
|
21 |
+
--with-zlib
|
22 |
+
--with-bzlib
|
23 |
+
--with-lzma
|
24 |
+
--with-zstd
|
25 |
+
--enable-maintainer-mode
|
26 |
+
OPTIONS_RELEASE
|
27 |
+
ac_cv_null_dereference=no # deactivating Werror due to null dereferences since NDEBUG is passed and asserts thus disabled/removed
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_install_make()
|
31 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libdebuginfod.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libdebuginfod.pc") #--disable-debuginfod
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/etc/debuginfod" "${CURRENT_PACKAGES_DIR}/etc/debuginfod")
|
33 |
+
|
34 |
+
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread)
|
35 |
+
|
36 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
37 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
38 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/locale)
|
39 |
+
|
40 |
+
# Remove files with wrong linkage
|
41 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
42 |
+
set(_lib_suffix "${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
|
43 |
+
else()
|
44 |
+
set(_lib_suffix "${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}")
|
45 |
+
endif()
|
46 |
+
file(GLOB_RECURSE TO_REMOVE "${CURRENT_PACKAGES_DIR}/lib/*${_lib_suffix}" "${CURRENT_PACKAGES_DIR}/debug/lib/*${_lib_suffix}" "${CURRENT_PACKAGES_DIR}/lib/*${_lib_suffix}.*" "${CURRENT_PACKAGES_DIR}/debug/lib/*${_lib_suffix}.*")
|
47 |
+
file(REMOVE ${TO_REMOVE})
|
48 |
+
|
49 |
+
# # Handle copyright
|
50 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
51 |
+
|
52 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static OR NOT VCPKG_TARGET_IS_WINDOWS)
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
54 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/elfutils/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "elfutils",
|
3 |
+
"version": "0.186",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "elfutils is a collection of utilities and libraries to read, create and modify ELF binary files, find and handle DWARF debug data, symbols, thread state and stacktraces for processes and core files on GNU/Linux.",
|
6 |
+
"homepage": "https://sourceware.org/elfutils/",
|
7 |
+
"license": null,
|
8 |
+
"supports": "!windows",
|
9 |
+
"dependencies": [
|
10 |
+
"bzip2",
|
11 |
+
"liblzma",
|
12 |
+
"zlib",
|
13 |
+
"zstd"
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree2/cmake_policy.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index afa704d..96dc4f8 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -57,6 +57,9 @@ IF(COMMAND cmake_policy)
|
6 |
+
if (POLICY CMP0042)
|
7 |
+
cmake_policy(SET CMP0042 OLD)
|
8 |
+
endif()
|
9 |
+
+ if (POLICY CMP0001)
|
10 |
+
+ cmake_policy(SET CMP0001 OLD)
|
11 |
+
+ endif()
|
12 |
+
ENDIF(COMMAND cmake_policy)
|
13 |
+
|
14 |
+
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree2/portfile.cmake
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO embree/embree
|
4 |
+
REF v2.17.7
|
5 |
+
SHA512 3ea548e5ed85f68dc1f9dfe864711f9b731e0df8a2258257f77db08bbdbe3a9014a626313e3ff41174f3b26f09dc8ff523900119ff4c8465bfff53f621052873
|
6 |
+
HEAD_REF devel2
|
7 |
+
PATCHES
|
8 |
+
cmake_policy.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(REMOVE "${SOURCE_PATH}/common/cmake/FindTBB.cmake")
|
12 |
+
|
13 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" EMBREE_STATIC_LIB)
|
14 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" EMBREE_STATIC_RUNTIME)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
DISABLE_PARALLEL_CONFIGURE
|
19 |
+
OPTIONS
|
20 |
+
-DEMBREE_ISPC_SUPPORT=OFF
|
21 |
+
-DEMBREE_TUTORIALS=OFF
|
22 |
+
-DEMBREE_STATIC_LIB=${EMBREE_STATIC_LIB}
|
23 |
+
-DEMBREE_STATIC_RUNTIME=${EMBREE_STATIC_RUNTIME}
|
24 |
+
"-DTBB_LIBRARIES=TBB::tbb"
|
25 |
+
"-DTBB_INCLUDE_DIRS=${CURRENT_INSTALLED_DIR}/include"
|
26 |
+
)
|
27 |
+
|
28 |
+
# just wait, the release build of embree is insanely slow in MSVC
|
29 |
+
# a single file will took about 2-10 min
|
30 |
+
vcpkg_cmake_install()
|
31 |
+
vcpkg_copy_pdbs()
|
32 |
+
|
33 |
+
# these cmake files do not seem to contain helpful configuration for find libs, just remove them
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/embree-config.cmake")
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/embree-config-version.cmake")
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/embree-config.cmake")
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/embree-config-version.cmake")
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake" "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/uninstall.command" "${CURRENT_PACKAGES_DIR}/debug/uninstall.command")
|
40 |
+
|
41 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
42 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/models")
|
44 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/models")
|
45 |
+
|
46 |
+
if("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static")
|
47 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
48 |
+
endif()
|
49 |
+
|
50 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/embree2")
|
51 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/share/embree2/doc")
|
52 |
+
|
53 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree2/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "embree2",
|
3 |
+
"version-semver": "2.17.7",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "High Performance Ray Tracing Kernels.",
|
6 |
+
"homepage": "https://github.com/embree/embree",
|
7 |
+
"supports": "!arm",
|
8 |
+
"dependencies": [
|
9 |
+
"tbb",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/cmake_policy.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 06f49a8..fdaaee7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -69,6 +69,9 @@ IF(COMMAND cmake_policy)
|
6 |
+
if(POLICY CMP0074)
|
7 |
+
cmake_policy(SET CMP0074 NEW)
|
8 |
+
endif()
|
9 |
+
+ if (POLICY CMP0001)
|
10 |
+
+ cmake_policy(SET CMP0001 OLD)
|
11 |
+
+ endif()
|
12 |
+
ENDIF(COMMAND cmake_policy)
|
13 |
+
|
14 |
+
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/fix-path.patch
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/common/algorithms/CMakeLists.txt b/common/algorithms/CMakeLists.txt
|
2 |
+
index 680c3ec..fea4a37 100644
|
3 |
+
--- a/common/algorithms/CMakeLists.txt
|
4 |
+
+++ b/common/algorithms/CMakeLists.txt
|
5 |
+
@@ -20,8 +20,11 @@ SET_PROPERTY(TARGET algorithms APPEND PROPERTY COMPILE_FLAGS " ${FLAGS_LOWEST}")
|
6 |
+
# ideally we would use target_link_libraries to provide the algorithms target
|
7 |
+
# with the TBB include directory information. Howeve, this is only possible in
|
8 |
+
# very recent versions of TBB and therefore we use the target property instead
|
9 |
+
+if (0)
|
10 |
+
GET_TARGET_PROPERTY(tasking_include_dirs tasking INCLUDE_DIRECTORIES)
|
11 |
+
if (tasking_include_dirs)
|
12 |
+
TARGET_INCLUDE_DIRECTORIES(algorithms PUBLIC "${tasking_include_dirs}")
|
13 |
+
GET_TARGET_PROPERTY(algorithms_include_dirs algorithms INCLUDE_DIRECTORIES)
|
14 |
+
endif()
|
15 |
+
+endif()
|
16 |
+
+TARGET_LINK_LIBRARIES(algorithms PUBLIC tasking)
|
17 |
+
|
18 |
+
diff --git a/common/cmake/embree-config.cmake b/common/cmake/embree-config.cmake
|
19 |
+
index 2c08cd7..5087ca0 100644
|
20 |
+
--- a/common/cmake/embree-config.cmake
|
21 |
+
+++ b/common/cmake/embree-config.cmake
|
22 |
+
@@ -5,8 +5,6 @@ SET(EMBREE_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/@EMBREE_RELATIVE_ROOT_DIR@)
|
23 |
+
GET_FILENAME_COMPONENT(EMBREE_ROOT_DIR "${EMBREE_ROOT_DIR}" ABSOLUTE)
|
24 |
+
|
25 |
+
SET(EMBREE_INCLUDE_DIRS ${EMBREE_ROOT_DIR}/@CMAKE_INSTALL_INCLUDEDIR@)
|
26 |
+
-SET(EMBREE_LIBRARY ${EMBREE_ROOT_DIR}/@CMAKE_INSTALL_LIBDIR@/@EMBREE_LIBRARY_FULLNAME@)
|
27 |
+
-SET(EMBREE_LIBRARIES ${EMBREE_LIBRARY})
|
28 |
+
|
29 |
+
SET(EMBREE_VERSION @EMBREE_VERSION@)
|
30 |
+
SET(EMBREE_VERSION_MAJOR @EMBREE_VERSION_MAJOR@)
|
31 |
+
@@ -22,7 +20,6 @@ SET(EMBREE_ISA_AVX2 @EMBREE_ISA_AVX2@)
|
32 |
+
SET(EMBREE_ISA_AVX512 @EMBREE_ISA_AVX512@)
|
33 |
+
SET(EMBREE_ISA_AVX512SKX @EMBREE_ISA_AVX512@) # just for compatibility
|
34 |
+
|
35 |
+
-SET(EMBREE_BUILD_TYPE @CMAKE_BUILD_TYPE@)
|
36 |
+
SET(EMBREE_ISPC_SUPPORT @EMBREE_ISPC_SUPPORT@)
|
37 |
+
SET(EMBREE_STATIC_LIB @EMBREE_STATIC_LIB@)
|
38 |
+
SET(EMBREE_TUTORIALS @EMBREE_TUTORIALS@)
|
39 |
+
@@ -54,8 +51,6 @@ IF (EMBREE_STATIC_LIB)
|
40 |
+
INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/lexers-targets.cmake")
|
41 |
+
INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/tasking-targets.cmake")
|
42 |
+
|
43 |
+
- add_library(TBB::tbb SHARED IMPORTED)
|
44 |
+
- set_target_properties(TBB::tbb PROPERTIES IMPORTED_LOCATION "${EMBREE_ROOT_DIR}/@EMBREE_INSTALLED_TBB@")
|
45 |
+
|
46 |
+
ENDIF()
|
47 |
+
|
48 |
+
diff --git a/common/cmake/package.cmake b/common/cmake/package.cmake
|
49 |
+
index 5429436..8c89f5b 100644
|
50 |
+
--- a/common/cmake/package.cmake
|
51 |
+
+++ b/common/cmake/package.cmake
|
52 |
+
@@ -24,7 +24,7 @@ ENDIF()
|
53 |
+
# Install MSVC runtime
|
54 |
+
##############################################################
|
55 |
+
|
56 |
+
-IF (WIN32)
|
57 |
+
+IF (0)
|
58 |
+
SET(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
|
59 |
+
INCLUDE(InstallRequiredSystemLibraries)
|
60 |
+
LIST(FILTER CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS INCLUDE REGEX ".*msvcp[0-9]+\.dll|.*vcruntime[0-9]+\.dll|.*vcruntime[0-9]+_[0-9]+\.dll")
|
61 |
+
diff --git a/common/tasking/CMakeLists.txt b/common/tasking/CMakeLists.txt
|
62 |
+
index 3085096..258d24e 100644
|
63 |
+
--- a/common/tasking/CMakeLists.txt
|
64 |
+
+++ b/common/tasking/CMakeLists.txt
|
65 |
+
@@ -10,7 +10,7 @@ ELSEIF (TASKING_TBB)
|
66 |
+
if (NOT ${EMBREE_TBB_ROOT} STREQUAL "")
|
67 |
+
set(TBB_ROOT ${EMBREE_TBB_ROOT})
|
68 |
+
endif()
|
69 |
+
- FIND_PACKAGE(TBB REQUIRED tbb)
|
70 |
+
+ FIND_PACKAGE(TBB CONFIG REQUIRED tbb)
|
71 |
+
|
72 |
+
##############################################################
|
73 |
+
# Create tasking target and link against TBB. Also set include directory
|
74 |
+
@@ -18,10 +18,7 @@ ELSEIF (TASKING_TBB)
|
75 |
+
# with the TBB header files
|
76 |
+
##############################################################
|
77 |
+
ADD_LIBRARY(tasking STATIC taskschedulertbb.cpp)
|
78 |
+
- TARGET_LINK_LIBRARIES(tasking PUBLIC TBB)
|
79 |
+
- TARGET_INCLUDE_DIRECTORIES(tasking PUBLIC "${TBB_INCLUDE_DIRS}")
|
80 |
+
-
|
81 |
+
- include(installTBB)
|
82 |
+
+ TARGET_LINK_LIBRARIES(tasking PUBLIC TBB::tbb)
|
83 |
+
|
84 |
+
ELSEIF (TASKING_PPL)
|
85 |
+
ADD_LIBRARY(tasking STATIC taskschedulerppl.cpp)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/fix-static-usage.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/common/cmake/embree-config.cmake b/common/cmake/embree-config.cmake
|
2 |
+
index 5087ca0..fdf8135 100644
|
3 |
+
--- a/common/cmake/embree-config.cmake
|
4 |
+
+++ b/common/cmake/embree-config.cmake
|
5 |
+
@@ -52,6 +52,21 @@ IF (EMBREE_STATIC_LIB)
|
6 |
+
INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/tasking-targets.cmake")
|
7 |
+
|
8 |
+
|
9 |
+
+ IF(EMBREE_ISA_SSE42)
|
10 |
+
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_sse42-targets.cmake")
|
11 |
+
+ ENDIF()
|
12 |
+
+ IF(EMBREE_ISA_AVX)
|
13 |
+
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_avx-targets.cmake")
|
14 |
+
+ ENDIF()
|
15 |
+
+ IF(EMBREE_ISA_AVX2)
|
16 |
+
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_avx2-targets.cmake")
|
17 |
+
+ ENDIF()
|
18 |
+
+ IF(EMBREE_ISA_AVX512KNL)
|
19 |
+
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_avx512knl-targets.cmake")
|
20 |
+
+ ENDIF()
|
21 |
+
+ IF(EMBREE_ISA_AVX512SKX)
|
22 |
+
+ INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree_avx512skx-targets.cmake")
|
23 |
+
+ ENDIF()
|
24 |
+
ENDIF()
|
25 |
+
|
26 |
+
INCLUDE("${EMBREE_ROOT_DIR}/@EMBREE_CMAKEEXPORT_DIR@/embree-targets.cmake")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/fix-targets-file-not-found.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/common/cmake/package.cmake b/common/cmake/package.cmake
|
2 |
+
index 8c89f5b..55cb2af 100644
|
3 |
+
--- a/common/cmake/package.cmake
|
4 |
+
+++ b/common/cmake/package.cmake
|
5 |
+
@@ -114,10 +114,10 @@ ENDIF()
|
6 |
+
# SET(EMBREE_CMAKEEXPORT_DIR "cmake")
|
7 |
+
# SET(EMBREE_RELATIVE_ROOT_DIR ".")
|
8 |
+
#ELSE()
|
9 |
+
-SET(EMBREE_CMAKECONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/embree-${EMBREE_VERSION}")
|
10 |
+
-SET(EMBREE_CMAKEEXPORT_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/embree-${EMBREE_VERSION}")
|
11 |
+
+SET(EMBREE_CMAKECONFIG_DIR "share/embree")
|
12 |
+
+SET(EMBREE_CMAKEEXPORT_DIR "share/embree")
|
13 |
+
IF (WIN32)
|
14 |
+
- SET(EMBREE_RELATIVE_ROOT_DIR "../../../")
|
15 |
+
+ SET(EMBREE_RELATIVE_ROOT_DIR "../..")
|
16 |
+
ELSE()
|
17 |
+
FILE(RELATIVE_PATH EMBREE_RELATIVE_ROOT_DIR "/${EMBREE_CMAKECONFIG_DIR}" "/")
|
18 |
+
ENDIF()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/portfile.cmake
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(EMBREE3_VERSION 3.12.2)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO embree/embree
|
6 |
+
REF v${EMBREE3_VERSION}
|
7 |
+
SHA512 a63b483a92f4653e07a21ed3b545d86003295e0aacd8ec7a40ee72bad7bb70c6ea019af511e78c5c598336b162d53e296e9c87150c0adce6463b058e7a5394d4
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-path.patch
|
11 |
+
fix-static-usage.patch
|
12 |
+
cmake_policy.patch
|
13 |
+
fix-targets-file-not-found.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} static EMBREE_STATIC_LIB)
|
17 |
+
string(COMPARE EQUAL ${VCPKG_CRT_LINKAGE} static EMBREE_STATIC_RUNTIME)
|
18 |
+
|
19 |
+
if (NOT VCPKG_TARGET_IS_OSX)
|
20 |
+
if ("avx512" IN_LIST FEATURES)
|
21 |
+
message(FATAL_ERROR "Microsoft Visual C++ Compiler does not support feature avx512 officially.")
|
22 |
+
endif()
|
23 |
+
|
24 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
25 |
+
FEATURES
|
26 |
+
avx EMBREE_ISA_AVX
|
27 |
+
avx2 EMBREE_ISA_AVX2
|
28 |
+
avx512 EMBREE_ISA_AVX512
|
29 |
+
sse2 EMBREE_ISA_SSE2
|
30 |
+
sse42 EMBREE_ISA_SSE42
|
31 |
+
)
|
32 |
+
elseif (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
33 |
+
list(LENGTH FEATURES FEATURE_COUNT)
|
34 |
+
if (FEATURE_COUNT GREATER 2)
|
35 |
+
message(WARNING [[
|
36 |
+
Using Embree as static library is not supported with AppleClang >= 9.0 when multiple ISAs are selected.
|
37 |
+
Please install embree3 with only one feature using command "./vcpkg install embree3[core,FEATURE_NAME]"
|
38 |
+
Only set feature avx automaticlly.
|
39 |
+
]])
|
40 |
+
set(FEATURE_OPTIONS
|
41 |
+
-DEMBREE_ISA_AVX=ON
|
42 |
+
-DEMBREE_ISA_AVX2=OFF
|
43 |
+
-DEMBREE_ISA_AVX512=OFF
|
44 |
+
-DEMBREE_ISA_SSE2=OFF
|
45 |
+
-DEMBREE_ISA_SSE42=OFF
|
46 |
+
)
|
47 |
+
endif()
|
48 |
+
endif()
|
49 |
+
|
50 |
+
vcpkg_configure_cmake(
|
51 |
+
SOURCE_PATH ${SOURCE_PATH}
|
52 |
+
DISABLE_PARALLEL_CONFIGURE
|
53 |
+
PREFER_NINJA
|
54 |
+
OPTIONS ${FEATURE_OPTIONS}
|
55 |
+
-DEMBREE_ISPC_SUPPORT=OFF
|
56 |
+
-DEMBREE_TUTORIALS=OFF
|
57 |
+
-DEMBREE_STATIC_RUNTIME=${EMBREE_STATIC_RUNTIME}
|
58 |
+
-DEMBREE_STATIC_LIB=${EMBREE_STATIC_LIB}
|
59 |
+
)
|
60 |
+
|
61 |
+
vcpkg_install_cmake()
|
62 |
+
vcpkg_copy_pdbs()
|
63 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/embree TARGET_PATH share/embree)
|
64 |
+
|
65 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
66 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
67 |
+
|
68 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
69 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
70 |
+
endif()
|
71 |
+
if(APPLE)
|
72 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/uninstall.command" "${CURRENT_PACKAGES_DIR}/debug/uninstall.command")
|
73 |
+
endif()
|
74 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/share/${PORT}/")
|
75 |
+
|
76 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
77 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package embree3 provides CMake targets:
|
2 |
+
|
3 |
+
find_package(embree 3 CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE embree)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/embree3/vcpkg.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "embree3",
|
3 |
+
"version-semver": "3.12.2",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "High Performance Ray Tracing Kernels.",
|
6 |
+
"homepage": "https://github.com/embree/embree",
|
7 |
+
"dependencies": [
|
8 |
+
"tbb"
|
9 |
+
],
|
10 |
+
"default-features": [
|
11 |
+
"avx",
|
12 |
+
"avx2",
|
13 |
+
"sse2",
|
14 |
+
"sse42"
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"avx": {
|
18 |
+
"description": "Enables AVX ISA."
|
19 |
+
},
|
20 |
+
"avx2": {
|
21 |
+
"description": "Enables AVX2 ISA."
|
22 |
+
},
|
23 |
+
"avx512": {
|
24 |
+
"description": "Enables AVX512 ISA."
|
25 |
+
},
|
26 |
+
"sse2": {
|
27 |
+
"description": "Enables SSE2 ISA."
|
28 |
+
},
|
29 |
+
"sse42": {
|
30 |
+
"description": "Enables SSE4.2 ISA."
|
31 |
+
}
|
32 |
+
}
|
33 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/enet/CMakeLists.txt
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0.2)
|
2 |
+
|
3 |
+
project(enet)
|
4 |
+
|
5 |
+
# The "configure" step.
|
6 |
+
include(CheckFunctionExists)
|
7 |
+
include(CheckStructHasMember)
|
8 |
+
include(CheckTypeSize)
|
9 |
+
check_function_exists("fcntl" HAS_FCNTL)
|
10 |
+
check_function_exists("poll" HAS_POLL)
|
11 |
+
check_function_exists("getaddrinfo" HAS_GETADDRINFO)
|
12 |
+
check_function_exists("getnameinfo" HAS_GETNAMEINFO)
|
13 |
+
check_function_exists("gethostbyname_r" HAS_GETHOSTBYNAME_R)
|
14 |
+
check_function_exists("gethostbyaddr_r" HAS_GETHOSTBYADDR_R)
|
15 |
+
check_function_exists("inet_pton" HAS_INET_PTON)
|
16 |
+
check_function_exists("inet_ntop" HAS_INET_NTOP)
|
17 |
+
check_struct_has_member("struct msghdr" "msg_flags" "sys/types.h;sys/socket.h" HAS_MSGHDR_FLAGS)
|
18 |
+
set(CMAKE_EXTRA_INCLUDE_FILES "sys/types.h" "sys/socket.h")
|
19 |
+
check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY)
|
20 |
+
unset(CMAKE_EXTRA_INCLUDE_FILES)
|
21 |
+
if(MSVC)
|
22 |
+
add_definitions(-W3)
|
23 |
+
else()
|
24 |
+
add_definitions(-Wno-error)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
if(HAS_FCNTL)
|
28 |
+
add_definitions(-DHAS_FCNTL=1)
|
29 |
+
endif()
|
30 |
+
if(HAS_POLL)
|
31 |
+
add_definitions(-DHAS_POLL=1)
|
32 |
+
endif()
|
33 |
+
if(HAS_GETNAMEINFO)
|
34 |
+
add_definitions(-DHAS_GETNAMEINFO=1)
|
35 |
+
endif()
|
36 |
+
if(HAS_GETADDRINFO)
|
37 |
+
add_definitions(-DHAS_GETADDRINFO=1)
|
38 |
+
endif()
|
39 |
+
if(HAS_GETHOSTBYNAME_R)
|
40 |
+
add_definitions(-DHAS_GETHOSTBYNAME_R=1)
|
41 |
+
endif()
|
42 |
+
if(HAS_GETHOSTBYADDR_R)
|
43 |
+
add_definitions(-DHAS_GETHOSTBYADDR_R=1)
|
44 |
+
endif()
|
45 |
+
if(HAS_INET_PTON)
|
46 |
+
add_definitions(-DHAS_INET_PTON=1)
|
47 |
+
endif()
|
48 |
+
if(HAS_INET_NTOP)
|
49 |
+
add_definitions(-DHAS_INET_NTOP=1)
|
50 |
+
endif()
|
51 |
+
if(HAS_MSGHDR_FLAGS)
|
52 |
+
add_definitions(-DHAS_MSGHDR_FLAGS=1)
|
53 |
+
endif()
|
54 |
+
if(HAS_SOCKLEN_T)
|
55 |
+
add_definitions(-DHAS_SOCKLEN_T=1)
|
56 |
+
endif()
|
57 |
+
|
58 |
+
add_library(enet
|
59 |
+
callbacks.c
|
60 |
+
compress.c
|
61 |
+
host.c
|
62 |
+
list.c
|
63 |
+
packet.c
|
64 |
+
peer.c
|
65 |
+
protocol.c
|
66 |
+
unix.c
|
67 |
+
win32.c
|
68 |
+
)
|
69 |
+
|
70 |
+
add_library(enet::enet ALIAS enet)
|
71 |
+
|
72 |
+
target_include_directories(enet PUBLIC
|
73 |
+
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
74 |
+
$<INSTALL_INTERFACE:include>
|
75 |
+
)
|
76 |
+
|
77 |
+
if (BUILD_SHARED_LIBS)
|
78 |
+
target_compile_definitions(enet
|
79 |
+
PUBLIC ENET_DLL
|
80 |
+
PRIVATE ENET_BUILDING_LIB
|
81 |
+
)
|
82 |
+
endif()
|
83 |
+
|
84 |
+
|
85 |
+
if (WIN32)
|
86 |
+
target_link_libraries(enet winmm ws2_32)
|
87 |
+
endif()
|
88 |
+
|
89 |
+
set(ENET_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/enet)
|
90 |
+
|
91 |
+
install(TARGETS enet EXPORT unofficial-enet-config
|
92 |
+
ARCHIVE DESTINATION lib
|
93 |
+
LIBRARY DESTINATION lib
|
94 |
+
RUNTIME DESTINATION bin)
|
95 |
+
|
96 |
+
INSTALL(EXPORT unofficial-enet-config
|
97 |
+
NAMESPACE unofficial::enet::
|
98 |
+
FILE unofficial-enet-config.cmake
|
99 |
+
DESTINATION share/unofficial-enet
|
100 |
+
)
|
101 |
+
|
102 |
+
install(DIRECTORY include/
|
103 |
+
DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/enet/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
2 |
+
REPO "lsalzman/enet"
|
3 |
+
REF e0e7045b7e056b454b5093cb34df49dc4cee0bee # v1.3.17
|
4 |
+
HEAD_REF master
|
5 |
+
SHA512 006a78edcc2059d8cee47a163d308dd02120a54f9c203401b83eb6cb4ab3e56cf09988d3c35b436a1e9f74c01296995ae6fdd46f6d354fe8261cf19cdde3df5d
|
6 |
+
)
|
7 |
+
|
8 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
13 |
+
# OPTIONS_RELEASE -DOPTIMIZE=1
|
14 |
+
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-enet CONFIG_PATH share/unofficial-enet)
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/enet/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "enet",
|
3 |
+
"version": "1.3.17",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Reliable UDP networking library",
|
6 |
+
"homepage": "https://github.com/lsalzman/enet",
|
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/ensmallen/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mlpack/ensmallen
|
4 |
+
REF bf42276c5a44eed31e5bacec95d166d01d65f9a4 #v2.18.1
|
5 |
+
SHA512 09f96b2f0e0bd34245c34ee727e633bbb3957c2ab8076cfac66f976ba4e327096e2e76fadcc729dfffe73b56348bcc14fa61e3bb59a7ca0e17221f8f4cd0d59c
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DBUILD_TESTS=OFF
|
13 |
+
)
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ensmallen)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/COPYRIGHT.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ensmallen/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ensmallen",
|
3 |
+
"version-semver": "2.18.1",
|
4 |
+
"description": "A header-only C++ library for mathematical optimization",
|
5 |
+
"homepage": "https://github.com/mlpack/ensmallen",
|
6 |
+
"dependencies": [
|
7 |
+
"armadillo",
|
8 |
+
"blas",
|
9 |
+
"lapack",
|
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/entityx/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO alecthomas/entityx
|
6 |
+
REF 1.3.0
|
7 |
+
SHA512 724a3f421f802e60a1106ff8a69435c9a9da14e35c3e88565bbc17bff3a17f2d9771818aac83320cc4f14de0ec770a66f1eb7cbf4318f43abd516c63e077c07d
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
DISABLE_PARALLEL_CONFIGURE
|
14 |
+
PREFER_NINJA
|
15 |
+
OPTIONS
|
16 |
+
-DENTITYX_BUILD_TESTING=false
|
17 |
+
-DENTITYX_BUILD_SHARED=0
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
|
24 |
+
# Handle copyright
|
25 |
+
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/entityx)
|
26 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/entityx/COPYING ${CURRENT_PACKAGES_DIR}/share/entityx/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/entityx/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "entityx",
|
3 |
+
"version-string": "1.3.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "EntityX - A fast, type-safe C++ Entity-Component system.",
|
6 |
+
"homepage": "https://github.com/alecthomas/entityx"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/entt/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if ("experimental" IN_LIST FEATURES)
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO skypjack/entt
|
5 |
+
HEAD_REF experimental
|
6 |
+
)
|
7 |
+
else()
|
8 |
+
vcpkg_from_github(
|
9 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
10 |
+
REPO skypjack/entt
|
11 |
+
REF v3.9.0
|
12 |
+
SHA512 b318ea06deb69350a00b3e824462a22fe443f4c778d0934857b68e43f0e6f1fe30c281889c14e3456067629e62a2bbb54491458c43d52ef543b2db8903133922
|
13 |
+
HEAD_REF master
|
14 |
+
)
|
15 |
+
endif()
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
DISABLE_PARALLEL_CONFIGURE
|
20 |
+
OPTIONS
|
21 |
+
-DENTT_BUILD_TESTING=OFF
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
|
26 |
+
if(EXISTS ${CURRENT_PACKAGES_DIR}/cmake)
|
27 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
28 |
+
else()
|
29 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/EnTT/cmake)
|
30 |
+
endif()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
33 |
+
|
34 |
+
# Handle copyright
|
35 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/entt/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "entt",
|
3 |
+
"version": "3.9.0",
|
4 |
+
"description": "Gaming meets modern C++ - a fast and reliable entity-component system and much more",
|
5 |
+
"homepage": "https://github.com/skypjack/entt",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"experimental": {
|
18 |
+
"description": "Use experimental features right away"
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/0001-VS2015-provides-snprintf.patch
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 8b5b2ea5ba695252abaad4234c951675d5f733ec Mon Sep 17 00:00:00 2001
|
2 |
+
From: Hiroshi Miura <[email protected]>
|
3 |
+
Date: Wed, 7 Feb 2018 12:28:54 +0900
|
4 |
+
Subject: [PATCH 1/2] VS2015 provides snprintf
|
5 |
+
|
6 |
+
Signed-off-by: Hiroshi Miura <[email protected]>
|
7 |
+
---
|
8 |
+
lib/common.h | 27 +++++++++++++++++++++++----
|
9 |
+
1 file changed, 23 insertions(+), 4 deletions(-)
|
10 |
+
|
11 |
+
diff --git a/lib/common.h b/lib/common.h
|
12 |
+
index c5db1ed..73c4118 100644
|
13 |
+
--- a/lib/common.h
|
14 |
+
+++ b/lib/common.h
|
15 |
+
@@ -39,10 +39,29 @@ extern "C" {
|
16 |
+
/** \addtogroup misc Miscellanea */
|
17 |
+
/*@{*/
|
18 |
+
|
19 |
+
-/* Use _snprintf instead of snprintf under MSVC compiler */
|
20 |
+
-#if defined(_WIN32) && !defined(__MINGW32__)
|
21 |
+
-#define snprintf _snprintf
|
22 |
+
-#endif
|
23 |
+
+#ifdef _MSC_VER
|
24 |
+
+#if _MSC_VER < 1900 // VS2015/17 provides snprintf
|
25 |
+
+#include <stdio.h>
|
26 |
+
+#include <stdarg.h>
|
27 |
+
+/* Want safe, 'n += snprintf(b + n ...)' like function. If cp_max_len is 1
|
28 |
+
+* then assume cp is pointing to a null char and do nothing. Returns number
|
29 |
+
+* number of chars placed in cp excluding the trailing null char. So for
|
30 |
+
+* cp_max_len > 0 the return value is always < cp_max_len; for cp_max_len
|
31 |
+
+* <= 0 the return value is 0 (and no chars are written to cp). */
|
32 |
+
+static int snprintf(char * cp, int cp_max_len, const char * fmt, ...)
|
33 |
+
+{
|
34 |
+
+ va_list args;
|
35 |
+
+ int n;
|
36 |
+
+
|
37 |
+
+ if (cp_max_len < 2)
|
38 |
+
+ return 0;
|
39 |
+
+ va_start(args, fmt);
|
40 |
+
+ n = vsnprintf(cp, cp_max_len, fmt, args);
|
41 |
+
+ va_end(args);
|
42 |
+
+ return (n < cp_max_len) ? n : (cp_max_len - 1);
|
43 |
+
+}
|
44 |
+
+#endif // _MSC_VER < 1900
|
45 |
+
+#endif // _MSC_VER
|
46 |
+
|
47 |
+
#ifdef HAVE_CONFIG_H
|
48 |
+
# include <config.h>
|
49 |
+
--
|
50 |
+
2.16.1
|
51 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/0002-Add-CFLAGS-for-CRT-selection-and-warning-supression.patch
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 4969dd6e7b656e92bf1bc921f0cd1af00707e17f Mon Sep 17 00:00:00 2001
|
2 |
+
From: Hiroshi Miura <[email protected]>
|
3 |
+
Date: Wed, 7 Feb 2018 10:47:53 +0900
|
4 |
+
Subject: [PATCH 2/2] Add CFLAGS for CRT selection and warning supression
|
5 |
+
|
6 |
+
Signed-off-by: Hiroshi Miura <[email protected]>
|
7 |
+
---
|
8 |
+
makefile.vc | 2 +-
|
9 |
+
nmake.opt | 42 +++++++++++++++++++++++++++++++++++++++---
|
10 |
+
2 files changed, 40 insertions(+), 4 deletions(-)
|
11 |
+
|
12 |
+
diff --git a/makefile.vc b/makefile.vc
|
13 |
+
index 33f1f34..64fb9f3 100644
|
14 |
+
--- a/makefile.vc
|
15 |
+
+++ b/makefile.vc
|
16 |
+
@@ -20,7 +20,7 @@ EPSILON_EXE = epsilon.exe
|
17 |
+
|
18 |
+
-CFLAGS = /nologo -IC:\OSGeo4W\include -I.\lib -I.\lib\msvc \
|
19 |
+
+CFLAGS = /nologo -I$(INSTALLED_ROOT)\include -I.\lib -I.\lib\msvc \
|
20 |
+
-I.\src -I..\popt\include \
|
21 |
+
- $(OPTFLAGS)
|
22 |
+
+ $(OPTFLAGS) $(WARNFLAGS)
|
23 |
+
|
24 |
+
default: all
|
25 |
+
|
26 |
+
diff --git a/nmake.opt b/nmake.opt
|
27 |
+
index d5a51e2..d8088df 100644
|
28 |
+
--- a/nmake.opt
|
29 |
+
+++ b/nmake.opt
|
30 |
+
@@ -1,9 +1,45 @@
|
31 |
+
# Directory tree where EPSILON will be installed.
|
32 |
+
+!IFNDEF INSTDIR
|
33 |
+
INSTDIR=C:\OSGeo4W
|
34 |
+
+!ENDIF
|
35 |
+
+
|
36 |
+
+# Flags to choose CRT variant to link against (e.g. static: /MT, /MTd, dynamic: /MD, /MDd)
|
37 |
+
+!IFNDEF CRT_FLAGS
|
38 |
+
+!IFNDEF DEBUG
|
39 |
+
+CRT_FLAGS=/MD
|
40 |
+
+!ELSE
|
41 |
+
+CRT_FLAGS=/MDd
|
42 |
+
+!ENDIF
|
43 |
+
+!ENDIF
|
44 |
+
+
|
45 |
+
+# Flags for enforcing PDB use
|
46 |
+
+!IFNDEF PDB_FLAGS
|
47 |
+
+PDB_FLAGS=/Fdepsilon.pdb
|
48 |
+
+!ENDIF
|
49 |
+
+
|
50 |
+
+# Set flags controlling warnings level, and suppression of some warnings.
|
51 |
+
+!IFNDEF WARNFLAGS
|
52 |
+
+# 4127: conditional expression is constant
|
53 |
+
+# 4251: 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
|
54 |
+
+# 4275: non – DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
|
55 |
+
+# 4786: ??????????
|
56 |
+
+# 4100: 'identifier' : unreferenced formal parameter
|
57 |
+
+# 4245: 'conversion' : conversion from 'type1' to 'type2', signed/unsigned mismatch
|
58 |
+
+# 4206: nonstandard extension used : translation unit is empty (only applies to C source code)
|
59 |
+
+# 4351: new behavior: elements of array 'array' will be default initialized (needed for https://trac.osgeo.org/gdal/changeset/35593)
|
60 |
+
+# 4611: interaction between '_setjmp' and C++ object destruction is non-portable
|
61 |
+
+#
|
62 |
+
+WARNFLAGS = /W3 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4351 /wd4611
|
63 |
+
+!ENDIF
|
64 |
+
+
|
65 |
+
+!IFNDEF OPTFLAGS
|
66 |
+
+!IFNDEF DEBUG
|
67 |
+
+OPTFLAGS= $(PDB_FLAGS) /nologo $(CRT_FLAGS) /D_CRT_SECURE_NO_WARNINGS /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
|
68 |
+
+!ELSE
|
69 |
+
+OPTFLAGS= $(PDB_FLAGS) /nologo $(CRT_FLAGS) /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG
|
70 |
+
+!ENDIF
|
71 |
+
+!ENDIF
|
72 |
+
|
73 |
+
-# Uncomment the first for an optimized build, or the second for debug.
|
74 |
+
-OPTFLAGS= /nologo /Ox /fp:precise /W3 /MD /D_CRT_SECURE_NO_WARNINGS
|
75 |
+
-#OPTFLAGS= /nologo /Zi /MD /Fdepsilon.pdb
|
76 |
+
|
77 |
+
# Set the version number for the DLL. Normally we leave this blank since
|
78 |
+
# we want software that is dynamically loading the DLL to have no problem
|
79 |
+
--
|
80 |
+
2.16.1
|
81 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/0003-Fix-build-error.patch
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/makefile.vc b/makefile.vc
|
2 |
+
index cd0fc5a..7ce6861 100644
|
3 |
+
--- a/makefile.vc
|
4 |
+
+++ b/makefile.vc
|
5 |
+
@@ -32,6 +32,12 @@ epsilon.lib: $(LIBOBJ)
|
6 |
+
|
7 |
+
$(EPSILON_DLL): epsilon_i.lib
|
8 |
+
|
9 |
+
+!IFNDEF DEBUG
|
10 |
+
+POPTLIB=$(LIBPATH)popt.lib
|
11 |
+
+!ELSE
|
12 |
+
+POPTLIB=$(LIBPATH)poptd.lib
|
13 |
+
+!ENDIF
|
14 |
+
+
|
15 |
+
epsilon_i.lib: $(LIBOBJ)
|
16 |
+
link /debug /dll /def:libepsilon.def /out:$(EPSILON_DLL) \
|
17 |
+
/implib:epsilon_i.lib $(LIBOBJ)
|
18 |
+
@@ -48,8 +54,8 @@ $(EPSILON_EXE): $(EPSILON_DLL) src\epsilon.obj \
|
19 |
+
src\cmd_truncate_file.obj src\cmd_decode_file.obj \
|
20 |
+
src\cmd_encode_file.obj src\misc.obj \
|
21 |
+
src\psi.obj src\pbm.obj \
|
22 |
+
- ..\popt\lib\libpopt.lib
|
23 |
+
- /Fe$(EPSILON_EXE)
|
24 |
+
+ $(POPTLIB) \
|
25 |
+
+ /Fe"$(EPSILON_EXE)"
|
26 |
+
if exist $(EPSILON_EXE).manifest mt -manifest \
|
27 |
+
$(EPSILON_EXE).manifest -outputresource:$(EPSILON_EXE);1
|
28 |
+
|
29 |
+
@@ -71,8 +77,9 @@ install: all
|
30 |
+
-mkdir $(INSTDIR)\bin
|
31 |
+
-mkdir $(INSTDIR)\lib
|
32 |
+
-mkdir $(INSTDIR)\include
|
33 |
+
+ -mkdir $(INSTDIR)\tools
|
34 |
+
copy *.dll $(INSTDIR)\bin
|
35 |
+
copy *.lib $(INSTDIR)\lib
|
36 |
+
- copy *.exe $(INSTDIR)\bin
|
37 |
+
+ copy *.exe $(INSTDIR)\tools
|
38 |
+
copy lib\epsilon.h $(INSTDIR)\include
|
39 |
+
|
40 |
+
diff --git a/src/misc.h b/src/misc.h
|
41 |
+
index 9023dce..d8ce602 100644
|
42 |
+
--- a/src/misc.h
|
43 |
+
+++ b/src/misc.h
|
44 |
+
@@ -30,7 +30,7 @@ extern "C" {
|
45 |
+
#endif
|
46 |
+
|
47 |
+
/* Use _snprintf instead of snprintf under MSVC compiler */
|
48 |
+
-#if defined(_WIN32) && !defined(__MINGW32__)
|
49 |
+
+#if 0
|
50 |
+
#define snprintf _snprintf
|
51 |
+
#endif
|
52 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/portfile.cmake
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO epsilon-project/epsilon
|
6 |
+
REF 0.9.2
|
7 |
+
FILENAME "epsilon-0.9.2.tar.gz"
|
8 |
+
SHA512 95f427c68a4a4eb784f7d484d87fc573133983510f6b030663f88955e2446490a07b1343ae4668251b466f67cf9a79bd834b933c57c5ed12327f32174f20ac0f
|
9 |
+
PATCHES
|
10 |
+
0001-VS2015-provides-snprintf.patch
|
11 |
+
0002-Add-CFLAGS-for-CRT-selection-and-warning-supression.patch
|
12 |
+
0003-Fix-build-error.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
if (VCPKG_CRT_LINKAGE STREQUAL static)
|
16 |
+
set(CL_FLAGS_REL "/MT /Ox /fp:precise")
|
17 |
+
set(CL_FLAGS_DBG "/MTd /Zi")
|
18 |
+
set(TARGET_LIB epsilon.lib)
|
19 |
+
else()
|
20 |
+
set(CL_FLAGS_REL "/MD /Ox /fp:precise")
|
21 |
+
set(CL_FLAGS_DBG "/MDd /Zi")
|
22 |
+
set(TARGET_LIB epsilon_i.lib)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
vcpkg_install_nmake(
|
26 |
+
SOURCE_PATH ${SOURCE_PATH}
|
27 |
+
OPTIONS
|
28 |
+
INSTALLED_ROOT="${CURRENT_INSTALLED_DIR}"
|
29 |
+
OPTIONS_DEBUG
|
30 |
+
INSTDIR="${CURRENT_PACKAGES_DIR}/debug"
|
31 |
+
MSVC_VER=1900
|
32 |
+
CRT_FLAGS=${CL_FLAGS_DBG}
|
33 |
+
DEBUG=1
|
34 |
+
${TARGET_LIB}
|
35 |
+
LIBPATH="${CURRENT_INSTALLED_DIR}/debug/lib/"
|
36 |
+
OPTIONS_RELEASE
|
37 |
+
INSTDIR="${CURRENT_PACKAGES_DIR}"
|
38 |
+
MSVC_VER=1900
|
39 |
+
CRT_FLAGS=${CL_FLAGS_REL}
|
40 |
+
${TARGET_LIB}
|
41 |
+
LIBPATH="${CURRENT_INSTALLED_DIR}/lib/"
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_copy_pdbs()
|
45 |
+
|
46 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
47 |
+
|
48 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/epsilon/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "epsilon",
|
3 |
+
"version-string": "0.9.2",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "EPSILON is an Open Source wavelet image compressor, that is aimed on parallel and robust image processing.",
|
6 |
+
"homepage": "https://sourceforge.net/projects/epsilon-project/",
|
7 |
+
"supports": "windows",
|
8 |
+
"dependencies": [
|
9 |
+
"libpopt"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/esaxx/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO hillbig/esaxx
|
5 |
+
REF ca7cb332011ec37a8436487f210f396b84bd8273
|
6 |
+
SHA512 8346fc93498f7979fd422db527d0e2db73080b2c372263a72a887ddc8328a29391bce6def5845f4500a180f5c2e641105d0ce108092e6eac9020c6bd67fb46df
|
7 |
+
)
|
8 |
+
|
9 |
+
file(INSTALL
|
10 |
+
${SOURCE_PATH}/esa.hxx
|
11 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
12 |
+
)
|
13 |
+
|
14 |
+
# Handle copyright/readme/package files
|
15 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/esaxx RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/esaxx/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "esaxx",
|
3 |
+
"version-string": "ca7cb332011ec37",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "This library provides the implementation of enhanced suffix array."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eve/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
message(WARNING "EVE requires a C++ 20 compliant compiler. GCC-11 and clang-12 are known to work.")
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO jfalcou/eve
|
6 |
+
REF v2021.10.0
|
7 |
+
SHA512 bdac483d07c968cfe2cd2e0f26df68f0e3b6cd83fbfe4b89650dc58fb534fd37c5540682283a2ee29a82e87bdfc678beac3651e40cde5b4cf30c20ea8304c72c
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
vcpkg_cmake_install()
|
14 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
15 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/eve" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eve/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "eve",
|
3 |
+
"version-date": "2021-10-16",
|
4 |
+
"description": "EVE - the Expressive Vector Engine",
|
5 |
+
"homepage": "https://github.com/jfalcou/eve",
|
6 |
+
"documentation": "https://jfalcou.github.io/eve/html/pages.html",
|
7 |
+
"supports": "!windows",
|
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/eventpp/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO wqking/eventpp
|
4 |
+
REF v0.1.2
|
5 |
+
SHA512 01fd536024dfef8c4025fc184f6b6326a901849dbf73d81430d7cfadeff25c9c140ab6a28b0143a4090703668c1d9e743a54e874c0321c3453cf40aeb4583db3
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DBUILD_TESTING=OFF
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/eventpp")
|
17 |
+
vcpkg_fixup_pkgconfig()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
21 |
+
|
22 |
+
file(INSTALL "${SOURCE_PATH}/license" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eventpp/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "eventpp",
|
3 |
+
"version-semver": "0.1.2",
|
4 |
+
"description": "C++ library for event dispatcher and callback list",
|
5 |
+
"homepage": "https://github.com/wqking/eventpp",
|
6 |
+
"license": "Apache-2.0",
|
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/evpp/fix-linux-build.patch
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 7872fc8..2a06614 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -47,7 +47,11 @@ string (REPLACE ";" " " CMAKE_CXX_FLAGS "${CXX_FLAGS}")
|
6 |
+
if (UNIX)
|
7 |
+
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb -D_DEBUG -DGOOGLE_STRIP_LOG=0")
|
8 |
+
SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -g -ggdb -DNDEBUG -DGOOGLE_STRIP_LOG=1")
|
9 |
+
- SET(DEPENDENT_LIBRARIES event glog pthread)
|
10 |
+
+ find_package(glog CONFIG REQUIRED)
|
11 |
+
+ find_path(GLOG_INCLUDE_DIRS logging.h PATH_SUFFIXES glog)
|
12 |
+
+ find_package(Libevent CONFIG REQUIRED)
|
13 |
+
+ list(APPEND DEPENDENT_INCLUDE_DIRS "${GLOG_INCLUDE_DIRS}/../")
|
14 |
+
+ SET(DEPENDENT_LIBRARIES libevent::core libevent::extra libevent::openssl glog::glog pthread)
|
15 |
+
else (UNIX)
|
16 |
+
SET(DEPENDENT_LIBRARIES event glog)
|
17 |
+
endif (UNIX)
|
18 |
+
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
|
19 |
+
index 469ed1c..8219424 100644
|
20 |
+
--- a/apps/CMakeLists.txt
|
21 |
+
+++ b/apps/CMakeLists.txt
|
22 |
+
@@ -2,7 +2,7 @@
|
23 |
+
include_directories(${PROJECT_SOURCE_DIR}/apps ${PROJECT_SOURCE_DIR}/3rdparty)
|
24 |
+
|
25 |
+
if (UNIX)
|
26 |
+
-set(LIBRARIES evpp_concurrentqueue event glog pthread)
|
27 |
+
+set(LIBRARIES evpp_concurrentqueue libevent::core libevent::extra libevent::openssl glog::glog pthread)
|
28 |
+
link_directories("/home/s/safe/lib" ${PROJECT_BUILD_DIR}/lib)
|
29 |
+
else(UNIX)
|
30 |
+
set(LIBRARIES evpp_static event glog)
|
31 |
+
diff --git a/benchmark/http/libevent/CMakeLists.txt b/benchmark/http/libevent/CMakeLists.txt
|
32 |
+
index 1148616..0356b71 100644
|
33 |
+
--- a/benchmark/http/libevent/CMakeLists.txt
|
34 |
+
+++ b/benchmark/http/libevent/CMakeLists.txt
|
35 |
+
@@ -1,3 +1,3 @@
|
36 |
+
|
37 |
+
add_executable(benchmark_http_libevent libevent_http_bench.c)
|
38 |
+
-target_link_libraries(benchmark_http_libevent event)
|
39 |
+
+target_link_libraries(benchmark_http_libevent libevent::core libevent::extra libevent::openssl)
|
40 |
+
diff --git a/benchmark/ioevent/libevent/CMakeLists.txt b/benchmark/ioevent/libevent/CMakeLists.txt
|
41 |
+
index dfa51a3..de4849d 100644
|
42 |
+
--- a/benchmark/ioevent/libevent/CMakeLists.txt
|
43 |
+
+++ b/benchmark/ioevent/libevent/CMakeLists.txt
|
44 |
+
@@ -1,3 +1,3 @@
|
45 |
+
|
46 |
+
add_executable(benchmark_ioevent_libevent libevent_ioevent_bench.c)
|
47 |
+
-target_link_libraries(benchmark_ioevent_libevent event)
|
48 |
+
+target_link_libraries(benchmark_ioevent_libevent libevent::core libevent::extra libevent::openssl)
|
49 |
+
diff --git a/benchmark/throughput/libevent/CMakeLists.txt b/benchmark/throughput/libevent/CMakeLists.txt
|
50 |
+
index 21dab84..aefe698 100644
|
51 |
+
--- a/benchmark/throughput/libevent/CMakeLists.txt
|
52 |
+
+++ b/benchmark/throughput/libevent/CMakeLists.txt
|
53 |
+
@@ -1,5 +1,5 @@
|
54 |
+
add_executable(benchmark_tcp_libevent_client client.c)
|
55 |
+
-target_link_libraries(benchmark_tcp_libevent_client event)
|
56 |
+
+target_link_libraries(benchmark_tcp_libevent_client libevent::core libevent::extra libevent::openssl)
|
57 |
+
|
58 |
+
add_executable(benchmark_tcp_libevent_server server.c)
|
59 |
+
-target_link_libraries(benchmark_tcp_libevent_server event)
|
60 |
+
+target_link_libraries(benchmark_tcp_libevent_server libevent::core libevent::extra libevent::openssl)
|
61 |
+
diff --git a/examples/recipes/self_control_timer/basic_01/CMakeLists.txt b/examples/recipes/self_control_timer/basic_01/CMakeLists.txt
|
62 |
+
index 7834db4..82294c5 100644
|
63 |
+
--- a/examples/recipes/self_control_timer/basic_01/CMakeLists.txt
|
64 |
+
+++ b/examples/recipes/self_control_timer/basic_01/CMakeLists.txt
|
65 |
+
@@ -1,7 +1,7 @@
|
66 |
+
file(GLOB SRCS *.cc *.h)
|
67 |
+
|
68 |
+
add_executable(example_recipes_self_control_timer_basic_01 ${SRCS})
|
69 |
+
-target_link_libraries(example_recipes_self_control_timer_basic_01 event)
|
70 |
+
+target_link_libraries(example_recipes_self_control_timer_basic_01 libevent::core libevent::extra libevent::openssl)
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
+
diff --git a/examples/recipes/self_control_timer/basic_02/CMakeLists.txt b/examples/recipes/self_control_timer/basic_02/CMakeLists.txt
|
75 |
+
index a8be419..0329ccc 100644
|
76 |
+
--- a/examples/recipes/self_control_timer/basic_02/CMakeLists.txt
|
77 |
+
+++ b/examples/recipes/self_control_timer/basic_02/CMakeLists.txt
|
78 |
+
@@ -1,7 +1,7 @@
|
79 |
+
file(GLOB SRCS *.cc *.h)
|
80 |
+
|
81 |
+
add_executable(example_recipes_self_control_timer_basic_02 ${SRCS})
|
82 |
+
-target_link_libraries(example_recipes_self_control_timer_basic_02 event)
|
83 |
+
+target_link_libraries(example_recipes_self_control_timer_basic_02 libevent::core libevent::extra libevent::openssl)
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
diff --git a/examples/recipes/self_control_timer/cancel_03/CMakeLists.txt b/examples/recipes/self_control_timer/cancel_03/CMakeLists.txt
|
88 |
+
index 1cae9bb..218b771 100644
|
89 |
+
--- a/examples/recipes/self_control_timer/cancel_03/CMakeLists.txt
|
90 |
+
+++ b/examples/recipes/self_control_timer/cancel_03/CMakeLists.txt
|
91 |
+
@@ -1,7 +1,7 @@
|
92 |
+
file(GLOB SRCS *.cc *.h)
|
93 |
+
|
94 |
+
add_executable(example_recipes_self_control_timer_cancel_03 ${SRCS})
|
95 |
+
-target_link_libraries(example_recipes_self_control_timer_cancel_03 event)
|
96 |
+
+target_link_libraries(example_recipes_self_control_timer_cancel_03 libevent::core libevent::extra libevent::openssl)
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
diff --git a/examples/recipes/self_control_timer/periodic_04/CMakeLists.txt b/examples/recipes/self_control_timer/periodic_04/CMakeLists.txt
|
101 |
+
index 749c584..e7c658e 100644
|
102 |
+
--- a/examples/recipes/self_control_timer/periodic_04/CMakeLists.txt
|
103 |
+
+++ b/examples/recipes/self_control_timer/periodic_04/CMakeLists.txt
|
104 |
+
@@ -1,7 +1,7 @@
|
105 |
+
file(GLOB SRCS *.cc *.h)
|
106 |
+
|
107 |
+
add_executable(example_recipes_self_control_timer_periodic_04 ${SRCS})
|
108 |
+
-target_link_libraries(example_recipes_self_control_timer_periodic_04 event)
|
109 |
+
+target_link_libraries(example_recipes_self_control_timer_periodic_04 libevent::core libevent::extra libevent::openssl)
|
110 |
+
|
111 |
+
|
112 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/fix-osx-build.patch
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/evpp/server_status.h b/evpp/server_status.h
|
2 |
+
index 3a83725..f28f833 100644
|
3 |
+
--- a/evpp/server_status.h
|
4 |
+
+++ b/evpp/server_status.h
|
5 |
+
@@ -25,7 +25,7 @@ public:
|
6 |
+
};
|
7 |
+
|
8 |
+
std::string StatusToString() const {
|
9 |
+
- H_CASE_STRING_BIGIN(status_);
|
10 |
+
+ H_CASE_STRING_BIGIN(+status_);
|
11 |
+
H_CASE_STRING(kNull);
|
12 |
+
H_CASE_STRING(kInitialized);
|
13 |
+
H_CASE_STRING(kRunning);
|
14 |
+
diff --git a/evpp/sockets.cc b/evpp/sockets.cc
|
15 |
+
index 333c05c..c547d88 100644
|
16 |
+
--- a/evpp/sockets.cc
|
17 |
+
+++ b/evpp/sockets.cc
|
18 |
+
@@ -22,6 +22,14 @@ std::string strerror(int e) {
|
19 |
+
}
|
20 |
+
|
21 |
+
return empty_string;
|
22 |
+
+#elif defined(__APPLE__)
|
23 |
+
+ char buf[2048] = {};
|
24 |
+
+ strerror_r(e, buf, sizeof(buf) - 1);
|
25 |
+
+ const char* s = buf;
|
26 |
+
+ if (s) {
|
27 |
+
+ return std::string(s);
|
28 |
+
+ }
|
29 |
+
+ return std::string();
|
30 |
+
#else
|
31 |
+
char buf[2048] = {};
|
32 |
+
const char* s = strerror_r(e, buf, sizeof(buf) - 1);
|
33 |
+
diff --git a/evpp/tcp_conn.cc b/evpp/tcp_conn.cc
|
34 |
+
index b7678d0..527b2b9 100644
|
35 |
+
--- a/evpp/tcp_conn.cc
|
36 |
+
+++ b/evpp/tcp_conn.cc
|
37 |
+
@@ -309,7 +309,7 @@ void TCPConn::SetTCPNoDelay(bool on) {
|
38 |
+
}
|
39 |
+
|
40 |
+
std::string TCPConn::StatusToString() const {
|
41 |
+
- H_CASE_STRING_BIGIN(status_);
|
42 |
+
+ H_CASE_STRING_BIGIN(+status_);
|
43 |
+
H_CASE_STRING(kDisconnected);
|
44 |
+
H_CASE_STRING(kConnecting);
|
45 |
+
H_CASE_STRING(kConnected);
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/fix-rapidjson-1-1.patch
ADDED
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/3rdparty/libhashkit/crc32.c b/3rdparty/libhashkit/crc32.c
|
2 |
+
index 6db0478..ff34194 100644
|
3 |
+
--- a/3rdparty/libhashkit/crc32.c
|
4 |
+
+++ b/3rdparty/libhashkit/crc32.c
|
5 |
+
@@ -73,7 +73,7 @@ static const uint32_t crc32tab[256] = {
|
6 |
+
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d,
|
7 |
+
};
|
8 |
+
|
9 |
+
-uint32_t hashkit_crc32(const char *key, size_t key_length, void *context __attribute__((unused)))
|
10 |
+
+uint32_t hashkit_crc32(const char *key, size_t key_length, void * context)
|
11 |
+
{
|
12 |
+
uint64_t x;
|
13 |
+
uint32_t crc= UINT32_MAX;
|
14 |
+
diff --git a/3rdparty/libhashkit/fnv.c b/3rdparty/libhashkit/fnv.c
|
15 |
+
index ee3754d..d79fe39 100644
|
16 |
+
--- a/3rdparty/libhashkit/fnv.c
|
17 |
+
+++ b/3rdparty/libhashkit/fnv.c
|
18 |
+
@@ -14,7 +14,7 @@ static uint64_t FNV_64_PRIME= UINT64_C(0x100000001b3);
|
19 |
+
static uint32_t FNV_32_INIT= 2166136261UL;
|
20 |
+
static uint32_t FNV_32_PRIME= 16777619;
|
21 |
+
|
22 |
+
-uint32_t hashkit_fnv1_64(const char *key, size_t key_length, void *context __attribute__((unused)))
|
23 |
+
+uint32_t hashkit_fnv1_64(const char *key, size_t key_length, void * context)
|
24 |
+
{
|
25 |
+
/* Thanks to [email protected] for the pointer */
|
26 |
+
uint64_t hash= FNV_64_INIT;
|
27 |
+
@@ -28,7 +28,7 @@ uint32_t hashkit_fnv1_64(const char *key, size_t key_length, void *context __att
|
28 |
+
return (uint32_t)hash;
|
29 |
+
}
|
30 |
+
|
31 |
+
-uint32_t hashkit_fnv1a_64(const char *key, size_t key_length, void *context __attribute__((unused)))
|
32 |
+
+uint32_t hashkit_fnv1a_64(const char *key, size_t key_length, void * context)
|
33 |
+
{
|
34 |
+
uint32_t hash= (uint32_t) FNV_64_INIT;
|
35 |
+
|
36 |
+
@@ -42,7 +42,7 @@ uint32_t hashkit_fnv1a_64(const char *key, size_t key_length, void *context __at
|
37 |
+
return hash;
|
38 |
+
}
|
39 |
+
|
40 |
+
-uint32_t hashkit_fnv1_32(const char *key, size_t key_length, void *context __attribute__((unused)))
|
41 |
+
+uint32_t hashkit_fnv1_32(const char *key, size_t key_length, void * context)
|
42 |
+
{
|
43 |
+
uint32_t hash= FNV_32_INIT;
|
44 |
+
|
45 |
+
@@ -56,7 +56,7 @@ uint32_t hashkit_fnv1_32(const char *key, size_t key_length, void *context __att
|
46 |
+
return hash;
|
47 |
+
}
|
48 |
+
|
49 |
+
-uint32_t hashkit_fnv1a_32(const char *key, size_t key_length, void *context __attribute__((unused)))
|
50 |
+
+uint32_t hashkit_fnv1a_32(const char *key, size_t key_length, void * context)
|
51 |
+
{
|
52 |
+
uint32_t hash= FNV_32_INIT;
|
53 |
+
|
54 |
+
diff --git a/3rdparty/libhashkit/hsieh.c b/3rdparty/libhashkit/hsieh.c
|
55 |
+
index ba46ed2..c3e9a38 100644
|
56 |
+
--- a/3rdparty/libhashkit/hsieh.c
|
57 |
+
+++ b/3rdparty/libhashkit/hsieh.c
|
58 |
+
@@ -17,7 +17,7 @@
|
59 |
+
+(uint32_t)(((const uint8_t *)(d))[0]) )
|
60 |
+
#endif
|
61 |
+
|
62 |
+
-uint32_t hashkit_hsieh(const char *key, size_t key_length, void *context __attribute__((unused)))
|
63 |
+
+uint32_t hashkit_hsieh(const char *key, size_t key_length, void * context)
|
64 |
+
{
|
65 |
+
uint32_t hash = 0, tmp;
|
66 |
+
int rem;
|
67 |
+
diff --git a/3rdparty/libhashkit/jenkins.c b/3rdparty/libhashkit/jenkins.c
|
68 |
+
index b684d7a..2b59714 100644
|
69 |
+
--- a/3rdparty/libhashkit/jenkins.c
|
70 |
+
+++ b/3rdparty/libhashkit/jenkins.c
|
71 |
+
@@ -56,7 +56,7 @@ use a bitmask. For example, if you need only 10 bits, do
|
72 |
+
In which case, the hash table should have hashsize(10) elements.
|
73 |
+
*/
|
74 |
+
|
75 |
+
-uint32_t hashkit_jenkins(const char *key, size_t length, void *context __attribute__((unused)))
|
76 |
+
+uint32_t hashkit_jenkins(const char *key, size_t length, void * context)
|
77 |
+
{
|
78 |
+
uint32_t a,b,c; /* internal state */
|
79 |
+
union { const void *ptr; size_t i; } u; /* needed for Mac Powerbook G4 */
|
80 |
+
diff --git a/3rdparty/libhashkit/md5.c b/3rdparty/libhashkit/md5.c
|
81 |
+
index 7371c6d..0e3181b 100644
|
82 |
+
--- a/3rdparty/libhashkit/md5.c
|
83 |
+
+++ b/3rdparty/libhashkit/md5.c
|
84 |
+
@@ -352,7 +352,7 @@ unsigned int len)
|
85 |
+
(((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
|
86 |
+
}
|
87 |
+
|
88 |
+
-uint32_t hashkit_md5(const char *key, size_t key_length, void *context __attribute__((unused)))
|
89 |
+
+uint32_t hashkit_md5(const char *key, size_t key_length, void * context)
|
90 |
+
{
|
91 |
+
unsigned char results[16];
|
92 |
+
|
93 |
+
diff --git a/3rdparty/libhashkit/murmur.c b/3rdparty/libhashkit/murmur.c
|
94 |
+
index a18ac40..9e55eec 100644
|
95 |
+
--- a/3rdparty/libhashkit/murmur.c
|
96 |
+
+++ b/3rdparty/libhashkit/murmur.c
|
97 |
+
@@ -17,7 +17,7 @@
|
98 |
+
|
99 |
+
#include "common.h"
|
100 |
+
|
101 |
+
-uint32_t hashkit_murmur(const char *key, size_t length, void *context __attribute__((unused)))
|
102 |
+
+uint32_t hashkit_murmur(const char *key, size_t length, void * context)
|
103 |
+
{
|
104 |
+
/*
|
105 |
+
'm' and 'r' are mixing constants generated offline. They're not
|
106 |
+
diff --git a/3rdparty/libhashkit/one_at_a_time.c b/3rdparty/libhashkit/one_at_a_time.c
|
107 |
+
index 579d044..539861c 100644
|
108 |
+
--- a/3rdparty/libhashkit/one_at_a_time.c
|
109 |
+
+++ b/3rdparty/libhashkit/one_at_a_time.c
|
110 |
+
@@ -13,7 +13,7 @@ http://en.wikipedia.org/wiki/Jenkins_hash_function
|
111 |
+
|
112 |
+
#include "common.h"
|
113 |
+
|
114 |
+
-uint32_t hashkit_one_at_a_time(const char *key, size_t key_length, void *context __attribute__((unused)))
|
115 |
+
+uint32_t hashkit_one_at_a_time(const char *key, size_t key_length, void * context)
|
116 |
+
{
|
117 |
+
const char *ptr= key;
|
118 |
+
uint32_t value= 0;
|
119 |
+
diff --git a/3rdparty/libhashkit/strerror.c b/3rdparty/libhashkit/strerror.c
|
120 |
+
index 270fa21..7446782 100644
|
121 |
+
--- a/3rdparty/libhashkit/strerror.c
|
122 |
+
+++ b/3rdparty/libhashkit/strerror.c
|
123 |
+
@@ -8,7 +8,7 @@
|
124 |
+
|
125 |
+
#include "common.h"
|
126 |
+
|
127 |
+
-const char *hashkit_strerror(hashkit_st *ptr __attribute__((unused)), hashkit_return_t rc)
|
128 |
+
+const char *hashkit_strerror(hashkit_st *ptr, hashkit_return_t rc)
|
129 |
+
{
|
130 |
+
switch (rc)
|
131 |
+
{
|
132 |
+
diff --git a/apps/evnsq/option.cc b/apps/evnsq/option.cc
|
133 |
+
index e2128f5..0248ace 100644
|
134 |
+
--- a/apps/evnsq/option.cc
|
135 |
+
+++ b/apps/evnsq/option.cc
|
136 |
+
@@ -21,14 +21,14 @@ std::string Option::ToJSON() const {
|
137 |
+
doc.AddMember("write_timeout", rapidjson::Value(int64_t(write_timeout.Milliseconds())), doc.GetAllocator());
|
138 |
+
doc.AddMember("msg_timeout", rapidjson::Value(int64_t(msg_timeout.Milliseconds())), doc.GetAllocator());
|
139 |
+
|
140 |
+
- doc.AddMember("client_id", rapidjson::Value(client_id, doc.GetAllocator()), doc.GetAllocator());
|
141 |
+
- doc.AddMember("hostname", rapidjson::Value(hostname, doc.GetAllocator()), doc.GetAllocator());
|
142 |
+
- doc.AddMember("user_agent", rapidjson::Value(user_agent, doc.GetAllocator()), doc.GetAllocator());
|
143 |
+
+ doc.AddMember("client_id", rapidjson::Value(client_id.data(), client_id.size(), doc.GetAllocator()), doc.GetAllocator());
|
144 |
+
+ doc.AddMember("hostname", rapidjson::Value(hostname.data(), hostname.size(), doc.GetAllocator()), doc.GetAllocator());
|
145 |
+
+ doc.AddMember("user_agent", rapidjson::Value(user_agent.data(), user_agent.size(), doc.GetAllocator()), doc.GetAllocator());
|
146 |
+
|
147 |
+
doc.AddMember("heartbeat_interval", rapidjson::Value(int64_t(heartbeat_interval.Milliseconds())), doc.GetAllocator());
|
148 |
+
|
149 |
+
doc.AddMember("deflate", rapidjson::Value(false), doc.GetAllocator());
|
150 |
+
- doc.AddMember("long_id", rapidjson::Value(hostname, doc.GetAllocator()), doc.GetAllocator());
|
151 |
+
+ doc.AddMember("long_id", rapidjson::Value(hostname.data(), hostname.size(), doc.GetAllocator()), doc.GetAllocator());
|
152 |
+
doc.AddMember("output_buffer_size", rapidjson::Value(int64_t(16384)), doc.GetAllocator());
|
153 |
+
doc.AddMember("output_buffer_timeout", rapidjson::Value(int64_t(250)), doc.GetAllocator());
|
154 |
+
doc.AddMember("feature_negotiation", rapidjson::Value(feature_negotiation), doc.GetAllocator());
|
155 |
+
@@ -40,3 +40,4 @@ std::string Option::ToJSON() const {
|
156 |
+
return std::string(buffer.GetString(), buffer.GetSize());
|
157 |
+
}
|
158 |
+
}
|
159 |
+
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(EVPP_VERSION 0.7.0)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Qihoo360/evpp
|
6 |
+
REF v${EVPP_VERSION}
|
7 |
+
SHA512 ddcef8d2af6b3c46473d755c0f0994d63d56240ea85d6b44ceb6b77724c3c56bbf1156f7188e270fb5f9f36f25bfc2f96669d7249a34c921922671e3fe267e88
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-rapidjson-1-1.patch
|
11 |
+
fix-linux-build.patch
|
12 |
+
fix-osx-build.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/3rdparty/rapidjson ${SOURCE_PATH}/3rdparty/concurrentqueue)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
-DEVPP_VCPKG_BUILD=ON
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_install_cmake()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/evpp/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "evpp",
|
3 |
+
"version-string": "0.7.0",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A modern C++ network library based on libevent for developing high performance network services in TCP/UDP/HTTP protocols.",
|
6 |
+
"homepage": "https://github.com/Qihoo360/evpp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "boost-lockfree",
|
10 |
+
"platform": "!windows"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "concurrentqueue",
|
14 |
+
"platform": "!windows"
|
15 |
+
},
|
16 |
+
"glog",
|
17 |
+
{
|
18 |
+
"name": "libevent",
|
19 |
+
"platform": "windows"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "libevent",
|
23 |
+
"features": [
|
24 |
+
"openssl"
|
25 |
+
],
|
26 |
+
"platform": "!windows"
|
27 |
+
},
|
28 |
+
"rapidjson"
|
29 |
+
]
|
30 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/fix-find_expat.patch
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake
|
2 |
+
index ec3a43f..d8637cc 100644
|
3 |
+
--- a/cmake/findDependencies.cmake
|
4 |
+
+++ b/cmake/findDependencies.cmake
|
5 |
+
@@ -42,7 +42,8 @@ if (EXIV2_ENABLE_XMP AND EXIV2_ENABLE_EXTERNAL_XMP)
|
6 |
+
message(FATAL_ERROR "EXIV2_ENABLE_XMP AND EXIV2_ENABLE_EXTERNAL_XMP are mutually exclusive. You can only choose one of them")
|
7 |
+
else()
|
8 |
+
if (EXIV2_ENABLE_XMP)
|
9 |
+
- find_package(EXPAT REQUIRED)
|
10 |
+
+ find_package(expat CONFIG REQUIRED)
|
11 |
+
+ set(EXPAT_FOUND 1)
|
12 |
+
elseif (EXIV2_ENABLE_EXTERNAL_XMP)
|
13 |
+
find_package(XmpSdk REQUIRED)
|
14 |
+
endif ()
|
15 |
+
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt
|
16 |
+
index de8aa1d..524724c 100644
|
17 |
+
--- a/samples/CMakeLists.txt
|
18 |
+
+++ b/samples/CMakeLists.txt
|
19 |
+
@@ -77,11 +77,10 @@ if( EXPAT_FOUND )
|
20 |
+
target_link_libraries(geotag
|
21 |
+
PRIVATE
|
22 |
+
exiv2-xmp
|
23 |
+
- ${EXPAT_LIBRARIES}
|
24 |
+
+ expat::expat
|
25 |
+
)
|
26 |
+
target_include_directories(geotag PRIVATE ${CMAKE_BINARY_DIR}) # exv_conf.h
|
27 |
+
target_include_directories(geotag PRIVATE ${CMAKE_SOURCE_DIR}/include) # <exiv2/exiv2.hpp>
|
28 |
+
- target_include_directories(geotag PRIVATE ${EXPAT_INCLUDE_DIR})
|
29 |
+
target_include_directories(geotag PRIVATE ${CMAKE_SOURCE_DIR}/src) # To find unused.h
|
30 |
+
|
31 |
+
if (WIN32)
|
32 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
33 |
+
index 26e5a95..5dc722c 100644
|
34 |
+
--- a/src/CMakeLists.txt
|
35 |
+
+++ b/src/CMakeLists.txt
|
36 |
+
@@ -154,8 +154,7 @@ target_include_directories(exiv2lib SYSTEM PRIVATE
|
37 |
+
)
|
38 |
+
|
39 |
+
if (EXIV2_ENABLE_XMP OR EXIV2_ENABLE_EXTERNAL_XMP)
|
40 |
+
- target_include_directories(exiv2lib PRIVATE ${EXPAT_INCLUDE_DIR})
|
41 |
+
- target_link_libraries(exiv2lib PRIVATE ${EXPAT_LIBRARIES})
|
42 |
+
+ target_link_libraries(exiv2lib PRIVATE expat::expat)
|
43 |
+
|
44 |
+
if (WIN32)
|
45 |
+
target_compile_definitions(exiv2lib PRIVATE XML_STATIC)
|
46 |
+
diff --git a/xmpsdk/CMakeLists.txt b/xmpsdk/CMakeLists.txt
|
47 |
+
index a22698f..55102ce 100644
|
48 |
+
--- a/xmpsdk/CMakeLists.txt
|
49 |
+
+++ b/xmpsdk/CMakeLists.txt
|
50 |
+
@@ -28,13 +28,12 @@ add_library(exiv2-xmp STATIC
|
51 |
+
|
52 |
+
target_link_libraries(exiv2-xmp
|
53 |
+
PRIVATE
|
54 |
+
- $<BUILD_INTERFACE:${EXPAT_LIBRARY}>
|
55 |
+
+ $<BUILD_INTERFACE:expat::expat>
|
56 |
+
)
|
57 |
+
|
58 |
+
target_include_directories(exiv2-xmp
|
59 |
+
PRIVATE
|
60 |
+
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/xmpsdk/include>
|
61 |
+
- ${EXPAT_INCLUDE_DIR}
|
62 |
+
)
|
63 |
+
|
64 |
+
# Prevent a denial-service-attack related to XML entity expansion
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/portfile.cmake
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Exiv2/exiv2
|
4 |
+
REF ad5484cb1eaba3ad0e49b290d244f6b1ee9ff076 #v0.27.5
|
5 |
+
SHA512 33b8c60990b05f1599860974d6fe44baba8369356acd2cab3ce4919a48bb44348ed0496ffc4581d9fd5eb8a1b36d48a0eaa3fafe4584bfd655d0a88e7a9458ef
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-find_expat.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
unicode EXIV2_ENABLE_WIN_UNICODE
|
14 |
+
xmp EXIV2_ENABLE_XMP
|
15 |
+
video EXIV2_ENABLE_VIDEO
|
16 |
+
png EXIV2_ENABLE_PNG
|
17 |
+
nls EXIV2_ENABLE_NLS
|
18 |
+
)
|
19 |
+
|
20 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" EXIV2_CRT_DYNAMIC)
|
21 |
+
|
22 |
+
if("unicode" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_WINDOWS)
|
23 |
+
message(FATAL_ERROR "Feature unicode only supports Windows platform.")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin")
|
27 |
+
|
28 |
+
vcpkg_cmake_configure(
|
29 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
30 |
+
OPTIONS
|
31 |
+
${FEATURE_OPTIONS}
|
32 |
+
-DEXIV2_BUILD_EXIV2_COMMAND=OFF
|
33 |
+
-DEXIV2_BUILD_UNIT_TESTS=OFF
|
34 |
+
-DEXIV2_BUILD_SAMPLES=OFF
|
35 |
+
-DEXIV2_BUILD_DOC=OFF
|
36 |
+
-DEXIV2_ENABLE_EXTERNAL_XMP=OFF
|
37 |
+
-DEXIV2_ENABLE_PRINTUCS2=OFF
|
38 |
+
-DEXIV2_ENABLE_LENSDATA=ON
|
39 |
+
-DEXIV2_ENABLE_DYNAMIC_RUNTIME=${EXIV2_CRT_DYNAMIC}
|
40 |
+
-DEXIV2_ENABLE_WEBREADY=OFF
|
41 |
+
-DEXIV2_ENABLE_CURL=OFF
|
42 |
+
-DEXIV2_ENABLE_SSH=OFF
|
43 |
+
-DEXIV2_ENABLE_BMFF=OFF
|
44 |
+
-DEXIV2_TEAM_EXTRA_WARNINGS=OFF
|
45 |
+
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF
|
46 |
+
-DEXIV2_TEAM_PACKAGING=OFF
|
47 |
+
-DEXIV2_TEAM_USE_SANITIZERS=OFF
|
48 |
+
)
|
49 |
+
|
50 |
+
vcpkg_cmake_install()
|
51 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/exiv2)
|
52 |
+
vcpkg_fixup_pkgconfig()
|
53 |
+
|
54 |
+
if("nls" IN_LIST FEATURES)
|
55 |
+
set(EXIV2_ENABLE_NLS ON)
|
56 |
+
else()
|
57 |
+
set(EXIV2_ENABLE_NLS OFF)
|
58 |
+
endif()
|
59 |
+
configure_file(
|
60 |
+
${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake
|
61 |
+
${CURRENT_PACKAGES_DIR}/share/${PORT}
|
62 |
+
@ONLY
|
63 |
+
)
|
64 |
+
|
65 |
+
vcpkg_copy_pdbs()
|
66 |
+
|
67 |
+
# Clean
|
68 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
69 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/exiv2" "${CURRENT_PACKAGES_DIR}/lib/exiv2")
|
70 |
+
|
71 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
72 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
73 |
+
endif()
|
74 |
+
|
75 |
+
# Handle copyright
|
76 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
|
3 |
+
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
4 |
+
find_package(Iconv REQUIRED)
|
5 |
+
if(@EXIV2_ENABLE_NLS@)
|
6 |
+
find_package(Intl REQUIRED)
|
7 |
+
endif()
|
8 |
+
if(TARGET exiv2lib)
|
9 |
+
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
|
10 |
+
Iconv::Iconv
|
11 |
+
)
|
12 |
+
if(@EXIV2_ENABLE_NLS@)
|
13 |
+
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${Intl_LIBRARIES})
|
14 |
+
endif()
|
15 |
+
endif()
|
16 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/exiv2/vcpkg.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "exiv2",
|
3 |
+
"version": "0.27.5",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Image metadata library and tools",
|
6 |
+
"homepage": "https://www.exiv2.org",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"libiconv",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"features": {
|
20 |
+
"nls": {
|
21 |
+
"description": "Build native language support",
|
22 |
+
"dependencies": [
|
23 |
+
{
|
24 |
+
"name": "gettext",
|
25 |
+
"host": true,
|
26 |
+
"features": [
|
27 |
+
"tools"
|
28 |
+
]
|
29 |
+
}
|
30 |
+
]
|
31 |
+
},
|
32 |
+
"png": {
|
33 |
+
"description": "Build with png support (requires libz)",
|
34 |
+
"dependencies": [
|
35 |
+
"libpng",
|
36 |
+
"zlib"
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"unicode": {
|
40 |
+
"description": "Compile with unicode support on windows"
|
41 |
+
},
|
42 |
+
"video": {
|
43 |
+
"description": "Build video support into library"
|
44 |
+
},
|
45 |
+
"xmp": {
|
46 |
+
"description": "Build with XMP metadata support",
|
47 |
+
"dependencies": [
|
48 |
+
"expat"
|
49 |
+
]
|
50 |
+
}
|
51 |
+
}
|
52 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/expat/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(EX_VERSION 2.4.8)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO libexpat/libexpat
|
6 |
+
REF 3bab6c09bbe8bf42d84b81563ddbcf4cca4be838 #v2.4.8
|
7 |
+
SHA512 6bddf6514183b3bfa6bf869e63cf838cfe2912941ef04543bce00bee84a305f494368fb7cbd80404d06877a1d8da82de5ac2b44074b25e34aeaee7949d37e451
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" EXPAT_LINKAGE)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}/expat"
|
15 |
+
OPTIONS
|
16 |
+
-DEXPAT_BUILD_EXAMPLES=OFF
|
17 |
+
-DEXPAT_BUILD_TESTS=OFF
|
18 |
+
-DEXPAT_BUILD_TOOLS=OFF
|
19 |
+
-DEXPAT_BUILD_DOCS=OFF
|
20 |
+
-DEXPAT_SHARED_LIBS=${EXPAT_LINKAGE}
|
21 |
+
-DEXPAT_BUILD_PKGCONFIG=ON
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
|
26 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/expat-${EX_VERSION}")
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
32 |
+
|
33 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
34 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/expat_external.h"
|
35 |
+
"! defined(XML_STATIC)"
|
36 |
+
"/* vcpkg static build ! defined(XML_STATIC) */ 0"
|
37 |
+
)
|
38 |
+
endif()
|
39 |
+
|
40 |
+
vcpkg_copy_pdbs()
|
41 |
+
|
42 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
43 |
+
file(INSTALL "${SOURCE_PATH}/expat/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/expat/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(SelectLibraryConfigurations)
|
2 |
+
|
3 |
+
set(EXPATNAMES expat expatw libexpat libexpatw)
|
4 |
+
set(DEBUGNAMES)
|
5 |
+
foreach(_CRT "" MT MD)
|
6 |
+
foreach(name IN LISTS EXPATNAMES)
|
7 |
+
list(APPEND EXPATNAMES ${name}${_CRT})
|
8 |
+
list(APPEND DEBUGNAMES ${name}d${_CRT})
|
9 |
+
endforeach()
|
10 |
+
endforeach()
|
11 |
+
|
12 |
+
find_library(EXPAT_LIBRARY_DEBUG NAMES ${DEBUGNAMES} ${EXPATNAMES} NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH)
|
13 |
+
find_library(EXPAT_LIBRARY_RELEASE NAMES ${EXPATNAMES} NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
|
14 |
+
select_library_configurations(EXPAT)
|
15 |
+
set(EXPAT_LIBRARY "${EXPAT_LIBRARIES}" CACHE STRING "" FORCE)
|
16 |
+
_find_package(${ARGS})
|
17 |
+
if(EXPAT_FOUND AND TARGET EXPAT::EXPAT)
|
18 |
+
if(EXPAT_LIBRARY_DEBUG)
|
19 |
+
set_target_properties(EXPAT::EXPAT PROPERTIES IMPORTED_LOCATION_DEBUG "${EXPAT_LIBRARY_DEBUG}")
|
20 |
+
endif()
|
21 |
+
if(EXPAT_LIBRARY_RELEASE)
|
22 |
+
set_target_properties(EXPAT::EXPAT PROPERTIES IMPORTED_LOCATION_RELEASE "${EXPAT_LIBRARY_RELEASE}")
|
23 |
+
endif()
|
24 |
+
endif()
|
25 |
+
|
26 |
+
unset(EXPATNAMES)
|
27 |
+
unset(DEBUGNAMES)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/expat/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "expat",
|
3 |
+
"version": "2.4.8",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "XML parser library written in C",
|
6 |
+
"homepage": "https://github.com/libexpat/libexpat",
|
7 |
+
"license": "MIT",
|
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/expected-lite/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO martinmoene/expected-lite
|
4 |
+
REF v0.5.0
|
5 |
+
SHA512 6dd8974d518db0c79fe7bd0e407a85436c6ad222f8e5ed84efb34925d9a665b5b83ff08529b3e985034ed9a9201c80575f6a956132408ef6577c9c47cac55eae
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DEXPECTED_LITE_OPT_BUILD_TESTS=OFF
|
13 |
+
-DEXPECTED_LITE_OPT_BUILD_EXAMPLES=OFF
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
vcpkg_cmake_config_fixup(
|
19 |
+
CONFIG_PATH lib/cmake/${PORT}
|
20 |
+
)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE
|
23 |
+
"${CURRENT_PACKAGES_DIR}/debug"
|
24 |
+
"${CURRENT_PACKAGES_DIR}/lib"
|
25 |
+
)
|
26 |
+
|
27 |
+
file(INSTALL
|
28 |
+
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
29 |
+
)
|