Spaces:
Sleeping
Sleeping
fe4981af71731376f68e710b8ac1b5d9edfc21dc8a81a64c4ce717ca74175be1
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dxut/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dxut/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/EABaseConfig.cmake.in +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/fix_cmake_install.patch +75 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/earcut-hpp/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/earcut-hpp/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/EASTLConfig.cmake.in +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/Fix-error-C2338.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/fix_cmake_install.patch +75 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/portfile.cmake +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/easycl/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/easycl/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyhook/fix-build.patch +154 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyhook/portfile.cmake +113 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyhook/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyloggingpp/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyloggingpp/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eathread/EAThreadConfig.cmake.in +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eathread/fix_cmake_install.patch +75 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eathread/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eathread/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ebml/include-limits.patch +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ebml/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ebml/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/fix_canberra.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/fix_generateqmltypes.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/fix_libmount.patch +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/usage +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecos/CMakeLists.txt +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecos/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecos/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecsutil/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecsutil/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/edlib/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/edlib/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/effects11/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/effects11/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/effolkronium-random/portfile.cmake +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/effolkronium-random/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/efsw/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/efsw/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/egl-registry/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/egl-registry/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/fix-vectorized-reductions-half.patch +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/portfile.cmake +37 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dxut/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO microsoft/DXUT
|
6 |
+
REF jun2021
|
7 |
+
SHA512 4c95cefcf685e95b26677d0aba3d118df7860e3bf1b99b567013d326f890a3f67657be2c60677d3d996cccacce30f70d0c2fc60a692372053cce50318fa79a70
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_install_cmake()
|
17 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
20 |
+
|
21 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dxut/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dxut",
|
3 |
+
"version": "11.26",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A \"GLUT\"-like framework for Direct3D 11.x Win32 desktop applications",
|
6 |
+
"homepage": "https://github.com/Microsoft/DXUT",
|
7 |
+
"documentation": "https://github.com/microsoft/DXUT/wiki",
|
8 |
+
"license": "MIT",
|
9 |
+
"supports": "windows & !uwp",
|
10 |
+
"dependencies": [
|
11 |
+
"directxmath"
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/EABaseConfig.cmake.in
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
# Provide path for scripts
|
4 |
+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
5 |
+
|
6 |
+
include(${CMAKE_CURRENT_LIST_DIR}/EABaseTargets.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/fix_cmake_install.patch
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 89c6703..ab8e553 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -4,6 +4,9 @@
|
6 |
+
cmake_minimum_required(VERSION 3.1)
|
7 |
+
project(EABase CXX)
|
8 |
+
|
9 |
+
+include(GNUInstallDirs)
|
10 |
+
+include(CMakePackageConfigHelpers)
|
11 |
+
+
|
12 |
+
#-------------------------------------------------------------------------------------------
|
13 |
+
# Options
|
14 |
+
#-------------------------------------------------------------------------------------------
|
15 |
+
@@ -22,13 +25,51 @@ endif()
|
16 |
+
add_definitions(-D_CHAR16T)
|
17 |
+
|
18 |
+
if (NOT EABASE_BUILD_TESTS)
|
19 |
+
- #-------------------------------------------------------------------------------------------
|
20 |
+
- # Header only library
|
21 |
+
- #-------------------------------------------------------------------------------------------
|
22 |
+
- add_library(EABase INTERFACE)
|
23 |
+
-
|
24 |
+
- #-------------------------------------------------------------------------------------------
|
25 |
+
- # Include dirs
|
26 |
+
- #-------------------------------------------------------------------------------------------
|
27 |
+
- target_include_directories(EABase INTERFACE include/Common)
|
28 |
+
+ #-------------------------------------------------------------------------------------------
|
29 |
+
+ # Header only library
|
30 |
+
+ #-------------------------------------------------------------------------------------------
|
31 |
+
+ add_library(EABase INTERFACE)
|
32 |
+
+ add_library(EABase::EABase ALIAS EABase)
|
33 |
+
+
|
34 |
+
+ #-------------------------------------------------------------------------------------------
|
35 |
+
+ # Include dirs
|
36 |
+
+ #-------------------------------------------------------------------------------------------
|
37 |
+
+ target_include_directories(EABase INTERFACE
|
38 |
+
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/Common>
|
39 |
+
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
40 |
+
+ )
|
41 |
+
+
|
42 |
+
+ # create and install an export set for eabase target as EABase::EABase
|
43 |
+
+ set(EABase_CMAKE_CONFIG_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/EABase")
|
44 |
+
+
|
45 |
+
+ configure_package_config_file(
|
46 |
+
+ EABaseConfig.cmake.in
|
47 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/EABaseConfig.cmake
|
48 |
+
+ INSTALL_DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION}
|
49 |
+
+ )
|
50 |
+
+
|
51 |
+
+ # create and install an export set for Terra target as Terra
|
52 |
+
+ install(
|
53 |
+
+ TARGETS EABase EXPORT EABaseTargets
|
54 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
55 |
+
+ )
|
56 |
+
+
|
57 |
+
+
|
58 |
+
+ install(EXPORT EABaseTargets DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION})
|
59 |
+
+
|
60 |
+
+ write_basic_package_version_file(
|
61 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfigVersion.cmake"
|
62 |
+
+ VERSION 2.09.12
|
63 |
+
+ COMPATIBILITY SameMajorVersion
|
64 |
+
+ )
|
65 |
+
+
|
66 |
+
+ install(TARGETS EABase LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
67 |
+
+ install(DIRECTORY "include/Common/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
68 |
+
+
|
69 |
+
+ install(
|
70 |
+
+ FILES
|
71 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfig.cmake"
|
72 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfigVersion.cmake"
|
73 |
+
+ DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION}
|
74 |
+
+ )
|
75 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO electronicarts/EABase
|
6 |
+
REF d1be0a1d0fc01a9bf8f3f2cea75018df0d2410ee
|
7 |
+
SHA512 84a11bea06aecbf9a659d92b1ac904b99b2b82023650f4f376b5e68a744f631c5dbdd53d25f746ffb01b428415ac86e4fb8ba758db844acf80560fabe4d77733
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix_cmake_install.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/EABaseConfig.cmake.in DESTINATION ${SOURCE_PATH})
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS
|
19 |
+
-DEABASE_BUILD_TESTS:BOOL=OFF
|
20 |
+
)
|
21 |
+
vcpkg_install_cmake()
|
22 |
+
|
23 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/EABase)
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
# Handle copyright
|
30 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eabase/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "eabase",
|
3 |
+
"version-string": "2.09.12",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Electronic Arts Base. EABase is a small set of header files that define platform-independent data types and macros.",
|
6 |
+
"homepage": "https://github.com/electronicarts/EABase"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/earcut-hpp/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mapbox/earcut.hpp
|
4 |
+
REF v2.2.3
|
5 |
+
SHA512 f87f0084dbbcda85b409c326587a376d443f2484b6a69c216d2ad94ea8ea238912dfe1174b464b08faec10ea5c29ebae6478e7abfe5ff682a7b043784c1e3acf
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# This is a header only library
|
10 |
+
file(INSTALL "${SOURCE_PATH}/include/mapbox/earcut.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mapbox")
|
11 |
+
|
12 |
+
# Handle copyright
|
13 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/earcut-hpp/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "earcut-hpp",
|
3 |
+
"version": "2.2.3",
|
4 |
+
"description": "earcut.hpp is a C++ port of earcut.js, a fast, header-only polygon triangulation library.",
|
5 |
+
"homepage": "https://github.com/mapbox/earcut.hpp",
|
6 |
+
"license": "ISC"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/EASTLConfig.cmake.in
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include(CMakeFindDependencyMacro)
|
4 |
+
find_dependency(EABase CONFIG REQUIRED)
|
5 |
+
|
6 |
+
# Provide path for scripts
|
7 |
+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
8 |
+
|
9 |
+
include(${CMAKE_CURRENT_LIST_DIR}/EASTLTargets.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/Fix-error-C2338.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/scripts/CMake/CommonCppFlags.cmake b/scripts/CMake/CommonCppFlags.cmake
|
2 |
+
index 08b6af5..281665e 100644
|
3 |
+
--- a/scripts/CMake/CommonCppFlags.cmake
|
4 |
+
+++ b/scripts/CMake/CommonCppFlags.cmake
|
5 |
+
@@ -74,6 +74,9 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
6 |
+
endif()
|
7 |
+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
8 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest /W4 /permissive-")
|
9 |
+
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.31.30911.95")
|
10 |
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:static_assert-")
|
11 |
+
+ endif()
|
12 |
+
endif()
|
13 |
+
|
14 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/fix_cmake_install.patch
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index e8700dc..6d3e2f1 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -4,12 +4,17 @@
|
6 |
+
cmake_minimum_required(VERSION 3.1)
|
7 |
+
project(EASTL CXX)
|
8 |
+
|
9 |
+
+include(GNUInstallDirs)
|
10 |
+
+include(CMakePackageConfigHelpers)
|
11 |
+
+
|
12 |
+
#-------------------------------------------------------------------------------------------
|
13 |
+
# Options
|
14 |
+
#-------------------------------------------------------------------------------------------
|
15 |
+
option(EASTL_BUILD_BENCHMARK "Enable generation of build files for benchmark" OFF)
|
16 |
+
option(EASTL_BUILD_TESTS "Enable generation of build files for tests" OFF)
|
17 |
+
|
18 |
+
+find_package(EABase CONFIG REQUIRED)
|
19 |
+
+
|
20 |
+
#-------------------------------------------------------------------------------------------
|
21 |
+
# Compiler Flags
|
22 |
+
#-------------------------------------------------------------------------------------------
|
23 |
+
@@ -41,7 +46,10 @@ add_definitions(-DEASTL_OPENSOURCE=1)
|
24 |
+
#-------------------------------------------------------------------------------------------
|
25 |
+
# Include dirs
|
26 |
+
#-------------------------------------------------------------------------------------------
|
27 |
+
-target_include_directories(EASTL PUBLIC include)
|
28 |
+
+target_include_directories(EASTL PUBLIC
|
29 |
+
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
|
30 |
+
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
31 |
+
+ )
|
32 |
+
|
33 |
+
#-------------------------------------------------------------------------------------------
|
34 |
+
# Dependencies
|
35 |
+
@@ -50,5 +58,39 @@ if (NOT TARGET EABase)
|
36 |
+
add_subdirectory(test/packages/EABase)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
-target_link_libraries(EASTL EABase)
|
40 |
+
+target_link_libraries(EASTL PUBLIC EABase)
|
41 |
+
+
|
42 |
+
+# create and install an export set for eabase target as EABase::EABase
|
43 |
+
+set(EASTL_CMAKE_CONFIG_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/EASTL")
|
44 |
+
+
|
45 |
+
+configure_package_config_file(
|
46 |
+
+ EASTLConfig.cmake.in
|
47 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/EASTLConfig.cmake
|
48 |
+
+ INSTALL_DESTINATION ${EASTL_CMAKE_CONFIG_DESTINATION}
|
49 |
+
+)
|
50 |
+
+
|
51 |
+
+# create and install an export set for Terra target as Terra
|
52 |
+
+install(
|
53 |
+
+ TARGETS EASTL EXPORT EASTLTargets
|
54 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
55 |
+
+)
|
56 |
+
+
|
57 |
+
+
|
58 |
+
+install(EXPORT EASTLTargets DESTINATION ${EASTL_CMAKE_CONFIG_DESTINATION})
|
59 |
+
+
|
60 |
+
+write_basic_package_version_file(
|
61 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EASTLConfigVersion.cmake"
|
62 |
+
+ VERSION 3.16.05
|
63 |
+
+ COMPATIBILITY SameMajorVersion
|
64 |
+
+)
|
65 |
+
+
|
66 |
+
+install(TARGETS EASTL LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
67 |
+
+install(DIRECTORY "include/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
68 |
+
+
|
69 |
+
+install(
|
70 |
+
+ FILES
|
71 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EASTLConfig.cmake"
|
72 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EASTLConfigVersion.cmake"
|
73 |
+
+ DESTINATION ${EASTL_CMAKE_CONFIG_DESTINATION}
|
74 |
+
+)
|
75 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO electronicarts/EASTL
|
6 |
+
REF e8bdd5531ed79c30ccef2fd71e070f5ab9f1222a #v3.18.00
|
7 |
+
SHA512 3e5d97a77b8610a2efdb9156b47c91e8a8dd5629ff95ea6d2c65016b067ab645df5beddc8c7f93d89c3d1a6f404ff71282efc6db9885a6e6240fa444fe2be79c
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix_cmake_install.patch
|
11 |
+
Fix-error-C2338.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/EASTLConfig.cmake.in" DESTINATION "${SOURCE_PATH}")
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
-DEASTL_BUILD_TESTS=OFF
|
20 |
+
-DEASTL_BUILD_BENCHMARK=OFF
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
|
25 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/EASTL)
|
26 |
+
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
28 |
+
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
# Handle copyright
|
32 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
33 |
+
file(INSTALL "${SOURCE_PATH}/3RDPARTYLICENSES.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
34 |
+
|
35 |
+
# CommonCppFlags used by EAThread
|
36 |
+
file(INSTALL "${SOURCE_PATH}/scripts/CMake/CommonCppFlags.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eastl/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "eastl",
|
3 |
+
"version-string": "3.18.00",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Electronic Arts Standard Template Library. It is a C++ template library of containers, algorithms, and iterators useful for runtime and tool development across multiple platforms. It is a fairly extensive and robust implementation of such a library and has an emphasis on high performance above all other considerations.",
|
6 |
+
"homepage": "https://github.com/electronicarts/EASTL",
|
7 |
+
"license": "BSD-3-Clause",
|
8 |
+
"dependencies": [
|
9 |
+
"eabase",
|
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/easycl/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO architector1324/EasyCL
|
4 |
+
REF 0.3
|
5 |
+
SHA512 c0e9aa03c9039e9ffe4794ccc4e85654f8267924e577cf96fd8d5e141fab9e8f6dc4668ee4475d6df3ba77572e52a181493acd3dfdb0abf7bd83b7e3d4d08a29
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# Handle headers
|
10 |
+
file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp")
|
11 |
+
|
12 |
+
# Handle copyright
|
13 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/easycl RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/easycl/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "easycl",
|
3 |
+
"version-string": "0.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "OpenCL based lightweight c++ computing library",
|
6 |
+
"homepage": "https://github.com/architector1324/EasyCL",
|
7 |
+
"dependencies": [
|
8 |
+
"opencl"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyhook/fix-build.patch
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/EasyHookDll/EasyHookDll.vcxproj b/EasyHookDll/EasyHookDll.vcxproj
|
2 |
+
index ec66f91..5773555 100644
|
3 |
+
--- a/EasyHookDll/EasyHookDll.vcxproj
|
4 |
+
+++ b/EasyHookDll/EasyHookDll.vcxproj
|
5 |
+
@@ -188,7 +188,7 @@
|
6 |
+
<StringPooling>true</StringPooling>
|
7 |
+
<MinimalRebuild>true</MinimalRebuild>
|
8 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
9 |
+
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
10 |
+
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
11 |
+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
12 |
+
<PrecompiledHeader>
|
13 |
+
</PrecompiledHeader>
|
14 |
+
@@ -207,10 +207,6 @@
|
15 |
+
<TargetMachine>MachineX86</TargetMachine>
|
16 |
+
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
17 |
+
</Link>
|
18 |
+
- <PostBuildEvent>
|
19 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
20 |
+
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
21 |
+
- </PostBuildEvent>
|
22 |
+
<MASM>
|
23 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
24 |
+
</MASM>
|
25 |
+
@@ -223,7 +219,7 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
26 |
+
<StringPooling>true</StringPooling>
|
27 |
+
<MinimalRebuild>true</MinimalRebuild>
|
28 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
29 |
+
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
30 |
+
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
31 |
+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
32 |
+
<PrecompiledHeader>
|
33 |
+
</PrecompiledHeader>
|
34 |
+
@@ -242,10 +238,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
35 |
+
<TargetMachine>MachineX86</TargetMachine>
|
36 |
+
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
37 |
+
</Link>
|
38 |
+
- <PostBuildEvent>
|
39 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
40 |
+
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
41 |
+
- </PostBuildEvent>
|
42 |
+
<MASM>
|
43 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
44 |
+
</MASM>
|
45 |
+
@@ -261,7 +253,7 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
46 |
+
<StringPooling>true</StringPooling>
|
47 |
+
<MinimalRebuild>true</MinimalRebuild>
|
48 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
49 |
+
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
50 |
+
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
51 |
+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
52 |
+
<PrecompiledHeader>
|
53 |
+
</PrecompiledHeader>
|
54 |
+
@@ -278,10 +270,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
55 |
+
<SubSystem>Windows</SubSystem>
|
56 |
+
<TargetMachine>MachineX64</TargetMachine>
|
57 |
+
</Link>
|
58 |
+
- <PostBuildEvent>
|
59 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
60 |
+
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
61 |
+
- </PostBuildEvent>
|
62 |
+
<MASM>
|
63 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
64 |
+
</MASM>
|
65 |
+
@@ -297,7 +285,7 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
66 |
+
<StringPooling>true</StringPooling>
|
67 |
+
<MinimalRebuild>true</MinimalRebuild>
|
68 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
69 |
+
- <SmallerTypeCheck>true</SmallerTypeCheck>
|
70 |
+
+ <SmallerTypeCheck>false</SmallerTypeCheck>
|
71 |
+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
72 |
+
<PrecompiledHeader>
|
73 |
+
</PrecompiledHeader>
|
74 |
+
@@ -314,10 +302,6 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
75 |
+
<SubSystem>Windows</SubSystem>
|
76 |
+
<TargetMachine>MachineX64</TargetMachine>
|
77 |
+
</Link>
|
78 |
+
- <PostBuildEvent>
|
79 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
80 |
+
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
81 |
+
- </PostBuildEvent>
|
82 |
+
<MASM>
|
83 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
84 |
+
</MASM>
|
85 |
+
@@ -355,10 +339,6 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
86 |
+
<TargetMachine>MachineX86</TargetMachine>
|
87 |
+
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
88 |
+
</Link>
|
89 |
+
- <PostBuildEvent>
|
90 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
91 |
+
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
92 |
+
- </PostBuildEvent>
|
93 |
+
<MASM>
|
94 |
+
<GenerateDebugInformation>false</GenerateDebugInformation>
|
95 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
96 |
+
@@ -397,10 +377,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
97 |
+
<TargetMachine>MachineX86</TargetMachine>
|
98 |
+
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
|
99 |
+
</Link>
|
100 |
+
- <PostBuildEvent>
|
101 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x64\EasyHook32.dll"
|
102 |
+
-copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
103 |
+
- </PostBuildEvent>
|
104 |
+
<MASM>
|
105 |
+
<GenerateDebugInformation>false</GenerateDebugInformation>
|
106 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
107 |
+
@@ -439,10 +415,6 @@ copy "$(TargetDir)EasyHook32.lib" "$(TargetDir)..\x64\EasyHook32.lib"</Command>
|
108 |
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
109 |
+
<TargetMachine>MachineX64</TargetMachine>
|
110 |
+
</Link>
|
111 |
+
- <PostBuildEvent>
|
112 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
113 |
+
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
114 |
+
- </PostBuildEvent>
|
115 |
+
<MASM>
|
116 |
+
<GenerateDebugInformation>false</GenerateDebugInformation>
|
117 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
118 |
+
@@ -481,10 +453,6 @@ copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
119 |
+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
120 |
+
<TargetMachine>MachineX64</TargetMachine>
|
121 |
+
</Link>
|
122 |
+
- <PostBuildEvent>
|
123 |
+
- <Command>copy "$(TargetPath)" "$(TargetDir)..\x86\EasyHook64.dll"
|
124 |
+
-copy "$(TargetDir)EasyHook64.lib" "$(TargetDir)..\x86\EasyHook64.lib"</Command>
|
125 |
+
- </PostBuildEvent>
|
126 |
+
<MASM>
|
127 |
+
<GenerateDebugInformation>false</GenerateDebugInformation>
|
128 |
+
<UseSafeExceptionHandlers>false</UseSafeExceptionHandlers>
|
129 |
+
diff --git a/EasyHookDll/EasyHookDll_32.rc b/EasyHookDll/EasyHookDll_32.rc
|
130 |
+
index 2a8dfb6..abf5ae3 100644
|
131 |
+
--- a/EasyHookDll/EasyHookDll_32.rc
|
132 |
+
+++ b/EasyHookDll/EasyHookDll_32.rc
|
133 |
+
@@ -7,7 +7,7 @@
|
134 |
+
//
|
135 |
+
// Generated from the TEXTINCLUDE 2 resource.
|
136 |
+
//
|
137 |
+
-#include "afxres.h"
|
138 |
+
+#include "windows.h"
|
139 |
+
|
140 |
+
/////////////////////////////////////////////////////////////////////////////
|
141 |
+
#undef APSTUDIO_READONLY_SYMBOLS
|
142 |
+
diff --git a/EasyHookDll/EasyHookDll_64.rc b/EasyHookDll/EasyHookDll_64.rc
|
143 |
+
index 163a2f0..b32a4d4 100644
|
144 |
+
--- a/EasyHookDll/EasyHookDll_64.rc
|
145 |
+
+++ b/EasyHookDll/EasyHookDll_64.rc
|
146 |
+
@@ -7,7 +7,7 @@
|
147 |
+
//
|
148 |
+
// Generated from the TEXTINCLUDE 2 resource.
|
149 |
+
//
|
150 |
+
-#include "afxres.h"
|
151 |
+
+#include "windows.h"
|
152 |
+
|
153 |
+
/////////////////////////////////////////////////////////////////////////////
|
154 |
+
#undef APSTUDIO_READONLY_SYMBOLS
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyhook/portfile.cmake
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
message(WARNING ".Net framework 4.7.2 is required, please install it before installing easyhook.")
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO EasyHook/EasyHook
|
6 |
+
REF v2.7.7097.0
|
7 |
+
SHA512 D0CA5B64E77F6281B2DD7EE0DC492A9B07DDB60A9F514037938CC3E3FFA5DD57C95CB630E18C02C984A89070839E4188044896D4EE57A21E43E6EA3A4918255A
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES fix-build.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
13 |
+
set(BUILD_ARCH "Win32")
|
14 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
15 |
+
set(BUILD_ARCH "x64")
|
16 |
+
else()
|
17 |
+
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
18 |
+
endif()
|
19 |
+
|
20 |
+
# Use /Z7 rather than /Zi to avoid "fatal error C1090: PDB API call failed, error code '23': (0x00000006)"
|
21 |
+
foreach(VCXPROJ IN ITEMS
|
22 |
+
"${SOURCE_PATH}/EasyHookDll/EasyHookDll.vcxproj"
|
23 |
+
"${SOURCE_PATH}/Examples/UnmanagedHook/UnmanagedHook.vcxproj")
|
24 |
+
vcpkg_replace_string(
|
25 |
+
"${VCXPROJ}"
|
26 |
+
"<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>"
|
27 |
+
"<DebugInformationFormat>OldStyle</DebugInformationFormat>"
|
28 |
+
)
|
29 |
+
vcpkg_replace_string(
|
30 |
+
"${VCXPROJ}"
|
31 |
+
"<DebugInformationFormat>EditAndContinue</DebugInformationFormat>"
|
32 |
+
"<DebugInformationFormat>OldStyle</DebugInformationFormat>"
|
33 |
+
)
|
34 |
+
vcpkg_replace_string(
|
35 |
+
"${VCXPROJ}"
|
36 |
+
"<MinimalRebuild>true</MinimalRebuild>"
|
37 |
+
""
|
38 |
+
)
|
39 |
+
endforeach()
|
40 |
+
|
41 |
+
# Use modern .NET Framework
|
42 |
+
foreach(CSPROJ IN ITEMS
|
43 |
+
"${SOURCE_PATH}/EasyHook/EasyHook.csproj"
|
44 |
+
"${SOURCE_PATH}/EasyHookSvc/EasyHookSvc.csproj"
|
45 |
+
"${SOURCE_PATH}/EasyLoad/EasyLoad.csproj"
|
46 |
+
"${SOURCE_PATH}/Examples/FileMon/FileMon.csproj"
|
47 |
+
"${SOURCE_PATH}/Examples/FileMonInject/FileMonInject.csproj"
|
48 |
+
"${SOURCE_PATH}/Examples/FileMonitorController/FileMonitorController.csproj"
|
49 |
+
"${SOURCE_PATH}/Examples/FileMonitorInterceptor/FileMonitorInterceptor.csproj"
|
50 |
+
"${SOURCE_PATH}/Examples/FileMonitorInterface/FileMonitorInterface.csproj"
|
51 |
+
"${SOURCE_PATH}/Examples/ProcessMonitor/ProcessMonitor.csproj"
|
52 |
+
"${SOURCE_PATH}/Examples/ProcMonInject/ProcMonInject.csproj"
|
53 |
+
"${SOURCE_PATH}/Test/ComplexParameterInject/ComplexParameterInject.csproj"
|
54 |
+
"${SOURCE_PATH}/Test/ComplexParameterTest/ComplexParameterTest.csproj"
|
55 |
+
"${SOURCE_PATH}/Test/EasyHook.Tests/EasyHook.Tests.csproj"
|
56 |
+
"${SOURCE_PATH}/Test/ManagedTarget/ManagedTarget.csproj"
|
57 |
+
"${SOURCE_PATH}/Test/ManagedTest/ManagedTest.csproj"
|
58 |
+
"${SOURCE_PATH}/Test/MultipleHooks/MultipleHooks/MultipleHooks.csproj"
|
59 |
+
"${SOURCE_PATH}/Test/MultipleHooks/SimpleHook1/SimpleHook1.csproj"
|
60 |
+
"${SOURCE_PATH}/Test/MultipleHooks/SimpleHook2/SimpleHook2.csproj"
|
61 |
+
"${SOURCE_PATH}/Test/TestFuncHooks/TestFuncHooks.csproj")
|
62 |
+
|
63 |
+
vcpkg_replace_string(
|
64 |
+
"${CSPROJ}"
|
65 |
+
"<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>"
|
66 |
+
"<TargetFrameworkVersion>4.7.2</TargetFrameworkVersion>"
|
67 |
+
)
|
68 |
+
vcpkg_replace_string(
|
69 |
+
"${CSPROJ}"
|
70 |
+
"<TargetFrameworkProfile>Client</TargetFrameworkProfile>"
|
71 |
+
""
|
72 |
+
)
|
73 |
+
endforeach()
|
74 |
+
|
75 |
+
vcpkg_install_msbuild(
|
76 |
+
SOURCE_PATH ${SOURCE_PATH}
|
77 |
+
PROJECT_SUBPATH EasyHook.sln
|
78 |
+
TARGET EasyHookDll
|
79 |
+
RELEASE_CONFIGURATION "netfx4-Release"
|
80 |
+
DEBUG_CONFIGURATION "netfx4-Debug"
|
81 |
+
PLATFORM ${BUILD_ARCH}
|
82 |
+
)
|
83 |
+
|
84 |
+
# Remove the mismatch rebuild library
|
85 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
86 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
87 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/AUX_ULIB_x64.LIB")
|
88 |
+
endif()
|
89 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
90 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/AUX_ULIB_x64.LIB")
|
91 |
+
endif()
|
92 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
93 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
94 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/AUX_ULIB_x86.LIB")
|
95 |
+
endif()
|
96 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
97 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/AUX_ULIB_x86.LIB")
|
98 |
+
endif()
|
99 |
+
endif()
|
100 |
+
|
101 |
+
# These libraries are useless, so remove.
|
102 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
103 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/EasyHook.dll" "${CURRENT_PACKAGES_DIR}/bin/EasyHook.pdb")
|
104 |
+
endif()
|
105 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
106 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/EasyHook.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/EasyHook.pdb")
|
107 |
+
endif()
|
108 |
+
|
109 |
+
# Install includes
|
110 |
+
file(INSTALL "${SOURCE_PATH}/Public/easyhook.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/easyhook")
|
111 |
+
|
112 |
+
# Handle copyright
|
113 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyhook/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "easyhook",
|
3 |
+
"version": "2.7.7097.0",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "This project supports extending (hooking) unmanaged code (APIs) with pure managed ones, from within a fully managed environment on 32- or 64-bit Windows Vista x64, Windows Server 2008 x64, Windows 7, Windows 8.1, and Windows 10.",
|
6 |
+
"homepage": "https://github.com/EasyHook/EasyHook",
|
7 |
+
"supports": "windows & !static & !uwp & (x86 | x64)"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyloggingpp/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO muflihun/easyloggingpp
|
6 |
+
REF v9.97.0
|
7 |
+
SHA512 e45789edaf7a43ad6a73861840d24ccce9b9d6bba1aaacf93c6ac26ff7449957251d2ca322c9da85130b893332dd305b13a2499eaffc65ecfaaafa3e11f8d63d
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-Dbuild_static_lib=ON
|
15 |
+
)
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
22 |
+
|
23 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/easyloggingpp/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "easyloggingpp",
|
3 |
+
"version": "9.97.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Easylogging++ is a single header efficient logging library for C++ applications.",
|
6 |
+
"homepage": "https://github.com/amrayn/easyloggingpp",
|
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/eathread/EAThreadConfig.cmake.in
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
# Provide path for scripts
|
4 |
+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
5 |
+
|
6 |
+
include(${CMAKE_CURRENT_LIST_DIR}/EAThreadTargets.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eathread/fix_cmake_install.patch
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 34fc37a..60d201a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -4,15 +4,21 @@
|
6 |
+
cmake_minimum_required(VERSION 3.1)
|
7 |
+
project(EAThread CXX)
|
8 |
+
|
9 |
+
+include(GNUInstallDirs)
|
10 |
+
+include(CMakePackageConfigHelpers)
|
11 |
+
+
|
12 |
+
#-------------------------------------------------------------------------------------------
|
13 |
+
# Options
|
14 |
+
#-------------------------------------------------------------------------------------------
|
15 |
+
option(EATHREAD_BUILD_TESTS "Enable generation of build files for tests" OFF)
|
16 |
+
|
17 |
+
+find_package(EABase CONFIG REQUIRED)
|
18 |
+
+find_package(EASTL CONFIG REQUIRED)
|
19 |
+
+
|
20 |
+
#-------------------------------------------------------------------------------------------
|
21 |
+
# Compiler Flags
|
22 |
+
#-------------------------------------------------------------------------------------------
|
23 |
+
-set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/test/packages/EASTL/scripts/CMake")
|
24 |
+
+set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${_VCPKG_ROOT_DIR}/installed/${VCPKG_TARGET_TRIPLET}/share/eastl")
|
25 |
+
include(CommonCppFlags)
|
26 |
+
|
27 |
+
#-------------------------------------------------------------------------------------------
|
28 |
+
@@ -34,10 +40,45 @@ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
29 |
+
#-------------------------------------------------------------------------------------------
|
30 |
+
# Export Include Directories
|
31 |
+
#-------------------------------------------------------------------------------------------
|
32 |
+
-target_include_directories(EAThread PUBLIC include)
|
33 |
+
+target_include_directories(EAThread PUBLIC
|
34 |
+
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
|
35 |
+
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
36 |
+
+ )
|
37 |
+
|
38 |
+
#-------------------------------------------------------------------------------------------
|
39 |
+
# Package Dependencies
|
40 |
+
#-------------------------------------------------------------------------------------------
|
41 |
+
-target_link_libraries(EAThread EABase)
|
42 |
+
+target_link_libraries(EAThread PUBLIC EABase)
|
43 |
+
+
|
44 |
+
+# create and install an export set for eabase target as EABase::EABase
|
45 |
+
+set(EAThread_CMAKE_CONFIG_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/EAThread")
|
46 |
+
+
|
47 |
+
+configure_package_config_file(
|
48 |
+
+ EAThreadConfig.cmake.in
|
49 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/EAThreadConfig.cmake
|
50 |
+
+ INSTALL_DESTINATION ${EAThread_CMAKE_CONFIG_DESTINATION}
|
51 |
+
+)
|
52 |
+
+
|
53 |
+
+# create and install an export set for Terra target as Terra
|
54 |
+
+install(
|
55 |
+
+ TARGETS EAThread EXPORT EAThreadTargets
|
56 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
57 |
+
+)
|
58 |
+
+
|
59 |
+
+install(EXPORT EAThreadTargets DESTINATION ${EAThread_CMAKE_CONFIG_DESTINATION})
|
60 |
+
+
|
61 |
+
+write_basic_package_version_file(
|
62 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EAThreadConfigVersion.cmake"
|
63 |
+
+ VERSION 3.16.01
|
64 |
+
+ COMPATIBILITY SameMajorVersion
|
65 |
+
+)
|
66 |
+
+
|
67 |
+
+install(TARGETS EAThread LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
68 |
+
+install(DIRECTORY "include/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
69 |
+
|
70 |
+
+install(
|
71 |
+
+ FILES
|
72 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EAThreadConfig.cmake"
|
73 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/EAThreadConfigVersion.cmake"
|
74 |
+
+ DESTINATION ${EAThread_CMAKE_CONFIG_DESTINATION}
|
75 |
+
+)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eathread/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO electronicarts/EAThread
|
6 |
+
REF e4367a36f2e55d10b2b994bfbae8edf21f15bafd
|
7 |
+
SHA512 cd5a2aa6cdfe6fa538067919aa49e5ecd901898e12929dc852068ce66efe386032eb1fe667ea7d9b7a3d73a7bef1d90a683c0b90b6fb0d6d9a27950b05c4ab6a
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix_cmake_install.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/EAThreadConfig.cmake.in DESTINATION ${SOURCE_PATH})
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS
|
19 |
+
-DEATHREAD_BUILD_TESTS=OFF
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/EAThread)
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
27 |
+
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
|
30 |
+
# Handle copyright
|
31 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
32 |
+
file(INSTALL ${SOURCE_PATH}/3RDPARTYLICENSES.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/eathread)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eathread/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "eathread",
|
3 |
+
"version-string": "1.32.09",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Electronic Arts Thread Library. EAThread implements a unified cross-platform interface for multithreaded programming on various platforms.",
|
6 |
+
"homepage": "https://github.com/electronicarts/EAThread",
|
7 |
+
"supports": "!uwp & x64",
|
8 |
+
"dependencies": [
|
9 |
+
"eabase",
|
10 |
+
"eastl"
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ebml/include-limits.patch
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/EbmlString.cpp b/src/EbmlString.cpp
|
2 |
+
index 27e55fd..4c05fcf 100644
|
3 |
+
--- a/src/EbmlString.cpp
|
4 |
+
+++ b/src/EbmlString.cpp
|
5 |
+
@@ -34,6 +34,7 @@
|
6 |
+
\author Steve Lhomme <robux4 @ users.sf.net>
|
7 |
+
*/
|
8 |
+
#include <cassert>
|
9 |
+
+#include <limits>
|
10 |
+
|
11 |
+
#include "ebml/EbmlString.h"
|
12 |
+
|
13 |
+
diff --git a/src/EbmlUnicodeString.cpp b/src/EbmlUnicodeString.cpp
|
14 |
+
index 496a16a..99fc073 100644
|
15 |
+
--- a/src/EbmlUnicodeString.cpp
|
16 |
+
+++ b/src/EbmlUnicodeString.cpp
|
17 |
+
@@ -36,6 +36,7 @@
|
18 |
+
*/
|
19 |
+
|
20 |
+
#include <cassert>
|
21 |
+
+#include <limits>
|
22 |
+
|
23 |
+
#include "ebml/EbmlUnicodeString.h"
|
24 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ebml/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2 |
+
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO Matroska-Org/libebml
|
8 |
+
REF release-1.4.2
|
9 |
+
SHA512 2A03CA1D82A41EE05CFE4DD2726CC79295FA06A4D8ECEB93FE8F41BDFF09F04897B434B49DD1F496E1C014289B14C3F3416EAB4C8B1E745652FF1AB4A620BF83
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
include-limits.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS -DDISABLE_PKGCONFIG=1
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
|
22 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/EBML)
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ebml/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ebml",
|
3 |
+
"version": "1.4.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A C++ library to parse EBML files",
|
6 |
+
"homepage": "https://github.com/Matroska-Org/libebml",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/fix_canberra.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 203c65c562453385e3ffc4485844b15e80b93107 Mon Sep 17 00:00:00 2001
|
2 |
+
From: =?UTF-8?q?Dawid=20Wro=CC=81bel?= <[email protected]>
|
3 |
+
Date: Fri, 17 Sep 2021 00:07:08 +0200
|
4 |
+
Subject: [PATCH] FindCanberra: link against target provided by pkgconfig
|
5 |
+
|
6 |
+
target_link_libraries() against the target generated by
|
7 |
+
pkg_check_modules() so that the additional linker options are not
|
8 |
+
lost, such as the additional libraries to link against when
|
9 |
+
building statically.
|
10 |
+
|
11 |
+
BUG: 442555
|
12 |
+
---
|
13 |
+
find-modules/FindCanberra.cmake | 3 ++-
|
14 |
+
1 file changed, 2 insertions(+), 1 deletion(-)
|
15 |
+
|
16 |
+
diff --git a/find-modules/FindCanberra.cmake b/find-modules/FindCanberra.cmake
|
17 |
+
index c54adf99..f9561118 100644
|
18 |
+
--- a/find-modules/FindCanberra.cmake
|
19 |
+
+++ b/find-modules/FindCanberra.cmake
|
20 |
+
@@ -34,7 +34,7 @@ Since 5.56.0.
|
21 |
+
#]=======================================================================]
|
22 |
+
|
23 |
+
find_package(PkgConfig QUIET)
|
24 |
+
-pkg_check_modules(PC_Canberra libcanberra QUIET)
|
25 |
+
+pkg_check_modules(PC_Canberra IMPORTED_TARGET libcanberra QUIET)
|
26 |
+
|
27 |
+
find_library(Canberra_LIBRARIES
|
28 |
+
NAMES canberra
|
29 |
+
@@ -66,6 +66,7 @@ if(Canberra_FOUND AND NOT TARGET Canberra::Canberra)
|
30 |
+
INTERFACE_COMPILE_OPTIONS "${PC_Canberra_CFLAGS}"
|
31 |
+
INTERFACE_INCLUDE_DIRECTORIES "${Canberra_INCLUDE_DIRS}"
|
32 |
+
)
|
33 |
+
+ target_link_libraries(Canberra::Canberra INTERFACE PkgConfig::PC_Canberra)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
mark_as_advanced(Canberra_LIBRARIES Canberra_INCLUDE_DIRS Canberra_VERSION)
|
37 |
+
--
|
38 |
+
GitLab
|
39 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/fix_generateqmltypes.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/modules/ECMGenerateQmlTypes.cmake b/modules/ECMGenerateQmlTypes.cmake
|
2 |
+
index d6e124266308028b8533203da63f572f6e99b308..7d7cecb5201521019764102eba0da2abf8b4d911 100644
|
3 |
+
--- a/modules/ECMGenerateQmlTypes.cmake
|
4 |
+
+++ b/modules/ECMGenerateQmlTypes.cmake
|
5 |
+
@@ -1,4 +1,5 @@
|
6 |
+
# SPDX-FileCopyrightText: 2017 Aleix Pol Gonzalez <[email protected]>
|
7 |
+
+# SPDX-FileCopyrightText: 2021 Dawid Wrobel <[email protected]>
|
8 |
+
#
|
9 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
10 |
+
|
11 |
+
@@ -18,10 +19,7 @@ our project offers. These files offer introspection upon our plugin and are
|
12 |
+
useful for integrating with IDE language support of our plugin. It offers
|
13 |
+
information about the objects its methods and their argument types.
|
14 |
+
|
15 |
+
-The developer will be in charge of making sure that these files are up to date.
|
16 |
+
-The plugin.qmltypes file will sit in the source directory. This function will
|
17 |
+
-include the code that installs the file in the right place and a small unit
|
18 |
+
-test named qmltypes-pluginname-version that makes sure that it doesn't need updating.
|
19 |
+
+This function installs the file in DESTINATION folder.
|
20 |
+
|
21 |
+
|
22 |
+
Since 5.33.0
|
23 |
+
@@ -40,7 +38,7 @@ function(ecm_generate_qmltypes)
|
24 |
+
set(targetname "qmltypes-${ARG_UNPARSED_ARGUMENTS}")
|
25 |
+
string(REPLACE ";" - targetname "${targetname}")
|
26 |
+
|
27 |
+
- set(generatedFile ${CMAKE_CURRENT_SOURCE_DIR}/plugins.qmltypes)
|
28 |
+
+ set(generatedFile plugins.qmltypes)
|
29 |
+
add_custom_target(${targetname}
|
30 |
+
BYPRODUCTS ${generatedFile}
|
31 |
+
COMMAND qmlplugindump -nonrelocatable ${ARG_UNPARSED_ARGUMENTS} ${KDE_INSTALL_QMLDIR} > ${generatedFile}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/fix_libmount.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/find-modules/FindLibMount.cmake b/find-modules/FindLibMount.cmake
|
2 |
+
index 3fcde4c5435a79c61c53bbd27e1932441a056d98..1f53f0218faa82fdf9713ab768080ab7c1d72b4a 100644
|
3 |
+
--- a/find-modules/FindLibMount.cmake
|
4 |
+
+++ b/find-modules/FindLibMount.cmake
|
5 |
+
@@ -30,7 +30,7 @@ Since 5.83.0
|
6 |
+
#]=======================================================================]
|
7 |
+
|
8 |
+
find_package(PkgConfig QUIET)
|
9 |
+
-pkg_check_modules(PC_LIBMOUNT QUIET mount)
|
10 |
+
+pkg_check_modules(PC_LIBMOUNT QUIET IMPORTED_TARGET mount)
|
11 |
+
|
12 |
+
find_path(LibMount_INCLUDE_DIRS NAMES libmount/libmount.h HINTS ${PC_LIBMOUNT_INCLUDE_DIRS})
|
13 |
+
find_library(LibMount_LIBRARIES NAMES mount HINTS ${PC_LIBMOUNT_LIBRARY_DIRS})
|
14 |
+
@@ -62,6 +62,9 @@ if(LibMount_FOUND AND NOT TARGET LibMount::LibMount)
|
15 |
+
INTERFACE_INCLUDE_DIRECTORIES "${LibMount_INCLUDE_DIRS}"
|
16 |
+
INTERFACE_COMPILE_DEFINITIONS "${PC_LIBMOUNT_CFLAGS_OTHER}"
|
17 |
+
)
|
18 |
+
+ if (TARGET PkgConfig::PC_LIBMOUNT)
|
19 |
+
+ target_link_libraries(LibMount::LibMount INTERFACE PkgConfig::PC_LIBMOUNT)
|
20 |
+
+ endif()
|
21 |
+
endif()
|
22 |
+
|
23 |
+
include(FeatureSummary)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KDE/extra-cmake-modules
|
4 |
+
REF v5.89.0
|
5 |
+
SHA512 1c3f6ad5dbe1485d1602e297989d6cd53e7646aa99dc28ac1159d0aa22134c97efd74b2c01923e74732f59c861ce05486adb7cff7de050237a35b0980e92cbcf
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix_canberra.patch # https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/187
|
9 |
+
fix_libmount.patch # https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/200
|
10 |
+
fix_generateqmltypes.patch # https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/201
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_HTML_DOCS=OFF
|
17 |
+
-DBUILD_MAN_DOCS=OFF
|
18 |
+
-DBUILD_QTHELP_DOCS=OFF
|
19 |
+
-DBUILD_TESTING=OFF
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
# Remove debug files
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
26 |
+
|
27 |
+
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
28 |
+
# Handle copyright
|
29 |
+
file(INSTALL "${SOURCE_PATH}/COPYING-CMAKE-SCRIPTS" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
30 |
+
|
31 |
+
# Allow empty include directory
|
32 |
+
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/usage
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package ecm provides CMake targets:
|
2 |
+
|
3 |
+
find_package(ECM CONFIG REQUIRED NO_MODULE)
|
4 |
+
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
|
5 |
+
include(KDEInstallDirs)
|
6 |
+
include(KDECompilerSettings)
|
7 |
+
include(KDECMakeSettings)
|
8 |
+
|
9 |
+
For more infomation, see https://api.kde.org/ecm/
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecm/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ecm",
|
3 |
+
"version": "5.89.0",
|
4 |
+
"description": "Extra CMake Modules (ECM), extra modules and scripts for CMake",
|
5 |
+
"homepage": "https://github.com/KDE/extra-cmake-modules",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
}
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecos/CMakeLists.txt
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
project(ecos C)
|
3 |
+
|
4 |
+
#include(GNUInstallDirs)
|
5 |
+
|
6 |
+
set(EXTERNAL_SRC ${CMAKE_CURRENT_SOURCE_DIR}/external)
|
7 |
+
|
8 |
+
set(SUITESPARSE ${EXTERNAL_SRC}/SuiteSparse_config)
|
9 |
+
add_library(ecos-suitesparse INTERFACE)
|
10 |
+
target_sources(ecos-suitesparse INTERFACE $<BUILD_INTERFACE:${SUITESPARSE}/SuiteSparse_config.h> $<INSTALL_INTERFACE:include/ecos>)
|
11 |
+
target_include_directories(ecos-suitesparse INTERFACE $<BUILD_INTERFACE:${SUITESPARSE}> $<INSTALL_INTERFACE:include/ecos>)
|
12 |
+
target_compile_definitions(ecos-suitesparse INTERFACE DLONG LDL_LONG)
|
13 |
+
|
14 |
+
set(AMD_SRC ${EXTERNAL_SRC}/amd/src)
|
15 |
+
set(AMD_INCLUDE ${EXTERNAL_SRC}/amd/include)
|
16 |
+
add_library(ecos-amd STATIC
|
17 |
+
${AMD_SRC}/amd_1.c ${AMD_SRC}/amd_2.c ${AMD_SRC}/amd_aat.c ${AMD_SRC}/amd_control.c ${AMD_SRC}/amd_defaults.c ${AMD_SRC}/amd_dump.c ${AMD_SRC}/amd_global.c ${AMD_SRC}/amd_info.c ${AMD_SRC}/amd_order.c ${AMD_SRC}/amd_post_tree.c ${AMD_SRC}/amd_postorder.c ${AMD_SRC}/amd_preprocess.c ${AMD_SRC}/amd_valid.c
|
18 |
+
)
|
19 |
+
file(GLOB AMD_HEADERS ${EXTERNAL_SRC}/amd/include/*.h)
|
20 |
+
target_include_directories(ecos-amd PUBLIC $<BUILD_INTERFACE:${AMD_INCLUDE}> $<INSTALL_INTERFACE:include/ecos>)
|
21 |
+
target_link_libraries(ecos-amd ecos-suitesparse)
|
22 |
+
|
23 |
+
|
24 |
+
add_library(ecos-ldl STATIC
|
25 |
+
${EXTERNAL_SRC}/ldl/src/ldl.c
|
26 |
+
)
|
27 |
+
file(GLOB LDL_HEADERS ${EXTERNAL_SRC}/ldl/include/*.h)
|
28 |
+
target_include_directories(ecos-ldl PUBLIC $<BUILD_INTERFACE:${EXTERNAL_SRC}/ldl/include/> $<INSTALL_INTERFACE:include/ecos>)
|
29 |
+
target_link_libraries(ecos-ldl ecos-suitesparse)
|
30 |
+
|
31 |
+
|
32 |
+
add_library(ecos STATIC
|
33 |
+
src/cone.c src/ecos.c src/expcone.c src/preproc.c src/splamm.c src/wright_omega.c src/ctrlc.c src/equil.c src/kkt.c src/spla.c src/timer.c
|
34 |
+
)
|
35 |
+
file(GLOB ECOS_HEADERS include/*.h)
|
36 |
+
target_include_directories(ecos PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include/ecos>)
|
37 |
+
target_link_libraries(ecos ecos-amd ecos-ldl)
|
38 |
+
|
39 |
+
install(FILES ${SUITESPARSE}/SuiteSparse_config.h DESTINATION "include/ecos/")
|
40 |
+
install(FILES ${ECOS_HEADERS} DESTINATION "include/ecos/")
|
41 |
+
install(FILES ${LDL_HEADERS} DESTINATION "include/ecos/")
|
42 |
+
install(FILES ${AMD_HEADERS} DESTINATION "include/ecos/")
|
43 |
+
|
44 |
+
install(TARGETS ecos ecos-amd ecos-ldl ecos-suitesparse EXPORT ecos-targets)
|
45 |
+
install(
|
46 |
+
EXPORT ecos-targets
|
47 |
+
FILE ecos-config.cmake
|
48 |
+
DESTINATION share/ecos/
|
49 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecos/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO embotech/ecos
|
6 |
+
REF v2.0.8
|
7 |
+
SHA512 c1adb188d6b2c400f817de15272472adfd013e2a174f49ec0bb2f7f889f26ba2b7ea165d9bedac3031bd2da7a770f2a285ad825d5b22ccc6cf43c756a20f844f
|
8 |
+
HEAD_REF develop
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
|
20 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ecos RENAME copyright)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/ecos")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecos/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ecos",
|
3 |
+
"version-string": "2.0.8",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A lightweight conic solver for second-order cone programming."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecsutil/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
2 |
+
set(PLATFORM x86)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
6 |
+
set(ECSUtil_CONFIGURATION_RELEASE Release)
|
7 |
+
set(ECSUtil_CONFIGURATION_DEBUG Debug)
|
8 |
+
else()
|
9 |
+
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
10 |
+
set(ECSUtil_CONFIGURATION_RELEASE "Release Lib")
|
11 |
+
set(ECSUtil_CONFIGURATION_DEBUG "Debug Lib")
|
12 |
+
else()
|
13 |
+
set(ECSUtil_CONFIGURATION_RELEASE "Release Lib Static")
|
14 |
+
set(ECSUtil_CONFIGURATION_DEBUG "Debug Lib Static")
|
15 |
+
endif()
|
16 |
+
endif()
|
17 |
+
|
18 |
+
vcpkg_from_github(
|
19 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
20 |
+
REPO EMCECS/ecs-object-client-windows-cpp
|
21 |
+
REF af9fd3cc0be5eacfeb431ca4607d3b73dd318353 # v1.0.7.15
|
22 |
+
SHA512 091f4b4870d5bdcbd46c35b2d75e927c9da69e2aba9a24b36504ab9fa3e33fba6eec2a8a5b649fc3ad793e3043c3f2702b753341f74d87de1a7f96c251839c69
|
23 |
+
HEAD_REF master
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_install_msbuild(
|
27 |
+
SOURCE_PATH ${SOURCE_PATH}
|
28 |
+
PROJECT_SUBPATH ECSUtil.sln
|
29 |
+
PLATFORM ${PLATFORM}
|
30 |
+
LICENSE_SUBPATH license.txt
|
31 |
+
TARGET ECSUtil
|
32 |
+
RELEASE_CONFIGURATION ${ECSUtil_CONFIGURATION_RELEASE}
|
33 |
+
DEBUG_CONFIGURATION ${ECSUtil_CONFIGURATION_DEBUG}
|
34 |
+
)
|
35 |
+
|
36 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
37 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
38 |
+
endif()
|
39 |
+
|
40 |
+
file(COPY ${SOURCE_PATH}/ECSUtil DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN *.h)
|
41 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/ECSUtil/res ${CURRENT_PACKAGES_DIR}/tools)
|
42 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/NatvisAddIn.dll ${CURRENT_PACKAGES_DIR}/debug/bin/NatvisAddIn.dll)
|
43 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
44 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
45 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ecsutil/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ecsutil",
|
3 |
+
"version-string": "1.0.7.15",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Native Windows SDK for accessing ECS via the S3 HTTP protocol.",
|
6 |
+
"homepage": "https://github.com/EMCECS/ecs-object-client-windows-cpp",
|
7 |
+
"supports": "windows & (x64 | x86)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "atlmfc",
|
11 |
+
"platform": "windows"
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/edlib/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Martinsos/edlib
|
4 |
+
REF v1.2.7
|
5 |
+
SHA512 720C732C76D0D9ABE28ADCE9972B355864571A2E6CBD2C72C3B4A92E045A99E3A688153865586F7E8B6C90433E2EB1BB024AD0A6E9D4EB4B4D401A160D3F13CE
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_install()
|
14 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/edlib)
|
15 |
+
|
16 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
17 |
+
|
18 |
+
# Handle copyright
|
19 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
20 |
+
|
21 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/edlib/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "edlib",
|
3 |
+
"version": "1.2.7",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Lightweight, super fast C/C++ (& Python) library for sequence alignment using edit (Levenshtein) distance.",
|
6 |
+
"homepage": "https://github.com/Martinsos/edlib",
|
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/effects11/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO microsoft/FX11
|
5 |
+
REF feb2021
|
6 |
+
SHA512 bdf35347582646e782c20a96180c8286786da46583527b76b2d348cd76a75285a31ebb88297962cd279c09bbd416c15c0d25ae91881ffebbf9e8ce2f21912f16
|
7 |
+
HEAD_REF master
|
8 |
+
FILE_DISAMBIGUATOR 1
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_install_cmake()
|
17 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
20 |
+
|
21 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/effects11/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "effects11",
|
3 |
+
"version": "11.26",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Effects for Direct3D 11 (FX11) is a management runtime for authoring HLSL shaders, render state, and runtime variables together.",
|
6 |
+
"homepage": "https://github.com/Microsoft/FX11",
|
7 |
+
"documentation": "https://github.com/microsoft/FX11/wiki",
|
8 |
+
"license": "MIT",
|
9 |
+
"supports": "windows"
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/effolkronium-random/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO effolkronium/random
|
4 |
+
REF v1.4.0
|
5 |
+
SHA512 B3DDEC048BBFB48877FD12295D4E0492E25976E1C4FE66F13E9E6E611DAAF654BD8D4AE75EA75125CB5AB420B82472C1CC1AB0BED3AEF632911B0934B45B23AF
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DRandom_BuildTests=OFF
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME effolkronium_random CONFIG_PATH cmake)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
19 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/effolkronium-random/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "effolkronium-random",
|
3 |
+
"version": "1.4.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Random with a modern C++ API",
|
6 |
+
"homepage": "https://github.com/effolkronium/random",
|
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/efsw/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO SpartanJ/efsw
|
4 |
+
REF b62d04829bb0a6f3cacc7859e0b046a3c053bc50
|
5 |
+
SHA512 fc16ef6ad330941dc0a1112ce645b57bd126d353556d50f45fadf150f25edd42c1d4946bc54d629d94c208d67d4ce17dbf5d1079cbeed51f0f6b1ccbe2199132
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
OPTIONS
|
13 |
+
-DVERBOSE=OFF
|
14 |
+
-DBUILD_TEST_APP=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
|
19 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/efsw)
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/efsw/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "efsw",
|
3 |
+
"version-date": "2020-06-08",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "efsw is a C++ cross-platform file system watcher and notifier.",
|
6 |
+
"homepage": "https://github.com/SpartanJ/efsw",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/egl-registry/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KhronosGroup/EGL-Registry
|
4 |
+
REF 992aa3914f8fea801b1034c992db389911d9f3c3
|
5 |
+
SHA512 75524ed23066e856f080f6551a6c7b6573d13ff7b4555594e2987e1e6a38ba13042d5037d56d656048e83c0b4ff002b5badacf9224516f9f5e521d4af653805a
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(
|
10 |
+
COPY
|
11 |
+
"${SOURCE_PATH}/api/KHR"
|
12 |
+
"${SOURCE_PATH}/api/EGL"
|
13 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
14 |
+
)
|
15 |
+
|
16 |
+
file(
|
17 |
+
COPY
|
18 |
+
"${SOURCE_PATH}/api/egl.xml"
|
19 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/opengl"
|
20 |
+
)
|
21 |
+
|
22 |
+
file(
|
23 |
+
INSTALL "${SOURCE_PATH}/sdk/docs/man/copyright.xml"
|
24 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
25 |
+
RENAME copyright
|
26 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/egl-registry/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "egl-registry",
|
3 |
+
"version-date": "2021-11-23",
|
4 |
+
"description": "the EGL API and Extension Registry",
|
5 |
+
"homepage": "https://github.com/KhronosGroup/EGL-Registry"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/fix-vectorized-reductions-half.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Eigen/src/Core/PartialReduxEvaluator.h b/Eigen/src/Core/PartialReduxEvaluator.h
|
2 |
+
index 29abf35..4051fcf 100644
|
3 |
+
--- a/Eigen/src/Core/PartialReduxEvaluator.h
|
4 |
+
+++ b/Eigen/src/Core/PartialReduxEvaluator.h
|
5 |
+
@@ -54,12 +54,19 @@ struct packetwise_redux_traits
|
6 |
+
/* Value to be returned when size==0 , by default let's return 0 */
|
7 |
+
template<typename PacketType,typename Func>
|
8 |
+
EIGEN_DEVICE_FUNC
|
9 |
+
-PacketType packetwise_redux_empty_value(const Func& ) { return pset1<PacketType>(0); }
|
10 |
+
+PacketType packetwise_redux_empty_value(const Func& ) {
|
11 |
+
+ const typename unpacket_traits<PacketType>::type zero(0);
|
12 |
+
+ return pset1<PacketType>(zero);
|
13 |
+
+}
|
14 |
+
+
|
15 |
+
|
16 |
+
/* For products the default is 1 */
|
17 |
+
template<typename PacketType,typename Scalar>
|
18 |
+
EIGEN_DEVICE_FUNC
|
19 |
+
-PacketType packetwise_redux_empty_value(const scalar_product_op<Scalar,Scalar>& ) { return pset1<PacketType>(1); }
|
20 |
+
+PacketType packetwise_redux_empty_value(const scalar_product_op<Scalar,Scalar>& ) {
|
21 |
+
+ return pset1<PacketType>(Scalar(1));
|
22 |
+
+}
|
23 |
+
+
|
24 |
+
|
25 |
+
/* Perform the actual reduction */
|
26 |
+
template<typename Func, typename Evaluator,
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/eigen3/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_buildpath_length_warning(37)
|
2 |
+
|
3 |
+
vcpkg_from_gitlab(
|
4 |
+
GITLAB_URL https://gitlab.com
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO libeigen/eigen
|
7 |
+
REF 3.4.0
|
8 |
+
SHA512 ba75ecb760e32acf4ceaf27115468e65d4f77c44f8d519b5a13e7940af2c03a304ad433368cb6d55431f307c5c39e2666ab41d34442db3cf441638e51f5c3b6a
|
9 |
+
HEAD_REF master
|
10 |
+
PATCHES
|
11 |
+
remove_configure_checks.patch # This removes unnecessary configure checks. Eigen3 just installs headers not anything more.
|
12 |
+
fix-vectorized-reductions-half.patch # Remove this patch in the next update
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS
|
18 |
+
-DBUILD_TESTING=OFF
|
19 |
+
-DEIGEN_BUILD_PKGCONFIG=ON
|
20 |
+
OPTIONS_RELEASE
|
21 |
+
-DCMAKEPACKAGE_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/share/eigen3
|
22 |
+
-DPKGCONFIG_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/lib/pkgconfig
|
23 |
+
OPTIONS_DEBUG
|
24 |
+
-DCMAKEPACKAGE_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/debug/share/eigen3
|
25 |
+
-DPKGCONFIG_INSTALL_DIR=${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
vcpkg_cmake_config_fixup()
|
30 |
+
vcpkg_fixup_pkgconfig()
|
31 |
+
|
32 |
+
file(GLOB INCLUDES "${CURRENT_PACKAGES_DIR}/include/eigen3/*")
|
33 |
+
# Copy the eigen header files to conventional location for user-wide MSBuild integration
|
34 |
+
file(COPY ${INCLUDES} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
36 |
+
|
37 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.README" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|