Spaces:
Sleeping
Sleeping
c969e8c1774a318401184cfc8bae8c936b336bca358b7b213cf04319db04fb3b
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxmath/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxmesh/portfile.cmake +62 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxmesh/vcpkg.json +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxsdk/portfile.cmake +150 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxsdk/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtex/enable_openexr_support.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtex/portfile.cmake +107 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtex/vcpkg.json +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk/portfile.cmake +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk/vcpkg.json +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk12/portfile.cmake +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk12/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dirent/portfile.cmake +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dirent/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/CMakeLists.txt +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/copyright +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/include-cstdint.patch +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/portfile.cmake +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/usage +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-rpc/disable-downloading.patch +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-rpc/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-rpc/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discordcoreapi/portfile.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discordcoreapi/vcpkg.json +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/blocktags +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/cmake.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/disable-deprecated-warnings.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/generate-blocktags-command.patch +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/portfile.cmake +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discreture/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discreture/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/discreture/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/CMakeLists.txt +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/fix-arm-builds.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlfcn-win32/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlfcn-win32/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/find_blas.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/fix-sqlite3-fftw-linkage.patch +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/force_finding_packages.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/portfile.cmake +78 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/vcpkg.json +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dmlc/portfile.cmake +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dmlc/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/docopt/001-fix-unresolved-symbol.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/docopt/002-fix-install-path.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/docopt/install-one-flavor.patch +21 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxmath/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directxmath",
|
3 |
+
"version-date": "2022-01-18",
|
4 |
+
"description": "DirectXMath SIMD C++ math library",
|
5 |
+
"homepage": "https://github.com/Microsoft/DirectXMath",
|
6 |
+
"documentation": "https://docs.microsoft.com/windows/win32/dxmath/directxmath-portal",
|
7 |
+
"license": "MIT",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxmesh/portfile.cmake
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Microsoft/DirectXMesh
|
6 |
+
REF mar2022
|
7 |
+
SHA512 ec5cfcbba0f361a2a7d572284c77a88464fcf38a10b113f12b1e51a1c0c42a651abd6f8bbf257a3470b35c62c8d25af9a79925f2e0c79eb33a8b1c9ca6a9191b
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
dx12 BUILD_DX12
|
15 |
+
)
|
16 |
+
|
17 |
+
if (VCPKG_HOST_IS_LINUX)
|
18 |
+
message(WARNING "Build ${PORT} requires GCC version 9 or later")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if(VCPKG_TARGET_IS_UWP)
|
22 |
+
set(EXTRA_OPTIONS -DBUILD_TOOLS=OFF)
|
23 |
+
else()
|
24 |
+
set(EXTRA_OPTIONS -DBUILD_TOOLS=ON)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
vcpkg_cmake_configure(
|
28 |
+
SOURCE_PATH ${SOURCE_PATH}
|
29 |
+
OPTIONS ${FEATURE_OPTIONS} ${EXTRA_OPTIONS}
|
30 |
+
)
|
31 |
+
|
32 |
+
vcpkg_cmake_install()
|
33 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
34 |
+
|
35 |
+
if((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64))
|
36 |
+
vcpkg_download_distfile(
|
37 |
+
MESHCONVERT_EXE
|
38 |
+
URLS "https://github.com/Microsoft/DirectXMesh/releases/download/mar2022/meshconvert.exe"
|
39 |
+
FILENAME "meshconvert-mar2022.exe"
|
40 |
+
SHA512 43b4305b73994eccc086bf1812147a5156359f5d927475b915bbf8edde70189cc419b96703aeb736f76d9d52037657f10ba0c104f9713c1f0defb28ce7a46ac1
|
41 |
+
)
|
42 |
+
|
43 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxmesh/")
|
44 |
+
|
45 |
+
file(INSTALL
|
46 |
+
${MESHCONVERT_EXE}
|
47 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/directxmesh/)
|
48 |
+
|
49 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert-mar2022.exe ${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert.exe)
|
50 |
+
|
51 |
+
elseif((VCPKG_TARGET_IS_WINDOWS) AND (NOT VCPKG_TARGET_IS_UWP))
|
52 |
+
|
53 |
+
vcpkg_copy_tools(
|
54 |
+
TOOL_NAMES meshconvert
|
55 |
+
SEARCH_DIR ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/CMake
|
56 |
+
)
|
57 |
+
|
58 |
+
endif()
|
59 |
+
|
60 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
61 |
+
|
62 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxmesh/vcpkg.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directxmesh",
|
3 |
+
"version-date": "2022-03-24",
|
4 |
+
"description": "DirectXMesh geometry processing library",
|
5 |
+
"homepage": "https://github.com/Microsoft/DirectXMesh",
|
6 |
+
"documentation": "https://github.com/microsoft/DirectXMesh/wiki",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "windows | linux",
|
9 |
+
"dependencies": [
|
10 |
+
"directx-headers",
|
11 |
+
"directxmath",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"dx12": {
|
23 |
+
"description": "Build with DirectX12 support for Windows 10"
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxsdk/portfile.cmake
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(EXISTS "${CURRENT_INSTALLED_DIR}/share/dxsdk-d3dx/copyright")
|
2 |
+
message(FATAL_ERROR "Can't build ${PORT} if dxsdk-d3dx is installed. Please remove dxsdk-d3dx, and try to install ${PORT} again if you need it.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
message(WARNING "Build ${PORT} is deprecated, untested in CI, and requires the use of the DirectSetup legacy REDIST solution. See https://aka.ms/dxsdk for more information.")
|
6 |
+
|
7 |
+
vcpkg_download_distfile(ARCHIVE
|
8 |
+
URLS "https://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe"
|
9 |
+
FILENAME "DXSDK_Jun10_SHA256.exe"
|
10 |
+
SHA512 24e1e9bda319b780124b865f4640822cfc44e4d18fbdcc8456d48fe54081652ce4ddb63d3bd8596351057cbae50fc824b8297e99f0f7c97547153162562ba73f
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_extract_source_archive_ex(
|
14 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
15 |
+
ARCHIVE ${ARCHIVE}
|
16 |
+
)
|
17 |
+
|
18 |
+
# See https://walbourn.github.io/the-zombie-directx-sdk/
|
19 |
+
set(INC_DIR "${SOURCE_PATH}/Include")
|
20 |
+
set(LIB_DIR "${SOURCE_PATH}/Lib/${VCPKG_TARGET_ARCHITECTURE}")
|
21 |
+
|
22 |
+
set(HEADERS
|
23 |
+
${INC_DIR}/audiodefs.h
|
24 |
+
${INC_DIR}/comdecl.h
|
25 |
+
${INC_DIR}/D3DX10.h
|
26 |
+
${INC_DIR}/d3dx10async.h
|
27 |
+
${INC_DIR}/D3DX10core.h
|
28 |
+
${INC_DIR}/D3DX10math.h
|
29 |
+
${INC_DIR}/D3DX10math.inl
|
30 |
+
${INC_DIR}/D3DX10mesh.h
|
31 |
+
${INC_DIR}/D3DX10tex.h
|
32 |
+
${INC_DIR}/D3DX11.h
|
33 |
+
${INC_DIR}/D3DX11async.h
|
34 |
+
${INC_DIR}/D3DX11core.h
|
35 |
+
${INC_DIR}/D3DX11tex.h
|
36 |
+
${INC_DIR}/d3dx9.h
|
37 |
+
${INC_DIR}/d3dx9anim.h
|
38 |
+
${INC_DIR}/d3dx9core.h
|
39 |
+
${INC_DIR}/d3dx9effect.h
|
40 |
+
${INC_DIR}/d3dx9math.h
|
41 |
+
${INC_DIR}/d3dx9math.inl
|
42 |
+
${INC_DIR}/d3dx9mesh.h
|
43 |
+
${INC_DIR}/d3dx9shader.h
|
44 |
+
${INC_DIR}/d3dx9shape.h
|
45 |
+
${INC_DIR}/d3dx9tex.h
|
46 |
+
${INC_DIR}/d3dx9xof.h
|
47 |
+
${INC_DIR}/D3DX_DXGIFormatConvert.inl
|
48 |
+
${INC_DIR}/dsetup.h
|
49 |
+
${INC_DIR}/dxdiag.h
|
50 |
+
${INC_DIR}/DxErr.h
|
51 |
+
${INC_DIR}/dxfile.h
|
52 |
+
${INC_DIR}/dxsdkver.h
|
53 |
+
${INC_DIR}/PIXPlugin.h
|
54 |
+
${INC_DIR}/rmxfguid.h
|
55 |
+
${INC_DIR}/rmxftmpl.h
|
56 |
+
${INC_DIR}/xact3.h
|
57 |
+
${INC_DIR}/xact3d3.h
|
58 |
+
${INC_DIR}/xact3wb.h
|
59 |
+
${INC_DIR}/XDSP.h
|
60 |
+
${INC_DIR}/xma2defs.h)
|
61 |
+
|
62 |
+
set(DEBUG_LIBS
|
63 |
+
${LIB_DIR}/d3dx10d.lib
|
64 |
+
${LIB_DIR}/d3dx11d.lib
|
65 |
+
${LIB_DIR}/d3dx9d.lib
|
66 |
+
)
|
67 |
+
set(RELEASE_LIBS
|
68 |
+
${LIB_DIR}/d3dx10.lib
|
69 |
+
${LIB_DIR}/d3dx11.lib
|
70 |
+
${LIB_DIR}/d3dx9.lib
|
71 |
+
)
|
72 |
+
set(OTHER_LIBS
|
73 |
+
${LIB_DIR}/d3dxof.lib
|
74 |
+
${LIB_DIR}/DxErr.lib
|
75 |
+
)
|
76 |
+
if(${VCPKG_TARGET_ARCHITECTURE} STREQUAL "x86")
|
77 |
+
list(APPEND OTHER_LIBS ${LIB_DIR}/dsetup.lib)
|
78 |
+
endif()
|
79 |
+
|
80 |
+
set(XINPUT13_HEADER ${INC_DIR}/XInput.h)
|
81 |
+
set(XINPUT13_LIB ${LIB_DIR}/XInput.lib)
|
82 |
+
|
83 |
+
set(XAUDIO27_HEADERS
|
84 |
+
${INC_DIR}/X3DAudio.h
|
85 |
+
${INC_DIR}/XAPO.h
|
86 |
+
${INC_DIR}/XAPOBase.h
|
87 |
+
${INC_DIR}/XAPOFX.h
|
88 |
+
${INC_DIR}/XAudio2.h
|
89 |
+
${INC_DIR}/XAudio2fx.h)
|
90 |
+
set(XAUDIO27_DEBUG_LIBS ${LIB_DIR}/xapobased.lib)
|
91 |
+
set(XAUDIO27_RELEASE_LIBS ${LIB_DIR}/xapobase.lib)
|
92 |
+
set(XAUDIO27_OTHER_LIBS
|
93 |
+
${LIB_DIR}/X3DAudio.lib
|
94 |
+
${LIB_DIR}/XAPOFX.lib
|
95 |
+
)
|
96 |
+
|
97 |
+
set(XP_HEADERS
|
98 |
+
${INC_DIR}/D3D10.h
|
99 |
+
${INC_DIR}/D3D10effect.h
|
100 |
+
${INC_DIR}/d3d10misc.h
|
101 |
+
${INC_DIR}/d3d10sdklayers.h
|
102 |
+
${INC_DIR}/D3D10shader.h
|
103 |
+
${INC_DIR}/D3D10_1.h
|
104 |
+
${INC_DIR}/D3D10_1shader.h
|
105 |
+
${INC_DIR}/D3D11.h
|
106 |
+
${INC_DIR}/D3D11SDKLayers.h
|
107 |
+
${INC_DIR}/D3D11Shader.h
|
108 |
+
${INC_DIR}/D3Dcommon.h
|
109 |
+
${INC_DIR}/D3Dcompiler.h
|
110 |
+
${INC_DIR}/D3DCSX.h
|
111 |
+
${INC_DIR}/D3DX_DXGIFormatConvert.inl
|
112 |
+
${INC_DIR}/xnamath.h
|
113 |
+
${INC_DIR}/xnamathconvert.inl
|
114 |
+
${INC_DIR}/xnamathmatrix.inl
|
115 |
+
${INC_DIR}/xnamathmisc.inl
|
116 |
+
${INC_DIR}/xnamathvector.inl)
|
117 |
+
|
118 |
+
set(XP_DEBUG_LIBS ${LIB_DIR}/D3DCSXd.lib)
|
119 |
+
set(XP_RELEASE_LIBS ${LIB_DIR}/D3DCSX.lib)
|
120 |
+
set(XP_OTHER_LIBS
|
121 |
+
${LIB_DIR}/d3dcompiler.lib
|
122 |
+
${LIB_DIR}/dxguid.lib
|
123 |
+
)
|
124 |
+
|
125 |
+
|
126 |
+
#install(DIRECTORY "${SOURCE_PATH}/Include" DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
127 |
+
file(COPY ${HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
128 |
+
file(COPY ${RELEASE_LIBS} ${OTHER_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
129 |
+
file(COPY ${DEBUG_LIBS} ${OTHER_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
130 |
+
|
131 |
+
if(("xinput1-3" IN_LIST FEATURES) OR ("xp" IN_LIST FEATURES))
|
132 |
+
file(COPY ${XINPUT13_HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
133 |
+
file(COPY ${XINPUT13_LIB} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
134 |
+
file(COPY ${XINPUT13_LIB} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
135 |
+
endif()
|
136 |
+
|
137 |
+
if(("xaudio2-7" IN_LIST FEATURES) OR ("xp" IN_LIST FEATURES))
|
138 |
+
file(COPY ${XAUDIO27_HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
139 |
+
file(COPY ${XAUDIO27_RELEASE_LIBS} ${XAUDIO27_OTHER_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
140 |
+
file(COPY ${XAUDIO27_DEBUG_LIBS} ${XAUDIO27_OTHER_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
141 |
+
endif()
|
142 |
+
|
143 |
+
if("xp" IN_LIST FEATURES)
|
144 |
+
file(COPY ${XP_HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
145 |
+
file(COPY ${XP_RELEASE_LIBS} ${XP_OTHER_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
146 |
+
file(COPY ${XP_DEBUG_LIBS} ${XP_OTHER_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
147 |
+
endif()
|
148 |
+
|
149 |
+
# # Handle copyright
|
150 |
+
file(INSTALL "${SOURCE_PATH}/Documentation/License Agreements/DirectX SDK EULA.txt" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxsdk/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directxsdk",
|
3 |
+
"version-string": "jun10",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Legacy DirectX SDK",
|
6 |
+
"homepage": "https://docs.microsoft.com/en-us/windows/win32/directx-sdk--august-2009-",
|
7 |
+
"supports": "windows & !uwp & !arm",
|
8 |
+
"features": {
|
9 |
+
"xaudio2-7": {
|
10 |
+
"description": "Include headers/libs for legacy XAudio 2.7 (prefer use of XAudio2Redist)"
|
11 |
+
},
|
12 |
+
"xinput1-3": {
|
13 |
+
"description": "Include headers for legacy XInput 1.3 (prefer use of XInput 9.1.0 or 1.4)"
|
14 |
+
},
|
15 |
+
"xp": {
|
16 |
+
"description": "Include headers/libs needed for Windows 7.1A targeting Windows XP / Server 2003"
|
17 |
+
}
|
18 |
+
}
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtex/enable_openexr_support.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/DirectXTexEXR.cpp b/DirectXTexEXR.cpp
|
2 |
+
index 17bd171..825cfe4 100644
|
3 |
+
--- a/DirectXTex/DirectXTexEXR.cpp
|
4 |
+
+++ b/DirectXTex/DirectXTexEXR.cpp
|
5 |
+
@@ -8,7 +8,7 @@
|
6 |
+
//--------------------------------------------------------------------------------------
|
7 |
+
|
8 |
+
//Uncomment if you add DirectXTexEXR to your copy of the DirectXTex library
|
9 |
+
-//#include "DirectXTexP.h"
|
10 |
+
+#include "DirectXTexP.h"
|
11 |
+
|
12 |
+
#include "DirectXTexEXR.h"
|
13 |
+
|
14 |
+
@@ -57,7 +57,7 @@ using namespace DirectX;
|
15 |
+
using PackedVector::XMHALF4;
|
16 |
+
|
17 |
+
// Comment out this first anonymous namespace if you add the include of DirectXTexP.h above
|
18 |
+
-#ifdef WIN32
|
19 |
+
+#if 0
|
20 |
+
namespace
|
21 |
+
{
|
22 |
+
struct handle_closer { void operator()(HANDLE h) noexcept { assert(h != INVALID_HANDLE_VALUE); if (h) CloseHandle(h); } };
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtex/portfile.cmake
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Microsoft/DirectXTex
|
6 |
+
REF mar2022
|
7 |
+
SHA512 04f898b2cf2c76edd400147db9144e196fc8441739de3293f8851952ce8153bab033deba52a0d35e51c4fbc9705ffe183f1606a0fae29970dc2babe65ed78e19
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
if("openexr" IN_LIST FEATURES)
|
12 |
+
vcpkg_download_distfile(
|
13 |
+
DIRECTXTEX_EXR_HEADER
|
14 |
+
URLS "https://raw.githubusercontent.com/wiki/Microsoft/DirectXTex/DirectXTexEXR.h"
|
15 |
+
FILENAME "DirectXTexEXR-3.h"
|
16 |
+
SHA512 b4c75fa0e3365d63beba0ba471f0ded124b2f0e20f2c11cef76a88e6af1582889abcf5aa2ec74270d7b9bde7f7b4bc36fd17f030357b4139d8c83c35060344be
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_download_distfile(
|
20 |
+
DIRECTXTEX_EXR_SOURCE
|
21 |
+
URLS "https://raw.githubusercontent.com/wiki/Microsoft/DirectXTex/DirectXTexEXR.cpp"
|
22 |
+
FILENAME "DirectXTexEXR-3.cpp"
|
23 |
+
SHA512 9192cfea01654b1537b444cc6e3369de2f721959ad749551ad06ba92a12fa61e12f2169cf412788b0156220bb8bacf531160f924a4744e43e875163463586620
|
24 |
+
)
|
25 |
+
|
26 |
+
file(COPY ${DIRECTXTEX_EXR_HEADER} DESTINATION "${SOURCE_PATH}/DirectXTex")
|
27 |
+
file(COPY ${DIRECTXTEX_EXR_SOURCE} DESTINATION "${SOURCE_PATH}/DirectXTex")
|
28 |
+
file(RENAME "${SOURCE_PATH}/DirectXTex/DirectXTexEXR-3.h" "${SOURCE_PATH}/DirectXTex/DirectXTexEXR.h")
|
29 |
+
file(RENAME "${SOURCE_PATH}/DirectXTex/DirectXTexEXR-3.cpp" "${SOURCE_PATH}/DirectXTex/DirectXTexEXR.cpp")
|
30 |
+
vcpkg_apply_patches(SOURCE_PATH "${SOURCE_PATH}" PATCHES enable_openexr_support.patch)
|
31 |
+
endif()
|
32 |
+
|
33 |
+
vcpkg_check_features(
|
34 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
35 |
+
FEATURES
|
36 |
+
dx12 BUILD_DX12
|
37 |
+
openexr ENABLE_OPENEXR_SUPPORT
|
38 |
+
)
|
39 |
+
|
40 |
+
if (VCPKG_HOST_IS_LINUX)
|
41 |
+
message(WARNING "Build ${PORT} requires GCC version 9 or later")
|
42 |
+
endif()
|
43 |
+
|
44 |
+
if(VCPKG_TARGET_IS_UWP)
|
45 |
+
set(EXTRA_OPTIONS -DBUILD_TOOLS=OFF)
|
46 |
+
else()
|
47 |
+
set(EXTRA_OPTIONS -DBUILD_TOOLS=ON)
|
48 |
+
endif()
|
49 |
+
|
50 |
+
vcpkg_cmake_configure(
|
51 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
52 |
+
OPTIONS
|
53 |
+
${FEATURE_OPTIONS}
|
54 |
+
${EXTRA_OPTIONS}
|
55 |
+
-DBC_USE_OPENMP=ON
|
56 |
+
-DBUILD_DX11=ON
|
57 |
+
)
|
58 |
+
|
59 |
+
vcpkg_cmake_install()
|
60 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
61 |
+
|
62 |
+
if((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64) AND (NOT ("openexr" IN_LIST FEATURES)))
|
63 |
+
vcpkg_download_distfile(
|
64 |
+
TEXASSEMBLE_EXE
|
65 |
+
URLS "https://github.com/Microsoft/DirectXTex/releases/download/mar2022/texassemble.exe"
|
66 |
+
FILENAME "texassemble-mar2022.exe"
|
67 |
+
SHA512 2a2bec1f012ba6778d99f53a3b4f015f84e4ab76dd68a1980d77cdac588c60a21b30abbfc0de9f0b0ef790ef5ed8444f1648b80990053f8a1f967a04d20d3c33
|
68 |
+
)
|
69 |
+
|
70 |
+
vcpkg_download_distfile(
|
71 |
+
TEXCONV_EXE
|
72 |
+
URLS "https://github.com/Microsoft/DirectXTex/releases/download/mar2022/texconv.exe"
|
73 |
+
FILENAME "texconv-mar2022.exe"
|
74 |
+
SHA512 fa0b12dcc7e4688f356bb591dedd07dcb27b6029c6490438b39368f72b77f90112360544e035f89e1098dc09b26fb921840ecae851ad5eba6a339cd46316c4e3
|
75 |
+
)
|
76 |
+
|
77 |
+
vcpkg_download_distfile(
|
78 |
+
TEXDIAG_EXE
|
79 |
+
URLS "https://github.com/Microsoft/DirectXTex/releases/download/mar2022/texdiag.exe"
|
80 |
+
FILENAME "texdiag-mar2022.exe"
|
81 |
+
SHA512 7fe074a08599edca9ad8ad5ff930c9c4dbc74faad6502c288e9a555a4a79f51affbce51758c99518d54c4698457e0edb379ffaebfd3dcae0bd16a343195f8292
|
82 |
+
)
|
83 |
+
|
84 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtex/")
|
85 |
+
|
86 |
+
file(INSTALL
|
87 |
+
${TEXASSEMBLE_EXE}
|
88 |
+
${TEXCONV_EXE}
|
89 |
+
${TEXDIAG_EXE}
|
90 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtex/")
|
91 |
+
|
92 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtex/texassemble-mar2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtex/texassemble.exe")
|
93 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtex/texconv-mar2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtex/texconv.exe")
|
94 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtex/texdiag-mar2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtex/texadiag.exe")
|
95 |
+
|
96 |
+
elseif((VCPKG_TARGET_IS_WINDOWS) AND (NOT VCPKG_TARGET_IS_UWP))
|
97 |
+
|
98 |
+
vcpkg_copy_tools(
|
99 |
+
TOOL_NAMES texassemble texconv texdiag
|
100 |
+
SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/CMake"
|
101 |
+
)
|
102 |
+
|
103 |
+
endif()
|
104 |
+
|
105 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
106 |
+
|
107 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtex/vcpkg.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directxtex",
|
3 |
+
"version-date": "2022-03-24",
|
4 |
+
"description": "DirectXTex texture processing library",
|
5 |
+
"homepage": "https://github.com/Microsoft/DirectXTex",
|
6 |
+
"documentation": "https://github.com/microsoft/DirectXTex/wiki",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "windows | linux",
|
9 |
+
"dependencies": [
|
10 |
+
"directx-headers",
|
11 |
+
"directxmath",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"dx12": {
|
23 |
+
"description": "Build with DirectX12 support for Windows 10"
|
24 |
+
},
|
25 |
+
"openexr": {
|
26 |
+
"description": "Enable OpenEXR support",
|
27 |
+
"dependencies": [
|
28 |
+
"openexr"
|
29 |
+
]
|
30 |
+
}
|
31 |
+
}
|
32 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk/portfile.cmake
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Microsoft/DirectXTK
|
6 |
+
REF mar2022
|
7 |
+
SHA512 09264e19ff786b1f8cf56f0a789ce9df60b3682adba6dbb3e9c8c8c7d869b464c0ad869299fc5cda2d535db19c7a96b43cba2fd40d8cb6aa9dc14914b181d410
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
xaudio2-9 BUILD_XAUDIO_WIN10
|
15 |
+
xaudio2-8 BUILD_XAUDIO_WIN8
|
16 |
+
xaudio2redist BUILD_XAUDIO_WIN7
|
17 |
+
)
|
18 |
+
|
19 |
+
if(VCPKG_TARGET_IS_UWP)
|
20 |
+
set(EXTRA_OPTIONS -DBUILD_TOOLS=OFF)
|
21 |
+
else()
|
22 |
+
set(EXTRA_OPTIONS -DBUILD_TOOLS=ON)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
vcpkg_cmake_configure(
|
26 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
27 |
+
OPTIONS ${FEATURE_OPTIONS} ${EXTRA_OPTIONS}
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_install()
|
31 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
32 |
+
|
33 |
+
if((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64))
|
34 |
+
vcpkg_download_distfile(
|
35 |
+
MAKESPRITEFONT_EXE
|
36 |
+
URLS "https://github.com/Microsoft/DirectXTK/releases/download/mar2022/MakeSpriteFont.exe"
|
37 |
+
FILENAME "makespritefont-mar2022.exe"
|
38 |
+
SHA512 a24f76781ddb2c9baa2550d3ef26bf4cf6cb03bfd97caa3b202232a04730fd81e299a9f3549c3ff58c03fda827e44deac5e0b311e8e3fc795e393651ecb51752
|
39 |
+
)
|
40 |
+
|
41 |
+
vcpkg_download_distfile(
|
42 |
+
XWBTOOL_EXE
|
43 |
+
URLS "https://github.com/Microsoft/DirectXTK/releases/download/mar2022/XWBTool.exe"
|
44 |
+
FILENAME "xwbtool-mar2022.exe"
|
45 |
+
SHA512 32dd88e742211deaf0ca83e51ec510490456473c07fabbd6627960dc9abfa32289d99f2c8f53d7590a6a6733b3068ba25bff9a512fcf7d1072791dce931d463f
|
46 |
+
)
|
47 |
+
|
48 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtk/")
|
49 |
+
|
50 |
+
file(INSTALL
|
51 |
+
${MAKESPRITEFONT_EXE}
|
52 |
+
${XWBTOOL_EXE}
|
53 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk/")
|
54 |
+
|
55 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk/makespritefont-mar2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk/makespritefont.exe")
|
56 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk/xwbtool-mar2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk/xwbtool.exe")
|
57 |
+
|
58 |
+
elseif(NOT VCPKG_TARGET_IS_UWP)
|
59 |
+
|
60 |
+
vcpkg_copy_tools(
|
61 |
+
TOOL_NAMES XWBTool
|
62 |
+
SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/CMake"
|
63 |
+
)
|
64 |
+
|
65 |
+
endif()
|
66 |
+
|
67 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
68 |
+
|
69 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk/vcpkg.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directxtk",
|
3 |
+
"version-date": "2022-03-24",
|
4 |
+
"description": "A collection of helper classes for writing DirectX 11.x code in C++.",
|
5 |
+
"homepage": "https://github.com/Microsoft/DirectXTK",
|
6 |
+
"documentation": "https://github.com/microsoft/DirectXTK/wiki",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "windows",
|
9 |
+
"dependencies": [
|
10 |
+
"directxmath",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"features": {
|
21 |
+
"xaudio2-8": {
|
22 |
+
"description": "Build with XAudio 2.8 support for Windows 8.x or later"
|
23 |
+
},
|
24 |
+
"xaudio2-9": {
|
25 |
+
"description": "Build with XAudio 2.9 support for Windows 10"
|
26 |
+
},
|
27 |
+
"xaudio2redist": {
|
28 |
+
"description": "Build with XAudio2Redist support for Windows 7 SP1 or later",
|
29 |
+
"dependencies": [
|
30 |
+
{
|
31 |
+
"name": "xaudio2redist",
|
32 |
+
"platform": "!uwp & !arm"
|
33 |
+
}
|
34 |
+
]
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk12/portfile.cmake
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Microsoft/DirectXTK12
|
6 |
+
REF mar2022
|
7 |
+
SHA512 fc41450aad51491f4ac89f87bfd76a62179052db1b98ee626561ef3edb8716578c8dfee01613731cdd9fd91f03ed54a8ec73595374ae16e217cfc87d6f11eca4
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS -DBUILD_XAUDIO_WIN10=ON -DBUILD_DXIL_SHADERS=ON
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
18 |
+
|
19 |
+
if((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64))
|
20 |
+
vcpkg_download_distfile(
|
21 |
+
MAKESPRITEFONT_EXE
|
22 |
+
URLS "https://github.com/Microsoft/DirectXTK12/releases/download/mar2022/MakeSpriteFont.exe"
|
23 |
+
FILENAME "makespritefont-mar2022.exe"
|
24 |
+
SHA512 a24f76781ddb2c9baa2550d3ef26bf4cf6cb03bfd97caa3b202232a04730fd81e299a9f3549c3ff58c03fda827e44deac5e0b311e8e3fc795e393651ecb51752
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_download_distfile(
|
28 |
+
XWBTOOL_EXE
|
29 |
+
URLS "https://github.com/Microsoft/DirectXTK12/releases/download/mar2022/XWBTool.exe"
|
30 |
+
FILENAME "xwbtool-mar2022.exe"
|
31 |
+
SHA512 32dd88e742211deaf0ca83e51ec510490456473c07fabbd6627960dc9abfa32289d99f2c8f53d7590a6a6733b3068ba25bff9a512fcf7d1072791dce931d463f
|
32 |
+
)
|
33 |
+
|
34 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtk12/")
|
35 |
+
|
36 |
+
file(INSTALL
|
37 |
+
${MAKESPRITEFONT_EXE}
|
38 |
+
${XWBTOOL_EXE}
|
39 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxtk12/")
|
40 |
+
|
41 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont-mar2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk12/makespritefont.exe")
|
42 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool-mar2022.exe" "${CURRENT_PACKAGES_DIR}/tools/directxtk12/xwbtool.exe")
|
43 |
+
endif()
|
44 |
+
|
45 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
46 |
+
|
47 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/directxtk12/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directxtk12",
|
3 |
+
"version-date": "2022-03-24",
|
4 |
+
"description": "A collection of helper classes for writing DirectX 12 code in C++.",
|
5 |
+
"homepage": "https://github.com/Microsoft/DirectXTK12",
|
6 |
+
"documentation": "https://github.com/microsoft/DirectXTK12/wiki",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "windows",
|
9 |
+
"dependencies": [
|
10 |
+
"directx-headers",
|
11 |
+
"directxmath",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
]
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dirent/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
3 |
+
return()
|
4 |
+
endif()
|
5 |
+
|
6 |
+
vcpkg_from_github(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO tronkko/dirent
|
9 |
+
REF 1.23.2
|
10 |
+
SHA512 e7a991445ee9ca8f1118753df559d28beb283b3c0d25edcfb23dd5322f2bdfeadffe802d0c908bb6d4dfc17bf5ec38bdecfa717319fb4e26682bee0ba0d14c5c
|
11 |
+
HEAD_REF master
|
12 |
+
)
|
13 |
+
file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
14 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/dirent RENAME copyright)
|
15 |
+
vcpkg_copy_pdbs()
|
16 |
+
|
17 |
+
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dirent/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dirent",
|
3 |
+
"version-string": "1.23.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Dirent is a C/C++ programming interface that allows programmers to retrieve information about files and directories under Linux/UNIX. This project provides Linux compatible Dirent interface for Microsoft Windows.",
|
6 |
+
"homepage": "https://github.com/tronkko/dirent"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/CMakeLists.txt
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
|
3 |
+
project(discord_game_sdk_cpp)
|
4 |
+
|
5 |
+
find_library(SDK_LIB
|
6 |
+
"discord_game_sdk"
|
7 |
+
PATHS "${SDK_LIB_FOLDER}"
|
8 |
+
NO_DEFAULT_PATH
|
9 |
+
)
|
10 |
+
|
11 |
+
file(GLOB SRC_FILES "${PROJECT_SOURCE_DIR}/cpp/*.cpp")
|
12 |
+
file(GLOB_RECURSE HDR_FILES "${PROJECT_SOURCE_DIR}/*.h")
|
13 |
+
|
14 |
+
add_library(discord_game_sdk_cpp STATIC ${SRC_FILES})
|
15 |
+
target_link_libraries(discord_game_sdk_cpp PUBLIC ${SDK_LIB})
|
16 |
+
set_property(TARGET discord_game_sdk_cpp PROPERTY CXX_STANDARD 11)
|
17 |
+
|
18 |
+
install(TARGETS discord_game_sdk_cpp ARCHIVE)
|
19 |
+
install(FILES ${HDR_FILES} DESTINATION "include/discord-game-sdk")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/copyright
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Your use of the GameSDK is bound by the Discord Developer Terms of Service, whose text is available online at https://discord.com/developers/docs/legal.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/include-cstdint.patch
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 91fab7c4b8f7da3182f07f5392ebe9388f979157 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Maki <[email protected]>
|
3 |
+
Date: Wed, 3 Jun 2020 01:40:58 +0100
|
4 |
+
Subject: [PATCH] Include cstdint
|
5 |
+
|
6 |
+
---
|
7 |
+
cpp/types.h | 2 ++
|
8 |
+
1 file changed, 2 insertions(+)
|
9 |
+
|
10 |
+
diff --git a/cpp/types.h b/cpp/types.h
|
11 |
+
index 8c7cc2b..122dc71 100644
|
12 |
+
--- a/cpp/types.h
|
13 |
+
+++ b/cpp/types.h
|
14 |
+
@@ -3,6 +3,8 @@
|
15 |
+
#include "ffi.h"
|
16 |
+
#include "event.h"
|
17 |
+
|
18 |
+
+#include <cstdint>
|
19 |
+
+
|
20 |
+
namespace discord {
|
21 |
+
|
22 |
+
enum class Result {
|
23 |
+
--
|
24 |
+
2.26.2
|
25 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/portfile.cmake
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS https://dl-game-sdk.discordapp.net/2.5.6/discord_game_sdk.zip
|
5 |
+
FILENAME discord_game_sdk.zip
|
6 |
+
SHA512 4c8f72c7bdf92bc969fb86b96ea0d835e01b9bab1a2cc27ae00bdac1b9733a1303ceadfe138c24a7609b76d61d49999a335dd596cf3f335d894702e2aa23406f
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
NO_REMOVE_ONE_LEVEL
|
13 |
+
PATCHES
|
14 |
+
include-cstdint.patch # allows compiling on newer versions of GCC
|
15 |
+
)
|
16 |
+
|
17 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION ${SOURCE_PATH})
|
18 |
+
|
19 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
20 |
+
set(ARCH_FOLDER "x86")
|
21 |
+
else(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
22 |
+
set(ARCH_FOLDER "x86_64")
|
23 |
+
endif()
|
24 |
+
|
25 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
26 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
27 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
28 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.dll.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib" RENAME "discord_game_sdk.lib")
|
29 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.dll.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib" RENAME "discord_game_sdk.lib")
|
30 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
31 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.dylib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib" RENAME "libdiscord_game_sdk.dylib")
|
32 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.dylib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib" RENAME "libdiscord_game_sdk.dylib")
|
33 |
+
elseif(VCPKG_TARGET_IS_LINUX)
|
34 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.so" DESTINATION "${CURRENT_PACKAGES_DIR}/lib" RENAME "libdiscord_game_sdk.so")
|
35 |
+
file(INSTALL "${SOURCE_PATH}/lib/${ARCH_FOLDER}/discord_game_sdk.so" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib" RENAME "libdiscord_game_sdk.so")
|
36 |
+
endif()
|
37 |
+
|
38 |
+
vcpkg_configure_cmake(
|
39 |
+
SOURCE_PATH ${SOURCE_PATH}
|
40 |
+
PREFER_NINJA
|
41 |
+
OPTIONS
|
42 |
+
"-DSDK_LIB_FOLDER=${CURRENT_PACKAGES_DIR}/lib"
|
43 |
+
)
|
44 |
+
vcpkg_install_cmake()
|
45 |
+
|
46 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
47 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
48 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/usage
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package discord-game-sdk does not provides CMake integration:
|
2 |
+
|
3 |
+
find_library(GAME_SDK discord_game_sdk)
|
4 |
+
target_link_libraries(<my_target> PRIVATE ${GAME_SDK})
|
5 |
+
|
6 |
+
find_path(GAME_SDK_INCLUDE discord-game-sdk/discord.h)
|
7 |
+
target_include_directories(<my_target> PRIVATE ${GAME_SDK_INCLUDE})
|
8 |
+
|
9 |
+
The C++ SDK source code is compiled in a static library:
|
10 |
+
|
11 |
+
find_library(CPP_GAME_SDK discord_game_sdk_cpp)
|
12 |
+
target_link_libraries(<my_target> PRIVATE ${CPP_GAME_SDK})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-game-sdk/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "discord-game-sdk",
|
3 |
+
"version": "2.5.6",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "The Discord GameSDK is an easy drop-in SDK to help you manage all the hard things that come with making a game.",
|
6 |
+
"homepage": "https://discord.com/developers/docs/game-sdk/sdk-starter-guide",
|
7 |
+
"supports": "((x64 & (windows | osx | linux)) | (x86 & windows)) & !uwp & !static"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-rpc/disable-downloading.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 5dad9e9..961f02d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -12,6 +12,7 @@ file(GLOB_RECURSE ALL_SOURCE_FILES
|
6 |
+
src/*.cpp src/*.h src/*.c
|
7 |
+
)
|
8 |
+
|
9 |
+
+if(0)
|
10 |
+
# Set CLANG_FORMAT_SUFFIX if you are using custom clang-format, e.g. clang-format-5.0
|
11 |
+
find_program(CLANG_FORMAT_CMD clang-format${CLANG_FORMAT_SUFFIX})
|
12 |
+
|
13 |
+
@@ -43,7 +44,7 @@ if (NOT RAPIDJSONTEST)
|
14 |
+
)
|
15 |
+
file(REMOVE ${RJ_TAR_FILE})
|
16 |
+
endif(NOT RAPIDJSONTEST)
|
17 |
+
-
|
18 |
+
+endif()
|
19 |
+
find_file(RAPIDJSON NAMES rapidjson rapidjson-1.1.0 PATHS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty CMAKE_FIND_ROOT_PATH_BOTH)
|
20 |
+
|
21 |
+
add_library(rapidjson STATIC IMPORTED ${RAPIDJSON})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-rpc/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO discordapp/discord-rpc
|
4 |
+
REF v3.4.0
|
5 |
+
SHA512 ca981b833aff5f21fd629a704deadd8e3fb5423d959ddb75e381313f6462d984c567671b10c8f031905c08d85792ddbe2dddc402ba2613c42de9e80fc68d0d51
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES disable-downloading.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
11 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/thirdparty)
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS
|
17 |
+
-DUSE_STATIC_CRT=${STATIC_CRT}
|
18 |
+
-DBUILD_EXAMPLES=OFF
|
19 |
+
-DRAPIDJSONTEST=TRUE
|
20 |
+
-DRAPIDJSON=${CURRENT_INSTALLED_DIR}
|
21 |
+
)
|
22 |
+
|
23 |
+
if(EXISTS ${SOURCE_PATH}/thirdparty)
|
24 |
+
message(FATAL_ERROR "The source directory should not be modified during the build.")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
vcpkg_install_cmake()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
30 |
+
|
31 |
+
# Copy copright information
|
32 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/discord-rpc" RENAME "copyright")
|
33 |
+
|
34 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discord-rpc/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "discord-rpc",
|
3 |
+
"version-string": "3.4.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Rich Presence allows you to leverage the totally overhauled \"Now Playing\" section in a Discord user's profile to help people play your game together.",
|
6 |
+
"homepage": "https://github.com/discordapp/discord-rpc",
|
7 |
+
"dependencies": [
|
8 |
+
"rapidjson"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discordcoreapi/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_LINUX)
|
2 |
+
message(WARNING "Discordcoreapi only supports g++ 11 on linux.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO RealTimeChris/DiscordCoreAPI
|
8 |
+
REF 6d7c899f0690513855119aa225259dccf17b10f0
|
9 |
+
SHA512 ff42ed8ae799b8f875158842c47fcb5612a5b8861dbfb442c97ab131d952ed59140b2d2431a0d389aefbecb122263f340ff9c8fb863466d0aa91875f8080616e
|
10 |
+
HEAD_REF main
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
|
20 |
+
|
21 |
+
vcpkg_fixup_pkgconfig()
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
26 |
+
|
27 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
29 |
+
endif()
|
30 |
+
|
31 |
+
file(
|
32 |
+
INSTALL "${SOURCE_PATH}/License"
|
33 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
34 |
+
RENAME copyright
|
35 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discordcoreapi/vcpkg.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "discordcoreapi",
|
3 |
+
"version-date": "2022-03-30",
|
4 |
+
"description": "A Discord bot library written in C++ using custom asynchronous coroutines.",
|
5 |
+
"homepage": "https://discordcoreapi.com",
|
6 |
+
"license": "AGPL-3.0-or-later",
|
7 |
+
"supports": "(windows & x64 & !static) | (linux & x64)",
|
8 |
+
"dependencies": [
|
9 |
+
"curl",
|
10 |
+
"ffmpeg",
|
11 |
+
"glib",
|
12 |
+
"libsodium",
|
13 |
+
"nlohmann-json",
|
14 |
+
"openssl",
|
15 |
+
"opus",
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"name": "vcpkg-cmake-config",
|
22 |
+
"host": true
|
23 |
+
}
|
24 |
+
]
|
25 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/blocktags
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
static struct kw blocktags[] = {
|
2 |
+
{ "P", 1, 0 },
|
3 |
+
{ "DL", 2, 0 },
|
4 |
+
{ "H1", 2, 0 },
|
5 |
+
{ "H2", 2, 0 },
|
6 |
+
{ "H3", 2, 0 },
|
7 |
+
{ "H4", 2, 0 },
|
8 |
+
{ "H5", 2, 0 },
|
9 |
+
{ "H6", 2, 0 },
|
10 |
+
{ "HR", 2, 1 },
|
11 |
+
{ "OL", 2, 0 },
|
12 |
+
{ "UL", 2, 0 },
|
13 |
+
{ "BDO", 3, 0 },
|
14 |
+
{ "DFN", 3, 0 },
|
15 |
+
{ "DIV", 3, 0 },
|
16 |
+
{ "MAP", 3, 0 },
|
17 |
+
{ "PRE", 3, 0 },
|
18 |
+
{ "WBR", 3, 0 },
|
19 |
+
{ "XMP", 3, 0 },
|
20 |
+
{ "FORM", 4, 0 },
|
21 |
+
{ "NOBR", 4, 0 },
|
22 |
+
{ "STYLE", 5, 0 },
|
23 |
+
{ "TABLE", 5, 0 },
|
24 |
+
{ "CENTER", 6, 0 },
|
25 |
+
{ "IFRAME", 6, 0 },
|
26 |
+
{ "OBJECT", 6, 0 },
|
27 |
+
{ "SCRIPT", 6, 0 },
|
28 |
+
{ "ADDRESS", 7, 0 },
|
29 |
+
{ "LISTING", 7, 0 },
|
30 |
+
{ "PLAINTEXT", 9, 0 },
|
31 |
+
{ "BLOCKQUOTE", 10, 0 },
|
32 |
+
};
|
33 |
+
|
34 |
+
#define NR_blocktags 30
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/cmake.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
2 |
+
index 3895fdb..a183836 100644
|
3 |
+
--- a/cmake/CMakeLists.txt
|
4 |
+
+++ b/cmake/CMakeLists.txt
|
5 |
+
@@ -182,7 +182,10 @@ if(${PROJECT_NAME}_MAKE_INSTALL)
|
6 |
+
target_include_directories(libmarkdown INTERFACE
|
7 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
8 |
+
)
|
9 |
+
- set(_TARGETS libmarkdown markdown)
|
10 |
+
+ set(_TARGETS libmarkdown)
|
11 |
+
+ if(NOT ${PROJECT_NAME}_ONLY_LIBRARY)
|
12 |
+
+ set(_TARGETS ${_TARGETS} markdown)
|
13 |
+
+ endif()
|
14 |
+
if(${PROJECT_NAME}_INSTALL_SAMPLES)
|
15 |
+
list(APPEND _TARGETS mkd2html makepage)
|
16 |
+
endif()
|
17 |
+
diff --git a/cmake/config.h.in b/cmake/config.h.in
|
18 |
+
index e08220d..e630934 100644
|
19 |
+
--- a/cmake/config.h.in
|
20 |
+
+++ b/cmake/config.h.in
|
21 |
+
@@ -74,4 +74,6 @@
|
22 |
+
|
23 |
+
#define TABSTOP @TABSTOP@
|
24 |
+
|
25 |
+
+#define DESTRUCTOR
|
26 |
+
+
|
27 |
+
#endif /* _CONFIG_D */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/disable-deprecated-warnings.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
2 |
+
index 11fa675..34cc9ed 100644
|
3 |
+
--- a/cmake/CMakeLists.txt
|
4 |
+
+++ b/cmake/CMakeLists.txt
|
5 |
+
@@ -20,6 +20,11 @@ set(${PROJECT_NAME}_INSTALL_SAMPLES OFF CACHE BOOL
|
6 |
+
set(${PROJECT_NAME}_ONLY_LIBRARY OFF CACHE BOOL
|
7 |
+
"Set to ON to only build markdown library (default is OFF)")
|
8 |
+
|
9 |
+
+# MSVC deprecated warnings (C4996,strdup, ...)
|
10 |
+
+if(MSVC)
|
11 |
+
+ add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
|
12 |
+
+endif()
|
13 |
+
+
|
14 |
+
# Check headers
|
15 |
+
include(CheckIncludeFile)
|
16 |
+
check_include_file(libgen.h HAVE_LIBGEN_H)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/generate-blocktags-command.patch
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
|
2 |
+
index a183836..e9deef5 100644
|
3 |
+
--- a/cmake/CMakeLists.txt
|
4 |
+
+++ b/cmake/CMakeLists.txt
|
5 |
+
@@ -113,12 +115,19 @@ configure_file("${_ROOT}/mkdio.h.in"
|
6 |
+
|
7 |
+
include_directories("${_ROOT}")
|
8 |
+
|
9 |
+
-add_executable(mktags
|
10 |
+
- "${_ROOT}/mktags.c")
|
11 |
+
|
12 |
+
-add_custom_command(OUTPUT "${_ROOT}/blocktags"
|
13 |
+
- COMMAND mktags > blocktags
|
14 |
+
- WORKING_DIRECTORY "${_ROOT}")
|
15 |
+
+if(NOT GENERATE_BLOCKTAGS)
|
16 |
+
+ message(STATUS "Not generating blocktags")
|
17 |
+
+else()
|
18 |
+
+ message(STATUS "Using mktags to generate blocktags")
|
19 |
+
+
|
20 |
+
+ add_executable(mktags
|
21 |
+
+ "${_ROOT}/mktags.c")
|
22 |
+
+
|
23 |
+
+ add_custom_command(OUTPUT "${_ROOT}/blocktags"
|
24 |
+
+ COMMAND mktags > blocktags
|
25 |
+
+ WORKING_DIRECTORY "${_ROOT}")
|
26 |
+
+endif()
|
27 |
+
|
28 |
+
add_library(libmarkdown
|
29 |
+
"${_ROOT}/mkdio.c"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# No dynamic link for MSVC
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO Orc/discount
|
7 |
+
REF v2.2.6
|
8 |
+
SHA512 4c5956dea78aacd3a105ddac13f1671d811a5b2b04990cdf8485c36190c8872c4b1b9432a7236f669c34b07564ecd0096632dced54d67de9eaf4f23641417ecc
|
9 |
+
HEAD_REF master
|
10 |
+
PATCHES
|
11 |
+
cmake.patch
|
12 |
+
generate-blocktags-command.patch
|
13 |
+
disable-deprecated-warnings.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
set(GENERATE_BLOCKTAGS ON)
|
17 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "arm" OR VCPKG_TARGET_ARCHITECTURE MATCHES "arm64" OR VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore")
|
18 |
+
set(GENERATE_BLOCKTAGS OFF)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if(NOT GENERATE_BLOCKTAGS)
|
22 |
+
configure_file("${CURRENT_PORT_DIR}/blocktags" "${SOURCE_PATH}/blocktags" COPYONLY)
|
23 |
+
message(STATUS "Copied blocktags")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
vcpkg_configure_cmake(
|
27 |
+
SOURCE_PATH "${SOURCE_PATH}/cmake"
|
28 |
+
PREFER_NINJA
|
29 |
+
DISABLE_PARALLEL_CONFIGURE
|
30 |
+
OPTIONS
|
31 |
+
-DDISCOUNT_ONLY_LIBRARY=ON
|
32 |
+
-DGENERATE_BLOCKTAGS=${GENERATE_BLOCKTAGS}
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_install_cmake()
|
36 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/discount)
|
37 |
+
vcpkg_copy_pdbs()
|
38 |
+
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
40 |
+
|
41 |
+
# Handle copyright
|
42 |
+
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/discount" RENAME copyright)
|
43 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discount/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "discount",
|
3 |
+
"version-string": "2.2.6",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "DISCOUNT is a implementation of John Gruber & Aaron Swartz's Markdown markup language.",
|
6 |
+
"homepage": "https://github.com/Orc/discount"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discreture/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mraggi/discreture
|
4 |
+
REF eeeec31c814e6a9a8506a6bfd6a5b35704350605
|
5 |
+
SHA512 de1c7d74d337605fd9b9d1f3ee6637b4afd179d495de243b21168b0a4376b83c0519b4cced985af694850755ab1e3caca5087b3ca0cd6ccb3b73b10bd6b25b49
|
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 |
+
file(REMOVE_RECURSE
|
17 |
+
${CURRENT_PACKAGES_DIR}/debug)
|
18 |
+
|
19 |
+
# Handle copyright
|
20 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
21 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discreture/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package discreture is header only and can be used from CMake via:
|
2 |
+
|
3 |
+
find_path(DISCRETURE_INCLUDE_DIRS "discreture.hpp")
|
4 |
+
target_include_directories(main PRIVATE ${DISCRETURE_INCLUDE_DIRS})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/discreture/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "discreture",
|
3 |
+
"version-string": "2020-01-29",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A modern C++ library for efficiently and easily iterating through common combinatorial objects, such as combinations, permutations, partitions and more.",
|
6 |
+
"homepage": "https://github.com/mraggi/discreture",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-container",
|
9 |
+
"boost-iterator"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/CMakeLists.txt
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
project(distorm C)
|
3 |
+
|
4 |
+
set(CMAKE_C_STANDARD 99)
|
5 |
+
|
6 |
+
if(MSVC)
|
7 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
|
8 |
+
endif()
|
9 |
+
|
10 |
+
include_directories(include src)
|
11 |
+
|
12 |
+
add_library(distorm
|
13 |
+
src/decoder.c
|
14 |
+
src/distorm.c
|
15 |
+
src/instructions.c
|
16 |
+
src/insts.c
|
17 |
+
src/mnemonics.c
|
18 |
+
src/operands.c
|
19 |
+
src/prefix.c
|
20 |
+
src/textdefs.c
|
21 |
+
)
|
22 |
+
|
23 |
+
if(BUILD_SHARED_LIBS)
|
24 |
+
target_compile_definitions(distorm PRIVATE -DDISTORM_DYNAMIC=1 -DSUPPORT_64BIT_OFFSET=1)
|
25 |
+
else()
|
26 |
+
target_compile_definitions(distorm PRIVATE -DDISTORM_STATIC=1 -DSUPPORT_64BIT_OFFSET=1)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
install(
|
30 |
+
TARGETS distorm
|
31 |
+
RUNTIME DESTINATION bin
|
32 |
+
LIBRARY DESTINATION lib
|
33 |
+
ARCHIVE DESTINATION lib
|
34 |
+
)
|
35 |
+
|
36 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
37 |
+
install(FILES include/distorm.h include/mnemonics.h DESTINATION include)
|
38 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/fix-arm-builds.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/src/textdefs.c
|
2 |
+
+++ b/src/textdefs.c
|
3 |
+
@@ -42,7 +42,8 @@
|
4 |
+
s->length = len * 2;
|
5 |
+
s->p[len * 2] = 0;
|
6 |
+
do {
|
7 |
+
- RSHORT(&s->p[i]) = RSHORT(&TextBTable[(*buf) * 2]);
|
8 |
+
+ s->p[i] = TextBTable[(*buf) * 2];
|
9 |
+
+ s->p[i + 1] = TextBTable[(*buf) * 2 + 1];
|
10 |
+
buf++;
|
11 |
+
i += 2;
|
12 |
+
} while (i < len * 2);
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO gdabah/distorm
|
4 |
+
REF 3.5.2b
|
5 |
+
SHA512 8AAD0C51E8D9DFAEAA069A3D4FADE4BDF87CCE464C85898B6B4888FA51A9BB6EC1221FAF32ACF59EBD047CCEB9A535B2FF93D196FD14FA834D8ECE5685417A55
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-arm-builds.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS_DEBUG
|
16 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/distorm/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "distorm",
|
3 |
+
"version-string": "3.5.2b",
|
4 |
+
"description": "Powerful Disassembler Library For x86/AMD64",
|
5 |
+
"dependencies": [
|
6 |
+
{
|
7 |
+
"name": "vcpkg-cmake",
|
8 |
+
"host": true
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake-config",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlfcn-win32/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(SOURCE_VERSION 1.1.1)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO dlfcn-win32/dlfcn-win32
|
6 |
+
REF v${SOURCE_VERSION}
|
7 |
+
SHA512 557729511546f574487f8c7de437c53bcf5ae11640349c338ead9965a4ac0f937de647839b63c821003be54dca5bcbf28f2899d2348acf7dfef31e487da1cba1
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
file(READ "${CURRENT_PACKAGES_DIR}/debug/share/dlfcn-win32/dlfcn-win32-targets-debug.cmake" dlfcn-win32_DEBUG_MODULE)
|
18 |
+
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" dlfcn-win32_DEBUG_MODULE "${dlfcn-win32_DEBUG_MODULE}")
|
19 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/dlfcn-win32/dlfcn-win32-targets-debug.cmake" "${dlfcn-win32_DEBUG_MODULE}")
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
27 |
+
|
28 |
+
|
29 |
+
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlfcn-win32/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dlfcn-win32",
|
3 |
+
"version": "1.1.1",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "dlfcn-win32 is an implementation of dlfcn for Windows.",
|
6 |
+
"homepage": "https://github.com/dlfcn-win32/dlfcn-win32",
|
7 |
+
"supports": "windows & !uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/find_blas.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/dlib/cmake_utils/find_blas.cmake b/dlib/cmake_utils/find_blas.cmake
|
2 |
+
index 806b938..507f871 100644
|
3 |
+
--- a/dlib/cmake_utils/find_blas.cmake
|
4 |
+
+++ b/dlib/cmake_utils/find_blas.cmake
|
5 |
+
@@ -438,7 +438,7 @@ endif()
|
6 |
+
# If using lapack, determine whether to mangle functions
|
7 |
+
if (lapack_found)
|
8 |
+
include(CheckFortranFunctionExists)
|
9 |
+
- set(CMAKE_REQUIRED_LIBRARIES ${lapack_libraries})
|
10 |
+
+ set(CMAKE_REQUIRED_LIBRARIES ${lapack_libraries} ${blas_libraries})
|
11 |
+
|
12 |
+
check_function_exists("sgesv" LAPACK_FOUND_C_UNMANGLED)
|
13 |
+
check_function_exists("sgesv_" LAPACK_FOUND_C_MANGLED)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/fix-sqlite3-fftw-linkage.patch
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt
|
2 |
+
--- a/dlib/CMakeLists.txt
|
3 |
+
+++ b/dlib/CMakeLists.txt
|
4 |
+
@@ -747,32 +750,15 @@
|
5 |
+
|
6 |
+
|
7 |
+
if (DLIB_LINK_WITH_SQLITE3)
|
8 |
+
- find_library(sqlite sqlite3)
|
9 |
+
- # make sure sqlite3.h is in the include path
|
10 |
+
- find_path(sqlite_path sqlite3.h)
|
11 |
+
- if (sqlite AND sqlite_path)
|
12 |
+
- set(dlib_needed_includes ${dlib_needed_includes} ${sqlite_path})
|
13 |
+
- set(dlib_needed_libraries ${dlib_needed_libraries} ${sqlite} )
|
14 |
+
- else()
|
15 |
+
- set(DLIB_LINK_WITH_SQLITE3 OFF CACHE STRING ${DLIB_LINK_WITH_SQLITE3_STR} FORCE )
|
16 |
+
- endif()
|
17 |
+
- mark_as_advanced(sqlite sqlite_path)
|
18 |
+
+ find_package(unofficial-sqlite3 CONFIG)
|
19 |
+
+ set(dlib_needed_libraries ${dlib_needed_libraries} unofficial::sqlite3::sqlite3)
|
20 |
+
endif()
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
if (DLIB_USE_FFTW)
|
25 |
+
- find_library(fftw fftw3)
|
26 |
+
- # make sure fftw3.h is in the include path
|
27 |
+
- find_path(fftw_path fftw3.h)
|
28 |
+
- if (fftw AND fftw_path)
|
29 |
+
- set(dlib_needed_includes ${dlib_needed_includes} ${fftw_path})
|
30 |
+
- set(dlib_needed_libraries ${dlib_needed_libraries} ${fftw} )
|
31 |
+
- else()
|
32 |
+
- set(DLIB_USE_FFTW OFF CACHE STRING ${DLIB_USE_FFTW_STR} FORCE )
|
33 |
+
- toggle_preprocessor_switch(DLIB_USE_FFTW)
|
34 |
+
- endif()
|
35 |
+
- mark_as_advanced(fftw fftw_path)
|
36 |
+
+ find_package(FFTW3 CONFIG)
|
37 |
+
+ set(dlib_needed_libraries ${dlib_needed_libraries} FFTW3::fftw3)
|
38 |
+
endif()
|
39 |
+
|
40 |
+
|
41 |
+
--- a/dlib/cmake_utils/dlibConfig.cmake.in
|
42 |
+
+++ b/dlib/cmake_utils/dlibConfig.cmake.in
|
43 |
+
@@ -28,6 +28,14 @@
|
44 |
+
include("${dlib_CMAKE_DIR}/dlib.cmake")
|
45 |
+
endif()
|
46 |
+
|
47 |
+
+include(CMakeFindDependencyMacro)
|
48 |
+
+if("@DLIB_USE_FFTW@")
|
49 |
+
+ find_dependency(FFTW3 CONFIG)
|
50 |
+
+endif()
|
51 |
+
+if("@DLIB_LINK_WITH_SQLITE3@")
|
52 |
+
+ find_dependency(unofficial-sqlite3 CONFIG)
|
53 |
+
+endif()
|
54 |
+
+
|
55 |
+
set(dlib_LIBRARIES dlib::dlib)
|
56 |
+
set(dlib_LIBS dlib::dlib)
|
57 |
+
set(dlib_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@" "@dlib_needed_includes@")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/force_finding_packages.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/dlib/cmake_utils/find_libjpeg.cmake b/dlib/cmake_utils/find_libjpeg.cmake
|
2 |
+
index 3b9e656..d741f31 100644
|
3 |
+
--- a/dlib/cmake_utils/find_libjpeg.cmake
|
4 |
+
+++ b/dlib/cmake_utils/find_libjpeg.cmake
|
5 |
+
@@ -14,7 +14,7 @@ if (DEFINED JPEG_FOUND)
|
6 |
+
return()
|
7 |
+
endif()
|
8 |
+
|
9 |
+
-find_package(JPEG QUIET)
|
10 |
+
+find_package(JPEG REQUIRED)
|
11 |
+
|
12 |
+
if(JPEG_FOUND)
|
13 |
+
set(JPEG_TEST_CMAKE_FLAGS
|
14 |
+
@@ -31,7 +31,7 @@ if(JPEG_FOUND)
|
15 |
+
message (STATUS "Found system copy of libjpeg: ${JPEG_LIBRARY}")
|
16 |
+
if(NOT test_for_libjpeg_worked)
|
17 |
+
set(JPEG_FOUND 0)
|
18 |
+
- message (STATUS "System copy of libjpeg is broken or too old. Will build our own libjpeg and use that instead.")
|
19 |
+
+ message (FATAL_ERROR "System copy of libjpeg is broken or too old. Will build our own libjpeg and use that instead.")
|
20 |
+
endif()
|
21 |
+
endif()
|
22 |
+
|
23 |
+
diff --git a/dlib/cmake_utils/find_libpng.cmake b/dlib/cmake_utils/find_libpng.cmake
|
24 |
+
index 1b35604..489a4c8 100644
|
25 |
+
--- a/dlib/cmake_utils/find_libpng.cmake
|
26 |
+
+++ b/dlib/cmake_utils/find_libpng.cmake
|
27 |
+
@@ -14,7 +14,7 @@ if (DEFINED PNG_FOUND)
|
28 |
+
return()
|
29 |
+
endif()
|
30 |
+
|
31 |
+
-find_package(PNG QUIET)
|
32 |
+
+find_package(PNG REQUIRED)
|
33 |
+
|
34 |
+
if(PNG_FOUND)
|
35 |
+
set(PNG_TEST_CMAKE_FLAGS
|
36 |
+
@@ -31,7 +31,7 @@ if(PNG_FOUND)
|
37 |
+
message (STATUS "Found system copy of libpng: ${PNG_LIBRARIES}")
|
38 |
+
if(NOT test_for_libpng_worked)
|
39 |
+
set(PNG_FOUND 0)
|
40 |
+
- message (STATUS "System copy of libpng is broken. Will build our own libpng and use that instead.")
|
41 |
+
+ message (FATAL_ERROR "System copy of libpng is broken. Will build our own libpng and use that instead.")
|
42 |
+
endif()
|
43 |
+
endif()
|
44 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/portfile.cmake
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO davisking/dlib
|
6 |
+
REF 074ab8bdbadbee1afb95653c3ce46867ed32dfa1 #v19.23
|
7 |
+
SHA512 da7942cf006566bafdd7079cc31ac445cd66e300714e522c53dfcf6b1a811de4cf2188c9a75c978388b09554bccc4164d40afc907bf9e6f75a17f8ca10ee0355
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-sqlite3-fftw-linkage.patch
|
11 |
+
force_finding_packages.patch
|
12 |
+
find_blas.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/dlib/external/libjpeg")
|
16 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/dlib/external/libpng")
|
17 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/dlib/external/zlib")
|
18 |
+
|
19 |
+
# This fixes static builds; dlib doesn't pull in the needed transitive dependencies
|
20 |
+
file(READ "${SOURCE_PATH}/dlib/CMakeLists.txt" DLIB_CMAKE)
|
21 |
+
string(REPLACE "PNG_LIBRARY" "PNG_LIBRARIES" DLIB_CMAKE "${DLIB_CMAKE}")
|
22 |
+
file(WRITE "${SOURCE_PATH}/dlib/CMakeLists.txt" "${DLIB_CMAKE}")
|
23 |
+
|
24 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
25 |
+
FEATURES
|
26 |
+
"sqlite3" DLIB_LINK_WITH_SQLITE3
|
27 |
+
"fftw3" DLIB_USE_FFTW
|
28 |
+
"cuda" DLIB_USE_CUDA
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_cmake_configure(
|
32 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
33 |
+
OPTIONS
|
34 |
+
${FEATURE_OPTIONS}
|
35 |
+
-DDLIB_PNG_SUPPORT=ON
|
36 |
+
-DDLIB_JPEG_SUPPORT=ON
|
37 |
+
-DDLIB_USE_BLAS=ON
|
38 |
+
-DDLIB_USE_LAPACK=ON
|
39 |
+
-DDLIB_GIF_SUPPORT=OFF
|
40 |
+
-DDLIB_USE_MKL_FFT=OFF
|
41 |
+
-DCMAKE_DEBUG_POSTFIX=d
|
42 |
+
OPTIONS_DEBUG
|
43 |
+
-DDLIB_ENABLE_ASSERTS=ON
|
44 |
+
#-DDLIB_ENABLE_STACK_TRACE=ON
|
45 |
+
)
|
46 |
+
|
47 |
+
vcpkg_cmake_install()
|
48 |
+
|
49 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/dlib)
|
50 |
+
|
51 |
+
vcpkg_fixup_pkgconfig()
|
52 |
+
|
53 |
+
# There is no way to suppress installation of the headers and resource files in debug build.
|
54 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
55 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
56 |
+
|
57 |
+
# Remove other files not required in package
|
58 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/all")
|
59 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/appveyor")
|
60 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/test")
|
61 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/travis")
|
62 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_neon")
|
63 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_cudnn")
|
64 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_cuda")
|
65 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_cpp11")
|
66 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_avx")
|
67 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_sse4")
|
68 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_libjpeg")
|
69 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/cmake_utils/test_for_libpng")
|
70 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/dlib/external/libpng/arm")
|
71 |
+
|
72 |
+
# Dlib encodes debug/release in its config.h. Patch it to respond to the NDEBUG macro instead.
|
73 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dlib/config.h" "/* #undef ENABLE_ASSERTS */" "#if defined(_DEBUG)\n#define ENABLE_ASSERTS\n#endif")
|
74 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dlib/config.h" "#define DLIB_DISABLE_ASSERTS" "#if !defined(_DEBUG)\n#define DLIB_DISABLE_ASSERTS\n#endif")
|
75 |
+
|
76 |
+
# Handle copyright
|
77 |
+
file(INSTALL "${SOURCE_PATH}/dlib/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
78 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dlib/vcpkg.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dlib",
|
3 |
+
"version": "19.23",
|
4 |
+
"description": "Modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++",
|
5 |
+
"homepage": "https://github.com/davisking/dlib",
|
6 |
+
"license": "BSL-1.0",
|
7 |
+
"dependencies": [
|
8 |
+
"blas",
|
9 |
+
"lapack",
|
10 |
+
"libjpeg-turbo",
|
11 |
+
"libpng",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"default-features": [
|
22 |
+
"fftw3",
|
23 |
+
"sqlite3"
|
24 |
+
],
|
25 |
+
"features": {
|
26 |
+
"cuda": {
|
27 |
+
"description": "CUDA support for dlib",
|
28 |
+
"dependencies": [
|
29 |
+
"cuda",
|
30 |
+
"cudnn"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"fftw3": {
|
34 |
+
"description": "fftw3 support for dlib",
|
35 |
+
"dependencies": [
|
36 |
+
"fftw3"
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"sqlite3": {
|
40 |
+
"description": "sqlite3 support for dlib",
|
41 |
+
"dependencies": [
|
42 |
+
"sqlite3"
|
43 |
+
]
|
44 |
+
}
|
45 |
+
}
|
46 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dmlc/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO dmlc/dmlc-core
|
6 |
+
REF d3fd7c5e9b9c280d3081ada3fb62705547c00bf1
|
7 |
+
SHA512 6887d52ddd00949866c27bea3c860abb8a7ecf61feeac79d67d260635e9c3e490b6f0538cbc0ccc1f03e90ab4094bfc0fcb938adb3fb5afe9fea813d47cc7430
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
openmp ENABLE_OPENMP
|
14 |
+
)
|
15 |
+
|
16 |
+
if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
17 |
+
set(DMLC_FORCE_SHARED_CRT ON)
|
18 |
+
else()
|
19 |
+
set(DMLC_FORCE_SHARED_CRT OFF)
|
20 |
+
endif()
|
21 |
+
|
22 |
+
vcpkg_configure_cmake(
|
23 |
+
SOURCE_PATH ${SOURCE_PATH}
|
24 |
+
PREFER_NINJA
|
25 |
+
DISABLE_PARALLEL_CONFIGURE
|
26 |
+
OPTIONS
|
27 |
+
-DDMLC_FORCE_SHARED_CRT=${DMLC_FORCE_SHARED_CRT}
|
28 |
+
-DUSE_OPENMP=${ENABLE_OPENMP}
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_install_cmake()
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
34 |
+
|
35 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/dmlc)
|
36 |
+
|
37 |
+
# Handle copyright
|
38 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dmlc/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dmlc",
|
3 |
+
"version-date": "2019-08-12",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "DMLC-Core is the backbone library to support all DMLC projects, offers the bricks to build efficient and scalable distributed machine learning libraries.",
|
6 |
+
"homepage": "https://github.com/dmlc/dmlc-core",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"features": {
|
9 |
+
"openmp": {
|
10 |
+
"description": "Build with openmp"
|
11 |
+
}
|
12 |
+
}
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/docopt/001-fix-unresolved-symbol.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/docopt.h b/docopt.h
|
2 |
+
index 4c40741..06a04f8 100644
|
3 |
+
--- a/docopt.h
|
4 |
+
+++ b/docopt.h
|
5 |
+
@@ -85,6 +85,9 @@ namespace docopt {
|
6 |
+
bool help = true,
|
7 |
+
std::string const& version = {},
|
8 |
+
bool options_first = false) noexcept;
|
9 |
+
+
|
10 |
+
+ /// Write out the contents to the ostream
|
11 |
+
+ std::ostream DOCOPT_API & operator<<(std::ostream&, value const&);
|
12 |
+
}
|
13 |
+
|
14 |
+
#ifdef DOCOPT_HEADER_ONLY
|
15 |
+
diff --git a/docopt_value.h b/docopt_value.h
|
16 |
+
index a923219..7f0d6d6 100644
|
17 |
+
--- a/docopt_value.h
|
18 |
+
+++ b/docopt_value.h
|
19 |
+
@@ -102,9 +102,6 @@ namespace docopt {
|
20 |
+
Kind kind = Kind::Empty;
|
21 |
+
Variant variant {};
|
22 |
+
};
|
23 |
+
-
|
24 |
+
- /// Write out the contents to the ostream
|
25 |
+
- std::ostream& operator<<(std::ostream&, value const&);
|
26 |
+
}
|
27 |
+
|
28 |
+
namespace std {
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/docopt/002-fix-install-path.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 1aba5ae..5407e4a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -113,7 +113,10 @@ endif()
|
6 |
+
set(export_name "docopt-targets")
|
7 |
+
|
8 |
+
# Runtime package
|
9 |
+
-install(TARGETS docopt EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
10 |
+
+install(TARGETS docopt EXPORT ${export_name}
|
11 |
+
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
12 |
+
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
13 |
+
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
14 |
+
|
15 |
+
# Development package
|
16 |
+
install(TARGETS docopt_s EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/docopt/install-one-flavor.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index bff867c..cc7d706 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -113,13 +113,15 @@ endif()
|
6 |
+
set(export_name "docopt-targets")
|
7 |
+
|
8 |
+
# Runtime package
|
9 |
+
+if(BUILD_SHARED_LIBS)
|
10 |
+
install(TARGETS docopt EXPORT ${export_name}
|
11 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
12 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
13 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
14 |
+
-
|
15 |
+
+else()
|
16 |
+
# Development package
|
17 |
+
install(TARGETS docopt_s EXPORT ${export_name} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
18 |
+
+endif()
|
19 |
+
install(FILES ${docopt_HEADERS} DESTINATION include/docopt)
|
20 |
+
|
21 |
+
# CMake Package
|