Spaces:
Sleeping
Sleeping
117b96e1af5be0c5efabf7833f8198a4c9134629b3f70c541fec143b93158a4a
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/fruit/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/01_disable_doxygen.patch +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/02_enable-cpp11-std.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/Fix-headersFilePath.patch +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/vcpkg.json +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftxui/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftxui/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/function2/disable-testing.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/function2/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/function2/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/functions-framework-cpp/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/functions-framework-cpp/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/fuzzylite/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/fuzzylite/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/fxdiv/portfile.cmake +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/fxdiv/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/g2o/portfile.cmake +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/g2o/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/g3log/portfile.cmake +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/g3log/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/fix-build.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/install_as_cmake_package.patch +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamedev-framework/portfile.cmake +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamedev-framework/vcpkg.json +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamenetworkingsockets/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamenetworkingsockets/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamma/CMakeLists.txt +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamma/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamma/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/fix-install.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/gasol.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gaussianlib/portfile.cmake +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gaussianlib/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gazebo/0001-Fix-deps.patch +102 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gazebo/portfile.cmake +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gazebo/vcpkg.json +125 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gcem/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gcem/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0001-Fix-debug-crt-flags.patch +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0002-Fix-build.patch +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0004-Fix-cfitsio.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0005-Fix-configure.patch +315 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0006-Fix-mingw-dllexport.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0007-Control-tools.patch +83 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0008-Fix-absl-string_view.patch +13 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/fruit/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "fruit",
|
3 |
+
"version-string": "3.6.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Fruit, a dependency injection framework for C++ by Google",
|
6 |
+
"homepage": "https://github.com/google/fruit"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/01_disable_doxygen.patch
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 303fcae..718ae88 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -35,15 +35,16 @@ ENDIF(BUILD_SHARED_LIBS)
|
6 |
+
|
7 |
+
ADD_CUSTOM_TARGET(doc)
|
8 |
+
|
9 |
+
-FIND_PACKAGE(Doxygen)
|
10 |
+
-IF(DOXYGEN_FOUND)
|
11 |
+
- ADD_CUSTOM_TARGET(doxygen
|
12 |
+
- ${DOXYGEN_EXECUTABLE}
|
13 |
+
- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
14 |
+
- COMMENT "Doxygen ...")
|
15 |
+
- ADD_DEPENDENCIES(doc doxygen)
|
16 |
+
-
|
17 |
+
-ENDIF(DOXYGEN_FOUND)
|
18 |
+
+IF (WIN32) # doxygen only have windows package in vcpkg now.
|
19 |
+
+ FIND_PACKAGE(Doxygen)
|
20 |
+
+ IF(DOXYGEN_FOUND)
|
21 |
+
+ ADD_CUSTOM_TARGET(doxygen
|
22 |
+
+ ${DOXYGEN_EXECUTABLE}
|
23 |
+
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
24 |
+
+ COMMENT "Doxygen ...")
|
25 |
+
+ ADD_DEPENDENCIES(doc doxygen)
|
26 |
+
+ ENDIF(DOXYGEN_FOUND)
|
27 |
+
+ENDIF()
|
28 |
+
|
29 |
+
SUBDIRS(src)
|
30 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/02_enable-cpp11-std.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 718ae88..e53e0da 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,6 +1,9 @@
|
6 |
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
7 |
+
|
8 |
+
PROJECT(FTGL)
|
9 |
+
+set(CMAKE_CXX_STANDARD 11)
|
10 |
+
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
11 |
+
+
|
12 |
+
SET(CMAKE_MODULE_PATH ${FTGL_SOURCE_DIR})
|
13 |
+
|
14 |
+
SET(VERSION_SERIES 2)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/Fix-headersFilePath.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 693e49f..c47ff3c 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -1,9 +1,5 @@
|
6 |
+
-
|
7 |
+
-
|
8 |
+
-
|
9 |
+
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/cmake)
|
10 |
+
|
11 |
+
-
|
12 |
+
ADD_DEFINITIONS(-DPACKAGE_VERSION="${VERSION_SERIES}.${VERSION_MAJOR}.${VERSION_MINOR}")
|
13 |
+
|
14 |
+
IF(WIN32)
|
15 |
+
@@ -26,7 +22,7 @@ SET(libftgl_la_SOURCES
|
16 |
+
FTGlyphContainer.h
|
17 |
+
FTInternals.h
|
18 |
+
FTLibrary.cpp
|
19 |
+
- FTLibrary.h
|
20 |
+
+ FTGL/FTLibrary.h
|
21 |
+
FTList.h
|
22 |
+
FTPoint.cpp
|
23 |
+
FTSize.cpp
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
# doxygen only have windows package in vcpkg now.
|
3 |
+
vcpkg_find_acquire_program(DOXYGEN)
|
4 |
+
endif()
|
5 |
+
|
6 |
+
vcpkg_from_github(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO frankheckenbach/ftgl
|
9 |
+
REF 483639219095ad080538e07ceb5996de901d4e74
|
10 |
+
SHA512 d5bf95db8db6a5c9f710bd274cb9bb82e3e67569e8f3ec55b36e068636a09252e6f191e36d8279e61b5d12408c065ce51829fc38d4d7afe5bda724752d2f084f
|
11 |
+
HEAD_REF master
|
12 |
+
PATCHES
|
13 |
+
Fix-headersFilePath.patch
|
14 |
+
01_disable_doxygen.patch
|
15 |
+
02_enable-cpp11-std.patch
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
24 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
25 |
+
else ()
|
26 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
|
31 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftgl/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ftgl",
|
3 |
+
"version-string": "2.4.0",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": [
|
6 |
+
"FTGL is a free open source library to enable developers to use arbitrary fonts in their OpenGL (www.opengl.org) applications.",
|
7 |
+
"Unlike other OpenGL font libraries FTGL uses standard font file formats so doesn't need a preprocessing step to convert the high quality font data into a lesser quality, proprietary format.",
|
8 |
+
"FTGL uses the Freetype (www.freetype.org) font library to open and 'decode' the fonts. It then takes that output and stores it in a format most efficient for OpenGL rendering."
|
9 |
+
],
|
10 |
+
"homepage": "https://github.com/frankheckenbach/ftgl",
|
11 |
+
"dependencies": [
|
12 |
+
"freetype",
|
13 |
+
"opengl",
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake-config",
|
20 |
+
"host": true
|
21 |
+
}
|
22 |
+
]
|
23 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftxui/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 ArthurSonzogni/FTXUI
|
6 |
+
REF 81b7207121e41c3b838eca6f54396e4f676fa3d8 # 2.0.0
|
7 |
+
SHA512 44a0617e591f5340090866dd02d786af5de948829b00839c6fd0fdb67e8a5ec71fadecaa433892773b2073668fb9cef62652479d9793bdf323c91ebb9595c7e5
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
OPTIONS
|
14 |
+
-DFTXUI_BUILD_EXAMPLES=OFF
|
15 |
+
-DFTXUI_ENABLE_INSTALL=ON
|
16 |
+
-DFTXUI_BUILD_TESTS=OFF
|
17 |
+
-DFTXUI_BUILD_DOCS=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
|
22 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
25 |
+
|
26 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ftxui/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ftxui",
|
3 |
+
"version-semver": "2.0.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C++ Functional Terminal User Interface",
|
6 |
+
"homepage": "https://github.com/ArthurSonzogni/FTXUI",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/function2/disable-testing.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 684abe0..32a5cf6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -75,7 +75,9 @@ if (FU2_IS_TOP_LEVEL_PROJECT)
|
6 |
+
install(EXPORT "${PROJECT_NAME}Targets"
|
7 |
+
NAMESPACE ${PROJECT_NAME}::
|
8 |
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
|
9 |
+
+endif()
|
10 |
+
|
11 |
+
+if(0)
|
12 |
+
# Setup CPack for bundling
|
13 |
+
set(CPACK_GENERATOR "ZIP")
|
14 |
+
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/function2/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Naios/function2
|
4 |
+
REF 02ca99831de59c7c3a4b834789260253cace0ced # 4.2.0
|
5 |
+
SHA512 5b14d95584586c7365119f5171c86c7556ce402ae3c5db09e4e54e1225fc71e40f88ab77188986ecf9dac5eecbfd6330c5a7ecfe0375cb37773d007ebef1ba93
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
disable-testing.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_install_cmake()
|
17 |
+
|
18 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
19 |
+
|
20 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/Readme.md)
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
22 |
+
|
23 |
+
# Put the installed licence file where vcpkg expects it
|
24 |
+
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
25 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/function2/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "function2",
|
3 |
+
"version-string": "4.2.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Improved drop-in replacement to std::function",
|
6 |
+
"homepage": "https://github.com/Naios/function2"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/functions-framework-cpp/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# TODO(coryan) - fix support for DLLs
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO GoogleCloudPlatform/functions-framework-cpp
|
7 |
+
REF v1.1.0
|
8 |
+
SHA512 2dcedbded84fdd604724b4f2482ee531aaa640ebdbb69f77978e1af8943d9d7746152953953ebd89d8304ed3efbc334c620890142b0ba2e1239862e43a158364
|
9 |
+
HEAD_REF main
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_configure_cmake(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
PREFER_NINJA
|
15 |
+
DISABLE_PARALLEL_CONFIGURE
|
16 |
+
OPTIONS
|
17 |
+
-DBUILD_TESTING=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake(ADD_BIN_TO_PATH)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
26 |
+
file(
|
27 |
+
INSTALL ${SOURCE_PATH}/LICENSE
|
28 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
29 |
+
RENAME copyright)
|
30 |
+
|
31 |
+
vcpkg_copy_pdbs()
|
32 |
+
|
33 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/functions-framework-cpp/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "functions-framework-cpp",
|
3 |
+
"version": "1.1.0",
|
4 |
+
"description": "Functions Framework for C++.",
|
5 |
+
"homepage": "https://github.com/GoogleCloudPlatform/functions-framework-cpp/",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"dependencies": [
|
8 |
+
"abseil",
|
9 |
+
"boost-beast",
|
10 |
+
"boost-program-options",
|
11 |
+
"boost-serialization",
|
12 |
+
"nlohmann-json"
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/fuzzylite/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO fuzzylite/fuzzylite
|
4 |
+
REF v6.0
|
5 |
+
SHA512 6f5d40d0359458e109ac2aebfbf571f61867a8b49920f4a5e1b5d86bdf578dba038b942c9e05eab0d4620f73e8cded770abe7b5e597a3b4c39dbcf6a1259f4af
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FL_BUILD_STATIC)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" FL_BUILD_SHARED)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}/fuzzylite"
|
14 |
+
OPTIONS
|
15 |
+
-DFL_BUILD_SHARED=${FL_BUILD_SHARED}
|
16 |
+
-DFL_BUILD_STATIC=${FL_BUILD_STATIC}
|
17 |
+
-DFL_BUILD_BINARY=OFF
|
18 |
+
-DFL_BUILD_TESTS=OFF
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
|
28 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
29 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fl/fuzzylite.h"
|
30 |
+
"#elif defined(FL_IMPORT_LIBRARY)"
|
31 |
+
"#elif 1"
|
32 |
+
)
|
33 |
+
elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
34 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fl/fuzzylite.h"
|
35 |
+
"#elif defined(FL_IMPORT_LIBRARY)"
|
36 |
+
"#elif 0"
|
37 |
+
)
|
38 |
+
endif()
|
39 |
+
|
40 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/fuzzylite/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "fuzzylite",
|
3 |
+
"version": "6.0",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A fuzzy logic control library in C++",
|
6 |
+
"homepage": "https://github.com/fuzzylite/fuzzylite",
|
7 |
+
"license": "GPL-3.0",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/fxdiv/portfile.cmake
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO Maratyszcza/fxdiv
|
5 |
+
REF 63058eff77e11aa15bf531df5dd34395ec3017c8
|
6 |
+
SHA512 da33eab4d006645f383a1f24fc3e747db3aeb0613219297ec0ae69aa2617f07ba050ebd6a64a8cbde6d25481f176d0ec3b9753a95d1fbcead2136595f3e50e97
|
7 |
+
)
|
8 |
+
vcpkg_configure_cmake(
|
9 |
+
SOURCE_PATH ${SOURCE_PATH}
|
10 |
+
PREFER_NINJA
|
11 |
+
OPTIONS
|
12 |
+
-DFXDIV_BUILD_TESTS=OFF
|
13 |
+
-DFXDIV_BUILD_BENCHMARKS=OFF
|
14 |
+
)
|
15 |
+
vcpkg_install_cmake()
|
16 |
+
|
17 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
18 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/fxdiv/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "fxdiv",
|
3 |
+
"version-string": "2021-02-21",
|
4 |
+
"description": "C99/C++ header-only library for division via fixed-point multiplication by inverse",
|
5 |
+
"homepage": "https://github.com/Maratyszcza/FXdiv"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/g2o/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO RainerKuemmerle/g2o
|
4 |
+
REF fcba4eaca6f20d9a5792404cc8ef303aeb8ba5d2
|
5 |
+
SHA512 41e5a6d40db10d66182653d56f937f29264bf4f9412dfa651be949caeb055741c9d9ba75a122180892aafe7d45b334d50470284121148c0561e1d49f6ba5e20a
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_LGPL_SHARED_LIBS)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS
|
15 |
+
-DBUILD_LGPL_SHARED_LIBS=${BUILD_LGPL_SHARED_LIBS}
|
16 |
+
-DG2O_BUILD_EXAMPLES=OFF
|
17 |
+
-DG2O_BUILD_APPS=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/g2o)
|
25 |
+
|
26 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
27 |
+
file(GLOB_RECURSE HEADERS "${CURRENT_PACKAGES_DIR}/include/*")
|
28 |
+
foreach(HEADER ${HEADERS})
|
29 |
+
file(READ ${HEADER} HEADER_CONTENTS)
|
30 |
+
string(REPLACE "#ifdef G2O_SHARED_LIBS" "#if 1" HEADER_CONTENTS "${HEADER_CONTENTS}")
|
31 |
+
file(WRITE ${HEADER} "${HEADER_CONTENTS}")
|
32 |
+
endforeach()
|
33 |
+
endif()
|
34 |
+
|
35 |
+
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
36 |
+
file(GLOB DEBUG_EXE ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
37 |
+
if(EXE OR DEBUG_EXE)
|
38 |
+
file(REMOVE ${EXE} ${DEBUG_EXE})
|
39 |
+
endif()
|
40 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
41 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
42 |
+
|
43 |
+
file(INSTALL ${SOURCE_PATH}/doc/license-bsd.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/g2o/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "g2o",
|
3 |
+
"version-string": "2020-02-07",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "g2o: A General Framework for Graph Optimization",
|
6 |
+
"homepage": "https://openslam.org/g2o.html",
|
7 |
+
"dependencies": [
|
8 |
+
"ceres",
|
9 |
+
"eigen3",
|
10 |
+
"lapack",
|
11 |
+
"suitesparse"
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/g3log/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KjellKod/g3log
|
4 |
+
REF 2fca06ff6da5c67465b591f4d45e8fd14d531142 #v1.3.4
|
5 |
+
SHA512 8dba89e5a08e44d585478470725e25e37486685d8fe4d3cb5e97c81013389c95d96bdde658244e425008169bc8a9fc2d34a065b83b110c62e73d3ccab9b2b9e1
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" G3_SHARED_LIB)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" G3_SHARED_RUNTIME)
|
11 |
+
|
12 |
+
# https://github.com/KjellKod/g3log#prerequisites
|
13 |
+
set(VERSION "1.3.4")
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS
|
19 |
+
-DG3_SHARED_LIB=${G3_SHARED_LIB} # Options.cmake
|
20 |
+
-DG3_SHARED_RUNTIME=${G3_SHARED_RUNTIME} # Options.cmake
|
21 |
+
-DADD_FATAL_EXAMPLE=OFF
|
22 |
+
-DADD_G3LOG_BENCH_PERFORMANCE=OFF
|
23 |
+
-DADD_G3LOG_UNIT_TEST=OFF
|
24 |
+
-DVERSION=${VERSION}
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_install_cmake()
|
28 |
+
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/g3log)
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
34 |
+
|
35 |
+
# Handle copyright
|
36 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/g3log/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "g3log",
|
3 |
+
"version": "1.3.4",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Asynchronous logger with Dynamic Sinks",
|
6 |
+
"homepage": "https://github.com/KjellKod/g3log",
|
7 |
+
"supports": "!(arm | uwp)"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/fix-build.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a443b66..61ff7b8 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -9,11 +9,11 @@ option(GAINPUT_TESTS "Build Tests for Gainput" ON)
|
6 |
+
option(GAINPUT_BUILD_SHARED "BUILD_SHARED" ON)
|
7 |
+
option(GAINPUT_BUILD_STATIC "BUILD_STATIC" ON)
|
8 |
+
|
9 |
+
-if(!WIN32)
|
10 |
+
+if(NOT WIN32)
|
11 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra")
|
12 |
+
else()
|
13 |
+
set(XINPUT "Xinput9_1_0")
|
14 |
+
- if ( ${CMAKE_SYSTEM_VERSION} LESS 6.1 )
|
15 |
+
+ if ( ${CMAKE_SYSTEM_VERSION} VERSION_LESS 6.1 )
|
16 |
+
set(XINPUT, "xinput")
|
17 |
+
endif()
|
18 |
+
endif()
|
19 |
+
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
20 |
+
index cb7232f..a6ae3d9 100644
|
21 |
+
--- a/lib/CMakeLists.txt
|
22 |
+
+++ b/lib/CMakeLists.txt
|
23 |
+
@@ -55,15 +55,21 @@ elseif(APPLE)
|
24 |
+
find_library(FOUNDATION Foundation)
|
25 |
+
find_library(IOKIT IOKit)
|
26 |
+
find_library(GAME_CONTROLLER GameController)
|
27 |
+
+ if (GAINPUT_BUILD_SHARED)
|
28 |
+
target_link_libraries(gainput ${FOUNDATION} ${IOKIT} ${GAME_CONTROLLER})
|
29 |
+
+ endif()
|
30 |
+
if(IOS)
|
31 |
+
find_library(UIKIT UIKit)
|
32 |
+
find_library(COREMOTION CoreMotion)
|
33 |
+
find_library(QUARTZCORE QuartzCore)
|
34 |
+
+ if (GAINPUT_BUILD_SHARED)
|
35 |
+
target_link_libraries(gainput ${UIKIT} ${COREMOTION})
|
36 |
+
+ endif()
|
37 |
+
else()
|
38 |
+
find_library(APPKIT AppKit)
|
39 |
+
+ if (GAINPUT_BUILD_SHARED)
|
40 |
+
target_link_libraries(gainput ${APPKIT})
|
41 |
+
+ endif()
|
42 |
+
endif()
|
43 |
+
endif()
|
44 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/install_as_cmake_package.patch
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
2 |
+
index 14d5e85..cb7232f 100644
|
3 |
+
--- a/lib/CMakeLists.txt
|
4 |
+
+++ b/lib/CMakeLists.txt
|
5 |
+
@@ -30,19 +30,27 @@ if (GAINPUT_BUILD_SHARED)
|
6 |
+
endif (GAINPUT_BUILD_SHARED)
|
7 |
+
|
8 |
+
if (GAINPUT_BUILD_STATIC)
|
9 |
+
- message(STATUS "..Building shared libraries (-DGAINPUT_BUILD_STATIC=OFF to disable)")
|
10 |
+
+ message(STATUS "..Building static libraries (-DGAINPUT_BUILD_STATIC=OFF to disable)")
|
11 |
+
add_library(gainputstatic STATIC ${sources} ${mmsources})
|
12 |
+
set_target_properties(gainputstatic PROPERTIES DEBUG_POSTFIX -d FOLDER gainput)
|
13 |
+
set(install_libs ${install_libs} gainputstatic)
|
14 |
+
endif (GAINPUT_BUILD_STATIC)
|
15 |
+
|
16 |
+
if(WIN32)
|
17 |
+
- target_link_libraries(gainput ${XINPUT} ws2_32)
|
18 |
+
- target_link_libraries(gainputstatic ${XINPUT} ws2_32)
|
19 |
+
+ if (GAINPUT_BUILD_SHARED)
|
20 |
+
+ target_link_libraries(gainput ${XINPUT} ws2_32)
|
21 |
+
+ endif(GAINPUT_BUILD_SHARED)
|
22 |
+
+ if(GAINPUT_BUILD_STATIC)
|
23 |
+
+ target_link_libraries(gainputstatic ${XINPUT} ws2_32)
|
24 |
+
+ endif(GAINPUT_BUILD_STATIC)
|
25 |
+
add_definitions(-DGAINPUT_LIB_DYNAMIC=1)
|
26 |
+
elseif(ANDROID)
|
27 |
+
- target_link_libraries(gainputstatic native_app_glue log android)
|
28 |
+
- target_link_libraries(gainput native_app_glue log android)
|
29 |
+
+ if (GAINPUT_BUILD_SHARED)
|
30 |
+
+ target_link_libraries(gainput native_app_glue log android)
|
31 |
+
+ endif(GAINPUT_BUILD_SHARED)
|
32 |
+
+ if(GAINPUT_BUILD_STATIC)
|
33 |
+
+ target_link_libraries(gainputstatic native_app_glue log android)
|
34 |
+
+ endif(GAINPUT_BUILD_STATIC)
|
35 |
+
elseif(APPLE)
|
36 |
+
find_library(FOUNDATION Foundation)
|
37 |
+
find_library(IOKIT IOKit)
|
38 |
+
@@ -65,6 +73,14 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
|
39 |
+
endif(NOT DEFINED CMAKE_INSTALL_LIBDIR)
|
40 |
+
set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
|
41 |
+
|
42 |
+
+foreach(t ${install_libs})
|
43 |
+
+ target_include_directories(
|
44 |
+
+ ${t}
|
45 |
+
+ INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
46 |
+
+ $<INSTALL_INTERFACE:include>
|
47 |
+
+ )
|
48 |
+
+endforeach()
|
49 |
+
+
|
50 |
+
install(
|
51 |
+
DIRECTORY "include/gainput"
|
52 |
+
DESTINATION "include"
|
53 |
+
@@ -73,7 +89,15 @@ install(
|
54 |
+
|
55 |
+
install(
|
56 |
+
TARGETS ${install_libs}
|
57 |
+
+ EXPORT unofficial-${PROJECT_NAME}-Targets
|
58 |
+
LIBRARY DESTINATION "${libdir}"
|
59 |
+
ARCHIVE DESTINATION "${libdir}"
|
60 |
+
RUNTIME DESTINATION "bin"
|
61 |
+
)
|
62 |
+
+
|
63 |
+
+install(
|
64 |
+
+ EXPORT unofficial-${PROJECT_NAME}-Targets
|
65 |
+
+ FILE unofficial-${PROJECT_NAME}Config.cmake
|
66 |
+
+ NAMESPACE unofficial::${PROJECT_NAME}::
|
67 |
+
+ DESTINATION share/unofficial-${PROJECT_NAME}
|
68 |
+
+)
|
69 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_IS_OSX)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO jkuhlmann/gainput
|
8 |
+
REF v1.0.0
|
9 |
+
SHA512 56fdc4c0613d7260861885b270ebe9e624e940175f41e3ac82516e2eb0d6d229e405fbcc2e54608e7d6751c1d8658b5b5e186153193badc6487274cb284a8cd6
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
install_as_cmake_package.patch
|
13 |
+
fix-build.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" GAINPUT_BUILD_STATIC)
|
17 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" GAINPUT_BUILD_SHARED)
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
OPTIONS
|
22 |
+
-DGAINPUT_BUILD_SHARED=${GAINPUT_BUILD_SHARED}
|
23 |
+
-DGAINPUT_BUILD_STATIC=${GAINPUT_BUILD_STATIC}
|
24 |
+
-DGAINPUT_TESTS=OFF
|
25 |
+
-DGAINPUT_SAMPLES=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-gainput CONFIG_PATH share/unofficial-gainput)
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
34 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gainput/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gainput",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Gainput is a multiplatform C++ input library, supporting mouse, keyboard and controllers",
|
6 |
+
"homepage": "https://github.com/jkuhlmann/gainput",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamedev-framework/portfile.cmake
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_HOST_IS_LINUX)
|
2 |
+
message(WARNING "gamedev-framework requires gcc version 8.3 or later.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO GamedevFramework/gf
|
8 |
+
HEAD_REF master
|
9 |
+
REF v0.20.0
|
10 |
+
SHA512 57b0e87f8713268d7bd4e68fb65f57715af6617582e3ce342a10a66f2ebfeeacdd11e1df0abbd13a2d1d9e6222def94bcf7b522ef5411043668e4c6f0fea1dd7
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS
|
17 |
+
-DGF_VCPKG=ON
|
18 |
+
-DGF_USE_EMBEDDED_LIBS=OFF
|
19 |
+
-DGF_BUILD_GAMES=OFF
|
20 |
+
-DGF_BUILD_EXAMPLES=OFF
|
21 |
+
-DGF_BUILD_DOCUMENTATION=OFF
|
22 |
+
-DGF_SINGLE_COMPILTATION_UNIT=ON
|
23 |
+
-DBUILD_TESTING=OFF
|
24 |
+
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
|
25 |
+
OPTIONS_RELEASE -DGF_DEBUG=OFF
|
26 |
+
OPTIONS_DEBUG -DGF_DEBUG=ON
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_install_cmake()
|
30 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/gf TARGET_PATH share/gf)
|
31 |
+
vcpkg_copy_pdbs()
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE
|
34 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
35 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
36 |
+
"${CURRENT_PACKAGES_DIR}/share/doc"
|
37 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin/gf_info.exe"
|
38 |
+
"${CURRENT_PACKAGES_DIR}/bin/gf_info.exe"
|
39 |
+
)
|
40 |
+
|
41 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
42 |
+
file(REMOVE_RECURSE
|
43 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
44 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
45 |
+
)
|
46 |
+
endif()
|
47 |
+
|
48 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamedev-framework/vcpkg.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gamedev-framework",
|
3 |
+
"version-semver": "0.20.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"maintainers": [
|
6 |
+
"Julien Bernard <[email protected]>",
|
7 |
+
"Arthur Hugeat <[email protected]>"
|
8 |
+
],
|
9 |
+
"description": "gamedev-framework is a framework to build 2D games in C++17",
|
10 |
+
"homepage": "https://gamedevframework.github.io/",
|
11 |
+
"license": "Zlib",
|
12 |
+
"supports": "!arm",
|
13 |
+
"dependencies": [
|
14 |
+
"boost-algorithm",
|
15 |
+
"boost-container",
|
16 |
+
"boost-filesystem",
|
17 |
+
"boost-heap",
|
18 |
+
"freetype",
|
19 |
+
"pugixml",
|
20 |
+
{
|
21 |
+
"name": "sdl2",
|
22 |
+
"default-features": false,
|
23 |
+
"features": [
|
24 |
+
"x11"
|
25 |
+
],
|
26 |
+
"platform": "linux"
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"name": "sdl2",
|
30 |
+
"platform": "!linux"
|
31 |
+
},
|
32 |
+
"stb",
|
33 |
+
"zlib"
|
34 |
+
]
|
35 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamenetworkingsockets/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ValveSoftware/GameNetworkingSockets
|
6 |
+
REF b99aa75ed9b1ec57d5c90ee009f8de8882eeca13 # v1.4.0
|
7 |
+
SHA512 1776a6a66d2c6546a8a3d71123544ea9590ab6b123d4a92eebd38c0a195f09a55185b999250c518527e1d8983176732429901a2f781a883715e6695b597229f5
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
set(CRYPTO_BACKEND OpenSSL)
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS
|
17 |
+
-DBUILD_TESTS=OFF
|
18 |
+
-DBUILD_EXAMPLES=OFF
|
19 |
+
-DBUILD_TOOLS=OFF
|
20 |
+
-DUSE_CRYPTO=${CRYPTO_BACKEND}
|
21 |
+
-DUSE_CRYPTO25519=${CRYPTO_BACKEND}
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_install_cmake()
|
25 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
26 |
+
|
27 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/GameNetworkingSockets" TARGET_PATH "share/GameNetworkingSockets")
|
28 |
+
vcpkg_fixup_pkgconfig()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamenetworkingsockets/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gamenetworkingsockets",
|
3 |
+
"version": "1.4.0",
|
4 |
+
"description": "GameNetworkingSockets is a basic transport layer for games.",
|
5 |
+
"homepage": "https://github.com/ValveSoftware/GameNetworkingSockets",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"supports": "!(static & windows) & !uwp & !(arm64 & windows)",
|
8 |
+
"dependencies": [
|
9 |
+
"openssl",
|
10 |
+
"protobuf"
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamma/CMakeLists.txt
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required (VERSION 3.0)
|
2 |
+
|
3 |
+
project (gamma)
|
4 |
+
|
5 |
+
# dependent on libsndfile and portaudio
|
6 |
+
find_package(SndFile CONFIG REQUIRED)
|
7 |
+
find_path(PORTAUDIO_H portaudio.h)
|
8 |
+
find_library(PORTAUDIO_LIB NAMES portaudio)
|
9 |
+
|
10 |
+
set(SOURCEFILES
|
11 |
+
src/arr.cpp
|
12 |
+
src/AudioIO.cpp
|
13 |
+
src/Conversion.cpp
|
14 |
+
src/Domain.cpp
|
15 |
+
src/DFT.cpp
|
16 |
+
src/FFT_fftpack.cpp
|
17 |
+
src/fftpack++1.cpp
|
18 |
+
src/fftpack++2.cpp
|
19 |
+
src/SoundFile.cpp
|
20 |
+
src/Print.cpp
|
21 |
+
src/Recorder.cpp
|
22 |
+
src/scl.cpp
|
23 |
+
src/Scheduler.cpp
|
24 |
+
src/Timer.cpp
|
25 |
+
src/SoundFile.cpp)
|
26 |
+
|
27 |
+
include_directories(. Gamma ${CMAKE_INSTALL_FULL_INCLUDEDIR} ${PORTAUDIO_H})
|
28 |
+
|
29 |
+
add_library (gamma ${SOURCEFILES})
|
30 |
+
target_link_libraries(gamma PUBLIC SndFile::sndfile ${PORTAUDIO_LIB})
|
31 |
+
|
32 |
+
install(
|
33 |
+
TARGETS gamma
|
34 |
+
RUNTIME DESTINATION bin
|
35 |
+
LIBRARY DESTINATION lib
|
36 |
+
ARCHIVE DESTINATION lib
|
37 |
+
)
|
38 |
+
|
39 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
40 |
+
install(DIRECTORY Gamma DESTINATION include FILES_MATCHING PATTERN "*.h")
|
41 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamma/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
set(GAMMA_RELEASE_TAG "cc442ad0c5da369966cd937a96925c7b9a04e9e5")
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO "LancePutnam/Gamma"
|
8 |
+
REF ${GAMMA_RELEASE_TAG}
|
9 |
+
SHA512 431f17f053ca1c5ba0117b7ae7af8efae9df454593437de00dfea8ee04991b5701bee99d79deb074e60e397981a7fc1ce3476ec118d0f369e71e2cbaa696383d
|
10 |
+
HEAD_REF master
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_install_cmake()
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
# Handle copyright
|
25 |
+
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gamma/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gamma",
|
3 |
+
"version-string": "gamma-2018-01-27",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Gamma is a cross-platform, C++ library for doing generic synthesis and filtering of signals. It is oriented towards real-time sound and graphics applications, but is equally useful for non-real-time tasks. Gamma is designed to be \"light-footed\" in terms of memory and processing making it highly suitable for plug-in development or embedding in other C++ projects.",
|
6 |
+
"homepage": "https://github.com/LancePutnam/Gamma",
|
7 |
+
"dependencies": [
|
8 |
+
"libsndfile",
|
9 |
+
"portaudio"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/fix-install.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 0cba691..51e47a3 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -1,3 +1,13 @@
|
6 |
+
file(GLOB GASol_SRC *.cpp)
|
7 |
+
add_library(GASol STATIC ${GASol_SRC})
|
8 |
+
|
9 |
+
+file(GLOB GASol_INCLUDES *.h)
|
10 |
+
+
|
11 |
+
+install(FILES ${GASol_INCLUDES} DESTINATION include)
|
12 |
+
+
|
13 |
+
+install(
|
14 |
+
+ TARGETS GASol
|
15 |
+
+ RUNTIME DESTINATION bin
|
16 |
+
+ LIBRARY DESTINATION lib
|
17 |
+
+ ARCHIVE DESTINATION lib
|
18 |
+
+)
|
19 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/gasol.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 4a21f65..a4cede0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -15,11 +15,15 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
6 |
+
# Find OpenMP.
|
7 |
+
find_package(OpenMP)
|
8 |
+
if (OPENMP_FOUND)
|
9 |
+
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -fPIC -Wall -Wextra -Werror -pedantic")
|
10 |
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -fPIC -pedantic")
|
11 |
+
else()
|
12 |
+
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -Wall -Wextra -Werror -pedantic")
|
13 |
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -pedantic")
|
14 |
+
endif()
|
15 |
+
|
16 |
+
+if(CMAKE_COMPILER_IS_GNUCXX)
|
17 |
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
|
18 |
+
+endif(CMAKE_COMPILER_IS_GNUCXX)
|
19 |
+
+
|
20 |
+
if (COV)
|
21 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")
|
22 |
+
endif()
|
23 |
+
@@ -39,7 +43,7 @@ endif()
|
24 |
+
add_subdirectory(src)
|
25 |
+
|
26 |
+
# GASol test dir.
|
27 |
+
-add_subdirectory(unittest)
|
28 |
+
+# add_subdirectory(unittest)
|
29 |
+
|
30 |
+
# GASol run dir.
|
31 |
+
add_subdirectory(example)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/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 PytLab/GASol
|
6 |
+
REF 05af009bca2903c1cc491c9a6eed01bc3c936637
|
7 |
+
SHA512 a8546bf565a389b919dd1dd5b88b4985c1803cbb09fab0715d1b0abfda92a6bf3adea7e4b3329ad82a6f6892f1747a73a632687fd79fb77c937e7ba07c62268a
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
gasol.patch
|
11 |
+
fix-install.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
|
23 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gasol/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gasol",
|
3 |
+
"version-date": "2018-01-04",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A general Genetic Algorithm Solver in C++",
|
6 |
+
"homepage": "https://github.com/PytLab/GASol",
|
7 |
+
"supports": "!uwp & !arm"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gaussianlib/portfile.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO LukasBanana/GaussianLib
|
6 |
+
REF 8630d4ac14a37f01c71bdf0c1c653e3746aa08da
|
7 |
+
SHA512 70de394496f20fe7037782d16cfa4bcd85beefdb25094247b8b572e6bb55866be6e2c82722d705141919b91f24428dde7b32f3d8a39670e7ef324c81b1ebe7e2
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${SOURCE_PATH}/include/Gauss DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
12 |
+
|
13 |
+
# Handle copyright
|
14 |
+
configure_file(${SOURCE_PATH}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gaussianlib/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gaussianlib",
|
3 |
+
"version-string": "2019-08-04",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Basic linear algebra C++ library for 2D and 3D applications",
|
6 |
+
"homepage": "https://github.com/LukasBanana/GaussianLib"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gazebo/0001-Fix-deps.patch
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake
|
2 |
+
index 4085b5aaeb..f89ac88333 100644
|
3 |
+
--- a/cmake/SearchForStuff.cmake
|
4 |
+
+++ b/cmake/SearchForStuff.cmake
|
5 |
+
@@ -179,7 +179,7 @@ if (PKG_CONFIG_FOUND)
|
6 |
+
# (needed, at least, for MacOS)
|
7 |
+
|
8 |
+
# Use system installation on UNIX and Apple, and internal copy on Windows
|
9 |
+
- if (UNIX OR APPLE)
|
10 |
+
+ if (true)
|
11 |
+
message (STATUS "Using system tinyxml.")
|
12 |
+
set (USE_EXTERNAL_TINYXML True)
|
13 |
+
elseif(WIN32)
|
14 |
+
@@ -225,7 +225,7 @@ if (PKG_CONFIG_FOUND)
|
15 |
+
# (needed, at least, for MacOS)
|
16 |
+
|
17 |
+
# Use system installation on UNIX and Apple, and internal copy on Windows
|
18 |
+
- if (UNIX OR APPLE)
|
19 |
+
+ if (true)
|
20 |
+
message (STATUS "Using system tinyxml2.")
|
21 |
+
set (USE_EXTERNAL_TINYXML2 True)
|
22 |
+
elseif(WIN32)
|
23 |
+
@@ -513,7 +513,7 @@ if (PKG_CONFIG_FOUND)
|
24 |
+
endif ()
|
25 |
+
|
26 |
+
if (libavutil_FOUND AND libavformat_FOUND AND libavcodec_FOUND AND
|
27 |
+
- libswscale_FOUND)
|
28 |
+
+ libswscale_FOUND AND FFMPEG_FEATURE)
|
29 |
+
set (HAVE_FFMPEG TRUE)
|
30 |
+
else ()
|
31 |
+
set (HAVE_FFMPEG FALSE)
|
32 |
+
@@ -538,7 +538,7 @@ if (PKG_CONFIG_FOUND)
|
33 |
+
########################################
|
34 |
+
# Find GNU Triangulation Surface Library
|
35 |
+
pkg_check_modules(gts gts)
|
36 |
+
- if (gts_FOUND)
|
37 |
+
+ if (GTS_FEATURE)
|
38 |
+
message (STATUS "Looking for GTS - found")
|
39 |
+
set (HAVE_GTS TRUE)
|
40 |
+
else ()
|
41 |
+
@@ -551,13 +551,14 @@ if (PKG_CONFIG_FOUND)
|
42 |
+
# First and preferred option is to look for bullet standard pkgconfig,
|
43 |
+
# so check it first. if it is not present, check for the OSRF
|
44 |
+
# custom bullet2.82.pc file
|
45 |
+
- pkg_check_modules(BULLET bullet>=2.82)
|
46 |
+
+ find_package(BULLET CONFIG 2.82)
|
47 |
+
if (NOT BULLET_FOUND)
|
48 |
+
pkg_check_modules(BULLET bullet2.82>=2.82)
|
49 |
+
endif()
|
50 |
+
|
51 |
+
if (BULLET_FOUND)
|
52 |
+
set (HAVE_BULLET TRUE)
|
53 |
+
+ set(BULLET_VERSION ${BULLET_VERSION_STRING})
|
54 |
+
add_definitions( -DLIBBULLET_VERSION=${BULLET_VERSION} )
|
55 |
+
else()
|
56 |
+
set (HAVE_BULLET FALSE)
|
57 |
+
@@ -572,7 +573,7 @@ if (PKG_CONFIG_FOUND)
|
58 |
+
########################################
|
59 |
+
# Find libusb
|
60 |
+
pkg_check_modules(libusb-1.0 libusb-1.0)
|
61 |
+
- if (NOT libusb-1.0_FOUND)
|
62 |
+
+ if (NO_LIBUSB_FEATURE)
|
63 |
+
BUILD_WARNING ("libusb-1.0 not found. USB peripherals support will be disabled.")
|
64 |
+
set (HAVE_USB OFF CACHE BOOL "HAVE USB" FORCE)
|
65 |
+
else()
|
66 |
+
@@ -648,7 +649,7 @@ endif ()
|
67 |
+
########################################
|
68 |
+
# Find gdal
|
69 |
+
include (FindGDAL)
|
70 |
+
-if (NOT GDAL_FOUND)
|
71 |
+
+if (NO_GDAL_FEATURE)
|
72 |
+
message (STATUS "Looking for libgdal - not found")
|
73 |
+
BUILD_WARNING ("GDAL not found, Digital elevation terrains support will be disabled.")
|
74 |
+
set (HAVE_GDAL OFF CACHE BOOL "HAVE GDAL" FORCE)
|
75 |
+
@@ -718,7 +719,7 @@ endif()
|
76 |
+
########################################
|
77 |
+
# Find graphviz
|
78 |
+
include (${gazebo_cmake_dir}/FindGraphviz.cmake)
|
79 |
+
-if (NOT GRAPHVIZ_FOUND)
|
80 |
+
+if (NO_GRAPHVIZ_FEATURE)
|
81 |
+
message (STATUS "Looking for libgraphviz-dev - not found")
|
82 |
+
BUILD_WARNING ("Graphviz not found, Model editor's schematic view will be disabled.")
|
83 |
+
set (HAVE_GRAPHVIZ OFF CACHE BOOL "HAVE GRAPHVIZ" FORCE)
|
84 |
+
diff --git a/cmake/gazebo-config.cmake.in b/cmake/gazebo-config.cmake.in
|
85 |
+
index b57a90dd76..63ce97095e 100644
|
86 |
+
--- a/cmake/gazebo-config.cmake.in
|
87 |
+
+++ b/cmake/gazebo-config.cmake.in
|
88 |
+
@@ -99,12 +99,13 @@ list(APPEND @PKG_NAME@_CFLAGS -I${GAZEBO_INSTALL_INCLUDE_DIR}/gazebo-@GAZEBO_MAJ
|
89 |
+
|
90 |
+
if (GAZEBO_HAS_BULLET)
|
91 |
+
if (PKG_CONFIG_FOUND)
|
92 |
+
- pkg_check_modules(BULLET bullet>=2.82)
|
93 |
+
+ find_package(BULLET CONFIG 2.82)
|
94 |
+
if (NOT BULLET_FOUND)
|
95 |
+
pkg_check_modules(BULLET bullet2.82>=2.82)
|
96 |
+
endif()
|
97 |
+
|
98 |
+
if (BULLET_FOUND)
|
99 |
+
+ set(BULLET_VERSION ${BULLET_VERSION_STRING})
|
100 |
+
add_definitions(-DLIBBULLET_VERSION=${BULLET_VERSION})
|
101 |
+
else()
|
102 |
+
message(FATAL_ERROR "Error: Bullet > 2.82 not found, please install libbullet2.82-dev.")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gazebo/portfile.cmake
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO osrf/gazebo
|
4 |
+
REF 382dcc3f36095a8d79b5bc9c8b8ad346e867c51d
|
5 |
+
SHA512 57638cd0b23b5f2bfd32fdc159d6cd77ca34e3bd695c225591979aef4b7271eac93d3706fa1ffa2340f90013267a4171bebe1e4c142f19ad2bf67963dfed627e
|
6 |
+
HEAD_REF gazebo11
|
7 |
+
PATCHES
|
8 |
+
0001-Fix-deps.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
openal HAVE_OPENAL
|
14 |
+
ffmpeg FFMPEG_FEATURE
|
15 |
+
gts GTS_FEATURE
|
16 |
+
INVERTED_FEATURES
|
17 |
+
simbody CMAKE_DISABLE_FIND_PACKAGE_Simbody
|
18 |
+
dart CMAKE_DISABLE_FIND_PACKAGE_DART
|
19 |
+
bullet CMAKE_DISABLE_FIND_PACKAGE_BULLET
|
20 |
+
libusb NO_LIBUSB_FEATURE
|
21 |
+
gdal NO_GDAL_FEATURE
|
22 |
+
graphviz NO_GRAPHVIZ_FEATURE
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/debug/bin")
|
26 |
+
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/bin")
|
27 |
+
vcpkg_cmake_configure(
|
28 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
29 |
+
OPTIONS
|
30 |
+
-DUSE_EXTERNAL_TINY_PROCESS_LIBRARY=ON
|
31 |
+
-DPKG_CONFIG_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf.exe
|
32 |
+
${FEATURE_OPTIONS}
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_cmake_install()
|
36 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/gazebo")
|
37 |
+
vcpkg_copy_pdbs()
|
38 |
+
|
39 |
+
vcpkg_copy_tools(
|
40 |
+
TOOL_NAMES gazebo gz gzclient gzserver
|
41 |
+
AUTO_CLEAN
|
42 |
+
)
|
43 |
+
set(EXTRA_OGRE_LIBS Codec_EXR Codec_FreeImage Codec_STBI OgreBites OgreMain OgreMeshLodGenerator OgreOverlay OgrePaging OgreProperty OgreRTShaderSystem OgreTerrain OgreVolume Plugin_BSPSceneManager Plugin_DotScene Plugin_OctreeSceneManager Plugin_OctreeZone Plugin_ParticleFX Plugin_PCZSceneManager RenderSystem_Direct3D11 RenderSystem_GL RenderSystem_GL3Plus)
|
44 |
+
foreach(LIB IN LISTS EXTRA_OGRE_LIBS)
|
45 |
+
set(FILE_NAME "${CMAKE_SHARED_LIBRARY_PREFIX}${LIB}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
46 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/bin/${FILE_NAME}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
47 |
+
endforeach()
|
48 |
+
|
49 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
50 |
+
|
51 |
+
# Handle copyright
|
52 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gazebo/vcpkg.json
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gazebo",
|
3 |
+
"version-date": "2022-01-20",
|
4 |
+
"description": "Open source robotics simulator.",
|
5 |
+
"homepage": "http://gazebosim.org",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-asio",
|
9 |
+
"boost-date-time",
|
10 |
+
"boost-filesystem",
|
11 |
+
"boost-format",
|
12 |
+
"boost-interprocess",
|
13 |
+
"boost-iostreams",
|
14 |
+
"boost-program-options",
|
15 |
+
"boost-property-tree",
|
16 |
+
"boost-regex",
|
17 |
+
"boost-system",
|
18 |
+
"boost-thread",
|
19 |
+
"boost-uuid",
|
20 |
+
"ccd",
|
21 |
+
{
|
22 |
+
"name": "hdf5",
|
23 |
+
"features": [
|
24 |
+
"cpp"
|
25 |
+
]
|
26 |
+
},
|
27 |
+
"ignition-common3",
|
28 |
+
"ignition-fuel-tools4",
|
29 |
+
"ignition-math6",
|
30 |
+
"ignition-msgs5",
|
31 |
+
"ignition-transport8",
|
32 |
+
"ogre",
|
33 |
+
{
|
34 |
+
"name": "pkgconf",
|
35 |
+
"host": true
|
36 |
+
},
|
37 |
+
"protobuf",
|
38 |
+
"qwt",
|
39 |
+
"sdformat9",
|
40 |
+
"tbb",
|
41 |
+
"tiny-process-library",
|
42 |
+
{
|
43 |
+
"name": "vcpkg-cmake",
|
44 |
+
"host": true
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"name": "vcpkg-cmake-config",
|
48 |
+
"host": true
|
49 |
+
}
|
50 |
+
],
|
51 |
+
"default-features": [
|
52 |
+
"bullet",
|
53 |
+
"dart",
|
54 |
+
"ffmpeg",
|
55 |
+
"gdal",
|
56 |
+
"graphviz",
|
57 |
+
"gts",
|
58 |
+
"libusb",
|
59 |
+
"openal",
|
60 |
+
"simbody"
|
61 |
+
],
|
62 |
+
"features": {
|
63 |
+
"bullet": {
|
64 |
+
"description": "Use the bullet physics engine",
|
65 |
+
"dependencies": [
|
66 |
+
"bullet3"
|
67 |
+
]
|
68 |
+
},
|
69 |
+
"dart": {
|
70 |
+
"description": "Use the dart physics engine",
|
71 |
+
"dependencies": [
|
72 |
+
"dartsim"
|
73 |
+
]
|
74 |
+
},
|
75 |
+
"ffmpeg": {
|
76 |
+
"description": "Enable audio-video capabilities",
|
77 |
+
"dependencies": [
|
78 |
+
{
|
79 |
+
"name": "ffmpeg",
|
80 |
+
"features": [
|
81 |
+
"avcodec",
|
82 |
+
"avformat",
|
83 |
+
"swscale"
|
84 |
+
]
|
85 |
+
}
|
86 |
+
]
|
87 |
+
},
|
88 |
+
"gdal": {
|
89 |
+
"description": "Enable digital elevation terrains support",
|
90 |
+
"dependencies": [
|
91 |
+
"gdal"
|
92 |
+
]
|
93 |
+
},
|
94 |
+
"graphviz": {
|
95 |
+
"description": "Enable model editor's schematic view",
|
96 |
+
"dependencies": [
|
97 |
+
"graphviz"
|
98 |
+
]
|
99 |
+
},
|
100 |
+
"gts": {
|
101 |
+
"description": "Enable CSG support",
|
102 |
+
"dependencies": [
|
103 |
+
"gts"
|
104 |
+
]
|
105 |
+
},
|
106 |
+
"libusb": {
|
107 |
+
"description": "Enable USB peripheral support",
|
108 |
+
"dependencies": [
|
109 |
+
"libusb"
|
110 |
+
]
|
111 |
+
},
|
112 |
+
"openal": {
|
113 |
+
"description": "Enable audio support",
|
114 |
+
"dependencies": [
|
115 |
+
"openal-soft"
|
116 |
+
]
|
117 |
+
},
|
118 |
+
"simbody": {
|
119 |
+
"description": "Use the simbody physics engine",
|
120 |
+
"dependencies": [
|
121 |
+
"simbody"
|
122 |
+
]
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gcem/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO kthohr/gcem
|
4 |
+
REF a20b0fc0206ff7d99a96fe4afdfe8205b01c8220 # v1.13.1
|
5 |
+
SHA512 baede14856ddcf8f132c7a16b19d4d646a1fc2d5e3a536a46694a8d7c656ce4ffb2fd61f50a1df78ce7ed31528828152b4e881fe10bcead553985b6103018804
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_install_cmake()
|
15 |
+
|
16 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/gcem)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
19 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
20 |
+
|
21 |
+
# Handle copyright
|
22 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gcem/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gcem",
|
3 |
+
"version-string": "1.13.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A C++ compile-time math library using generalized constant expressions"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0001-Fix-debug-crt-flags.patch
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gdal/nmake.opt b/gdal/nmake.opt
|
2 |
+
index 8253ae2..9456b79 100644
|
3 |
+
--- a/gdal/nmake.opt
|
4 |
+
+++ b/gdal/nmake.opt
|
5 |
+
@@ -148,16 +148,26 @@ GDAL_PDB = $(GDAL_ROOT)\gdal$(VERSION)$(POSTFIX).pdb
|
6 |
+
!ENDIF
|
7 |
+
|
8 |
+
!IFDEF WITH_PDB
|
9 |
+
-CXX_PDB_FLAGS=/Zi /Fd$(GDAL_PDB)
|
10 |
+
+CXX_PDB_FLAGS=/Z7 /Fd$(GDAL_PDB)
|
11 |
+
!ELSE
|
12 |
+
CXX_PDB_FLAGS=
|
13 |
+
!ENDIF
|
14 |
+
|
15 |
+
+# Flags to choose CRT variant to link against (e.g. static: /MT, /MTd, dynamic: /MD, /MDd)
|
16 |
+
+# Ensure MRSID_CONFIG in mrsid/nmake.opt is set appropriately as well
|
17 |
+
+!IFNDEF CXX_CRT_FLAGS
|
18 |
+
+!IFNDEF DEBUG
|
19 |
+
+CXX_CRT_FLAGS=/MD
|
20 |
+
+!ELSE
|
21 |
+
+CXX_CRT_FLAGS=/MDd
|
22 |
+
+!ENDIF
|
23 |
+
+!ENDIF
|
24 |
+
+
|
25 |
+
!IFNDEF OPTFLAGS
|
26 |
+
!IF "$(DEBUG)" == "0"
|
27 |
+
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP$(CPU_COUNT) /MD /EHsc /Ox /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
|
28 |
+
+OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP$(CPU_COUNT) $(CXX_CRT_FLAGS) /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG
|
29 |
+
!ELSE
|
30 |
+
-OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP$(CPU_COUNT) /MDd /EHsc /FC /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG
|
31 |
+
+OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP$(CPU_COUNT) $(CXX_CRT_FLAGS) /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DDEBUG
|
32 |
+
!ENDIF
|
33 |
+
!ENDIF # OPTFLAGS
|
34 |
+
|
35 |
+
@@ -175,7 +185,7 @@ OPTFLAGS= $(CXX_ANALYZE_FLAGS) $(CXX_PDB_FLAGS) /nologo /MP$(CPU_COUNT) /MDd /EH
|
36 |
+
# 4351: new behavior: elements of array 'array' will be default initialized (needed for https://trac.osgeo.org/gdal/changeset/35593)
|
37 |
+
# 4611: interaction between '_setjmp' and C++ object destruction is non-portable
|
38 |
+
#
|
39 |
+
-WARNFLAGS = /W4 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4351 /wd4611
|
40 |
+
+WARNFLAGS = /W3 /wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4351 /wd4611
|
41 |
+
|
42 |
+
!ENDIF
|
43 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0002-Fix-build.patch
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gdal/makefile.vc b/gdal/makefile.vc
|
2 |
+
index 9e0bd44..8559f79 100644
|
3 |
+
--- a/gdal/makefile.vc
|
4 |
+
+++ b/gdal/makefile.vc
|
5 |
+
@@ -84,7 +84,7 @@ staticlib: $(LIB_DEPENDS)
|
6 |
+
call <<clean_main_build_output.bat
|
7 |
+
$(CLEAN_MAIN_BUILD_OUTPUT_CMDS)
|
8 |
+
<<
|
9 |
+
- lib /nologo /out:$(GDAL_LIB_NAME) $(LIBOBJ) $(EXTERNAL_LIBS)
|
10 |
+
+ lib /nologo /LTCG /out:$(GDAL_LIB_NAME) $(LIBOBJ) $(EXTERNAL_LIBS)
|
11 |
+
|
12 |
+
appslib-target:
|
13 |
+
cd apps
|
14 |
+
@@ -204,9 +204,6 @@ dll: $(GDAL_DLL)
|
15 |
+
|
16 |
+
# build using cygwin
|
17 |
+
docs:
|
18 |
+
-!IFDEF HTMLDIR
|
19 |
+
- make PYTHONHOME= -C doc html
|
20 |
+
-!ENDIF
|
21 |
+
|
22 |
+
bindings:
|
23 |
+
-for %d in ( $(BINDINGS) ) do \
|
24 |
+
@@ -236,12 +233,8 @@ install: default docs
|
25 |
+
cd ..\apps
|
26 |
+
$(MAKE) /f makefile.vc install
|
27 |
+
cd ..
|
28 |
+
- $(INSTALL) data\*.* $(DATADIR)
|
29 |
+
- $(INSTALL) LICENSE.TXT $(DATADIR)
|
30 |
+
-!IFDEF HTMLDIR
|
31 |
+
- -mkdir $(HTMLDIR)
|
32 |
+
- xcopy /S /Y doc\build\html $(HTMLDIR)
|
33 |
+
-!ENDIF
|
34 |
+
+ $(INSTALL) data\*.* "$(DATADIR)"
|
35 |
+
+ $(INSTALL) LICENSE.TXT "$(DATADIR)"
|
36 |
+
!IFDEF INCLUDE_OGR_FRMTS
|
37 |
+
cd ogr\ogrsf_frmts
|
38 |
+
$(MAKE) /f makefile.vc plugins-install
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0004-Fix-cfitsio.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gdal/frmts/fits/fitsdataset.cpp b/gdal/frmts/fits/fitsdataset.cpp
|
2 |
+
index d6587d3..f913b08 100644
|
3 |
+
--- a/gdal/frmts/fits/fitsdataset.cpp
|
4 |
+
+++ b/gdal/frmts/fits/fitsdataset.cpp
|
5 |
+
@@ -38,7 +38,7 @@
|
6 |
+
#include "ogrsf_frmts.h"
|
7 |
+
|
8 |
+
#include <string.h>
|
9 |
+
-#include <fitsio.h>
|
10 |
+
+#include <cfitsio/fitsio.h>
|
11 |
+
|
12 |
+
#include <algorithm>
|
13 |
+
#include <string>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0005-Fix-configure.patch
ADDED
@@ -0,0 +1,315 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gdal/configure.ac b/gdal/configure.ac
|
2 |
+
index 30cd613..43f1daf 100644
|
3 |
+
--- a/gdal/configure.ac
|
4 |
+
+++ b/gdal/configure.ac
|
5 |
+
@@ -48,6 +48,8 @@ dnl Compute the canonical host-system (the system we are building for)
|
6 |
+
dnl type variable $host
|
7 |
+
AC_CANONICAL_HOST
|
8 |
+
|
9 |
+
+PKG_PROG_PKG_CONFIG([0.21])
|
10 |
+
+
|
11 |
+
dnl Enable as much warnings as possible
|
12 |
+
AC_LANG_PUSH([C])
|
13 |
+
AX_COMPILER_VENDOR
|
14 |
+
@@ -1336,12 +1338,15 @@ AC_MSG_CHECKING([for libtiff])
|
15 |
+
|
16 |
+
if test "x${with_libtiff}" = "xyes" -o "x${with_libtiff}" = "x" ; then
|
17 |
+
|
18 |
+
- dnl Only automatically pick up the external libtiff if it is >= 4.0.
|
19 |
+
- AC_CHECK_LIB(tiff,TIFFScanlineSize64,TIFF_SETTING=external HAVE_BIGTIFF=yes,TIFF_SETTING=internal HAVE_BIGTIFF=yes,)
|
20 |
+
+ PKG_CHECK_MODULES([TIFF],[libtiff-4 > 4.0], [TIFF_SETTING=external], [TIFF_SETTING=internal HAVE_BIGTIFF=yes])
|
21 |
+
|
22 |
+
if test "$TIFF_SETTING" = "external" ; then
|
23 |
+
- LIBS="-ltiff $LIBS"
|
24 |
+
AC_MSG_RESULT([using pre-installed libtiff.])
|
25 |
+
+ EXTRA_INCLUDES="$TIFF_CFLAGS $EXTRA_INCLUDES"
|
26 |
+
+ SAVED_LIBS="$LIBS"
|
27 |
+
+ LIBS="$TIFF_LIBS"
|
28 |
+
+ AC_SEARCH_LIBS(TIFFScanlineSize64,[],HAVE_BIGTIFF=yes,HAVE_BIGTIFF=no,)
|
29 |
+
+ LIBS="$TIFF_LIBS $SAVED_LIBS"
|
30 |
+
else
|
31 |
+
AC_MSG_RESULT([using internal TIFF code.])
|
32 |
+
fi
|
33 |
+
@@ -1402,22 +1407,28 @@ AC_ARG_WITH(curl,
|
34 |
+
dnl Clear some cache variables
|
35 |
+
unset ac_cv_path_LIBCURL
|
36 |
+
|
37 |
+
+LIBCURL_MODVERSION=
|
38 |
+
if test "`basename xx/$with_curl`" = "curl-config" ; then
|
39 |
+
LIBCURL_CONFIG="$with_curl"
|
40 |
+
elif test "$with_curl" = "no" ; then
|
41 |
+
LIBCURL_CONFIG=no
|
42 |
+
+elif test "$with_curl" = "yes" -o "$with_curl" = "" ; then
|
43 |
+
+ PKG_CHECK_EXISTS([libcurl], [LIBCURL_CONFIG="${PKG_CONFIG} libcurl"], [LIBCURL_CONFIG=false])
|
44 |
+
+ LIBCURL_MODVERSION=`$LIBCURL_CONFIG --modversion`
|
45 |
+
else
|
46 |
+
AC_PATH_PROG(LIBCURL_CONFIG, curl-config, no)
|
47 |
+
fi
|
48 |
+
|
49 |
+
if test "$LIBCURL_CONFIG" != "no" ; then
|
50 |
+
|
51 |
+
- CURL_VERNUM=`$LIBCURL_CONFIG --vernum`
|
52 |
+
- CURL_VER=`$LIBCURL_CONFIG --version | awk '{print $2}'`
|
53 |
+
+ CURL_VER="`$LIBCURL_CONFIG --version | awk '{print $2}'`$LIBCURL_MODVERSION"
|
54 |
+
|
55 |
+
AC_MSG_RESULT([ found libcurl version $CURL_VER])
|
56 |
+
|
57 |
+
- AC_CHECK_LIB(curl,curl_global_init,CURL_SETTING=yes,CURL_SETTING=no,`$LIBCURL_CONFIG --libs`)
|
58 |
+
+ SAVED_LIBS="$LIBS"
|
59 |
+
+ LIBS=`$LIBCURL_CONFIG --libs`
|
60 |
+
+ AC_SEARCH_LIBS(curl_global_init,[],CURL_SETTING=yes,CURL_SETTING=no,)
|
61 |
+
+ LIBS="$SAVED_LIBS"
|
62 |
+
|
63 |
+
fi
|
64 |
+
|
65 |
+
@@ -1431,7 +1442,9 @@ dnl Proj depends on it so it must appear before.
|
66 |
+
dnl ---------------------------------------------------------------------------
|
67 |
+
|
68 |
+
SQLITE3_REQ_VERSION="3.0.0"
|
69 |
+
-AX_LIB_SQLITE3($SQLITE3_REQ_VERSION)
|
70 |
+
+AC_CHECK_LIB(sqlite3,sqlite3_open,HAVE_SQLITE3=yes,AC_MSG_ERROR([vcpkg sqlite3 not found]),)
|
71 |
+
+SQLITE3_CFLAGS=
|
72 |
+
+SQLITE3_LDFLAGS=-lsqlite3
|
73 |
+
|
74 |
+
if test "$HAVE_SQLITE3" = "yes"; then
|
75 |
+
LIBS="$SQLITE3_LDFLAGS $LIBS"
|
76 |
+
@@ -1571,6 +1584,11 @@ HAVE_SPATIALITE=no
|
77 |
+
if test -z "$with_spatialite" -o "$with_spatialite" = "no"; then
|
78 |
+
AC_MSG_RESULT(disabled)
|
79 |
+
elif test "$with_spatialite" = "yes"; then
|
80 |
+
+ PKG_CHECK_MODULES([SPATIALITE],[spatialite >= 5],[HAVE_SPATIALITE=yes],AC_MSG_ERROR([vcpkg libspatialite not found]))
|
81 |
+
+ SPATIALITE_INC="$SPATIALITE_CFLAGS"
|
82 |
+
+ LIBS="$LIBS $SPATIALITE_LIBS"
|
83 |
+
+ ac_cv_lib_spatialite_spatialite_target_cpu=yes
|
84 |
+
+elif false; then
|
85 |
+
AC_CHECK_HEADERS(sqlite3.h)
|
86 |
+
if test "$ac_cv_header_sqlite3_h" = "yes"; then
|
87 |
+
AC_MSG_CHECKING([for spatialite.h in /usr/include or /usr/local/include])
|
88 |
+
@@ -1639,6 +1652,19 @@ dnl ---------------------------------------------------------------------------
|
89 |
+
AC_ARG_WITH(liblzma,[ --with-liblzma[=ARG] Include liblzma support (ARG=yes/no)],,)
|
90 |
+
|
91 |
+
if test "$with_liblzma" = "yes" ; then
|
92 |
+
+ PKG_CHECK_MODULES([LIBLZMA],[liblzma],[HAVE_LIBLZMA_PC=yes],[HAVE_LIBLZMA_PC=no])
|
93 |
+
+ SAVED_LIBS="$LIBS"
|
94 |
+
+ LIBS="$LIBLZMA_LIBS"
|
95 |
+
+ AC_SEARCH_LIBS(lzma_code,[],LIBLZMA_SETTING=yes,LIBLZMA_SETTING=no,)
|
96 |
+
+ if test "$LIBLZMA_SETTING" = "yes" ; then
|
97 |
+
+ LIBS="$LIBLZMA_LIBS $SAVED_LIBS"
|
98 |
+
+ elif test "$HAVE_LIBLZMA_PC" = "yes" ; then
|
99 |
+
+ AC_MSG_ERROR([vcpkg liblzma broken])
|
100 |
+
+ else
|
101 |
+
+ LIBS="$SAVED_LIBS"
|
102 |
+
+ fi
|
103 |
+
+
|
104 |
+
+elif false; then
|
105 |
+
AC_CHECK_LIB(lzma,lzma_code,LIBLZMA_SETTING=yes,LIBLZMA_SETTING=no,)
|
106 |
+
AC_CHECK_HEADERS(lzma.h)
|
107 |
+
|
108 |
+
@@ -1661,6 +1687,19 @@ dnl ---------------------------------------------------------------------------
|
109 |
+
AC_ARG_WITH(zstd,[ --with-zstd[=ARG] Include zstd support (ARG=yes/no/installation_prefix)],,)
|
110 |
+
|
111 |
+
if test "$with_zstd" = "" -o "$with_zstd" = "yes" ; then
|
112 |
+
+ PKG_CHECK_MODULES([ZSTD],[libzstd],[HAVE_LIBZSTD_PC=yes],[HAVE_LIBZSTD_PC=no])
|
113 |
+
+ SAVED_LIBS="$LIBS"
|
114 |
+
+ LIBS="$ZSTD_LIBS"
|
115 |
+
+ AC_SEARCH_LIBS(ZSTD_decompressStream,[],ZSTD_SETTING=yes,ZSTD_SETTING=no,)
|
116 |
+
+ if test "$ZSTD_SETTING" = "yes" ; then
|
117 |
+
+ LIBS="$ZSTD_LIBS $SAVED_LIBS"
|
118 |
+
+ elif test "$HAVE_LIBZSTD_PC" = "yes" ; then
|
119 |
+
+ AC_MSG_ERROR([vcpkg libzstd broken])
|
120 |
+
+ else
|
121 |
+
+ LIBS="$SAVED_LIBS"
|
122 |
+
+ fi
|
123 |
+
+
|
124 |
+
+elif false; then
|
125 |
+
AC_CHECK_LIB(zstd,ZSTD_decompressStream,ZSTD_SETTING=yes,ZSTD_SETTING=no,)
|
126 |
+
|
127 |
+
if test "$ZSTD_SETTING" = "yes" ; then
|
128 |
+
@@ -1962,6 +2001,12 @@ else
|
129 |
+
SAVED_LIBS="${LIBS}"
|
130 |
+
LIBS="${PG_LIB}"
|
131 |
+
AC_CHECK_LIB(pq,PQconnectdb,HAVE_PG=yes,HAVE_PG=no)
|
132 |
+
+ if test "${HAVE_PG}" = "no" ; then
|
133 |
+
+ unset ac_cv_lib_pq_PQconnectdb
|
134 |
+
+ PG_LIB="${PG_LIB} -lpgcommon -lpgport"
|
135 |
+
+ LIBS="${PG_LIB} ${SAVED_LIBS}"
|
136 |
+
+ AC_CHECK_LIB(pq,PQconnectdb,HAVE_PG=yes,HAVE_PG=no,[-lpgcommon -lpgport])
|
137 |
+
+ fi
|
138 |
+
LIBS="${SAVED_LIBS}"
|
139 |
+
if test "${HAVE_PG}" = "yes" ; then
|
140 |
+
LIBS="${PG_LIB} ${LIBS}"
|
141 |
+
@@ -2322,6 +2367,15 @@ AC_ARG_WITH(geotiff,[ --with-geotiff=ARG Libgeotiff library to use (ARG=inte
|
142 |
+
|
143 |
+
if test "$with_geotiff" = "yes" -o "$with_geotiff" = "" ; then
|
144 |
+
|
145 |
+
+ AC_CHECK_LIB(geotiff,GTIFAttachPROJContext,GEOTIFF_SETTING=external,GEOTIFF_SETTING=internal)
|
146 |
+
+ if test $GEOTIFF_SETTING = "external" ; then
|
147 |
+
+ LIBS="-lgeotiff $LIBS"
|
148 |
+
+ else
|
149 |
+
+ AC_MSG_ERROR([vcpkg geotiff broken])
|
150 |
+
+ fi
|
151 |
+
+
|
152 |
+
+elif false; then
|
153 |
+
+
|
154 |
+
if test "$TIFF_SETTING" = "internal" ; then
|
155 |
+
GEOTIFF_SETTING=internal
|
156 |
+
else
|
157 |
+
@@ -3005,7 +3059,7 @@ elif test "$with_hdf5" = "yes" -o "$with_hdf5" = "" ; then
|
158 |
+
# Test that the package found is for the right architecture
|
159 |
+
saved_LIBS="$LIBS"
|
160 |
+
LIBS="$HDF5_LIBS"
|
161 |
+
- AC_CHECK_LIB(hdf5,H5Fopen, [HAVE_HDF5=yes], [HAVE_HDF5=no])
|
162 |
+
+ AC_SEARCH_LIBS(H5Fopen,[],[HAVE_HDF5=yes],[HAVE_HDF5=no],)
|
163 |
+
LIBS="$saved_LIBS"
|
164 |
+
|
165 |
+
if test "$HAVE_HDF5" = "yes"; then
|
166 |
+
@@ -3135,6 +3189,24 @@ if test "$with_netcdf" = "no" ; then
|
167 |
+
|
168 |
+
echo "netCDF support disabled."
|
169 |
+
|
170 |
+
+elif true ; then
|
171 |
+
+
|
172 |
+
+ PKG_CHECK_MODULES([NETCDF],[netcdf],[HAVE_NETCDF_PC=yes],[HAVE_NETCDF_PC=no])
|
173 |
+
+ SAVED_LIBS="$LIBS"
|
174 |
+
+ LIBS="$NETCDF_LIBS"
|
175 |
+
+ AC_SEARCH_LIBS(nc_open,[],NETCDF_SETTING=yes,NETCDF_SETTING=no,)
|
176 |
+
+ if test "$NETCDF_SETTING" = "yes" ; then
|
177 |
+
+ LIBS="$NETCDF_LIBS $SAVED_LIBS"
|
178 |
+
+ EXTRA_INCLUDES="$NETCDF_CFLAGS $EXTRA_INCLUDES"
|
179 |
+
+ PKG_CHECK_VAR([NETCDF_ROOT],[netcdf],[prefix],,)
|
180 |
+
+ PKG_CHECK_VAR([NETCDF_INCLUDEDIR],[netcdf],[includedir],,)
|
181 |
+
+ NETCDF_NCCONFIG=
|
182 |
+
+ elif test "$HAVE_NETCDF_PC" = "yes" ; then
|
183 |
+
+ AC_MSG_ERROR([vcpkg netcdf-c broken])
|
184 |
+
+ else
|
185 |
+
+ LIBS="$SAVED_LIBS"
|
186 |
+
+ fi
|
187 |
+
+
|
188 |
+
else
|
189 |
+
|
190 |
+
dnl find nc-config location
|
191 |
+
@@ -3355,6 +3427,21 @@ if test "$with_openjpeg" = "no" ; then
|
192 |
+
|
193 |
+
AC_MSG_NOTICE([OpenJPEG (JPEG2000) support disabled.])
|
194 |
+
|
195 |
+
+elif true ; then
|
196 |
+
+
|
197 |
+
+ PKG_CHECK_MODULES([OPENJPEG],[libopenjp2 >= 2.1.0],[HAVE_LIBOPENJP2_PC=yes],[HAVE_LIBOPENJP2_PC=no])
|
198 |
+
+ SAVED_LIBS="$LIBS"
|
199 |
+
+ LIBS="$OPENJPEG_LIBS"
|
200 |
+
+ AC_SEARCH_LIBS(opj_setup_decoder,[],HAVE_OPENJPEG=yes,HAVE_OPENJPEG=no,)
|
201 |
+
+ if test "$HAVE_OPENJPEG" = "yes" ; then
|
202 |
+
+ EXTRA_INCLUDES="$OPENJPEG_CFLAGS $EXTRA_INCLUDES"
|
203 |
+
+ LIBS="$OPENJPEG_LIBS $SAVED_LIBS"
|
204 |
+
+ elif test "$HAVE_LIBOPENJP2_PC" = "yes" ; then
|
205 |
+
+ AC_MSG_ERROR([vcpkg libopenjpeg broken])
|
206 |
+
+ else
|
207 |
+
+ LIBS="$SAVED_LIBS"
|
208 |
+
+ fi
|
209 |
+
+
|
210 |
+
else
|
211 |
+
|
212 |
+
PKG_PROG_PKG_CONFIG([0.21])
|
213 |
+
@@ -4046,7 +4133,9 @@ dnl ---------------------------------------------------------------------------
|
214 |
+
|
215 |
+
dnl Expat 1.95.0 released in 2000-09-28
|
216 |
+
EXPAT_REQ_VERSION="1.95.0"
|
217 |
+
-AX_LIB_EXPAT($EXPAT_REQ_VERSION)
|
218 |
+
+PKG_CHECK_MODULES([EXPAT],[expat],[HAVE_EXPAT=yes],[AC_MSG_ERROR([vcpkg expat not found])])
|
219 |
+
+EXPAT_LDFLAGS="$EXPAT_LIBS"
|
220 |
+
+EXPAT_INCLUDE=""
|
221 |
+
|
222 |
+
if test "$HAVE_EXPAT" = "yes"; then
|
223 |
+
LIBS="$EXPAT_LDFLAGS $LIBS"
|
224 |
+
@@ -4069,7 +4158,13 @@ dnl Check for Google libkml support.
|
225 |
+
dnl ---------------------------------------------------------------------------
|
226 |
+
|
227 |
+
LIBKML_REQ_VERSION="1.3.0"
|
228 |
+
+if test "x${with_libkml}" = "xno"; then
|
229 |
+
+ echo "libkml support disabled."
|
230 |
+
+ HAVE_LIBKML="no"
|
231 |
+
+ LIBKML_CFLAGS=
|
232 |
+
+else
|
233 |
+
AX_LIB_LIBKML($LIBKML_REQ_VERSION)
|
234 |
+
+fi
|
235 |
+
|
236 |
+
if test "$HAVE_LIBKML" = "yes"; then
|
237 |
+
LIBS="$LIBKML_LDFLAGS $LIBS"
|
238 |
+
@@ -4252,8 +4347,8 @@ else
|
239 |
+
dnl Add curl to LIBS; it might be local to DODS or generally installed
|
240 |
+
if test -x $DODS_BIN/curl-config; then
|
241 |
+
LIBS="$LIBS `$DODS_BIN/curl-config --libs`"
|
242 |
+
- elif which curl-config > /dev/null 2>&1; then
|
243 |
+
- LIBS="$LIBS `curl-config --libs`"
|
244 |
+
+ elif test "$CURL_SETTING" = "yes"; then
|
245 |
+
+ LIBS="$LIBS $CURL_LIB"
|
246 |
+
else
|
247 |
+
AC_MSG_ERROR([You gave a dods root, but I can't find curl!])
|
248 |
+
fi
|
249 |
+
@@ -4295,7 +4390,7 @@ if test "x$with_xml2" = "xyes" -o "x$with_xml2" = "x" ; then
|
250 |
+
if test "${HAVE_LIBXML2}" = "yes"; then
|
251 |
+
SAVED_LIBS="${LIBS}"
|
252 |
+
LIBS="${LIBXML2_LIBS}"
|
253 |
+
- AC_CHECK_LIB(xml2,xmlParseDoc,HAVE_LIBXML2=yes,HAVE_LIBXML2=no)
|
254 |
+
+ AC_SEARCH_LIBS(xmlParseDoc,[],HAVE_LIBXML2=yes,HAVE_LIBXML2=no,)
|
255 |
+
LIBS="${SAVED_LIBS}"
|
256 |
+
fi
|
257 |
+
|
258 |
+
@@ -4509,6 +4604,22 @@ WEBP_SETTING=no
|
259 |
+
|
260 |
+
if test "$with_webp" = "yes" -o "$with_webp" = "" ; then
|
261 |
+
|
262 |
+
+ PKG_CHECK_MODULES([WEBP],[libwebp],[HAVE_LIBWEBP_PC=yes],[HAVE_LIBWEBP_PC=no])
|
263 |
+
+ SAVED_LIBS="$LIBS"
|
264 |
+
+ LIBS="$WEBP_LIBS"
|
265 |
+
+ AC_SEARCH_LIBS(WebPDecodeRGB,[],WEBP_SETTING=yes,WEBP_SETTING=no,)
|
266 |
+
+
|
267 |
+
+ if test "$WEBP_SETTING" = "yes" ; then
|
268 |
+
+ LIBS="$WEBP_LIBS $SAVED_LIBS"
|
269 |
+
+ elif test "$HAVE_LIBWEBP_PC" = "yes" ; then
|
270 |
+
+ AC_MSG_ERROR([vcpkg libwebp broken])
|
271 |
+
+ else
|
272 |
+
+ echo "libwebp not found - WEBP support disabled"
|
273 |
+
+ LIBS="$SAVED_LIBS"
|
274 |
+
+ fi
|
275 |
+
+
|
276 |
+
+elif false ; then
|
277 |
+
+
|
278 |
+
AC_CHECK_LIB(webp,WebPDecodeRGB,WEBP_SETTING=yes,WEBP_SETTING=no,)
|
279 |
+
|
280 |
+
if test "$WEBP_SETTING" = "yes" ; then
|
281 |
+
@@ -4540,7 +4651,7 @@ dnl ---------------------------------------------------------------------------
|
282 |
+
dnl Check if geos library is available.
|
283 |
+
dnl ---------------------------------------------------------------------------
|
284 |
+
|
285 |
+
-GEOS_INIT(3.1.0)
|
286 |
+
+PKG_CHECK_MODULES(GEOS,geos >= 3.1.0,HAVE_GEOS=yes,AC_MSG_ERROR([vcpkg geos not found]))
|
287 |
+
if test "${HAVE_GEOS}" = "yes" ; then
|
288 |
+
AC_MSG_NOTICE([Using C API from GEOS $GEOS_VERSION])
|
289 |
+
STRIP_SYSTEM_LIBRARY_PATHS("${GEOS_LIBS}")
|
290 |
+
@@ -4779,6 +4890,16 @@ dnl ---------------------------------------------------------------------------
|
291 |
+
|
292 |
+
AC_ARG_WITH(libjson-c,[ --with-libjson-c[=ARG] Include libjson-c support (ARG=internal or libjson-c directory)],,)
|
293 |
+
|
294 |
+
+PKG_CHECK_MODULES([JSONC],[json-c],[HAVE_JSONC=yes],[HAVE_JSONC=no])
|
295 |
+
+SAVED_LIBS="$LIBS"
|
296 |
+
+LIBS="$JSONC_LIBS"
|
297 |
+
+AC_SEARCH_LIBS(json_object_set_serializer,[],LIBJSONC_SETTING=external,LIBJSONC_SETTING=,)
|
298 |
+
+if test "$LIBJSONC_SETTING" = "external" ; then
|
299 |
+
+ LIBS="$JSONC_LIBS $SAVED_LIBS"
|
300 |
+
+ JSON_INCLUDE="$JSONC_CFLAGS"
|
301 |
+
+else
|
302 |
+
+ LIBS="$SAVED_LIBS"
|
303 |
+
+
|
304 |
+
if test "$with_libjson_c" = "external" -o "$with_libjson_c" = "" -o "$with_libjson_c" = "yes" ; then
|
305 |
+
AC_CHECK_LIB(json-c,json_object_set_serializer,LIBJSONC_SETTING=external,LIBJSONC_SETTING=internal,)
|
306 |
+
elif test "$with_libjson_c" = "internal" ; then
|
307 |
+
@@ -4807,6 +4928,8 @@ else
|
308 |
+
AC_MSG_RESULT([using internal libjson-c code])
|
309 |
+
fi
|
310 |
+
|
311 |
+
+fi # json-c.pc
|
312 |
+
+
|
313 |
+
AC_SUBST(LIBJSONC_SETTING,$LIBJSONC_SETTING)
|
314 |
+
AC_SUBST(JSON_INCLUDE,$JSON_INCLUDE)
|
315 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0006-Fix-mingw-dllexport.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gdal/port/cpl_port.h b/gdal/port/cpl_port.h
|
2 |
+
index 98805cf..a6a1846 100644
|
3 |
+
--- a/gdal/port/cpl_port.h
|
4 |
+
+++ b/gdal/port/cpl_port.h
|
5 |
+
@@ -343,7 +343,7 @@ typedef unsigned int GUIntptr_t;
|
6 |
+
#endif
|
7 |
+
|
8 |
+
#ifndef CPL_DLL
|
9 |
+
-#if defined(_MSC_VER) && !defined(CPL_DISABLE_DLL)
|
10 |
+
+#if defined(WIN32) && !defined(CPL_DISABLE_DLL)
|
11 |
+
# ifdef GDAL_COMPILATION
|
12 |
+
# define CPL_DLL __declspec(dllexport)
|
13 |
+
# else
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0007-Control-tools.patch
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gdal/GDALmake.opt.in b/gdal/GDALmake.opt.in
|
2 |
+
index e8d2b05..1f19a4b 100644
|
3 |
+
--- a/gdal/GDALmake.opt.in
|
4 |
+
+++ b/gdal/GDALmake.opt.in
|
5 |
+
@@ -662,3 +662,6 @@ O_OBJ = $(foreach file,$(OBJ),../o/$(file))
|
6 |
+
|
7 |
+
%-clean:
|
8 |
+
$(MAKE) -C $* clean
|
9 |
+
+
|
10 |
+
+
|
11 |
+
+BUILD_TOOLS = @BUILD_TOOLS@
|
12 |
+
|
13 |
+
diff --git a/gdal/apps/GNUmakefile b/gdal/apps/GNUmakefile
|
14 |
+
index 9624cf7..f91403d 100644
|
15 |
+
--- a/gdal/apps/GNUmakefile
|
16 |
+
+++ b/gdal/apps/GNUmakefile
|
17 |
+
@@ -43,6 +43,11 @@ NON_DEFAULT_LIST = multireadtest$(EXE) dumpoverviews$(EXE) \
|
18 |
+
gdaltorture$(EXE) gdal2ogr$(EXE) test_ogrsf$(EXE) \
|
19 |
+
gdalasyncread$(EXE) testreprojmulti$(EXE)
|
20 |
+
|
21 |
+
+ifeq ($(BUILD_TOOLS),no)
|
22 |
+
+BIN_LIST =
|
23 |
+
+NON_DEFAULT_LIST =
|
24 |
+
+endif
|
25 |
+
+
|
26 |
+
default: gdal-config-inst gdal-config $(BIN_LIST)
|
27 |
+
|
28 |
+
all: default $(NON_DEFAULT_LIST)
|
29 |
+
diff --git a/gdal/apps/makefile.vc b/gdal/apps/makefile.vc
|
30 |
+
index 6e1fc9b..66f9b29 100644
|
31 |
+
--- a/gdal/apps/makefile.vc
|
32 |
+
+++ b/gdal/apps/makefile.vc
|
33 |
+
@@ -20,6 +20,7 @@ GNM_PROGRAMS = gnmmanage.exe gnmanalyse.exe
|
34 |
+
!ENDIF
|
35 |
+
|
36 |
+
|
37 |
+
+!IF "$(BUILD_TOOLS)" == "1"
|
38 |
+
default: gdal_translate.exe gdalinfo.exe gdaladdo.exe gdalwarp.exe \
|
39 |
+
nearblack.exe gdalmanage.exe gdalenhance.exe gdaltransform.exe\
|
40 |
+
gdaldem.exe gdallocationinfo.exe gdalsrsinfo.exe gdalmdiminfo.exe \
|
41 |
+
@@ -28,6 +29,10 @@ default: gdal_translate.exe gdalinfo.exe gdaladdo.exe gdalwarp.exe \
|
42 |
+
all: default multireadtest.exe \
|
43 |
+
dumpoverviews.exe gdalwarpsimple.exe gdalflattenmask.exe \
|
44 |
+
gdaltorture.exe gdal2ogr.exe test_ogrsf.exe
|
45 |
+
+!ELSE
|
46 |
+
+default:
|
47 |
+
+all:
|
48 |
+
+!ENDIF
|
49 |
+
OBJ = commonutils.obj gdalinfo_lib.obj gdal_translate_lib.obj gdalwarp_lib.obj ogr2ogr_lib.obj \
|
50 |
+
gdaldem_lib.obj nearblack_lib.obj gdal_grid_lib.obj gdal_rasterize_lib.obj gdalbuildvrt_lib.obj \
|
51 |
+
gdalmdiminfo_lib.obj gdalmdimtranslate_lib.obj
|
52 |
+
@@ -223,5 +228,9 @@ clean:
|
53 |
+
-del *.manifest
|
54 |
+
-del *.exp
|
55 |
+
|
56 |
+
+!IF "$(BUILD_TOOLS)" == "1"
|
57 |
+
install: default
|
58 |
+
copy *.exe $(BINDIR)
|
59 |
+
+!ELSE
|
60 |
+
+install:
|
61 |
+
+!ENDIF
|
62 |
+
|
63 |
+
diff --git a/gdal/configure.ac b/gdal/configure.ac
|
64 |
+
index 1098b39..e4d985e 100644
|
65 |
+
--- a/gdal/configure.ac
|
66 |
+
+++ b/gdal/configure.ac
|
67 |
+
@@ -6165,6 +6165,16 @@ case "${host_os}" in
|
68 |
+
;;
|
69 |
+
esac
|
70 |
+
|
71 |
+
+BUILD_TOOLS=yes
|
72 |
+
+AC_ARG_WITH([tools], AS_HELP_STRING([--with-tools], [Build the tools]),,)
|
73 |
+
+if test "$with_tools" = "yes"; then
|
74 |
+
+ AC_MSG_RESULT([enabled])
|
75 |
+
+else
|
76 |
+
+ BUILD_TOOLS=no
|
77 |
+
+ AC_MSG_RESULT([disabled by user])
|
78 |
+
+fi
|
79 |
+
+AC_SUBST(BUILD_TOOLS,$BUILD_TOOLS)
|
80 |
+
+
|
81 |
+
AC_CONFIG_FILES([GDALmake.opt])
|
82 |
+
AC_OUTPUT
|
83 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gdal/0008-Fix-absl-string_view.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gdal/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/base.h b/gdal/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/base.h
|
2 |
+
index 9557380..17edcf8 100644
|
3 |
+
--- a/gdal/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/base.h
|
4 |
+
+++ b/gdal/ogr/ogrsf_frmts/flatgeobuf/flatbuffers/base.h
|
5 |
+
@@ -213,7 +213,7 @@ namespace flatbuffers {
|
6 |
+
}
|
7 |
+
#define FLATBUFFERS_HAS_STRING_VIEW 1
|
8 |
+
// Check for absl::string_view
|
9 |
+
- #elif __has_include("absl/strings/string_view.h")
|
10 |
+
+ #elif __has_include("absl/strings/string_view.h") && 0
|
11 |
+
#include "absl/strings/string_view.h"
|
12 |
+
namespace flatbuffers {
|
13 |
+
typedef absl::string_view string_view;
|