Spaces:
Sleeping
Sleeping
258ef4b6ef4b76577cfeb1ab301ccbcdd1f34016340ccd02676c5a488ec62dd6
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraqm/FindFribidi.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraqm/portfile.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraqm/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/findlibraw_debug_fix.patch +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/fix-install.patch +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/lcms2_debug_fix.patch +66 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/portfile.cmake +62 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/usage +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/vcpkg-cmake-wrapper.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/lz4.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/portfile.cmake +72 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/vcpkg-cmake-wrapper.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/vcpkg.json +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/0001-enable-ocspcheck-on-msvc.patch +254 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/0002-suppress-msvc-warnings.patch +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/portfile.cmake +70 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/CMakeLists.txt +149 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/config.h.linux +89 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsync/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsync/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/CMakeLists.txt +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/dh.patch +136 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/fix_strncasecmp.patch +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/handshake.patch +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/hashswf.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/hide_netstackdump.patch +58 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/librtmp.def +109 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/fix-makefiles.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/fix-pc-file.patch +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/geos-config.patch +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/portfile.cmake +76 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/rttopo_config.h.in +168 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsamplerate/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsamplerate/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsass/portfile.cmake +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsass/remove_compiler_flags.patch +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsass/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbml/portfile.cmake +88 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbml/vcpkg.json +82 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbsms/portfile.cmake +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbsms/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsecret/portfile.cmake +28 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraqm/FindFribidi.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_path(FRIBIDI_INCLUDE_DIR
|
2 |
+
NAMES fribidi/fribidi.h)
|
3 |
+
|
4 |
+
set(FRIBIDI_INCLUDE_DIR "${FRIBIDI_INCLUDE_DIR}/fribidi")
|
5 |
+
find_library(FRIBIDI_LIBRARY NAMES fribidi)
|
6 |
+
|
7 |
+
include(FindPackageHandleStandardArgs)
|
8 |
+
find_package_handle_standard_args(FriBidi
|
9 |
+
FOUND_VAR FRIBIDI_FOUND
|
10 |
+
REQUIRED_VARS FRIBIDI_LIBRARY FRIBIDI_INCLUDE_DIR
|
11 |
+
VERSION_VAR FRIBIDI_VERSION_STRING
|
12 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraqm/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
set(RAQM_VERSION_MAJOR 0)
|
4 |
+
set(RAQM_VERSION_MINOR 9)
|
5 |
+
set(RAQM_VERSION_MICRO 0)
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO HOST-Oman/libraqm
|
10 |
+
REF v${RAQM_VERSION_MAJOR}.${RAQM_VERSION_MINOR}.${RAQM_VERSION_MICRO}
|
11 |
+
SHA512 a45c442a087c806143e5a96878e1d84a31afb7b682d71931fcb014c8d56b974d5a0d6186b163067d44a15952b3c549763f84354ed799f20473795f15d719f060
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
file(COPY ${CURRENT_PORT_DIR}/FindFribidi.cmake DESTINATION ${SOURCE_PATH})
|
16 |
+
file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH ${SOURCE_PATH}
|
20 |
+
OPTIONS
|
21 |
+
-DCURRENT_PACKAGES_DIR=${CURRENT_PACKAGES_DIR}
|
22 |
+
-DRAQM_VERSION_MAJOR=${RAQM_VERSION_MAJOR}
|
23 |
+
-DRAQM_VERSION_MINOR=${RAQM_VERSION_MINOR}
|
24 |
+
-DRAQM_VERSION_MICRO=${RAQM_VERSION_MICRO}
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
# Handle copyright
|
32 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libraqm RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraqm/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libraqm",
|
3 |
+
"version-string": "0.9.0",
|
4 |
+
"description": "A library for complex text layout",
|
5 |
+
"dependencies": [
|
6 |
+
"freetype",
|
7 |
+
"fribidi",
|
8 |
+
"harfbuzz",
|
9 |
+
"vcpkg-cmake"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/findlibraw_debug_fix.patch
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/cmake/modules/FindLibRaw.cmake 2016-11-02 07:09:50.000000000 +0100
|
2 |
+
+++ b/cmake/modules/FindLibRaw.cmake 2019-06-03 22:05:28.759307500 +0200
|
3 |
+
@@ -31,18 +31,36 @@
|
4 |
+
PATH_SUFFIXES libraw
|
5 |
+
)
|
6 |
+
|
7 |
+
-FIND_LIBRARY(LibRaw_LIBRARIES NAMES raw
|
8 |
+
+FIND_LIBRARY(LibRaw_LIBRARY_RELEASE NAMES raw
|
9 |
+
HINTS
|
10 |
+
${PC_LIBRAW_LIBDIR}
|
11 |
+
${PC_LIBRAW_LIBRARY_DIRS}
|
12 |
+
)
|
13 |
+
|
14 |
+
-FIND_LIBRARY(LibRaw_r_LIBRARIES NAMES raw_r
|
15 |
+
+FIND_LIBRARY(LibRaw_LIBRARY_DEBUG NAMES rawd
|
16 |
+
+ HINTS
|
17 |
+
+ ${PC_LIBRAW_LIBDIR}
|
18 |
+
+ ${PC_LIBRAW_LIBRARY_DIRS}
|
19 |
+
+ )
|
20 |
+
+
|
21 |
+
+INCLUDE(SelectLibraryConfigurations)
|
22 |
+
+
|
23 |
+
+select_library_configurations(LibRaw)
|
24 |
+
+
|
25 |
+
+FIND_LIBRARY(LibRaw_r_LIBRARY_RELEASE NAMES raw_r
|
26 |
+
HINTS
|
27 |
+
${PC_LIBRAW_R_LIBDIR}
|
28 |
+
${PC_LIBRAW_R_LIBRARY_DIRS}
|
29 |
+
)
|
30 |
+
|
31 |
+
+FIND_LIBRARY(LibRaw_r_LIBRARY_DEBUG NAMES raw_rd
|
32 |
+
+ HINTS
|
33 |
+
+ ${PC_LIBRAW_R_LIBDIR}
|
34 |
+
+ ${PC_LIBRAW_R_LIBRARY_DIRS}
|
35 |
+
+ )
|
36 |
+
+
|
37 |
+
+select_library_configurations(LibRaw_r)
|
38 |
+
+
|
39 |
+
IF(LibRaw_INCLUDE_DIR)
|
40 |
+
FILE(READ ${LibRaw_INCLUDE_DIR}/libraw_version.h _libraw_version_content)
|
41 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/fix-install.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 47f3869..136549b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -544,7 +544,7 @@ SET_TARGET_PROPERTIES(raw_r PROPERTIES OUTPUT_NAME "raw_r")
|
6 |
+
# -- Files to install -------------------------------------------------------------------------------------
|
7 |
+
|
8 |
+
# Configure and install data file for packaging.
|
9 |
+
-IF(NOT WIN32)
|
10 |
+
+IF(1)
|
11 |
+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/data/libraw.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libraw.pc @ONLY)
|
12 |
+
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libraw.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig)
|
13 |
+
|
14 |
+
@@ -570,8 +570,8 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libraw/libraw.h
|
15 |
+
# Install Shared binary files.
|
16 |
+
INSTALL(TARGETS raw
|
17 |
+
RUNTIME DESTINATION bin
|
18 |
+
- LIBRARY DESTINATION lib${LIB_SUFFIX}
|
19 |
+
- ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
20 |
+
+ LIBRARY DESTINATION lib${LIB_SUFFIX}/manual-link
|
21 |
+
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}/manual-link
|
22 |
+
)
|
23 |
+
|
24 |
+
INSTALL(TARGETS raw_r
|
25 |
+
diff --git a/cmake/data/libraw.pc.cmake b/cmake/data/libraw.pc.cmake
|
26 |
+
index aede5f2..ffeefc2 100644
|
27 |
+
--- a/cmake/data/libraw.pc.cmake
|
28 |
+
+++ b/cmake/data/libraw.pc.cmake
|
29 |
+
@@ -1,6 +1,6 @@
|
30 |
+
prefix=@CMAKE_INSTALL_PREFIX@
|
31 |
+
exec_prefix=${prefix}
|
32 |
+
-libdir=${prefix}/lib@LIB_SUFFIX@
|
33 |
+
+libdir=${prefix}/lib@LIB_SUFFIX@/manual-link
|
34 |
+
includedir=${prefix}/include/libraw
|
35 |
+
|
36 |
+
Name: @PROJECT_NAME@
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/lcms2_debug_fix.patch
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/cmake/modules/FindLCMS2.cmake 2016-11-02 07:09:50.000000000 +0100
|
2 |
+
+++ b/cmake/modules/FindLCMS2.cmake 2018-06-02 00:43:27.309100600 +0200
|
3 |
+
@@ -13,7 +13,6 @@
|
4 |
+
# Redistribution and use is allowed according to the terms of the BSD license.
|
5 |
+
# For details see the accompanying LICENSE file.
|
6 |
+
|
7 |
+
-
|
8 |
+
# use pkg-config to get the directories and then use these values
|
9 |
+
# in the FIND_PATH() and FIND_LIBRARY() calls
|
10 |
+
if(NOT WIN32)
|
11 |
+
@@ -29,18 +28,30 @@
|
12 |
+
PATH_SUFFIXES lcms2 liblcms2
|
13 |
+
)
|
14 |
+
|
15 |
+
-find_library(LCMS2_LIBRARIES NAMES lcms2 liblcms2 lcms-2 liblcms-2
|
16 |
+
+include(SelectLibraryConfigurations)
|
17 |
+
+
|
18 |
+
+find_library(LCMS2_LIBRARY_RELEASE NAMES lcms2 liblcms2 lcms-2 liblcms-2
|
19 |
+
+ PATHS
|
20 |
+
+ ${PC_LCMS2_LIBDIR}
|
21 |
+
+ ${PC_LCMS2_LIBRARY_DIRS}
|
22 |
+
+ PATH_SUFFIXES lcms2
|
23 |
+
+)
|
24 |
+
+
|
25 |
+
+find_library(LCMS2_LIBRARY_DEBUG NAMES lcms2d liblcms2d lcms-2d liblcms-2d
|
26 |
+
PATHS
|
27 |
+
${PC_LCMS2_LIBDIR}
|
28 |
+
${PC_LCMS2_LIBRARY_DIRS}
|
29 |
+
PATH_SUFFIXES lcms2
|
30 |
+
)
|
31 |
+
|
32 |
+
-if(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARIES)
|
33 |
+
+select_library_configurations(LCMS2)
|
34 |
+
+
|
35 |
+
+
|
36 |
+
+if(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARY)
|
37 |
+
set(LCMS2_FOUND TRUE)
|
38 |
+
-else(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARIES)
|
39 |
+
+else(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARY)
|
40 |
+
set(LCMS2_FOUND FALSE)
|
41 |
+
-endif(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARIES)
|
42 |
+
+endif(LCMS2_INCLUDE_DIR AND LCMS2_LIBRARY)
|
43 |
+
|
44 |
+
if(LCMS2_FOUND)
|
45 |
+
file(READ ${LCMS2_INCLUDE_DIR}/lcms2.h LCMS2_VERSION_CONTENT)
|
46 |
+
@@ -50,11 +61,11 @@
|
47 |
+
if(NOT LCMS2_FIND_QUIETLY)
|
48 |
+
string(SUBSTRING ${LCMS2_VERSION} 0 1 LCMS2_MAJOR_VERSION)
|
49 |
+
string(SUBSTRING ${LCMS2_VERSION} 1 2 LCMS2_MINOR_VERSION)
|
50 |
+
- message(STATUS "Found lcms version ${LCMS2_MAJOR_VERSION}.${LCMS2_MINOR_VERSION}, ${LCMS2_LIBRARIES}")
|
51 |
+
+ message(STATUS "Found lcms version ${LCMS2_MAJOR_VERSION}.${LCMS2_MINOR_VERSION}, ${LCMS2_LIBRARY}")
|
52 |
+
endif(NOT LCMS2_FIND_QUIETLY)
|
53 |
+
else(LCMS2_VERSION_MATCH)
|
54 |
+
if(NOT LCMS2_FIND_QUIETLY)
|
55 |
+
- message(STATUS "Found lcms2 but failed to find version ${LCMS2_LIBRARIES}")
|
56 |
+
+ message(STATUS "Found lcms2 but failed to find version ${LCMS2_LIBRARY}")
|
57 |
+
endif(NOT LCMS2_FIND_QUIETLY)
|
58 |
+
set(LCMS2_VERSION NOTFOUND)
|
59 |
+
endif(LCMS2_VERSION_MATCH)
|
60 |
+
@@ -68,5 +79,5 @@
|
61 |
+
endif(NOT LCMS2_FIND_QUIETLY)
|
62 |
+
endif(LCMS2_FOUND)
|
63 |
+
|
64 |
+
-mark_as_advanced(LCMS2_INCLUDE_DIR LCMS2_LIBRARIES LCMS2_VERSION)
|
65 |
+
+mark_as_advanced(LCMS2_INCLUDE_DIR LCMS2_LIBRARY LCMS2_VERSION)
|
66 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/portfile.cmake
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO LibRaw/LibRaw
|
4 |
+
REF d4f05dd1b9b2d44c8f7e82043cbad3c724db2416
|
5 |
+
SHA512 5794521f535163afd7815ad005295301c5e0e2f8b2f34ef0a911d9dd1572c1f456b292777548203f9767957a55782b5bc9041c033190d25d1e9b4240d7df32b9
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH LIBRAW_CMAKE_SOURCE_PATH
|
11 |
+
REPO LibRaw/LibRaw-cmake
|
12 |
+
REF a71f3b83ee3dccd7be32f9a2f410df4d9bdbde0a
|
13 |
+
SHA512 607e6f76bcb57534da4f0c864b7a421f1ed49244468b1b52abe77f65aa599cae80715520b3a951294321b812deffd4f163757c9949f337571aa54f414ccc58a5
|
14 |
+
HEAD_REF master
|
15 |
+
PATCHES
|
16 |
+
findlibraw_debug_fix.patch
|
17 |
+
lcms2_debug_fix.patch
|
18 |
+
# Move the non-thread-safe library to manual-link. This is unfortunately needed
|
19 |
+
# because otherwise libraries that build on top of libraw have to choose.
|
20 |
+
fix-install.patch
|
21 |
+
)
|
22 |
+
|
23 |
+
file(COPY "${LIBRAW_CMAKE_SOURCE_PATH}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
24 |
+
file(COPY "${LIBRAW_CMAKE_SOURCE_PATH}/cmake" DESTINATION "${SOURCE_PATH}")
|
25 |
+
|
26 |
+
|
27 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
28 |
+
FEATURES
|
29 |
+
openmp ENABLE_OPENMP
|
30 |
+
)
|
31 |
+
|
32 |
+
vcpkg_cmake_configure(
|
33 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
34 |
+
OPTIONS
|
35 |
+
${FEATURE_OPTIONS}
|
36 |
+
-DINSTALL_CMAKE_MODULE_PATH=share/${PORT}
|
37 |
+
-DENABLE_EXAMPLES=OFF
|
38 |
+
-DCMAKE_DEBUG_POSTFIX=d
|
39 |
+
)
|
40 |
+
|
41 |
+
vcpkg_cmake_install()
|
42 |
+
|
43 |
+
vcpkg_copy_pdbs()
|
44 |
+
|
45 |
+
vcpkg_fixup_pkgconfig()
|
46 |
+
|
47 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
48 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libraw/libraw_types.h"
|
49 |
+
"#ifdef LIBRAW_NODLL" "#if 1"
|
50 |
+
)
|
51 |
+
else()
|
52 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libraw/libraw_types.h"
|
53 |
+
"#ifdef LIBRAW_NODLL" "#if 0"
|
54 |
+
)
|
55 |
+
endif()
|
56 |
+
|
57 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
58 |
+
|
59 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
60 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
61 |
+
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
62 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/usage
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libraw is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
find_package(LibRaw REQUIRED)
|
4 |
+
# For non-thread-safe version
|
5 |
+
target_compile_definitions(main PRIVATE ${LibRaw_DEFINITIONS})
|
6 |
+
target_include_directories(main PRIVATE ${LibRaw_INCLUDE_DIR})
|
7 |
+
target_link_libraries(main PRIVATE ${LibRaw_LIBRARIES})
|
8 |
+
# For thread-safe version
|
9 |
+
target_compile_definitions(main PRIVATE ${LibRaw_r_DEFINITIONS})
|
10 |
+
target_include_directories(main PRIVATE ${LibRaw_INCLUDE_DIR})
|
11 |
+
target_link_libraries(main PRIVATE ${LibRaw_r_LIBRARIES})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBRAW_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
2 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
3 |
+
_find_package(${ARGS})
|
4 |
+
set(CMAKE_MODULE_PATH ${LIBRAW_PREV_MODULE_PATH})
|
5 |
+
|
6 |
+
if (@ENABLE_OPENMP@)
|
7 |
+
find_package(OpenMP REQUIRED)
|
8 |
+
if (OpenMP_FOUND)
|
9 |
+
list(APPEND LibRaw_LIBRARIES gomp)
|
10 |
+
list(APPEND LibRaw_r_LIBRARIES gomp)
|
11 |
+
endif()
|
12 |
+
endif()
|
13 |
+
|
14 |
+
if (@VCPKG_LIBRARY_LINKAGE@ STREQUAL "static")
|
15 |
+
find_package(Jasper REQUIRED)
|
16 |
+
if (Jasper_FOUND)
|
17 |
+
list(APPEND LibRaw_LIBRARIES ${JASPER_LIBRARIES})
|
18 |
+
list(APPEND LibRaw_r_LIBRARIES ${JASPER_LIBRARIES})
|
19 |
+
endif ()
|
20 |
+
find_package(lcms2 CONFIG REQUIRED)
|
21 |
+
if (lcms2_FOUND)
|
22 |
+
list(APPEND LibRaw_LIBRARIES lcms2::lcms2)
|
23 |
+
list(APPEND LibRaw_r_LIBRARIES lcms2::lcms2)
|
24 |
+
endif ()
|
25 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libraw/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libraw",
|
3 |
+
"version-string": "201903",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "raw image decoder library",
|
6 |
+
"homepage": "https://www.libraw.org",
|
7 |
+
"dependencies": [
|
8 |
+
"jasper",
|
9 |
+
"lcms",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
],
|
15 |
+
"features": {
|
16 |
+
"openmp": {
|
17 |
+
"description": "Build library with OpenMP support"
|
18 |
+
}
|
19 |
+
}
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/lz4.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -152,7 +152,7 @@ # LZ4 {
|
4 |
+
option(ENABLE_LZ4_EXT "Enable external LZ4 library support" ON)
|
5 |
+
set(WITH_LZ4_EXT OFF)
|
6 |
+
-if(ENABLE_LZ4_EXT)
|
7 |
+
- find_package(LZ4)
|
8 |
+
- if(LZ4_FOUND)
|
9 |
+
+if(1)
|
10 |
+
+ find_package(lz4 CONFIG REQUIRED)
|
11 |
+
+ if(1)
|
12 |
+
set(WITH_LZ4_EXT ON)
|
13 |
+
list(APPEND BUILT_WITH "LZ4_EXT")
|
14 |
+
@@ -248,4 +248,4 @@ # LZ4 {
|
15 |
+
install(
|
16 |
+
- FILES "${project_config}" "${project_version}" "packaging/cmake/Modules/FindLZ4.cmake"
|
17 |
+
+ FILES "${project_config}" "${project_version}"
|
18 |
+
DESTINATION "${config_install_dir}"
|
19 |
+
)
|
20 |
+
|
21 |
+
--- a/src/CMakeLists.txt
|
22 |
+
+++ b/src/CMakeLists.txt
|
23 |
+
@@ -241,4 +241,3 @@
|
24 |
+
if(WITH_LZ4_EXT)
|
25 |
+
- target_include_directories(rdkafka PRIVATE ${LZ4_INCLUDE_DIRS})
|
26 |
+
- target_link_libraries(rdkafka PUBLIC LZ4::LZ4)
|
27 |
+
+ target_link_libraries(rdkafka PUBLIC lz4::lz4)
|
28 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/portfile.cmake
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO edenhill/librdkafka
|
4 |
+
REF v1.8.2
|
5 |
+
SHA512 8c8ae291129b78e3b8367307ad1b1715af1438cd76d7160d64d13a58adf84c7c9f51efeba4656f55e101c25e4cb744db0d8bb5c01a2decb229e4567d16bdcb22
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES lz4.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RDKAFKA_BUILD_STATIC)
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
ssl WITH_SSL
|
15 |
+
zlib WITH_ZLIB
|
16 |
+
zstd WITH_ZSTD
|
17 |
+
snappy WITH_SNAPPY
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_configure(
|
21 |
+
SOURCE_PATH ${SOURCE_PATH}
|
22 |
+
OPTIONS
|
23 |
+
-DRDKAFKA_BUILD_STATIC=${RDKAFKA_BUILD_STATIC}
|
24 |
+
-DRDKAFKA_BUILD_EXAMPLES=OFF
|
25 |
+
-DRDKAFKA_BUILD_TESTS=OFF
|
26 |
+
-DWITH_BUNDLED_SSL=OFF
|
27 |
+
${FEATURE_OPTIONS}
|
28 |
+
OPTIONS_DEBUG
|
29 |
+
-DENABLE_SHAREDPTR_DEBUG=ON
|
30 |
+
-DENABLE_DEVEL=ON
|
31 |
+
-DENABLE_REFCNT_DEBUG=OFF
|
32 |
+
-DENABLE_SHAREDPTR_DEBUG=ON
|
33 |
+
-DWITHOUT_OPTIMIZATION=ON
|
34 |
+
OPTIONS_RELEASE
|
35 |
+
-DENABLE_SHAREDPTR_DEBUG=OFF
|
36 |
+
-DENABLE_DEVEL=OFF
|
37 |
+
-DENABLE_REFCNT_DEBUG=OFF
|
38 |
+
-DENABLE_SHAREDPTR_DEBUG=OFF
|
39 |
+
-DWITHOUT_OPTIMIZATION=OFF
|
40 |
+
)
|
41 |
+
|
42 |
+
vcpkg_cmake_install()
|
43 |
+
|
44 |
+
vcpkg_copy_pdbs()
|
45 |
+
|
46 |
+
vcpkg_cmake_config_fixup(
|
47 |
+
PACKAGE_NAME RdKafka
|
48 |
+
CONFIG_PATH lib/cmake/RdKafka
|
49 |
+
)
|
50 |
+
|
51 |
+
file(REMOVE_RECURSE
|
52 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
53 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
54 |
+
)
|
55 |
+
|
56 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
57 |
+
foreach(hdr rdkafka.h rdkafkacpp.h)
|
58 |
+
vcpkg_replace_string(
|
59 |
+
"${CURRENT_PACKAGES_DIR}/include/librdkafka/${hdr}"
|
60 |
+
"#ifdef LIBRDKAFKA_STATICLIB"
|
61 |
+
"#if 1 // #ifdef LIBRDKAFKA_STATICLIB"
|
62 |
+
)
|
63 |
+
endforeach()
|
64 |
+
endif()
|
65 |
+
|
66 |
+
# Handle copyright
|
67 |
+
configure_file("${SOURCE_PATH}/LICENSES.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
68 |
+
|
69 |
+
# Install usage
|
70 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|
71 |
+
|
72 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package @PORT@:@TARGET_TRIPLET@ provides CMake targets:
|
2 |
+
|
3 |
+
find_package(RdKafka CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE RdKafka::rdkafka RdKafka::rdkafka++)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(SelectLibraryConfigurations)
|
2 |
+
|
3 |
+
list(REMOVE_ITEM ARGS "NO_MODULE")
|
4 |
+
list(REMOVE_ITEM ARGS "CONFIG")
|
5 |
+
list(REMOVE_ITEM ARGS "MODULE")
|
6 |
+
|
7 |
+
_find_package(${ARGS} CONFIG)
|
8 |
+
|
9 |
+
if(RdKafka_FOUND)
|
10 |
+
if(TARGET RdKafka::rdkafka)
|
11 |
+
set(TARGET_NAME RdKafka::rdkafka)
|
12 |
+
else(TARGET RdKafka::rdkafka++)
|
13 |
+
set(TARGET_NAME RdKafka::rdkafka++)
|
14 |
+
endif()
|
15 |
+
|
16 |
+
if(TARGET ${TARGET_NAME} AND NOT DEFINED RdKafka_INCLUDE_DIRS)
|
17 |
+
get_target_property(_RdKafka_INCLUDE_DIRS ${TARGET_NAME} INTERFACE_INCLUDE_DIRECTORIES)
|
18 |
+
get_target_property(_RdKafka_LINK_LIBRARIES ${TARGET_NAME} INTERFACE_LINK_LIBRARIES)
|
19 |
+
|
20 |
+
if (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
21 |
+
get_target_property(_RdKafka_LIBRARY_DEBUG ${TARGET_NAME} IMPORTED_IMPLIB_DEBUG)
|
22 |
+
get_target_property(_RdKafka_LIBRARY_RELEASE ${TARGET_NAME} IMPORTED_IMPLIB_RELEASE)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
if(NOT _RdKafka_LIBRARY_DEBUG AND NOT _RdKafka_LIBRARY_RELEASE)
|
26 |
+
get_target_property(_RdKafka_LIBRARY_DEBUG ${TARGET_NAME} IMPORTED_LOCATION_DEBUG)
|
27 |
+
get_target_property(_RdKafka_LIBRARY_RELEASE ${TARGET_NAME} IMPORTED_LOCATION_RELEASE)
|
28 |
+
endif()
|
29 |
+
|
30 |
+
set(RdKafka_INCLUDE_DIR "${_RdKafka_INCLUDE_DIRS}")
|
31 |
+
set(RdKafka_LIBRARY_DEBUG "${_RdKafka_LIBRARY_DEBUG}")
|
32 |
+
set(RdKafka_LIBRARY_RELEASE "${_RdKafka_LIBRARY_RELEASE}")
|
33 |
+
|
34 |
+
select_library_configurations(RdKafka)
|
35 |
+
|
36 |
+
list(APPEND RdKafka_LIBRARIES ${_RdKafka_LINK_LIBRARIES})
|
37 |
+
list(APPEND RdKafka_LIBRARY ${_RdKafka_LINK_LIBRARIES})
|
38 |
+
|
39 |
+
unset(_RdKafka_INCLUDE_DIRS)
|
40 |
+
unset(_RdKafka_LINK_LIBRARIES)
|
41 |
+
unset(_RdKafka_LIBRARY_DEBUG)
|
42 |
+
unset(_RdKafka_LIBRARY_DEBUG)
|
43 |
+
unset(TARGET_NAME)
|
44 |
+
endif()
|
45 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librdkafka/vcpkg.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "librdkafka",
|
3 |
+
"version": "1.8.2",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "The Apache Kafka C/C++ library",
|
6 |
+
"homepage": "https://github.com/edenhill/librdkafka",
|
7 |
+
"license": null,
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
"lz4",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"features": {
|
21 |
+
"snappy": {
|
22 |
+
"description": "Build with snappy"
|
23 |
+
},
|
24 |
+
"ssl": {
|
25 |
+
"description": "Build with OpenSSL",
|
26 |
+
"dependencies": [
|
27 |
+
"openssl"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
"zlib": {
|
31 |
+
"description": "Build with zlib",
|
32 |
+
"dependencies": [
|
33 |
+
"zlib"
|
34 |
+
]
|
35 |
+
},
|
36 |
+
"zstd": {
|
37 |
+
"description": "Build with zstd",
|
38 |
+
"dependencies": [
|
39 |
+
"zstd"
|
40 |
+
]
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/0001-enable-ocspcheck-on-msvc.patch
ADDED
@@ -0,0 +1,254 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/apps/ocspcheck/CMakeLists.txt b/apps/ocspcheck/CMakeLists.txt
|
2 |
+
index 3c80458..e8d3bf5 100644
|
3 |
+
--- a/apps/ocspcheck/CMakeLists.txt
|
4 |
+
+++ b/apps/ocspcheck/CMakeLists.txt
|
5 |
+
@@ -1,5 +1,3 @@
|
6 |
+
-if(NOT MSVC)
|
7 |
+
-
|
8 |
+
set(
|
9 |
+
OCSPCHECK_SRC
|
10 |
+
http.c
|
11 |
+
@@ -13,13 +11,27 @@ else()
|
12 |
+
set(OCSPCHECK_SRC ${OCSPCHECK_SRC} compat/strtonum.c)
|
13 |
+
endif()
|
14 |
+
|
15 |
+
+check_function_exists(getopt HAVE_GETOPT)
|
16 |
+
+if(HAVE_GETOPT)
|
17 |
+
+ add_definitions(-DHAVE_GETOPT)
|
18 |
+
+else()
|
19 |
+
+ set(GETOPT_SRC compat/getopt.c)
|
20 |
+
+endif()
|
21 |
+
+
|
22 |
+
+check_function_exists(ftruncate HAVE_FTRUNCATE)
|
23 |
+
+if(HAVE_FTRUNCATE)
|
24 |
+
+ add_definitions(-DHAVE_FTRUNCATE)
|
25 |
+
+else()
|
26 |
+
+ set(FTRUNCATE_SRC compat/ftruncate.c)
|
27 |
+
+endif()
|
28 |
+
+
|
29 |
+
if(NOT "${OPENSSLDIR}" STREQUAL "")
|
30 |
+
add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\")
|
31 |
+
else()
|
32 |
+
add_definitions(-DDEFAULT_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\")
|
33 |
+
endif()
|
34 |
+
|
35 |
+
-add_executable(ocspcheck ${OCSPCHECK_SRC})
|
36 |
+
+add_executable(ocspcheck ${OCSPCHECK_SRC} ${GETOPT_SRC} ${FTRUNCATE_SRC})
|
37 |
+
target_include_directories(ocspcheck PRIVATE . ./compat ../../include/compat)
|
38 |
+
target_link_libraries(ocspcheck tls ${OPENSSL_LIBS})
|
39 |
+
|
40 |
+
@@ -28,5 +40,3 @@ if(ENABLE_LIBRESSL_INSTALL)
|
41 |
+
install(FILES ocspcheck.8 DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|
42 |
+
|
43 |
+
endif(ENABLE_LIBRESSL_INSTALL)
|
44 |
+
-
|
45 |
+
-endif()
|
46 |
+
diff --git a/apps/ocspcheck/compat/ftruncate.c b/apps/ocspcheck/compat/ftruncate.c
|
47 |
+
new file mode 100644
|
48 |
+
index 0000000..e825e50
|
49 |
+
--- /dev/null
|
50 |
+
+++ b/apps/ocspcheck/compat/ftruncate.c
|
51 |
+
@@ -0,0 +1,17 @@
|
52 |
+
+/*
|
53 |
+
+ * Public domain
|
54 |
+
+ *
|
55 |
+
+ * Kinichiro Inoguchi <[email protected]>
|
56 |
+
+ */
|
57 |
+
+
|
58 |
+
+#ifdef _WIN32
|
59 |
+
+
|
60 |
+
+#include <unistd.h>
|
61 |
+
+
|
62 |
+
+int
|
63 |
+
+ftruncate(int fd, off_t length)
|
64 |
+
+{
|
65 |
+
+ return _chsize(fd, length);
|
66 |
+
+}
|
67 |
+
+
|
68 |
+
+#endif
|
69 |
+
diff --git a/apps/ocspcheck/compat/getopt.c b/apps/ocspcheck/compat/getopt.c
|
70 |
+
new file mode 100644
|
71 |
+
index 0000000..ff05743
|
72 |
+
--- /dev/null
|
73 |
+
+++ b/apps/ocspcheck/compat/getopt.c
|
74 |
+
@@ -0,0 +1,131 @@
|
75 |
+
+/*
|
76 |
+
+ * Public domain
|
77 |
+
+ *
|
78 |
+
+ * EternalPhane <[email protected]>
|
79 |
+
+ */
|
80 |
+
+
|
81 |
+
+#include <stdlib.h>
|
82 |
+
+#include <string.h>
|
83 |
+
+
|
84 |
+
+#include "getopt.h"
|
85 |
+
+
|
86 |
+
+char *optarg = NULL;
|
87 |
+
+int optind = 0, optopt = '?';
|
88 |
+
+
|
89 |
+
+typedef int bool;
|
90 |
+
+#define true 1
|
91 |
+
+#define false 0
|
92 |
+
+
|
93 |
+
+static int nonopt_begin = 0, nonopt_end = 0;
|
94 |
+
+
|
95 |
+
+void clear_buf();
|
96 |
+
+
|
97 |
+
+void permute(char *const argv[])
|
98 |
+
+{
|
99 |
+
+ static char* buf = NULL;
|
100 |
+
+ if (!argv && buf)
|
101 |
+
+ return free(buf);
|
102 |
+
+ if (!buf)
|
103 |
+
+ atexit(clear_buf);
|
104 |
+
+ if (nonopt_begin == nonopt_end)
|
105 |
+
+ {
|
106 |
+
+ nonopt_begin = nonopt_end = optind;
|
107 |
+
+ return;
|
108 |
+
+ }
|
109 |
+
+ int nonopt_size = nonopt_end - nonopt_begin,
|
110 |
+
+ opt_size = optind - nonopt_end;
|
111 |
+
+ if (nonopt_size <= opt_size)
|
112 |
+
+ {
|
113 |
+
+ if (!realloc(buf, nonopt_size))
|
114 |
+
+ free(buf), buf = malloc(nonopt_size);
|
115 |
+
+ memcpy(buf, nonopt_begin, nonopt_size);
|
116 |
+
+ memmove(nonopt_begin, nonopt_end, opt_size);
|
117 |
+
+ memcpy(nonopt_begin + opt_size, buf, nonopt_size);
|
118 |
+
+ }
|
119 |
+
+ else
|
120 |
+
+ {
|
121 |
+
+ if (!realloc(buf, opt_size))
|
122 |
+
+ free(buf), buf = malloc(opt_size);
|
123 |
+
+ memcpy(buf, nonopt_end, opt_size);
|
124 |
+
+ memmove(nonopt_begin + opt_size, nonopt_begin, nonopt_size);
|
125 |
+
+ memcpy(nonopt_begin, buf, opt_size);
|
126 |
+
+ }
|
127 |
+
+ nonopt_begin += opt_size;
|
128 |
+
+ nonopt_end = optind;
|
129 |
+
+}
|
130 |
+
+
|
131 |
+
+void clear_buf()
|
132 |
+
+{
|
133 |
+
+ permute(NULL);
|
134 |
+
+}
|
135 |
+
+
|
136 |
+
+int getopt(int argc, char *const argv[], const char *optstring)
|
137 |
+
+{
|
138 |
+
+ static char *nextchar = NULL;
|
139 |
+
+ static bool posixly_correct = false, always_return_nonopt = false;
|
140 |
+
+ if (optind >= argc)
|
141 |
+
+ return -1;
|
142 |
+
+ if (!optind)
|
143 |
+
+ {
|
144 |
+
+ nonopt_begin = nonopt_end = 0;
|
145 |
+
+ posixly_correct = '+' == optstring[0] || getenv("POSIXLY_CORRECT");
|
146 |
+
+ always_return_nonopt = '-' == optstring[0];
|
147 |
+
+ if (posixly_correct || always_return_nonopt)
|
148 |
+
+ optstring++;
|
149 |
+
+ }
|
150 |
+
+ if (!nextchar || !*nextchar)
|
151 |
+
+ {
|
152 |
+
+ if (!posixly_correct && !always_return_nonopt)
|
153 |
+
+ {
|
154 |
+
+ int temp = optind++;
|
155 |
+
+ for (;;)
|
156 |
+
+ {
|
157 |
+
+ if (++temp >= argc || !strcmp("--", argv[temp]))
|
158 |
+
+ {
|
159 |
+
+ permute(argv);
|
160 |
+
+ if (temp < argc)
|
161 |
+
+ {
|
162 |
+
+ optind = temp + 1;
|
163 |
+
+ permute(argv);
|
164 |
+
+ }
|
165 |
+
+ optind = nonopt_begin;
|
166 |
+
+ return -1;
|
167 |
+
+ }
|
168 |
+
+ if ('-' == argv[temp][0] && argv[temp][1])
|
169 |
+
+ break;
|
170 |
+
+ }
|
171 |
+
+ if (temp > optind)
|
172 |
+
+ {
|
173 |
+
+ permute(argv);
|
174 |
+
+ nonopt_end = optind = temp;
|
175 |
+
+ }
|
176 |
+
+ nextchar = argv[optind] + 1;
|
177 |
+
+ }
|
178 |
+
+ else
|
179 |
+
+ {
|
180 |
+
+ if (++optind >= argc || !strcmp("--", argv[optind]))
|
181 |
+
+ return -1;
|
182 |
+
+ if ('-' != argv[optind][0] || !argv[optind][1])
|
183 |
+
+ return posixly_correct ? -1 : (optarg = argv[optind++], 1);
|
184 |
+
+ }
|
185 |
+
+ }
|
186 |
+
+ const char *temp = strchr(optstring, *nextchar++);
|
187 |
+
+ if (!temp)
|
188 |
+
+ return optopt = *(nextchar - 1), '?';
|
189 |
+
+ if (':' == temp[1])
|
190 |
+
+ {
|
191 |
+
+ bool err = false;
|
192 |
+
+ if (':' == temp[2])
|
193 |
+
+ optarg = *nextchar ? nextchar : NULL;
|
194 |
+
+ else if (*nextchar)
|
195 |
+
+ optarg = nextchar;
|
196 |
+
+ else if ('-' != argv[++optind][0])
|
197 |
+
+ optarg = argv[optind];
|
198 |
+
+ else
|
199 |
+
+ return nextchar = argv[optind] + 1,
|
200 |
+
+ optopt = *temp,
|
201 |
+
+ ':' == optstring[0] ? ':' : '?';
|
202 |
+
+ nextchar += strlen(nextchar);
|
203 |
+
+ }
|
204 |
+
+ return *temp;
|
205 |
+
+}
|
206 |
+
diff --git a/apps/ocspcheck/compat/getopt.h b/apps/ocspcheck/compat/getopt.h
|
207 |
+
new file mode 100644
|
208 |
+
index 0000000..ada142e
|
209 |
+
--- /dev/null
|
210 |
+
+++ b/apps/ocspcheck/compat/getopt.h
|
211 |
+
@@ -0,0 +1,15 @@
|
212 |
+
+/*
|
213 |
+
+ * Public domain
|
214 |
+
+ *
|
215 |
+
+ * EternalPhane <[email protected]>
|
216 |
+
+ */
|
217 |
+
+
|
218 |
+
+#ifndef GETOPT_H__
|
219 |
+
+#define GETOPT_H__
|
220 |
+
+
|
221 |
+
+extern char *optarg;
|
222 |
+
+extern int optind, opterr, optopt;
|
223 |
+
+
|
224 |
+
+int getopt(int argc, char *const argv[], const char *optstring);
|
225 |
+
+
|
226 |
+
+#endif
|
227 |
+
|
228 |
+
diff --git a/apps/ocspcheck/ocspcheck.c b/apps/ocspcheck/ocspcheck.c
|
229 |
+
index 551a8fa..c608578 100644
|
230 |
+
--- a/apps/ocspcheck/ocspcheck.c
|
231 |
+
+++ b/apps/ocspcheck/ocspcheck.c
|
232 |
+
@@ -519,6 +519,10 @@ main(int argc, char **argv)
|
233 |
+
ssize_t written, w;
|
234 |
+
short port;
|
235 |
+
|
236 |
+
+#ifndef HAVE_GETOPT
|
237 |
+
+#include "getopt.h"
|
238 |
+
+#endif
|
239 |
+
+
|
240 |
+
while ((ch = getopt(argc, argv, "C:i:No:v")) != -1) {
|
241 |
+
switch (ch) {
|
242 |
+
case 'C':
|
243 |
+
diff --git a/include/compat/unistd.h b/include/compat/unistd.h
|
244 |
+
index f521b94..f11db44 100644
|
245 |
+
--- a/include/compat/unistd.h
|
246 |
+
+++ b/include/compat/unistd.h
|
247 |
+
@@ -23,6 +23,7 @@ ssize_t pwrite(int d, const void *buf, size_t nbytes, off_t offset);
|
248 |
+
#include <io.h>
|
249 |
+
#include <process.h>
|
250 |
+
|
251 |
+
+#define STDIN_FILENO 0
|
252 |
+
#define STDOUT_FILENO 1
|
253 |
+
#define STDERR_FILENO 2
|
254 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/0002-suppress-msvc-warnings.patch
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a6a7554..b20fd4b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -111,6 +111,11 @@ if(WIN32)
|
6 |
+
set(PLATFORM_LIBS ${PLATFORM_LIBS} ws2_32 bcrypt)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+if(MSVC AND MSVC_VERSION GREATER_EQUAL 1912)
|
10 |
+
+ message(STATUS "Setting /Qspectre switch")
|
11 |
+
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Qspectre")
|
12 |
+
+endif()
|
13 |
+
+
|
14 |
+
if(MSVC)
|
15 |
+
add_definitions(-Dinline=__inline)
|
16 |
+
message(STATUS "Using [${CMAKE_C_COMPILER_ID}] compiler")
|
17 |
+
@@ -123,16 +128,29 @@ if(MSVC)
|
18 |
+
"C4127" # conditional expression is constant
|
19 |
+
"C4146" # unary minus operator applied to unsigned type,
|
20 |
+
# result still unsigned
|
21 |
+
+ "C4242" # 'identifier' : conversion from 'type1' to 'type2',
|
22 |
+
+ # possible loss of data
|
23 |
+
"C4244" # 'argument' : conversion from 'type1' to 'type2',
|
24 |
+
# possible loss of data
|
25 |
+
"C4245" # 'conversion' : conversion from 'type1' to 'type2',
|
26 |
+
# signed/unsigned mismatch
|
27 |
+
+ "C4255" # 'function' : no function prototype given:
|
28 |
+
+ # converting '()' to '(void)'
|
29 |
+
"C4267" # 'var' : conversion from 'size_t' to 'type',
|
30 |
+
# possible loss of data
|
31 |
+
+ "C4388" # 'expression': signed/unsigned mismatch
|
32 |
+
"C4389" # 'operator' : signed/unsigned mismatch
|
33 |
+
+ "C4464" # relative include path contains '..'
|
34 |
+
+ "C4668" # 'symbol' is not defined as a preprocessor macro,
|
35 |
+
+ # replacing with '0' for 'directives'
|
36 |
+
"C4706" # assignment within conditional expression
|
37 |
+
+ "C4710" # 'function' : function not inlined
|
38 |
+
+ "C4711" # function 'function' selected for inline expansion
|
39 |
+
+ "C4820" # 'bytes' bytes padding added after construct 'member_name'
|
40 |
+
"C4996" # The POSIX name for this item is deprecated.
|
41 |
+
# Instead, use the ISO C and C++ conformant name
|
42 |
+
+ "C5045" # Compiler will insert Spectre mitigation for memory load
|
43 |
+
+ # if /Qspectre switch specified
|
44 |
+
)
|
45 |
+
elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
|
46 |
+
add_definitions(-D_CRT_SUPPRESS_RESTRICT)
|
47 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/portfile.cmake
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h")
|
2 |
+
message(WARNING "Can't build libressl if openssl is installed. Please remove openssl, and try install libressl again if you need it. Build will continue since libressl is a subset of openssl")
|
3 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
4 |
+
return()
|
5 |
+
endif()
|
6 |
+
|
7 |
+
set(LIBRESSL_VERSION 3.4.2)
|
8 |
+
set(LIBRESSL_HASH ae91a840b29330681dc2a4f55a9bd760e6fe1bdfb3399017aae3a16bd21b413e97cbb8ba504400f0a1f42757f6128b3fa763d06bae4fc9f2b9dbeea867a57ad2)
|
9 |
+
|
10 |
+
vcpkg_download_distfile(
|
11 |
+
LIBRESSL_SOURCE_ARCHIVE
|
12 |
+
URLS "https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${PORT}-${LIBRESSL_VERSION}.tar.gz" "https://ftp.fau.de/openbsd/LibreSSL/${PORT}-${LIBRESSL_VERSION}.tar.gz"
|
13 |
+
FILENAME "${PORT}-${LIBRESSL_VERSION}.tar.gz"
|
14 |
+
SHA512 "${LIBRESSL_HASH}"
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_extract_source_archive_ex(
|
18 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
19 |
+
ARCHIVE "${LIBRESSL_SOURCE_ARCHIVE}"
|
20 |
+
REF "${LIBRESSL_VERSION}"
|
21 |
+
PATCHES
|
22 |
+
0001-enable-ocspcheck-on-msvc.patch
|
23 |
+
0002-suppress-msvc-warnings.patch
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
27 |
+
FEATURES
|
28 |
+
"tools" LIBRESSL_APPS
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_cmake_configure(
|
32 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
33 |
+
OPTIONS
|
34 |
+
${FEATURE_OPTIONS}
|
35 |
+
-DLIBRESSL_TESTS=OFF
|
36 |
+
OPTIONS_DEBUG
|
37 |
+
-DLIBRESSL_APPS=OFF
|
38 |
+
)
|
39 |
+
|
40 |
+
vcpkg_cmake_install()
|
41 |
+
|
42 |
+
if("tools" IN_LIST FEATURES)
|
43 |
+
vcpkg_copy_tools(TOOL_NAMES ocspcheck openssl DESTINATION "${CURRENT_PACKAGES_DIR}/tools/openssl" AUTO_CLEAN)
|
44 |
+
endif()
|
45 |
+
|
46 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
47 |
+
file(REMOVE_RECURSE
|
48 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
49 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
50 |
+
)
|
51 |
+
endif()
|
52 |
+
file(REMOVE_RECURSE
|
53 |
+
"${CURRENT_PACKAGES_DIR}/etc/ssl/certs"
|
54 |
+
"${CURRENT_PACKAGES_DIR}/debug/etc/ssl/certs"
|
55 |
+
"${CURRENT_PACKAGES_DIR}/share/man"
|
56 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
57 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
58 |
+
)
|
59 |
+
|
60 |
+
vcpkg_copy_pdbs()
|
61 |
+
|
62 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
63 |
+
|
64 |
+
if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
|
65 |
+
file(GLOB_RECURSE LIBS "${CURRENT_PACKAGES_DIR}/*.lib")
|
66 |
+
foreach(LIB ${LIBS})
|
67 |
+
string(REGEX REPLACE "(.+)-[0-9]+\\.lib" "\\1.lib" LINK "${LIB}")
|
68 |
+
file(CREATE_LINK "${LIB}" "${LINK}")
|
69 |
+
endforeach()
|
70 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libressl/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libressl",
|
3 |
+
"version": "3.4.2",
|
4 |
+
"description": "LibreSSL is a version of the TLS/crypto stack forked from OpenSSL in 2014, with goals of modernizing the codebase, improving security, and applying best practice development processes.",
|
5 |
+
"supports": "!(uwp | arm)",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"tools": {
|
18 |
+
"description": "Build openssl and ocspcheck executables"
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/CMakeLists.txt
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.11)
|
2 |
+
project(librsvg C)
|
3 |
+
|
4 |
+
find_package(unofficial-libcroco CONFIG REQUIRED)
|
5 |
+
find_package(PkgConfig REQUIRED)
|
6 |
+
pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2 gio-2 IMPORTED_TARGET)
|
7 |
+
pkg_check_modules(CAIRO cairo IMPORTED_TARGET)
|
8 |
+
pkg_check_modules(GDK_PIXBUF gdk-pixbuf-2.0 IMPORTED_TARGET)
|
9 |
+
pkg_check_modules(PANGO pango pangocairo IMPORTED_TARGET)
|
10 |
+
find_package(LibXml2 REQUIRED)
|
11 |
+
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
12 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
13 |
+
else()
|
14 |
+
pkg_check_modules(PANGO2 pangoft2 pangofc IMPORTED_TARGET)
|
15 |
+
set(PANGO_FT2_LIB PkgConfig::PANGO2)
|
16 |
+
endif()
|
17 |
+
|
18 |
+
# Add include directories
|
19 |
+
include_directories(${CAIRO_INCLUDE_DIRS} ${GDK_PIXBUF_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} ${PANGO_INCLUDE_DIRS} ${PANGO2_INCLUDE_DIRS})
|
20 |
+
|
21 |
+
set(LIBRSVG_SOURCES
|
22 |
+
librsvg-features.c
|
23 |
+
rsvg-css.c
|
24 |
+
rsvg-css.h
|
25 |
+
rsvg-compat.h
|
26 |
+
rsvg-defs.c
|
27 |
+
rsvg-defs.h
|
28 |
+
rsvg-image.c
|
29 |
+
rsvg-image.h
|
30 |
+
rsvg-io.c
|
31 |
+
rsvg-io.h
|
32 |
+
rsvg-paint-server.c
|
33 |
+
rsvg-paint-server.h
|
34 |
+
rsvg-path.c
|
35 |
+
rsvg-path.h
|
36 |
+
rsvg-private.h
|
37 |
+
rsvg-base-file-util.c
|
38 |
+
rsvg-filter.c
|
39 |
+
rsvg-filter.h
|
40 |
+
rsvg-marker.c
|
41 |
+
rsvg-marker.h
|
42 |
+
rsvg-mask.c
|
43 |
+
rsvg-mask.h
|
44 |
+
rsvg-shapes.c
|
45 |
+
rsvg-shapes.h
|
46 |
+
rsvg-structure.c
|
47 |
+
rsvg-structure.h
|
48 |
+
rsvg-styles.c
|
49 |
+
rsvg-styles.h
|
50 |
+
rsvg-text.c
|
51 |
+
rsvg-text.h
|
52 |
+
rsvg-cond.c
|
53 |
+
rsvg-base.c
|
54 |
+
librsvg-enum-types.c
|
55 |
+
rsvg-cairo-draw.c
|
56 |
+
rsvg-cairo-draw.h
|
57 |
+
rsvg-cairo-render.c
|
58 |
+
rsvg-cairo-render.h
|
59 |
+
rsvg-cairo-clip.h
|
60 |
+
rsvg-cairo-clip.c
|
61 |
+
rsvg.c
|
62 |
+
rsvg-gobject.c
|
63 |
+
rsvg-file-util.c
|
64 |
+
rsvg-size-callback.c
|
65 |
+
rsvg-size-callback.h
|
66 |
+
rsvg-xml.c
|
67 |
+
rsvg-xml.h
|
68 |
+
rsvg.h
|
69 |
+
rsvg-cairo.h
|
70 |
+
librsvg-features.h
|
71 |
+
librsvg-enum-types.h
|
72 |
+
)
|
73 |
+
|
74 |
+
set(PIXBUFLOADERSVG_SOURCES
|
75 |
+
gdk-pixbuf-loader/io-svg.c
|
76 |
+
)
|
77 |
+
|
78 |
+
if(WIN32)
|
79 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.win32 ${CMAKE_CURRENT_SOURCE_DIR}/config.h COPYONLY)
|
80 |
+
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.def
|
81 |
+
COMMAND echo "EXPORTS" > ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.def
|
82 |
+
COMMAND ${CMAKE_C_COMPILER} /EP ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.symbols >> ${CMAKE_CURRENT_SOURCE_DIR}/rsvg.def)
|
83 |
+
list(APPEND LIBRSVG_SOURCES rsvg.def)
|
84 |
+
else()
|
85 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.linux ${CMAKE_CURRENT_SOURCE_DIR}/config.h COPYONLY)
|
86 |
+
list(APPEND LIBRSVG_SOURCES rsvg.symbols)
|
87 |
+
endif()
|
88 |
+
|
89 |
+
add_library(rsvg-2.40 ${LIBRSVG_SOURCES})
|
90 |
+
add_library(pixbufloader-svg ${PIXBUFLOADERSVG_SOURCES})
|
91 |
+
|
92 |
+
target_compile_definitions(rsvg-2.40 PRIVATE -DRSVG_COMPILATION -D_CRT_SECURE_NO_WARNINGS -DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
93 |
+
|
94 |
+
target_include_directories(pixbufloader-svg PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
95 |
+
target_compile_definitions(pixbufloader-svg PRIVATE
|
96 |
+
-DRSVG_COMPILATION
|
97 |
+
-D_CRT_SECURE_NO_WARNINGS
|
98 |
+
-DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}"
|
99 |
+
-DGDK_PIXBUF_ENABLE_BACKEND
|
100 |
+
-DG_LOG_DOMAIN="libpixbufloader-svg")
|
101 |
+
|
102 |
+
target_link_libraries(rsvg-2.40 PRIVATE
|
103 |
+
PkgConfig::GLIB2
|
104 |
+
${LIBXML2_LIBRARIES}
|
105 |
+
PkgConfig::PANGO
|
106 |
+
PkgConfig::GDK_PIXBUF
|
107 |
+
${PANGO_FT2_LIB}
|
108 |
+
unofficial::libcroco::croco-0.6
|
109 |
+
)
|
110 |
+
target_link_libraries(pixbufloader-svg PRIVATE
|
111 |
+
rsvg-2.40
|
112 |
+
PkgConfig::GLIB2
|
113 |
+
PkgConfig::GDK_PIXBUF
|
114 |
+
)
|
115 |
+
|
116 |
+
install(TARGETS rsvg-2.40 pixbufloader-svg
|
117 |
+
EXPORT librsvg-targets
|
118 |
+
RUNTIME DESTINATION bin
|
119 |
+
LIBRARY DESTINATION lib
|
120 |
+
ARCHIVE DESTINATION lib
|
121 |
+
)
|
122 |
+
|
123 |
+
install(
|
124 |
+
EXPORT librsvg-targets
|
125 |
+
NAMESPACE unofficial::librsvg::
|
126 |
+
FILE unofficial-librsvg-targets.cmake
|
127 |
+
DESTINATION share/unofficial-librsvg
|
128 |
+
)
|
129 |
+
|
130 |
+
install(FILES
|
131 |
+
rsvg.h
|
132 |
+
rsvg-cairo.h
|
133 |
+
librsvg-features.h
|
134 |
+
librsvg-enum-types.h
|
135 |
+
DESTINATION include/librsvg
|
136 |
+
)
|
137 |
+
|
138 |
+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/unofficial-librsvg-config.cmake "
|
139 |
+
include(CMakeFindDependencyMacro)
|
140 |
+
find_dependency(PkgConfig)
|
141 |
+
pkg_check_modules(GLIB2 glib-2.0 gobject-2.0 gmodule-2 gio-2 IMPORTED_TARGET)
|
142 |
+
pkg_check_modules(CAIRO cairo IMPORTED_TARGET)
|
143 |
+
pkg_check_modules(GDK_PIXBUF gdk-pixbuf IMPORTED_TARGET)
|
144 |
+
pkg_check_modules(PANGO pango pangocairo IMPORTED_TARGET)
|
145 |
+
find_dependency(unofficial-libcroco CONFIG)
|
146 |
+
|
147 |
+
include(\${CMAKE_CURRENT_LIST_DIR}/unofficial-librsvg-targets.cmake)
|
148 |
+
")
|
149 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-librsvg-config.cmake DESTINATION share/unofficial-librsvg)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/config.h.linux
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* config.h. Generated from config.h.in by configure. */
|
2 |
+
/* config.h.in. Generated from configure.ac by autoheader. */
|
3 |
+
|
4 |
+
/* Define if building universal (internal helper macro) */
|
5 |
+
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
6 |
+
|
7 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
8 |
+
#define HAVE_DLFCN_H 1
|
9 |
+
|
10 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
11 |
+
#define HAVE_INTTYPES_H 1
|
12 |
+
|
13 |
+
/* Define if your <locale.h> file defines LC_MESSAGES. */
|
14 |
+
#define HAVE_LC_MESSAGES 1
|
15 |
+
|
16 |
+
/* Define to 1 if you have the <locale.h> header file. */
|
17 |
+
#define HAVE_LOCALE_H 1
|
18 |
+
|
19 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
20 |
+
#define HAVE_MEMORY_H 1
|
21 |
+
|
22 |
+
/* Have the pangoft2 library */
|
23 |
+
#define HAVE_PANGOFT2 1
|
24 |
+
|
25 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
26 |
+
#define HAVE_STDINT_H 1
|
27 |
+
|
28 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
29 |
+
#define HAVE_STDLIB_H 1
|
30 |
+
|
31 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
32 |
+
#define HAVE_STRINGS_H 1
|
33 |
+
|
34 |
+
/* Define to 1 if you have the <string.h> header file. */
|
35 |
+
#define HAVE_STRING_H 1
|
36 |
+
|
37 |
+
/* Define to 1 if you have the `strtok_r' function. */
|
38 |
+
#define HAVE_STRTOK_R 1
|
39 |
+
|
40 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
41 |
+
#define HAVE_SYS_STAT_H 1
|
42 |
+
|
43 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
44 |
+
#define HAVE_SYS_TYPES_H 1
|
45 |
+
|
46 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
47 |
+
#define HAVE_UNISTD_H 1
|
48 |
+
|
49 |
+
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
50 |
+
#define LT_OBJDIR ".libs/"
|
51 |
+
|
52 |
+
/* Name of package */
|
53 |
+
#define PACKAGE "librsvg"
|
54 |
+
|
55 |
+
/* Define to the address where bug reports for this package should be sent. */
|
56 |
+
#define PACKAGE_BUGREPORT "https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg"
|
57 |
+
|
58 |
+
/* Define to the full name of this package. */
|
59 |
+
#define PACKAGE_NAME "RSVG"
|
60 |
+
|
61 |
+
/* Define to the full name and version of this package. */
|
62 |
+
#define PACKAGE_STRING "RSVG 2.40.20"
|
63 |
+
|
64 |
+
/* Define to the one symbol short name of this package. */
|
65 |
+
#define PACKAGE_TARNAME "librsvg"
|
66 |
+
|
67 |
+
/* Define to the home page for this package. */
|
68 |
+
#define PACKAGE_URL ""
|
69 |
+
|
70 |
+
/* Define to the version of this package. */
|
71 |
+
#define PACKAGE_VERSION "2.40.20"
|
72 |
+
|
73 |
+
/* Define to 1 if you have the ANSI C header files. */
|
74 |
+
#define STDC_HEADERS 1
|
75 |
+
|
76 |
+
/* Version number of package */
|
77 |
+
#define VERSION "2.40.20"
|
78 |
+
|
79 |
+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
80 |
+
significant byte first (like Motorola and SPARC, unlike Intel). */
|
81 |
+
#if defined AC_APPLE_UNIVERSAL_BUILD
|
82 |
+
# if defined __BIG_ENDIAN__
|
83 |
+
# define WORDS_BIGENDIAN 1
|
84 |
+
# endif
|
85 |
+
#else
|
86 |
+
# ifndef WORDS_BIGENDIAN
|
87 |
+
/* # undef WORDS_BIGENDIAN */
|
88 |
+
# endif
|
89 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# port update requires rust/cargo
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "https://download.gnome.org/sources/librsvg/2.40/librsvg-2.40.20.tar.xz"
|
5 |
+
FILENAME "librsvg-2.40.20.tar.xz"
|
6 |
+
SHA512 cdd8224deb4c3786e29f48ed02c32ed9dff5cb15aba574a5ef845801ad3669cfcc3eedb9d359c22213dc7a29de24c363248825adad5877c40abf73b3688ff12f
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
15 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/config.h.linux" "${SOURCE_PATH}/config.h.linux" COPYONLY)
|
16 |
+
|
17 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
DISABLE_PARALLEL_CONFIGURE
|
21 |
+
OPTIONS
|
22 |
+
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-librsvg CONFIG_PATH share/unofficial-librsvg)
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
|
33 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsvg/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "librsvg",
|
3 |
+
"version": "2.40.20",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A small library to render Scalable Vector Graphics (SVG)",
|
6 |
+
"homepage": "https://gitlab.gnome.org/GNOME/librsvg",
|
7 |
+
"dependencies": [
|
8 |
+
"cairo",
|
9 |
+
"gdk-pixbuf",
|
10 |
+
"libcroco",
|
11 |
+
"pango",
|
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/librsync/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO librsync/librsync
|
6 |
+
REF 42b636d2a65ab6914ea7cac50886da28192aaf9b # V2.3.2
|
7 |
+
SHA512 4903a64e327a7d49ae5f741b7b9fe3a76018010147249e2bc53917b06d31ee0f9b917f6c3e36a2d241ae66c19fa881113b59911d777742a859922486d9fe9c4c
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_RDIFF:BOOL=OFF
|
15 |
+
-DENABLE_COMPRESSION:BOOL=OFF
|
16 |
+
-DENABLE_TRACE:BOOL=OFF
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
22 |
+
|
23 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/rsync.dll")
|
24 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
25 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/rsync.dll" "${CURRENT_PACKAGES_DIR}/bin/rsync.dll")
|
26 |
+
endif()
|
27 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll")
|
28 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
29 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/rsync.dll")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
33 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/librsync_export.h"
|
34 |
+
"# ifdef LIBRSYNC_STATIC_DEFINE"
|
35 |
+
"# if 1 /* LIBRSYNC_STATIC_DEFINE */"
|
36 |
+
)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
vcpkg_copy_pdbs()
|
40 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librsync/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "librsync",
|
3 |
+
"version-semver": "2.3.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "librsync is a library for calculating and applying network deltas, with an interface designed to ease integration into diverse network applications.",
|
6 |
+
"homepage": "http://librsync.sourcefrog.net/",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/CMakeLists.txt
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
|
3 |
+
project(librtmp C)
|
4 |
+
|
5 |
+
find_package(ZLIB REQUIRED)
|
6 |
+
find_package(OpenSSL REQUIRED)
|
7 |
+
|
8 |
+
include_directories(${ZLIB_INCLUDE_DIRS})
|
9 |
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
10 |
+
|
11 |
+
set(CMAKE_DEBUG_POSTFIX "d")
|
12 |
+
|
13 |
+
if(MSVC)
|
14 |
+
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
15 |
+
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
16 |
+
add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
add_definitions(-DLIBRTMP_ONLY)
|
20 |
+
|
21 |
+
# List the header files
|
22 |
+
set(HEADERS librtmp/amf.h
|
23 |
+
librtmp/bytes.h
|
24 |
+
librtmp/dh.h
|
25 |
+
librtmp/dhgroups.h
|
26 |
+
librtmp/handshake.h
|
27 |
+
librtmp/http.h
|
28 |
+
librtmp/log.h
|
29 |
+
librtmp/rtmp.h
|
30 |
+
librtmp/rtmp_sys.h
|
31 |
+
)
|
32 |
+
|
33 |
+
# List the source files
|
34 |
+
set(SRCS librtmp/amf.c
|
35 |
+
librtmp/hashswf.c
|
36 |
+
librtmp/log.c
|
37 |
+
librtmp/parseurl.c
|
38 |
+
librtmp/rtmp.c
|
39 |
+
)
|
40 |
+
|
41 |
+
if(MSVC)
|
42 |
+
set(SRCS_MSVC "librtmp/librtmp.def")
|
43 |
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996")
|
44 |
+
endif()
|
45 |
+
|
46 |
+
add_library(librtmp ${SRCS} ${HEADERS} ${SRCS_MSVC})
|
47 |
+
|
48 |
+
target_include_directories(librtmp PRIVATE ./librtmp)
|
49 |
+
target_link_libraries(librtmp PRIVATE ${ZLIB_LIBRARIES} ${OPENSSL_LIBRARIES})
|
50 |
+
target_link_libraries(librtmp PRIVATE Ws2_32.lib Winmm.lib)
|
51 |
+
|
52 |
+
install(TARGETS librtmp
|
53 |
+
RUNTIME DESTINATION bin
|
54 |
+
LIBRARY DESTINATION lib
|
55 |
+
ARCHIVE DESTINATION lib)
|
56 |
+
|
57 |
+
install(DIRECTORY ${PROJECT_SOURCE_DIR}/librtmp DESTINATION include FILES_MATCHING PATTERN "*.h")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/dh.patch
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/librtmp/dh.h b/librtmp/dh.h
|
2 |
+
index 8e285a60c..ea562d200 100644
|
3 |
+
--- a/librtmp/dh.h
|
4 |
+
+++ b/librtmp/dh.h
|
5 |
+
@@ -139,11 +139,14 @@ typedef BIGNUM * MP_t;
|
6 |
+
#define MP_setbin(u,buf,len) BN_bn2bin(u,buf)
|
7 |
+
#define MP_getbin(u,buf,len) u = BN_bin2bn(buf,len,0)
|
8 |
+
|
9 |
+
+
|
10 |
+
#define MDH DH
|
11 |
+
#define MDH_new() DH_new()
|
12 |
+
#define MDH_free(dh) DH_free(dh)
|
13 |
+
#define MDH_generate_key(dh) DH_generate_key(dh)
|
14 |
+
#define MDH_compute_key(secret, seclen, pub, dh) DH_compute_key(secret, pub, dh)
|
15 |
+
+#define MPH_set_pqg(dh, p, q, g, res) res = DH_set0_pqg(dh, p, q, g)
|
16 |
+
+#define MPH_set_length(dh, len, res) res = DH_set_length(dh,len)
|
17 |
+
|
18 |
+
#endif
|
19 |
+
|
20 |
+
@@ -152,7 +155,7 @@ typedef BIGNUM * MP_t;
|
21 |
+
|
22 |
+
/* RFC 2631, Section 2.1.5, http://www.ietf.org/rfc/rfc2631.txt */
|
23 |
+
static int
|
24 |
+
-isValidPublicKey(MP_t y, MP_t p, MP_t q)
|
25 |
+
+isValidPublicKey(const MP_t y,const MP_t p, MP_t q)
|
26 |
+
{
|
27 |
+
int ret = TRUE;
|
28 |
+
MP_t bn;
|
29 |
+
@@ -211,20 +214,33 @@ DHInit(int nKeyBits)
|
30 |
+
if (!dh)
|
31 |
+
goto failed;
|
32 |
+
|
33 |
+
- MP_new(dh->g);
|
34 |
+
+ MP_t g,p;
|
35 |
+
+ MP_new(g);
|
36 |
+
|
37 |
+
- if (!dh->g)
|
38 |
+
+ if (!g)
|
39 |
+
+ {
|
40 |
+
goto failed;
|
41 |
+
+ }
|
42 |
+
|
43 |
+
- MP_gethex(dh->p, P1024, res); /* prime P1024, see dhgroups.h */
|
44 |
+
+ DH_get0_pqg(dh, (BIGNUM const**)&p, NULL, NULL);
|
45 |
+
+ MP_gethex(p, P1024, res); /* prime P1024, see dhgroups.h */
|
46 |
+
if (!res)
|
47 |
+
{
|
48 |
+
goto failed;
|
49 |
+
}
|
50 |
+
|
51 |
+
- MP_set_w(dh->g, 2); /* base 2 */
|
52 |
+
-
|
53 |
+
- dh->length = nKeyBits;
|
54 |
+
+ MP_set_w(g, 2); /* base 2 */
|
55 |
+
+ MPH_set_pqg(dh,p,NULL,g, res);
|
56 |
+
+ if (!res)
|
57 |
+
+ {
|
58 |
+
+ MP_free(g);
|
59 |
+
+ goto failed;
|
60 |
+
+ }
|
61 |
+
+ MPH_set_length(dh,nKeyBits, res);
|
62 |
+
+ if (!res)
|
63 |
+
+ {
|
64 |
+
+ goto failed;
|
65 |
+
+ }
|
66 |
+
return dh;
|
67 |
+
|
68 |
+
failed:
|
69 |
+
@@ -250,14 +267,11 @@ DHGenerateKey(MDH *dh)
|
70 |
+
|
71 |
+
MP_gethex(q1, Q1024, res);
|
72 |
+
assert(res);
|
73 |
+
-
|
74 |
+
- res = isValidPublicKey(dh->pub_key, dh->p, q1);
|
75 |
+
+ res = isValidPublicKey(DH_get0_pub_key(dh), DH_get0_p(dh), q1);
|
76 |
+
if (!res)
|
77 |
+
- {
|
78 |
+
- MP_free(dh->pub_key);
|
79 |
+
- MP_free(dh->priv_key);
|
80 |
+
- dh->pub_key = dh->priv_key = 0;
|
81 |
+
- }
|
82 |
+
+ {
|
83 |
+
+ MDH_free(dh); // Cannot set priv_key to nullptr so there is no way to generate a new pub/priv key pair in openssl 1.1.1.
|
84 |
+
+ }
|
85 |
+
|
86 |
+
MP_free(q1);
|
87 |
+
}
|
88 |
+
@@ -272,15 +286,16 @@ static int
|
89 |
+
DHGetPublicKey(MDH *dh, uint8_t *pubkey, size_t nPubkeyLen)
|
90 |
+
{
|
91 |
+
int len;
|
92 |
+
- if (!dh || !dh->pub_key)
|
93 |
+
+ MP_t pub = DH_get0_pub_key(dh);
|
94 |
+
+ if (!dh || !pub)
|
95 |
+
return 0;
|
96 |
+
|
97 |
+
- len = MP_bytes(dh->pub_key);
|
98 |
+
+ len = MP_bytes(pub);
|
99 |
+
if (len <= 0 || len > (int) nPubkeyLen)
|
100 |
+
return 0;
|
101 |
+
|
102 |
+
memset(pubkey, 0, nPubkeyLen);
|
103 |
+
- MP_setbin(dh->pub_key, pubkey + (nPubkeyLen - len), len);
|
104 |
+
+ MP_setbin(pub, pubkey + (nPubkeyLen - len), len);
|
105 |
+
return 1;
|
106 |
+
}
|
107 |
+
|
108 |
+
@@ -288,15 +303,16 @@ DHGetPublicKey(MDH *dh, uint8_t *pubkey, size_t nPubkeyLen)
|
109 |
+
static int
|
110 |
+
DHGetPrivateKey(MDH *dh, uint8_t *privkey, size_t nPrivkeyLen)
|
111 |
+
{
|
112 |
+
- if (!dh || !dh->priv_key)
|
113 |
+
+ MP_t priv = DH_get0_priv_key(dh);
|
114 |
+
+ if (!dh || !priv)
|
115 |
+
return 0;
|
116 |
+
|
117 |
+
- int len = MP_bytes(dh->priv_key);
|
118 |
+
+ int len = MP_bytes(priv);
|
119 |
+
if (len <= 0 || len > (int) nPrivkeyLen)
|
120 |
+
return 0;
|
121 |
+
|
122 |
+
memset(privkey, 0, nPrivkeyLen);
|
123 |
+
- MP_setbin(dh->priv_key, privkey + (nPrivkeyLen - len), len);
|
124 |
+
+ MP_setbin(priv, privkey + (nPrivkeyLen - len), len);
|
125 |
+
return 1;
|
126 |
+
}
|
127 |
+
#endif
|
128 |
+
@@ -322,7 +338,7 @@ DHComputeSharedSecretKey(MDH *dh, uint8_t *pubkey, size_t nPubkeyLen,
|
129 |
+
MP_gethex(q1, Q1024, len);
|
130 |
+
assert(len);
|
131 |
+
|
132 |
+
- if (isValidPublicKey(pubkeyBn, dh->p, q1))
|
133 |
+
+ if (isValidPublicKey(pubkeyBn, DH_get0_p(dh), q1))
|
134 |
+
res = MDH_compute_key(secret, nPubkeyLen, pubkeyBn, dh);
|
135 |
+
else
|
136 |
+
res = -1;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/fix_strncasecmp.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/librtmp/rtmp_sys.h b/librtmp/rtmp_sys.h
|
2 |
+
index 6a3f215..1b5ac2a 100644
|
3 |
+
--- a/librtmp/rtmp_sys.h
|
4 |
+
+++ b/librtmp/rtmp_sys.h
|
5 |
+
@@ -28,11 +28,13 @@
|
6 |
+
#include <ws2tcpip.h>
|
7 |
+
|
8 |
+
#ifdef _MSC_VER /* MSVC */
|
9 |
+
+#if _MSC_VER < 1900
|
10 |
+
#define snprintf _snprintf
|
11 |
+
-#define strcasecmp stricmp
|
12 |
+
-#define strncasecmp strnicmp
|
13 |
+
#define vsnprintf _vsnprintf
|
14 |
+
#endif
|
15 |
+
+#define strcasecmp _stricmp
|
16 |
+
+#define strncasecmp _strnicmp
|
17 |
+
+#endif
|
18 |
+
|
19 |
+
#define GetSockError() WSAGetLastError()
|
20 |
+
#define SetSockError(e) WSASetLastError(e)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/handshake.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/librtmp/handshake.h b/librtmp/handshake.h
|
2 |
+
index 98bf3c877..0819152bd 100644
|
3 |
+
--- a/librtmp/handshake.h
|
4 |
+
+++ b/librtmp/handshake.h
|
5 |
+
@@ -66,9 +66,9 @@ typedef gcry_cipher_hd_t RC4_handle;
|
6 |
+
#if OPENSSL_VERSION_NUMBER < 0x0090800 || !defined(SHA256_DIGEST_LENGTH)
|
7 |
+
#error Your OpenSSL is too old, need 0.9.8 or newer with SHA256
|
8 |
+
#endif
|
9 |
+
-#define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, key, len, EVP_sha256(), 0)
|
10 |
+
-#define HMAC_crunch(ctx, buf, len) HMAC_Update(&ctx, buf, len)
|
11 |
+
-#define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, dig, &dlen); HMAC_CTX_cleanup(&ctx)
|
12 |
+
+#define HMAC_setup(ctx, key, len) ctx = HMAC_CTX_new(); HMAC_Init_ex(ctx, key, len, EVP_sha256(), 0)
|
13 |
+
+#define HMAC_crunch(ctx, buf, len) HMAC_Update(ctx, buf, len)
|
14 |
+
+#define HMAC_finish(ctx, dig, dlen) HMAC_Final(ctx, dig, &dlen); HMAC_CTX_free(ctx)
|
15 |
+
|
16 |
+
typedef RC4_KEY * RC4_handle;
|
17 |
+
#define RC4_alloc(h) *h = malloc(sizeof(RC4_KEY))
|
18 |
+
@@ -114,7 +114,7 @@ static void InitRC4Encryption
|
19 |
+
{
|
20 |
+
uint8_t digest[SHA256_DIGEST_LENGTH];
|
21 |
+
unsigned int digestLen = 0;
|
22 |
+
- HMAC_CTX ctx;
|
23 |
+
+ HMAC_CTX *ctx;
|
24 |
+
|
25 |
+
RC4_alloc(rc4keyIn);
|
26 |
+
RC4_alloc(rc4keyOut);
|
27 |
+
@@ -263,7 +263,7 @@ HMACsha256(const uint8_t *message, size_t messageLen, const uint8_t *key,
|
28 |
+
size_t keylen, uint8_t *digest)
|
29 |
+
{
|
30 |
+
unsigned int digestLen;
|
31 |
+
- HMAC_CTX ctx;
|
32 |
+
+ HMAC_CTX *ctx;
|
33 |
+
|
34 |
+
HMAC_setup(ctx, key, keylen);
|
35 |
+
HMAC_crunch(ctx, message, messageLen);
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/hashswf.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/librtmp/hashswf.c b/librtmp/hashswf.c
|
2 |
+
index 3c56b6922..964a64d01 100644
|
3 |
+
--- a/librtmp/hashswf.c
|
4 |
+
+++ b/librtmp/hashswf.c
|
5 |
+
@@ -57,10 +57,10 @@
|
6 |
+
#include <openssl/sha.h>
|
7 |
+
#include <openssl/hmac.h>
|
8 |
+
#include <openssl/rc4.h>
|
9 |
+
-#define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, (unsigned char *)key, len, EVP_sha256(), 0)
|
10 |
+
-#define HMAC_crunch(ctx, buf, len) HMAC_Update(&ctx, (unsigned char *)buf, len)
|
11 |
+
-#define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, (unsigned char *)dig, &dlen);
|
12 |
+
-#define HMAC_close(ctx) HMAC_CTX_cleanup(&ctx)
|
13 |
+
+#define HMAC_setup(ctx, key, len) ctx = HMAC_CTX_new(); HMAC_Init_ex(ctx, (unsigned char *)key, len, EVP_sha256(), 0)
|
14 |
+
+#define HMAC_crunch(ctx, buf, len) HMAC_Update(ctx, (unsigned char *)buf, len)
|
15 |
+
+#define HMAC_finish(ctx, dig, dlen) HMAC_Final(ctx, (unsigned char *)dig, &dlen);
|
16 |
+
+#define HMAC_close(ctx) HMAC_CTX_free(ctx)
|
17 |
+
#endif
|
18 |
+
|
19 |
+
extern void RTMP_TLS_Init();
|
20 |
+
@@ -289,7 +289,7 @@ leave:
|
21 |
+
struct info
|
22 |
+
{
|
23 |
+
z_stream *zs;
|
24 |
+
- HMAC_CTX ctx;
|
25 |
+
+ HMAC_CTX *ctx;
|
26 |
+
int first;
|
27 |
+
int zlib;
|
28 |
+
int size;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/hide_netstackdump.patch
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
|
2 |
+
index 0865689..b00710e 100644
|
3 |
+
--- a/librtmp/rtmp.c
|
4 |
+
+++ b/librtmp/rtmp.c
|
5 |
+
@@ -155,7 +155,7 @@ static int clk_tck;
|
6 |
+
uint32_t
|
7 |
+
RTMP_GetTime()
|
8 |
+
{
|
9 |
+
-#ifdef _DEBUG
|
10 |
+
+#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
|
11 |
+
return 0;
|
12 |
+
#elif defined(_WIN32)
|
13 |
+
return timeGetTime();
|
14 |
+
@@ -1381,7 +1381,7 @@ RTMP_ClientPacket(RTMP *r, RTMPPacket *packet)
|
15 |
+
return bHasMediaPacket;
|
16 |
+
}
|
17 |
+
|
18 |
+
-#ifdef _DEBUG
|
19 |
+
+#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
|
20 |
+
extern FILE *netstackdump;
|
21 |
+
extern FILE *netstackdump_read;
|
22 |
+
#endif
|
23 |
+
@@ -1469,7 +1469,7 @@ ReadN(RTMP *r, char *buffer, int n)
|
24 |
+
return FALSE;
|
25 |
+
}
|
26 |
+
/*RTMP_Log(RTMP_LOGDEBUG, "%s: %d bytes\n", __FUNCTION__, nBytes); */
|
27 |
+
-#ifdef _DEBUG
|
28 |
+
+#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
|
29 |
+
fwrite(ptr, 1, nBytes, netstackdump_read);
|
30 |
+
#endif
|
31 |
+
|
32 |
+
@@ -3757,7 +3757,7 @@ HandShake(RTMP *r, int FP9HandShake)
|
33 |
+
|
34 |
+
memset(&clientsig[4], 0, 4);
|
35 |
+
|
36 |
+
-#ifdef _DEBUG
|
37 |
+
+#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
|
38 |
+
for (i = 8; i < RTMP_SIG_SIZE; i++)
|
39 |
+
clientsig[i] = 0xff;
|
40 |
+
#else
|
41 |
+
@@ -3829,7 +3829,7 @@ SHandShake(RTMP *r)
|
42 |
+
memcpy(serversig, &uptime, 4);
|
43 |
+
|
44 |
+
memset(&serversig[4], 0, 4);
|
45 |
+
-#ifdef _DEBUG
|
46 |
+
+#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
|
47 |
+
for (i = 8; i < RTMP_SIG_SIZE; i++)
|
48 |
+
serversig[i] = 0xff;
|
49 |
+
#else
|
50 |
+
@@ -4298,7 +4298,7 @@ RTMPSockBuf_Send(RTMPSockBuf *sb, const char *buf, int len)
|
51 |
+
{
|
52 |
+
int rc;
|
53 |
+
|
54 |
+
-#ifdef _DEBUG
|
55 |
+
+#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
|
56 |
+
fwrite(buf, 1, len, netstackdump);
|
57 |
+
#endif
|
58 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/librtmp.def
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
AMF3_Decode
|
3 |
+
AMF3CD_AddProp
|
4 |
+
AMF3CD_GetProp
|
5 |
+
AMF3Prop_Decode
|
6 |
+
AMF3ReadInteger
|
7 |
+
AMF3ReadString
|
8 |
+
|
9 |
+
AMF_AddProp
|
10 |
+
AMF_CountProp
|
11 |
+
AMF_Decode
|
12 |
+
AMF_DecodeArray
|
13 |
+
AMF_DecodeBoolean
|
14 |
+
AMF_DecodeInt16
|
15 |
+
AMF_DecodeInt24
|
16 |
+
AMF_DecodeInt32
|
17 |
+
AMF_DecodeLongString
|
18 |
+
AMF_DecodeNumber
|
19 |
+
AMF_DecodeString
|
20 |
+
AMF_Dump
|
21 |
+
AMF_Encode
|
22 |
+
AMF_EncodeBoolean
|
23 |
+
AMF_EncodeInt16
|
24 |
+
AMF_EncodeInt24
|
25 |
+
AMF_EncodeInt32
|
26 |
+
AMF_EncodeNamedBoolean
|
27 |
+
AMF_EncodeNamedNumber
|
28 |
+
AMF_EncodeNamedString
|
29 |
+
AMF_EncodeNumber
|
30 |
+
AMF_EncodeString
|
31 |
+
AMF_GetProp
|
32 |
+
AMF_Reset
|
33 |
+
|
34 |
+
AMFProp_Decode
|
35 |
+
AMFProp_Dump
|
36 |
+
AMFProp_Encode
|
37 |
+
AMFProp_GetBoolean
|
38 |
+
AMFProp_GetName
|
39 |
+
AMFProp_GetNumber
|
40 |
+
AMFProp_GetObject
|
41 |
+
AMFProp_GetString
|
42 |
+
AMFProp_GetType
|
43 |
+
AMFProp_IsValid
|
44 |
+
AMFProp_Reset
|
45 |
+
AMFProp_SetName
|
46 |
+
|
47 |
+
RTMP_Alloc
|
48 |
+
RTMP_ClientPacket
|
49 |
+
RTMP_Close
|
50 |
+
RTMP_Connect
|
51 |
+
RTMP_Connect0
|
52 |
+
RTMP_Connect1
|
53 |
+
RTMP_ConnectStream
|
54 |
+
RTMP_debuglevel
|
55 |
+
RTMP_DeleteStream
|
56 |
+
RTMP_DropRequest
|
57 |
+
RTMP_EnableWrite
|
58 |
+
RTMP_FindFirstMatchingProperty
|
59 |
+
RTMP_FindPrefixProperty
|
60 |
+
RTMP_Free
|
61 |
+
RTMP_GetDuration
|
62 |
+
RTMP_GetNextMediaPacket
|
63 |
+
RTMP_GetTime
|
64 |
+
RTMP_HashSWF
|
65 |
+
RTMP_Init
|
66 |
+
RTMP_IsConnected
|
67 |
+
RTMP_IsTimedout
|
68 |
+
RTMP_LibVersion
|
69 |
+
RTMP_Log
|
70 |
+
RTMP_LogGetLevel
|
71 |
+
RTMP_LogHex
|
72 |
+
RTMP_LogHexString
|
73 |
+
RTMP_LogPrintf
|
74 |
+
RTMP_LogSetCallback
|
75 |
+
RTMP_LogSetLevel
|
76 |
+
RTMP_LogSetOutput
|
77 |
+
RTMP_LogStatus
|
78 |
+
RTMP_ParsePlaypath
|
79 |
+
RTMP_ParseURL
|
80 |
+
RTMP_Pause
|
81 |
+
RTMP_Read
|
82 |
+
RTMP_ReadPacket
|
83 |
+
RTMP_ReconnectStream
|
84 |
+
RTMP_SendChunk
|
85 |
+
RTMP_SendClientBW
|
86 |
+
RTMP_SendCreateStream
|
87 |
+
RTMP_SendCtrl
|
88 |
+
RTMP_SendPacket
|
89 |
+
RTMP_SendPause
|
90 |
+
RTMP_SendSeek
|
91 |
+
RTMP_SendServerBW
|
92 |
+
RTMP_Serve
|
93 |
+
RTMP_SetBufferMS
|
94 |
+
RTMP_SetOpt
|
95 |
+
RTMP_SetupStream
|
96 |
+
RTMP_SetupURL
|
97 |
+
RTMP_Socket
|
98 |
+
RTMP_TLS_Init
|
99 |
+
RTMP_ToggleStream
|
100 |
+
RTMP_UpdateBufferMS
|
101 |
+
RTMP_UserInterrupt
|
102 |
+
RTMP_Write
|
103 |
+
RTMPPacket_Alloc
|
104 |
+
RTMPPacket_Dump
|
105 |
+
RTMPPacket_Free
|
106 |
+
RTMPPacket_Reset
|
107 |
+
RTMPSockBuf_Close
|
108 |
+
RTMPSockBuf_Fill
|
109 |
+
RTMPSockBuf_Send
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mirror/rtmpdump
|
4 |
+
REF c5f04a58fc2aeea6296ca7c44ee4734c18401aa3
|
5 |
+
SHA512 d97ac38672898a96412baa5f03d1e64d512ccefe15ead0a055ca039dc6057e2e620e046c28f4d7468e132b0b5a9eb9bd171250c1afa14da53760a0d7aae3c9e9
|
6 |
+
PATCHES
|
7 |
+
dh.patch #Openssl 1.1.1 patch
|
8 |
+
handshake.patch #Openssl 1.1.1 patch
|
9 |
+
hashswf.patch #Openssl 1.1.1 patch
|
10 |
+
fix_strncasecmp.patch
|
11 |
+
hide_netstackdump.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
15 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/librtmp.def DESTINATION ${SOURCE_PATH}/librtmp)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
25 |
+
|
26 |
+
# License and man
|
27 |
+
file(INSTALL ${SOURCE_PATH}/librtmp/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/librtmp RENAME copyright)
|
28 |
+
file(INSTALL ${SOURCE_PATH}/librtmp/librtmp.3.html DESTINATION ${CURRENT_PACKAGES_DIR}/share/librtmp)
|
29 |
+
|
30 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librtmp/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "librtmp",
|
3 |
+
"version-date": "2019-11-11",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "RTMPDump Real-Time Messaging Protocol API",
|
6 |
+
"homepage": "https://rtmpdump.mplayerhq.hu",
|
7 |
+
"dependencies": [
|
8 |
+
"openssl",
|
9 |
+
"zlib"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/fix-makefiles.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/makefile.vc b/makefile.vc
|
2 |
+
index 1f790f0..f78d0c9 100644
|
3 |
+
--- a/makefile.vc
|
4 |
+
+++ b/makefile.vc
|
5 |
+
@@ -17,7 +17,7 @@ LIBOBJ = src\box2d.obj src\bytebuffer.obj src\g_box.obj \
|
6 |
+
src\rtout_kml.obj src\rtout_svg.obj src\rtout_twkb.obj src\rtout_wkb.obj \
|
7 |
+
src\rtout_wkt.obj src\rtout_x3d.obj src\rtpoint.obj src\rtpoly.obj src\rtprint.obj \
|
8 |
+
src\rtpsurface.obj src\rtspheroid.obj src\rtstroke.obj src\rttin.obj src\rttree.obj \
|
9 |
+
- src\rttriangle.obj src\rtutil.obj src\stringbuffer.obj src\varint.obj
|
10 |
+
+ src\rttriangle.obj src\rtutil.obj src\stringbuffer.obj src\varint.obj src\rtt_tpsnap.obj
|
11 |
+
|
12 |
+
LIBRTTOPO_DLL = librttopo$(VERSION).dll
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/fix-pc-file.patch
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/rttopo.pc.in b/rttopo.pc.in
|
2 |
+
index 86c71dc..4064506 100644
|
3 |
+
--- a/rttopo.pc.in
|
4 |
+
+++ b/rttopo.pc.in
|
5 |
+
@@ -10,3 +10,4 @@ Description: the RT Topology library
|
6 |
+
Version: @VERSION@
|
7 |
+
Libs: -L${libdir} -lrttopo -lm
|
8 |
+
Cflags: -I${includedir}
|
9 |
+
+Requires.private: geos
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/geos-config.patch
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index a956106..739ee88 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -110,7 +110,7 @@ else
|
6 |
+
fi
|
7 |
+
fi
|
8 |
+
# Extract the linker and include flags
|
9 |
+
-GEOS_LDFLAGS=`$GEOSCONFIG --ldflags`
|
10 |
+
+GEOS_LDFLAGS=`$GEOSCONFIG --clibs`
|
11 |
+
GEOS_CFLAGS=-I`$GEOSCONFIG --includes`
|
12 |
+
AC_SUBST([GEOS_LDFLAGS])
|
13 |
+
AC_SUBST([GEOS_CFLAGS])
|
14 |
+
@@ -122,9 +122,9 @@ CPPFLAGS="$CPPFLAGS_SAVE"
|
15 |
+
# Ensure we can link against libgeos_c
|
16 |
+
LIBS_SAVE="$LIBS"
|
17 |
+
LIBS="$GEOS_LDFLAGS"
|
18 |
+
-AC_SEARCH_LIBS(GEOSContext_setErrorMessageHandler_r,geos_c,,AC_MSG_ERROR([could not find libgeos_c (or obsolete 'libgeos_c' < v.3.5.0 found) - you may need to specify the directory of a geos-config file using --with-geosconfig]))
|
19 |
+
+AC_SEARCH_LIBS(GEOSContext_setErrorMessageHandler_r,,,AC_MSG_ERROR([could not find libgeos_c (or obsolete 'libgeos_c' < v.3.5.0 found) - you may need to specify the directory of a geos-config file using --with-geosconfig]))
|
20 |
+
LIBS="$LIBS_SAVE"
|
21 |
+
-LIBS="$LIBS $GEOS_LDFLAGS -lgeos_c"
|
22 |
+
+LIBS="$LIBS $GEOS_LDFLAGS"
|
23 |
+
GEOS_MAJOR_VERSION=`$GEOSCONFIG --version | cut -d. -f1 | sed 's/[[^0-9]]//g'`
|
24 |
+
GEOS_MINOR_VERSION=`$GEOSCONFIG --version | cut -d. -f2 | sed 's/[[^0-9]]//g'`
|
25 |
+
RTGEOM_GEOS_VERSION="$GEOS_MAJOR_VERSION$GEOS_MINOR_VERSION"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/portfile.cmake
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NOTE: update the version and checksum for new LIBRTTOPO release
|
2 |
+
set(LIBRTTOPO_VERSION_STR "1.1.0")
|
3 |
+
set(LIBRTTOPO_PACKAGE_SUM "d9c2f4db1261cc942152d348abb7f03e6053a63b6966e081c5381d40bbebd3c7ca1963224487355f384d7562a90287fb24d7af9e7eda4a1e230ee6441cef5de9")
|
4 |
+
|
5 |
+
vcpkg_download_distfile(ARCHIVE
|
6 |
+
URLS "https://download.osgeo.org/librttopo/src/librttopo-${LIBRTTOPO_VERSION_STR}.tar.gz"
|
7 |
+
FILENAME "librttopo-${LIBRTTOPO_VERSION_STR}.tar.gz"
|
8 |
+
SHA512 ${LIBRTTOPO_PACKAGE_SUM}
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_extract_source_archive_ex(
|
12 |
+
ARCHIVE "${ARCHIVE}"
|
13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
14 |
+
PATCHES
|
15 |
+
fix-makefiles.patch
|
16 |
+
geos-config.patch
|
17 |
+
fix-pc-file.patch
|
18 |
+
)
|
19 |
+
|
20 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
21 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
22 |
+
|
23 |
+
file(REMOVE "${SOURCE_PATH}/src/rttopo_config.h")
|
24 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/rttopo_config.h.in" "${SOURCE_PATH}/src/rttopo_config.h" @ONLY)
|
25 |
+
|
26 |
+
set(OPTFLAGS "/nologo /fp:precise /W4 /D_CRT_SECURE_NO_WARNINGS /DDLL_EXPORT")
|
27 |
+
vcpkg_build_nmake(
|
28 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
29 |
+
TARGET librttopo.lib
|
30 |
+
OPTIONS
|
31 |
+
"OPTFLAGS=${OPTFLAGS}"
|
32 |
+
"CFLAGS=-I. -Iheaders ${OPTFLAGS}"
|
33 |
+
)
|
34 |
+
|
35 |
+
file(GLOB LIBRTTOPO_INCLUDE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/headers/*.h")
|
36 |
+
file(COPY ${LIBRTTOPO_INCLUDE} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
37 |
+
|
38 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
40 |
+
file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/librttopo.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
41 |
+
endif()
|
42 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
44 |
+
file(COPY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/librttopo.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
45 |
+
endif()
|
46 |
+
|
47 |
+
set(VERSION "${LIBRTTOPO_VERSION_STR}")
|
48 |
+
set(libdir [[${prefix}/lib]])
|
49 |
+
set(exec_prefix [[${prefix}]])
|
50 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
51 |
+
set(includedir [[${prefix}/include]])
|
52 |
+
set(outfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/rttopo.pc")
|
53 |
+
configure_file("${SOURCE_PATH}/rttopo.pc.in" "${outfile}" @ONLY)
|
54 |
+
vcpkg_replace_string("${outfile}" " -lrttopo -lm" " -llibrttopo")
|
55 |
+
endif()
|
56 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
57 |
+
set(includedir [[${prefix}/../include]])
|
58 |
+
set(outfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/rttopo.pc")
|
59 |
+
configure_file("${SOURCE_PATH}/rttopo.pc.in" "${outfile}" @ONLY)
|
60 |
+
vcpkg_replace_string("${outfile}" " -lrttopo -lm" " -llibrttopo")
|
61 |
+
endif()
|
62 |
+
else()
|
63 |
+
vcpkg_configure_make(
|
64 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
65 |
+
AUTOCONFIG
|
66 |
+
OPTIONS_DEBUG
|
67 |
+
"--with-geosconfig=${CURRENT_INSTALLED_DIR}/tools/geos/debug/bin/geos-config"
|
68 |
+
OPTIONS_RELEASE
|
69 |
+
"--with-geosconfig=${CURRENT_INSTALLED_DIR}/tools/geos/bin/geos-config"
|
70 |
+
)
|
71 |
+
vcpkg_install_make()
|
72 |
+
endif()
|
73 |
+
vcpkg_fixup_pkgconfig()
|
74 |
+
|
75 |
+
# Handle copyright
|
76 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/rttopo_config.h.in
ADDED
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* src/rttopo_config.h. Generated from rttopo_config.h.in by configure. */
|
2 |
+
/* src/rttopo_config.h.in. Generated from configure.ac by autoheader. */
|
3 |
+
|
4 |
+
/* Define to 1 if you have the <assert.h> header file. */
|
5 |
+
#define HAVE_ASSERT_H 1
|
6 |
+
|
7 |
+
/* Define to 1 if you have the <ctype.h> header file. */
|
8 |
+
#define HAVE_CTYPE_H 1
|
9 |
+
|
10 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
11 |
+
#define HAVE_DLFCN_H 1
|
12 |
+
|
13 |
+
/* Define to 1 if you have the <errno.h> header file. */
|
14 |
+
#define HAVE_ERRNO_H 1
|
15 |
+
|
16 |
+
/* Define to 1 if you have the `fdatasync' function. */
|
17 |
+
#define HAVE_FDATASYNC 1
|
18 |
+
|
19 |
+
/* Define to 1 if you have the <float.h> header file. */
|
20 |
+
#define HAVE_FLOAT_H 1
|
21 |
+
|
22 |
+
/* Define to 1 if you have the `ftruncate' function. */
|
23 |
+
#define HAVE_FTRUNCATE 1
|
24 |
+
|
25 |
+
/* Define to 1 if you have the <geos_c.h> header file. */
|
26 |
+
#define HAVE_GEOS_C_H 1
|
27 |
+
|
28 |
+
/* Define to 1 if you have the `getcwd' function. */
|
29 |
+
#define HAVE_GETCWD 1
|
30 |
+
|
31 |
+
/* Define to 1 if you have the `gettimeofday' function. */
|
32 |
+
#define HAVE_GETTIMEOFDAY 1
|
33 |
+
|
34 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
35 |
+
#define HAVE_INTTYPES_H 1
|
36 |
+
|
37 |
+
/* Define to 1 if you have the `localtime_r' function. */
|
38 |
+
#define HAVE_LOCALTIME_R 1
|
39 |
+
|
40 |
+
/* Define to 1 if `lstat' has the bug that it succeeds when given the
|
41 |
+
zero-length file name argument. */
|
42 |
+
/* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
|
43 |
+
|
44 |
+
/* Define to 1 if you have the <math.h> header file. */
|
45 |
+
#define HAVE_MATH_H 1
|
46 |
+
|
47 |
+
/* Define to 1 if you have the `memmove' function. */
|
48 |
+
#define HAVE_MEMMOVE 1
|
49 |
+
|
50 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
51 |
+
#define HAVE_MEMORY_H 1
|
52 |
+
|
53 |
+
/* Define to 1 if you have the `memset' function. */
|
54 |
+
#define HAVE_MEMSET 1
|
55 |
+
|
56 |
+
/* Define to 1 if you have the `sqrt' function. */
|
57 |
+
/* #undef HAVE_SQRT */
|
58 |
+
|
59 |
+
/* Define to 1 if `stat' has the bug that it succeeds when given the
|
60 |
+
zero-length file name argument. */
|
61 |
+
/* #undef HAVE_STAT_EMPTY_STRING_BUG */
|
62 |
+
|
63 |
+
/* Define to 1 if you have the <stdarg.h> header file. */
|
64 |
+
#define HAVE_STDARG_H 1
|
65 |
+
|
66 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
67 |
+
#define HAVE_STDINT_H 1
|
68 |
+
|
69 |
+
/* Define to 1 if you have the <stdio.h> header file. */
|
70 |
+
#define HAVE_STDIO_H 1
|
71 |
+
|
72 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
73 |
+
#define HAVE_STDLIB_H 1
|
74 |
+
|
75 |
+
/* Define to 1 if you have the `strcasecmp' function. */
|
76 |
+
#define HAVE_STRCASECMP 1
|
77 |
+
|
78 |
+
/* Define to 1 if you have the `strerror' function. */
|
79 |
+
#define HAVE_STRERROR 1
|
80 |
+
|
81 |
+
/* Define to 1 if you have the `strftime' function. */
|
82 |
+
#define HAVE_STRFTIME 1
|
83 |
+
|
84 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
85 |
+
#define HAVE_STRINGS_H 1
|
86 |
+
|
87 |
+
/* Define to 1 if you have the <string.h> header file. */
|
88 |
+
#define HAVE_STRING_H 1
|
89 |
+
|
90 |
+
/* Define to 1 if you have the `strncasecmp' function. */
|
91 |
+
#define HAVE_STRNCASECMP 1
|
92 |
+
|
93 |
+
/* Define to 1 if you have the `strstr' function. */
|
94 |
+
#define HAVE_STRSTR 1
|
95 |
+
|
96 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
97 |
+
#define HAVE_SYS_STAT_H 1
|
98 |
+
|
99 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
100 |
+
#define HAVE_SYS_TYPES_H 1
|
101 |
+
|
102 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
103 |
+
#define HAVE_UNISTD_H 1
|
104 |
+
|
105 |
+
/* rtgeom version */
|
106 |
+
#define LIBRTGEOM_VERSION "1.1.0"
|
107 |
+
|
108 |
+
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
|
109 |
+
slash. */
|
110 |
+
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
|
111 |
+
|
112 |
+
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
113 |
+
#define LT_OBJDIR ".libs/"
|
114 |
+
|
115 |
+
/* Must be defined in order to disable debug mode. */
|
116 |
+
#undef NDEBUG
|
117 |
+
|
118 |
+
/* Name of package */
|
119 |
+
#define PACKAGE "librttopo"
|
120 |
+
|
121 |
+
/* Define to the address where bug reports for this package should be sent. */
|
122 |
+
#define PACKAGE_BUGREPORT "[email protected]"
|
123 |
+
|
124 |
+
/* Define to the full name of this package. */
|
125 |
+
#define PACKAGE_NAME "librttopo"
|
126 |
+
|
127 |
+
/* Define to the full name and version of this package. */
|
128 |
+
#define PACKAGE_STRING "librttopo 1.1.0"
|
129 |
+
|
130 |
+
/* Define to the one symbol short name of this package. */
|
131 |
+
#define PACKAGE_TARNAME "librttopo"
|
132 |
+
|
133 |
+
/* Define to the home page for this package. */
|
134 |
+
#define PACKAGE_URL ""
|
135 |
+
|
136 |
+
/* Define to the version of this package. */
|
137 |
+
#define PACKAGE_VERSION "1.1.0"
|
138 |
+
|
139 |
+
/* RTGEOM Debug level */
|
140 |
+
#define RTGEOM_DEBUG_LEVEL 0
|
141 |
+
|
142 |
+
/* GEOS library version */
|
143 |
+
#define RTGEOM_GEOS_VERSION 38
|
144 |
+
|
145 |
+
/* Define to 1 if you have the ANSI C header files. */
|
146 |
+
#define STDC_HEADERS 1
|
147 |
+
|
148 |
+
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
149 |
+
#define TIME_WITH_SYS_TIME 1
|
150 |
+
|
151 |
+
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
152 |
+
/* #undef TM_IN_SYS_TIME */
|
153 |
+
|
154 |
+
/* Version number of package */
|
155 |
+
#define VERSION "1.1.0"
|
156 |
+
|
157 |
+
/* Define to empty if `const' does not conform to ANSI C. */
|
158 |
+
/* #undef const */
|
159 |
+
|
160 |
+
/* Define to `long int' if <sys/types.h> does not define. */
|
161 |
+
/* #undef off_t */
|
162 |
+
|
163 |
+
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
164 |
+
/* #undef size_t */
|
165 |
+
|
166 |
+
/* Define to empty if the keyword `volatile' does not work. Warning: valid
|
167 |
+
code using `volatile' can become incorrect without. Disable with care. */
|
168 |
+
/* #undef volatile */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/librttopo/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "librttopo",
|
3 |
+
"version": "1.1.0",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "The RT Topology Library exposes an API to create and manage standard (ISO 13249 aka SQL/MM) topologies using user-provided data stores.",
|
6 |
+
"homepage": "https://git.osgeo.org/gitea/rttopo/librttopo",
|
7 |
+
"dependencies": [
|
8 |
+
"geos"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsamplerate/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libsndfile/libsamplerate
|
4 |
+
REF 0.2.2
|
5 |
+
SHA512 37e0fd604907caf978659466289315befd66eec16c21a94e0b6106de18ffe803fbf2e7f3a8fb0430b33c0b784ecd6d4eaf3b9a862ed2670104647decbee913d6
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
OPTIONS
|
13 |
+
-DBUILD_TESTING=OFF
|
14 |
+
-DLIBSAMPLERATE_EXAMPLES=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
|
19 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/SampleRate TARGET_PATH share/SampleRate)
|
20 |
+
vcpkg_fixup_pkgconfig()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
24 |
+
|
25 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsamplerate/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsamplerate",
|
3 |
+
"version-string": "0.2.2",
|
4 |
+
"description": "Sample Rate Converter for audio",
|
5 |
+
"homepage": "http://libsndfile.github.io/libsamplerate/"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsass/portfile.cmake
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO sass/libsass
|
4 |
+
REF 3.6.5
|
5 |
+
SHA512 98CC7E12FDF74CD9E92D8D4A62B821956D3AD186FCEE9A8D77B677A621342AA161B73D9ADAD4C1849678A3BAC890443120CC8FEBE1B7429AAB374321D635B8F7
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES remove_compiler_flags.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_make(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
AUTOCONFIG
|
13 |
+
)
|
14 |
+
vcpkg_install_make(MAKEFILE GNUmakefile)
|
15 |
+
vcpkg_fixup_pkgconfig()
|
16 |
+
vcpkg_copy_pdbs()
|
17 |
+
|
18 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsass/remove_compiler_flags.patch
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/GNUmakefile.am b/GNUmakefile.am
|
2 |
+
index 06a1d0c1e..6e7a15485 100644
|
3 |
+
--- a/GNUmakefile.am
|
4 |
+
+++ b/GNUmakefile.am
|
5 |
+
@@ -1,6 +1,6 @@
|
6 |
+
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
|
7 |
+
|
8 |
+
-AM_COPT = -Wall -O2
|
9 |
+
+AM_COPT =
|
10 |
+
AM_COVLDFLAGS =
|
11 |
+
|
12 |
+
if ENABLE_COVERAGE
|
13 |
+
diff --git a/src/GNUmakefile.am b/src/GNUmakefile.am
|
14 |
+
index 9b0e6a99b..00404a017 100644
|
15 |
+
--- a/src/GNUmakefile.am
|
16 |
+
+++ b/src/GNUmakefile.am
|
17 |
+
@@ -1,6 +1,6 @@
|
18 |
+
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
|
19 |
+
|
20 |
+
-AM_COPT = -Wall -O2
|
21 |
+
+AM_COPT =
|
22 |
+
AM_COVLDFLAGS =
|
23 |
+
|
24 |
+
if ENABLE_COVERAGE
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsass/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsass",
|
3 |
+
"version": "3.6.5",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "LibSass - Sass compiler written in C++",
|
6 |
+
"homepage": "https://github.com/sass/libsass",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbml/portfile.cmake
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO sbmlteam/libsbml
|
4 |
+
REF 118ffbf11f1a5245cc544c1eac71019d979ecb20 #libSBML-5.19.0
|
5 |
+
SHA512 7fe8b4d594876c6408e01c646187cb1587d0b4e12707a43286150d4e4646841e547bde971de917de1cdfbbb9365172aeac43c8e02f7d354400f9166f0f1c2c3d
|
6 |
+
HEAD_REF development
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_RUNTIME)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" STATIC_LIBRARY)
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
comp ENABLE_COMP
|
15 |
+
fbc ENABLE_FBC
|
16 |
+
groups ENABLE_GROUPS
|
17 |
+
layout ENABLE_LAYOUT
|
18 |
+
multi ENABLE_MULTI
|
19 |
+
qual ENABLE_QUAL
|
20 |
+
render ENABLE_RENDER
|
21 |
+
render ENABLE_LAYOUT
|
22 |
+
bzip2 WITH_BZIP2
|
23 |
+
zlib WITH_ZLIB
|
24 |
+
test WITH_CHECK
|
25 |
+
namespace WITH_CPP_NAMESPACE
|
26 |
+
)
|
27 |
+
|
28 |
+
# Handle conflict features
|
29 |
+
set(WITH_EXPAT OFF)
|
30 |
+
if ("expat" IN_LIST FEATURES)
|
31 |
+
set(WITH_EXPAT ON)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
set(WITH_LIBXML OFF)
|
35 |
+
if ("libxml2" IN_LIST FEATURES)
|
36 |
+
set(WITH_LIBXML ON)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
if (WITH_EXPAT AND WITH_LIBXML)
|
40 |
+
message("Feature expat conflict with feature libxml2, currently using libxml2...")
|
41 |
+
set(WITH_EXPAT OFF)
|
42 |
+
endif()
|
43 |
+
|
44 |
+
if ("test" IN_LIST FEATURES AND WIN32)
|
45 |
+
message(FATAL_ERROR "Feature test only support UNIX.")
|
46 |
+
endif()
|
47 |
+
|
48 |
+
vcpkg_cmake_configure(
|
49 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
50 |
+
OPTIONS ${FEATURE_OPTIONS}
|
51 |
+
-DWITH_EXPAT=${WITH_EXPAT}
|
52 |
+
-DWITH_LIBXML=${WITH_LIBXML}
|
53 |
+
-DENABLE_L3V2EXTENDEDMATH:BOOL=ON
|
54 |
+
-DWITH_STATIC_RUNTIME=${STATIC_RUNTIME}
|
55 |
+
-DLIBSBML_SKIP_SHARED_LIBRARY=${STATIC_LIBRARY}
|
56 |
+
)
|
57 |
+
|
58 |
+
vcpkg_cmake_install()
|
59 |
+
|
60 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
61 |
+
|
62 |
+
vcpkg_copy_pdbs()
|
63 |
+
|
64 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
65 |
+
|
66 |
+
file(GLOB TXT_FILES "${CURRENT_PACKAGES_DIR}/debug/*.txt")
|
67 |
+
if (TXT_FILES)
|
68 |
+
file(REMOVE ${TXT_FILES})
|
69 |
+
endif()
|
70 |
+
file(GLOB TXT_FILES "${CURRENT_PACKAGES_DIR}/*.txt")
|
71 |
+
if (TXT_FILES)
|
72 |
+
file(REMOVE ${TXT_FILES})
|
73 |
+
endif()
|
74 |
+
|
75 |
+
if (EXISTS "${CURRENT_PACKAGES_DIR}/debug/share")
|
76 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
77 |
+
endif()
|
78 |
+
|
79 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/README.md")
|
80 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/README.md")
|
81 |
+
endif()
|
82 |
+
|
83 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/README.md")
|
84 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/README.md")
|
85 |
+
endif()
|
86 |
+
|
87 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
88 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbml/vcpkg.json
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsbml",
|
3 |
+
"version": "5.19.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A library for reading / writing SBML files",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"default-features": [
|
18 |
+
"comp",
|
19 |
+
"expat",
|
20 |
+
"fbc",
|
21 |
+
"groups",
|
22 |
+
"layout",
|
23 |
+
"libxml2",
|
24 |
+
"render"
|
25 |
+
],
|
26 |
+
"features": {
|
27 |
+
"bzip2": {
|
28 |
+
"description": "bz2 compression support for libsbml",
|
29 |
+
"dependencies": [
|
30 |
+
"bzip2"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"comp": {
|
34 |
+
"description": "support for Hierarchical Model Composition"
|
35 |
+
},
|
36 |
+
"expat": {
|
37 |
+
"description": "libsbml using expat parser",
|
38 |
+
"dependencies": [
|
39 |
+
"expat"
|
40 |
+
]
|
41 |
+
},
|
42 |
+
"fbc": {
|
43 |
+
"description": "support for Flux Balance Constrant Modeling"
|
44 |
+
},
|
45 |
+
"groups": {
|
46 |
+
"description": "support for Groups"
|
47 |
+
},
|
48 |
+
"layout": {
|
49 |
+
"description": "support for Pathway Layouts"
|
50 |
+
},
|
51 |
+
"libxml2": {
|
52 |
+
"description": "libsbml using libxml2 parser",
|
53 |
+
"dependencies": [
|
54 |
+
"libxml2"
|
55 |
+
]
|
56 |
+
},
|
57 |
+
"multi": {
|
58 |
+
"description": "support for Multistate Modeling"
|
59 |
+
},
|
60 |
+
"namespace": {
|
61 |
+
"description": "Build with the WITH_CPP_NAMESPACE option set to on"
|
62 |
+
},
|
63 |
+
"qual": {
|
64 |
+
"description": "support for Qualitative Modeling"
|
65 |
+
},
|
66 |
+
"render": {
|
67 |
+
"description": "support for Rendering information"
|
68 |
+
},
|
69 |
+
"test": {
|
70 |
+
"description": "Unit testing of libSBMLs implementation",
|
71 |
+
"dependencies": [
|
72 |
+
"check"
|
73 |
+
]
|
74 |
+
},
|
75 |
+
"zlib": {
|
76 |
+
"description": "gzip compression support for libsbml",
|
77 |
+
"dependencies": [
|
78 |
+
"zlib"
|
79 |
+
]
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbsms/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO claytonotey/libsbsms
|
4 |
+
REF 2.3.0
|
5 |
+
SHA512 e5b544c2bdbaa2169236987c7a043838c8d1761b25280c476d7a32656d482c6485cb33f579ea9d1ce586ec7b2913ed8fdcf1abe5c7cc8b9e4eef9ce87de54627
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
10 |
+
vcpkg_cmake_install()
|
11 |
+
|
12 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/sbsms" PACKAGE_NAME sbsms)
|
13 |
+
vcpkg_fixup_pkgconfig()
|
14 |
+
vcpkg_copy_pdbs()
|
15 |
+
|
16 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsbsms/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsbsms",
|
3 |
+
"version-semver": "2.3.0",
|
4 |
+
"description": "libsbsms is a library for high quality time and pitch scale modification of digital audio. It uses octave subband sinusoidal modeling.",
|
5 |
+
"homepage": "https://github.com/claytonotey/libsbsms",
|
6 |
+
"license": "GPL-2.0-or-later",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsecret/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
GITLAB_URL https://gitlab.gnome.org
|
4 |
+
REPO GNOME/libsecret
|
5 |
+
REF 0.20.4
|
6 |
+
SHA512 b7357329e531ace536ac3c46ef51d022de9308181af227d2ff45c1ff6fe781a29fa93fe02e78f28c84eca8881c2cb90c92c675bcf9fd21b3d326dd84c5692ed5
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_meson(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
OPTIONS
|
13 |
+
-Dintrospection=false
|
14 |
+
-Dgtk_doc=false
|
15 |
+
-Dmanpage=false
|
16 |
+
-Dvapi=false
|
17 |
+
ADDITIONAL_NATIVE_BINARIES
|
18 |
+
gdbus-codegen='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/gdbus-codegen'
|
19 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
20 |
+
)
|
21 |
+
vcpkg_install_meson()
|
22 |
+
vcpkg_fixup_pkgconfig()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
25 |
+
# There is no option to disable building secret-tool, so remove the executable.
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
27 |
+
|
28 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|