Techt3o commited on
Commit
31d4bff
·
verified ·
1 Parent(s): 29a52d6

885754e24cbf7f21643af1fac6e1220e28615b44b1159f26aad6b90ad066611d

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxml2/usage +4 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxml2/vcpkg-cmake-wrapper.cmake +49 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxml2/vcpkg.json +26 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlmm/CMakeLists.txt +59 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlmm/portfile.cmake +23 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlmm/vcpkg.json +10 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlpp/portfile.cmake +31 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlpp/vcpkg.json +15 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/0001-msvc-buildfix.patch +23 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/0002-fix-symbols.patch +44 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/CMakeLists.txt +63 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/portfile.cmake +22 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/vcpkg.json +14 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/0001-Fix-makefile.patch +49 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/0002-Fix-lzma.patch +45 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/0003-Fix-configure.patch +50 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/only_build_one_lib_type.patch +56 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/portfile.cmake +185 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/vcpkg.json +13 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/export-pkgconfig.patch +16 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/fix-POSIX_name.patch +13 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/portfile.cmake +33 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/vcpkg.json +17 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/deprecated-warning.patch +16 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/fix-build-type.patch +62 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/fix_cmakelists.patch +61 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/libyuv-config.cmake +5 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/portfile.cmake +32 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/vcpkg.json +18 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzen/portfile.cmake +23 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzen/vcpkg.json +16 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzip/fix-dependency.patch +27 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzip/portfile.cmake +48 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzip/vcpkg.json +88 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzippp/fix-find-lzma.patch +13 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzippp/portfile.cmake +37 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzippp/vcpkg.json +22 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/0001-use-old-pem-pack.patch +29 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/0002-fix-cmake.patch +38 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/FindCryptoPP.cmake +27 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/portfile.cmake +30 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/vcpkg.json +16 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lilv/CMakeLists.txt +96 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lilv/portfile.cmake +26 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lilv/vcpkg.json +15 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/linalg/portfile.cmake +11 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/linalg/vcpkg.json +6 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/linenoise-ng/portfile.cmake +22 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/linenoise-ng/vcpkg.json +6 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lionkor-commandline/add-install.patch +10 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxml2/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package libxml2 is compatible with built-in CMake targets:
2
+
3
+ find_package(LibXml2 CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE LibXml2::LibXml2)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxml2/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _find_package(${ARGS})
2
+ if(LibXml2_FOUND)
3
+ list(APPEND LIBXML2_INCLUDE_DIRS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include")
4
+ list(APPEND LIBXML2_INCLUDE_DIR "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include") # This is wrong but downstream doesn't correctly use _DIR vs _DIRS variables
5
+ if(TARGET LibXml2::LibXml2)
6
+ target_include_directories(LibXml2::LibXml2 INTERFACE "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include")
7
+ endif()
8
+ endif()
9
+ if(LibXml2_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT ${ARGV0}_CONFIG)
10
+ find_package(LibLZMA)
11
+ find_package(ZLIB)
12
+ find_package(Iconv)
13
+ include(SelectLibraryConfigurations)
14
+ find_library(LIBXML2_LIBRARY_DEBUG NAMES xml2 libxml2 xml2s libxml2s xml2d libxml2d xml2sd libxml2sd NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_INSTALLED_DIR}/debug" NO_DEFAULT_PATH)
15
+ find_library(LIBXML2_LIBRARY_RELEASE NAMES xml2 libxml2 xml2s libxml2s NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
16
+ unset(LIBXML2_LIBRARIES)
17
+ unset(LIBXML2_LIBRARY CACHE)
18
+ select_library_configurations(LIBXML2)
19
+ list(APPEND LIBXML2_LIBRARIES ${LIBLZMA_LIBRARIES} ${ZLIB_LIBRARIES})
20
+ if(Iconv_LIBRARIES)
21
+ list(APPEND LIBXML2_LIBRARIES ${Iconv_LIBRARIES})
22
+ endif()
23
+ if(TARGET LibXml2::LibXml2 AND LIBXML2_LIBRARY_RELEASE)
24
+ set_target_properties(LibXml2::LibXml2 PROPERTIES IMPORTED_LOCATION_RELEASE "${LIBXML2_LIBRARY_RELEASE}")
25
+ endif()
26
+ if(TARGET LibXml2::LibXml2 AND LIBXML2_LIBRARY_DEBUG)
27
+ set_target_properties(LibXml2::LibXml2 PROPERTIES IMPORTED_LOCATION_DEBUG "${LIBXML2_LIBRARY_DEBUG}")
28
+ endif()
29
+ cmake_policy(PUSH)
30
+ cmake_policy(SET CMP0079 NEW)
31
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
32
+ list(APPEND LIBXML2_LIBRARIES m)
33
+ if(TARGET LibXml2::LibXml2)
34
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "m")
35
+ endif()
36
+ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
37
+ list(APPEND LIBXML2_LIBRARIES ws2_32)
38
+ if(TARGET LibXml2::LibXml2)
39
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "ws2_32")
40
+ endif()
41
+ endif()
42
+ if(TARGET LibXml2::LibXml2)
43
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "LibLZMA::LibLZMA" "ZLIB::ZLIB")
44
+ if(TARGET Iconv::Iconv)
45
+ set_property(TARGET LibXml2::LibXml2 APPEND PROPERTY INTERFACE_LINK_LIBRARIES "Iconv::Iconv")
46
+ endif()
47
+ endif()
48
+ cmake_policy(POP)
49
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxml2/vcpkg.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxml2",
3
+ "version-semver": "2.9.12",
4
+ "port-version": 5,
5
+ "description": "Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform).",
6
+ "homepage": "https://xmlsoft.org/",
7
+ "license": "MIT",
8
+ "dependencies": [
9
+ "libiconv",
10
+ "liblzma",
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ },
19
+ "zlib"
20
+ ],
21
+ "features": {
22
+ "tools": {
23
+ "description": "Build tools"
24
+ }
25
+ }
26
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlmm/CMakeLists.txt ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(libxmlmm CXX)
3
+
4
+ set(CMAKE_SHARED_LIBRARY_PREFIX)
5
+ set(CMAKE_STATIC_LIBRARY_PREFIX)
6
+
7
+ find_package(LibXml2 REQUIRED)
8
+
9
+ set(HEADERS_LIBXMLMM
10
+ libxmlmm/Attribute.h
11
+ libxmlmm/CData.h
12
+ libxmlmm/Comment.h
13
+ libxmlmm/Content.h
14
+ libxmlmm/defines.h
15
+ libxmlmm/Document.h
16
+ libxmlmm/Element.h
17
+ libxmlmm/exceptions.h
18
+ libxmlmm/libxmlmm.h
19
+ libxmlmm/LibXmlSentry.h
20
+ libxmlmm/Node.h
21
+ libxmlmm/ProcessingInstruction.h
22
+ libxmlmm/Text.h
23
+ libxmlmm/utils.h
24
+ )
25
+
26
+ set(SOURCES_LIBXMLMM
27
+ libxmlmm/Attribute.cpp
28
+ libxmlmm/CData.cpp
29
+ libxmlmm/Comment.cpp
30
+ libxmlmm/Content.cpp
31
+ libxmlmm/Document.cpp
32
+ libxmlmm/Element.cpp
33
+ libxmlmm/LibXmlSentry.cpp
34
+ libxmlmm/Node.cpp
35
+ libxmlmm/ProcessingInstruction.cpp
36
+ libxmlmm/Text.cpp
37
+ libxmlmm/utils.cpp
38
+ )
39
+
40
+ add_library(libxmlmm ${SOURCES_LIBXMLMM})
41
+ include_directories(${LIBXML2_INCLUDE_DIR})
42
+ target_link_libraries (libxmlmm ${LIBXML2_LIBRARIES})
43
+
44
+ set_target_properties(libxmlmm PROPERTIES
45
+ CXX_STANDARD 17
46
+ PUBLIC_HEADER "${HEADERS_LIBXMLMM}"
47
+ )
48
+
49
+ target_include_directories(libxmlmm PUBLIC
50
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libxmlmm>
51
+ $<INSTALL_INTERFACE:include/libxmlmm>)
52
+
53
+ install(TARGETS ${PROJECT_NAME}
54
+ EXPORT litehtmlTargets
55
+ RUNTIME DESTINATION bin
56
+ LIBRARY DESTINATION lib
57
+ ARCHIVE DESTINATION lib
58
+ PUBLIC_HEADER DESTINATION include/libxmlmm
59
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlmm/portfile.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO rioki/libxmlmm
4
+ REF r0.6
5
+ SHA512 4f619e730de2f88b891ef31dd7ced2e6be75fff7f3852ec178843bf8d099d2e1ea84e0fcde35ff7fefc201b026f63e4b5d55f88e48334c49a0333be0327894df
6
+ HEAD_REF master
7
+ )
8
+
9
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+
18
+ # Handle copyright
19
+ configure_file(${SOURCE_PATH}/README.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
20
+
21
+ vcpkg_copy_pdbs()
22
+
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlmm/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxmlmm",
3
+ "version-string": "0.6.0",
4
+ "port-version": 1,
5
+ "description": "Libxmlmm is a C++ wrapper for libxml 2.0 that only relies on standard C++ and libxml2.",
6
+ "homepage": "https://github.com/rioki/libxmlmm",
7
+ "dependencies": [
8
+ "libxml2"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlpp/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #..\src\libxml++-5-7c4d4a4cea.clean\meson.build:278:4: ERROR: Problem encountered: Static builds are not supported by MSVC-style builds
2
+ set(LIBXMLPP_VERSION 5.0.0)
3
+
4
+ vcpkg_download_distfile(ARCHIVE
5
+ URLS "https://ftp.gnome.org/pub/GNOME/sources/libxml++/5.0/libxml++-${LIBXMLPP_VERSION}.tar.xz"
6
+ FILENAME "libxml++-${LIBXMLPP_VERSION}.tar.xz"
7
+ SHA512 ae8d7a178e7a3b48a9f0e1ea303e8a4e4d879d0d9367124ede3783d0c31e31c862b98e5d28d72edc4c0b19c6b457ead2d25664efd33d65e44fd52c5783ec3091
8
+ )
9
+
10
+ vcpkg_extract_source_archive_ex(
11
+ OUT_SOURCE_PATH SOURCE_PATH
12
+ ARCHIVE "${ARCHIVE}"
13
+ )
14
+
15
+ vcpkg_configure_meson(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ -Dbuild-documentation=false
19
+ -Dvalidation=false # Validate the tutorial XML file
20
+ -Dbuild-examples=false
21
+ -Dbuild-tests=false
22
+ -Dmsvc14x-parallel-installable=false # Use separate DLL and LIB filenames for Visual Studio 2017 and 2019
23
+ -Dbuild-deprecated-api=true # Build deprecated API and include it in the library
24
+ )
25
+ vcpkg_install_meson()
26
+ vcpkg_fixup_pkgconfig()
27
+ vcpkg_copy_pdbs()
28
+
29
+ # Handle copyright and readme
30
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxmlpp RENAME copyright)
31
+ file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxmlpp)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmlpp/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxmlpp",
3
+ "version": "5.0.0",
4
+ "port-version": 2,
5
+ "description": "a C++ wrapper for the libxml XML parser library.",
6
+ "supports": "!(windows & static)",
7
+ "dependencies": [
8
+ "glibmm",
9
+ "libxml2",
10
+ {
11
+ "name": "vcpkg-tool-meson",
12
+ "host": true
13
+ }
14
+ ]
15
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/0001-msvc-buildfix.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff -Naur .\libxmp-lite-4.4.1/src/common.h .\libxmp-lite-4.4.1-orig/src/common.h
2
+ --- a/src/common.h 2016-07-16 13:37:36 +0200
3
+ +++ b/src/common.h 2017-05-23 00:52:17 +0200
4
+ @@ -77,19 +77,12 @@
5
+ #ifndef CLIB_DECL
6
+ #define CLIB_DECL
7
+ #endif
8
+ -#ifdef DEBUG
9
+ -#ifndef ATTR_PRINTF
10
+ -#define ATTR_PRINTF(x,y)
11
+ -#endif
12
+ -void CLIB_DECL D_(const char *text, ...) ATTR_PRINTF(1,2);
13
+ -#else
14
+ // VS prior to VC7.1 does not support variadic macros. VC8.0 does not optimize unused parameters passing
15
+ #if _MSC_VER < 1400
16
+ void __inline CLIB_DECL D_(const char *text, ...) { do {} while (0); }
17
+ #else
18
+ #define D_(args, ...) do {} while (0)
19
+ #endif
20
+ -#endif
21
+
22
+ #elif defined __ANDROID__
23
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/0002-fix-symbols.patch ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/lite/src/format.c b/lite/src/format.c
2
+ --- a/src/format.c
3
+ +++ b/src/format.c
4
+ @@ -27,20 +27,20 @@
5
+ #endif
6
+ #include "format.h"
7
+
8
+ -extern const struct format_loader xm_loader;
9
+ -extern const struct format_loader mod_loader;
10
+ -extern const struct format_loader it_loader;
11
+ -extern const struct format_loader s3m_loader;
12
+ +extern const struct format_loader libxmp_loader_xm;
13
+ +extern const struct format_loader libxmp_loader_mod;
14
+ +extern const struct format_loader libxmp_loader_it;
15
+ +extern const struct format_loader libxmp_loader_s3m;
16
+
17
+ extern const struct pw_format *const pw_format[];
18
+
19
+ const struct format_loader *const format_loader[5] = {
20
+ - &xm_loader,
21
+ - &mod_loader,
22
+ + &libxmp_loader_xm,
23
+ + &libxmp_loader_mod,
24
+ #ifndef LIBXMP_CORE_DISABLE_IT
25
+ - &it_loader,
26
+ + &libxmp_loader_it,
27
+ #endif
28
+ - &s3m_loader,
29
+ + &libxmp_loader_s3m,
30
+ NULL
31
+ };
32
+
33
+ diff --git a/lite/src/loaders/mod_load.c b/lite/src/loaders/mod_load.c
34
+ --- a/src/loaders/mod_load.c
35
+ +++ b/src/loaders/mod_load.c
36
+ @@ -36,7 +36,7 @@
37
+ static int mod_test (HIO_HANDLE *, char *, const int);
38
+ static int mod_load (struct module_data *, HIO_HANDLE *, const int);
39
+
40
+ -const struct format_loader mod_loader = {
41
+ +const struct format_loader libxmp_loader_mod = {
42
+ "Protracker",
43
+ mod_test,
44
+ mod_load
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/CMakeLists.txt ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.4)
2
+ project(libxmp-lite)
3
+
4
+ set(HEADERS "include/libxmp-lite/xmp.h")
5
+
6
+ set(SOURCES src/virtual.c
7
+ src/format.c
8
+ src/period.c
9
+ src/player.c
10
+ src/read_event.c
11
+ src/dataio.c
12
+ src/lfo.c
13
+ src/scan.c
14
+ src/control.c
15
+ src/filter.c
16
+ src/effects.c
17
+ src/mixer.c
18
+ src/mix_all.c
19
+ src/load_helpers.c
20
+ src/load.c
21
+ src/hio.c
22
+ src/smix.c
23
+ src/memio.c
24
+ src/loaders/common.c
25
+ src/loaders/itsex.c
26
+ src/loaders/sample.c
27
+ src/loaders/xm_load.c
28
+ src/loaders/mod_load.c
29
+ src/loaders/s3m_load.c
30
+ src/loaders/it_load.c
31
+ )
32
+
33
+ include_directories(include/libxmp-lite src)
34
+
35
+ option(BUILD_SHARED_LIBS "Build shared libs" OFF)
36
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
37
+ option(INSTALL_HEADERS "Install header files" OFF)
38
+ else()
39
+ option(INSTALL_HEADERS "Install header files" ON)
40
+ endif()
41
+
42
+ add_library(libxmp-lite ${SOURCES})
43
+ target_compile_definitions(libxmp-lite PRIVATE
44
+ LIBXMP_CORE_PLAYER=1
45
+ inline=__inline
46
+ _USE_MATH_DEFINES=1
47
+ )
48
+
49
+ # Fix UWP /sdl compile errors
50
+ # Disable C4703: Not initialized
51
+ # Disable C4996: Deprecated
52
+ set_target_properties(libxmp-lite PROPERTIES COMPILE_FLAGS "/wd4703 /wd4996")
53
+
54
+ install(
55
+ TARGETS libxmp-lite
56
+ ARCHIVE DESTINATION lib
57
+ LIBRARY DESTINATION lib
58
+ RUNTIME DESTINATION bin
59
+ )
60
+
61
+ if(INSTALL_HEADERS)
62
+ install(FILES ${HEADERS} DESTINATION include)
63
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/portfile.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_sourceforge(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO xmp/libxmp
6
+ REF 4.4.1
7
+ FILENAME "libxmp-lite-4.4.1.tar.gz"
8
+ SHA512 f27e3f9fb79ff15ce90b51fb29641c01cadf7455150da57cde6860c2ba075ed497650eb44ec9143bdd3538288228c609f7db6d862c9d73f007f686eccb05543e
9
+ PATCHES
10
+ 0001-msvc-buildfix.patch
11
+ 0002-fix-symbols.patch
12
+ )
13
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+ vcpkg_copy_pdbs()
21
+
22
+ file(INSTALL "${SOURCE_PATH}/README" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxmp-lite/vcpkg.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxmp-lite",
3
+ "version": "4.4.1",
4
+ "port-version": 8,
5
+ "description": "Lightweight version of libxmp that supports MOD, S3M, XM and IT modules.",
6
+ "homepage": "https://sourceforge.net/projects/xmp/",
7
+ "supports": "windows",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ }
13
+ ]
14
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/0001-Fix-makefile.patch ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git "a/win32/Makefile.msvc" "b/win32/Makefile.msvc"
2
+ index 2e4742bb..8bfe7d83 100644
3
+ --- "a/win32/Makefile.msvc"
4
+ +++ "b/win32/Makefile.msvc"
5
+ @@ -59,7 +59,13 @@ CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
6
+ LD = link.exe
7
+ LDFLAGS = /nologo
8
+ LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX)
9
+ -LIBS =
10
+ +# The libraries are needed for static builds (the makefile builds all tools and dlls)
11
+ +LIBS = iconv.lib charset.lib ws2_32.lib lzma.lib
12
+ +!if "$(DEBUG)" == "1"
13
+ +LIBS = $(LIBS) zlibd.lib
14
+ +!else
15
+ +LIBS = $(LIBS) zlib.lib
16
+ +!endif
17
+
18
+ # The archiver and its options.
19
+ AR = lib.exe
20
+ @@ -71,8 +77,14 @@ CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /Z7
21
+ LDFLAGS = $(LDFLAGS) /DEBUG
22
+ !else
23
+ CFLAGS = $(CFLAGS) /D "NDEBUG" /O2
24
+ +LDFLAGS = $(LDFLAGS) /DEBUG /OPT:REF /OPT:ICF
25
+ !endif
26
+
27
+ +# append CFLAGS etc. passed on command line
28
+ +CPPFLAGS = $(CPPFLAGS) $(EXTRA_CPPFLAGS)
29
+ +CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS)
30
+ +LDFLAGS = $(LDFLAGS) $(EXTRA_LDFLAGS)
31
+ +
32
+ # Libxslt object files.
33
+ XSLT_OBJS = $(XSLT_INTDIR)\attributes.obj\
34
+ $(XSLT_INTDIR)\documents.obj\
35
+ @@ -309,13 +321,7 @@ $(UTILS_INTDIR) :
36
+ # An implicit rule for xsltproc and friends.
37
+ APPLIBS = $(LIBS)
38
+ !if "$(STATIC)" == "1"
39
+ -APPLIBS = $(LIBS) libxml2_a.lib
40
+ -!if "$(WITH_ICONV)" == "1"
41
+ -APPLIBS = $(APPLIBS) iconv.lib
42
+ -!endif
43
+ -!if "$(WITH_ZLIB)" == "1"
44
+ -APPLIBS = $(APPLIBS) zlib.lib
45
+ -!endif
46
+ +APPLIBS = $(LIBS) libxml2.lib
47
+ {$(UTILS_SRCDIR)}.c{$(BINDIR)}.exe:
48
+ $(CC) /D "LIBXML_STATIC" /D "LIBXSLT_STATIC" /D "LIBEXSLT_STATIC" \
49
+ $(CFLAGS) /Fo$(UTILS_INTDIR)\ /c $<
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/0002-Fix-lzma.patch ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/win32/configure.js b/win32/configure.js
2
+ index 12c99f3..0737b06 100644
3
+ --- a/win32/configure.js
4
+ +++ b/win32/configure.js
5
+ @@ -45,6 +45,7 @@ var withMemDebug = false;
6
+ var withDebugger = true;
7
+ var withIconv = true;
8
+ var withZlib = false;
9
+ +var withLzma = true;
10
+ var withCrypto = true;
11
+ var withModules = false;
12
+ var withProfiler = true;
13
+ @@ -105,6 +106,7 @@ function usage()
14
+ txt += " debugger: Enable external debugger support (" + (withDebugger? "yes" : "no") + ")\n";
15
+ txt += " iconv: Use iconv library (" + (withIconv? "yes" : "no") + ")\n";
16
+ txt += " zlib: Use zlib library (" + (withZlib? "yes" : "no") + ")\n";
17
+ + txt += " lzma: Use lzma library (" + (withLzma? "yes" : "no") + ")\n";
18
+ txt += " crypto: Enable Crypto support (" + (withCrypto? "yes" : "no") + ")\n";
19
+ txt += " modules: Enable Module support (" + (withModules? "yes" : "no") + ")\n";
20
+ txt += " profiler: Enable Profiler support (" + (withProfiler? "yes" : "no") + ")\n";
21
+ @@ -192,6 +194,7 @@ function discoverVersion()
22
+ vf.WriteLine("WITH_DEBUGGER=" + (withDebugger? "1" : "0"));
23
+ vf.WriteLine("WITH_ICONV=" + (withIconv? "1" : "0"));
24
+ vf.WriteLine("WITH_ZLIB=" + (withZlib? "1" : "0"));
25
+ + vf.WriteLine("WITH_LZMA=" + (withLzma? "1" : "0"));
26
+ vf.WriteLine("WITH_CRYPTO=" + (withCrypto? "1" : "0"));
27
+ vf.WriteLine("WITH_MODULES=" + (withModules? "1" : "0"));
28
+ vf.WriteLine("WITH_PROFILER=" + (withProfiler? "1" : "0"));
29
+ @@ -344,6 +347,8 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
30
+ withIconv = strToBool(arg.substring(opt.length + 1, arg.length));
31
+ else if (opt == "zlib")
32
+ withZlib = strToBool(arg.substring(opt.length + 1, arg.length));
33
+ + else if (opt == "lzma")
34
+ + withLzma = strToBool(arg.substring(opt.length + 1, arg.length));
35
+ else if (opt == "crypto")
36
+ withCrypto = strToBool(arg.substring(opt.length + 1, arg.length));
37
+ else if (opt == "modules")
38
+ @@ -482,6 +487,7 @@ txtOut += " Memory debugging: " + boolToStr(withMemDebug) + "\n";
39
+ txtOut += " Debugger support: " + boolToStr(withDebugger) + "\n";
40
+ txtOut += " Use iconv: " + boolToStr(withIconv) + "\n";
41
+ txtOut += " With zlib: " + boolToStr(withZlib) + "\n";
42
+ +txtOut += " Lzma: " + boolToStr(withLzma) + "\n";
43
+ txtOut += " Crypto: " + boolToStr(withCrypto) + "\n";
44
+ txtOut += " Modules: " + boolToStr(withModules) + "\n";
45
+ txtOut += " Profiler: " + boolToStr(withProfiler) + "\n";
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/0003-Fix-configure.patch ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/win32/configure.js b/win32/configure.js
2
+ index 0737b06..11815e4 100644
3
+ --- a/win32/configure.js
4
+ +++ b/win32/configure.js
5
+ @@ -138,7 +138,7 @@ function usage()
6
+ file included by our makefile. */
7
+ function discoverVersion()
8
+ {
9
+ - var fso, cf, vf, ln, s;
10
+ + var fso, cf, vf, ln, s, m;
11
+ fso = new ActiveXObject("Scripting.FileSystemObject");
12
+ verCvs = "";
13
+ if (useCvsVer && fso.FileExists("..\\CVS\\Entries")) {
14
+ @@ -147,8 +147,8 @@ function discoverVersion()
15
+ ln = cf.ReadLine();
16
+ s = new String(ln);
17
+ if (s.search(/^\/ChangeLog\//) != -1) {
18
+ - iDot = s.indexOf(".");
19
+ - iSlash = s.indexOf("/", iDot);
20
+ + var iDot = s.indexOf(".");
21
+ + var iSlash = s.indexOf("/", iDot);
22
+ verCvs = "CVS" + s.substring(iDot + 1, iSlash);
23
+ break;
24
+ }
25
+ @@ -178,13 +178,13 @@ function discoverVersion()
26
+ verMicroXslt = m[1];
27
+ } else if (s.search(/^LIBEXSLT_MAJOR_VERSION=/) != -1) {
28
+ vf.WriteLine(s);
29
+ - verMajorExslt = s.substring(s.indexOf("=") + 1, s.length)
30
+ + verMajorExslt = s.substring(s.indexOf("=") + 1, s.length);
31
+ } else if(s.search(/^LIBEXSLT_MINOR_VERSION=/) != -1) {
32
+ vf.WriteLine(s);
33
+ - verMinorExslt = s.substring(s.indexOf("=") + 1, s.length)
34
+ + verMinorExslt = s.substring(s.indexOf("=") + 1, s.length);
35
+ } else if(s.search(/^LIBEXSLT_MICRO_VERSION=/) != -1) {
36
+ vf.WriteLine(s);
37
+ - verMicroExslt = s.substring(s.indexOf("=") + 1, s.length)
38
+ + verMicroExslt = s.substring(s.indexOf("=") + 1, s.length);
39
+ }
40
+ }
41
+ cf.Close();
42
+ @@ -365,8 +365,6 @@ for (i = 0; (i < WScript.Arguments.length) && (error == 0); i++) {
43
+ buildStatic = strToBool(arg.substring(opt.length + 1, arg.length));
44
+ else if (opt == "prefix")
45
+ buildPrefix = arg.substring(opt.length + 1, arg.length);
46
+ - else if (opt == "incdir")
47
+ - buildIncPrefix = arg.substring(opt.length + 1, arg.length);
48
+ else if (opt == "bindir")
49
+ buildBinPrefix = arg.substring(opt.length + 1, arg.length);
50
+ else if (opt == "libdir")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/only_build_one_lib_type.patch ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/win32/Makefile.msvc b/win32/Makefile.msvc
2
+ index f803a747c..f43a54f51 100644
3
+ --- a/win32/Makefile.msvc
4
+ +++ b/win32/Makefile.msvc
5
+ @@ -163,7 +163,11 @@ _VC_MANIFEST_EMBED_EXE=
6
+ _VC_MANIFEST_EMBED_DLL=
7
+ !endif
8
+
9
+ -all : libxslt libxslta libexslt libexslta utils
10
+ +!if "$(STATIC)" == "1"
11
+ +all : libxslta libexslta utils
12
+ +!else
13
+ +all : libxslt libexslt utils
14
+ +!endif
15
+
16
+ libxslt : $(BINDIR)\$(XSLT_SO)
17
+
18
+ @@ -196,12 +200,15 @@ install-libs : all
19
+ if not exist $(LIBPREFIX) mkdir $(LIBPREFIX)
20
+ copy $(XSLT_SRCDIR)\*.h $(INCPREFIX)\$(XSLT_BASENAME)
21
+ copy $(EXSLT_SRCDIR)\*.h $(INCPREFIX)\$(EXSLT_BASENAME)
22
+ +!if "$(STATIC)" != "1"
23
+ copy $(BINDIR)\$(XSLT_SO) $(SOPREFIX)
24
+ - copy $(BINDIR)\$(XSLT_A) $(LIBPREFIX)
25
+ copy $(BINDIR)\$(XSLT_IMP) $(LIBPREFIX)
26
+ copy $(BINDIR)\$(EXSLT_SO) $(SOPREFIX)
27
+ - copy $(BINDIR)\$(EXSLT_A) $(LIBPREFIX)
28
+ copy $(BINDIR)\$(EXSLT_IMP) $(LIBPREFIX)
29
+ +!else
30
+ + copy $(BINDIR)\$(XSLT_A) $(LIBPREFIX)
31
+ + copy $(BINDIR)\$(EXSLT_A) $(LIBPREFIX)
32
+ +!endif
33
+
34
+ install : install-libs
35
+ copy $(BINDIR)\*.exe $(BINPREFIX)
36
+ @@ -313,7 +320,6 @@ $(BINDIR)\$(EXSLT_SO) : $(BINDIR) $(EXSLT_OBJS) $(EXSLT_INTDIR)\$(EXSLT_DEF) lib
37
+ $(BINDIR)\$(EXSLT_A) : $(BINDIR) $(EXSLT_OBJS_A) libxslta
38
+ $(AR) $(ARFLAGS) /OUT:$(BINDIR)\$(EXSLT_A) $(EXSLT_OBJS_A)
39
+
40
+ -
41
+ # Creates the utils intermediate directory.
42
+ $(UTILS_INTDIR) :
43
+ if not exist $(UTILS_INTDIR) mkdir $(UTILS_INTDIR)
44
+ @@ -336,7 +342,11 @@ APPLIBS = $(LIBS) libxml2.lib
45
+ !endif
46
+
47
+ # Builds xsltproc and friends. Uses the implicit rule for commands.
48
+ -$(UTILS) : $(UTILS_INTDIR) $(BINDIR) libxslt libxslta libexslt libexslta
49
+ +!if "$(STATIC)" == "1"
50
+ +$(UTILS) : $(UTILS_INTDIR) $(BINDIR) libxslta libexslta
51
+ +!else
52
+ +$(UTILS) : $(UTILS_INTDIR) $(BINDIR) libxslt libexslt
53
+ +!endif
54
+
55
+ # plugins only work with non-static builds currently.
56
+ !if "$(STATIC)" == "0"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/portfile.cmake ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_download_distfile(
2
+ PATCH_e2584eed1c84c18f16e42188c30d2c3d8e3e8853
3
+ URLS "https://github.com/GNOME/libxslt/commit/e2584eed1c84c18f16e42188c30d2c3d8e3e8853.patch"
4
+ FILENAME e2584eed1c84c18f16e42188c30d2c3d8e3e8853.patch
5
+ SHA512 d08a06616d732993f2131826ca06fafc2e9f561cb1edb17eaf2adaf78e276bb03cba92a773143eb939da04781f5b5e0a09b351d8e4622a941de3cb3d11da731c
6
+ )
7
+
8
+ # Get this value from configure.ac:21
9
+ set(LIBEXSLT_VERSION 0.8.20)
10
+ set(VERSION 1.1.34)
11
+ vcpkg_from_github(
12
+ OUT_SOURCE_PATH SOURCE_PATH
13
+ REPO GNOME/libxslt
14
+ REF v${VERSION}
15
+ SHA512 fc57affb236e5f7602ee53c8090a854c6b950d1e6526ae3488bca41d8d421ec70433d88eb227c71c2a61213bc364517bdad907125e36486da1754fe9e460601f
16
+ HEAD_REF master
17
+ PATCHES
18
+ "${PATCH_e2584eed1c84c18f16e42188c30d2c3d8e3e8853}"
19
+ 0001-Fix-makefile.patch
20
+ 0002-Fix-lzma.patch
21
+ 0003-Fix-configure.patch
22
+ only_build_one_lib_type.patch
23
+ )
24
+
25
+ if (VCPKG_TARGET_IS_WINDOWS)
26
+ # Create some directories ourselves, because the makefile doesn't
27
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
28
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
29
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
30
+ endif()
31
+ set(CONFIGURE_COMMAND_TEMPLATE
32
+ cruntime=@CRUNTIME@
33
+ static=@BUILDSTATIC@
34
+ debug=@DEBUGMODE@
35
+ prefix=@INSTALL_DIR@
36
+ include=@INCLUDE_DIR@
37
+ lib=@LIB_DIR@
38
+ bindir=$(PREFIX)\\bin
39
+ sodir=$(PREFIX)\\bin
40
+ zlib=yes
41
+ lzma=yes
42
+ )
43
+
44
+ # Common
45
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
46
+ set(BUILDSTATIC yes)
47
+ else()
48
+ set(BUILDSTATIC no)
49
+ endif()
50
+
51
+ # Release params
52
+ if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
53
+ set(CRUNTIME /MD)
54
+ else()
55
+ set(CRUNTIME /MT)
56
+ endif()
57
+ set(DEBUGMODE no)
58
+ set(LIB_DIR "${CURRENT_INSTALLED_DIR}/lib")
59
+ set(INCLUDE_DIR "${CURRENT_INSTALLED_DIR}/include")
60
+ set(INSTALL_DIR "${CURRENT_PACKAGES_DIR}")
61
+ file(TO_NATIVE_PATH "${LIB_DIR}" LIB_DIR)
62
+ file(TO_NATIVE_PATH "${INCLUDE_DIR}" INCLUDE_DIR)
63
+ file(TO_NATIVE_PATH "${INSTALL_DIR}" INSTALL_DIR)
64
+ string(CONFIGURE "${CONFIGURE_COMMAND_TEMPLATE}" CONFIGURE_COMMAND_REL)
65
+
66
+ # Debug params
67
+ if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
68
+ set(CRUNTIME /MDd)
69
+ else()
70
+ set(CRUNTIME /MTd)
71
+ endif()
72
+ set(DEBUGMODE yes)
73
+ set(LIB_DIR "${CURRENT_INSTALLED_DIR}/debug/lib")
74
+ set(INSTALL_DIR "${CURRENT_PACKAGES_DIR}/debug")
75
+ file(TO_NATIVE_PATH "${LIB_DIR}" LIB_DIR)
76
+ file(TO_NATIVE_PATH "${INSTALL_DIR}" INSTALL_DIR)
77
+ string(CONFIGURE "${CONFIGURE_COMMAND_TEMPLATE}" CONFIGURE_COMMAND_DBG)
78
+
79
+ vcpkg_install_nmake(
80
+ SOURCE_PATH "${SOURCE_PATH}"
81
+ PROJECT_SUBPATH win32
82
+ PROJECT_NAME Makefile.msvc
83
+ PRERUN_SHELL_DEBUG cscript configure.js ${CONFIGURE_COMMAND_DBG}
84
+ PRERUN_SHELL_RELEASE cscript configure.js ${CONFIGURE_COMMAND_REL}
85
+ OPTIONS rebuild
86
+ )
87
+
88
+ vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
89
+
90
+ # The makefile builds both static and dynamic libraries, so remove the ones we don't want
91
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
92
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libxslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/lib/libexslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
93
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
94
+ else()
95
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libxslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/lib/libexslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
96
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
97
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
98
+ # Rename the libs to match the dynamic lib names
99
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libxslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/lib/libxslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
100
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libexslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/lib/libexslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
101
+ if(NOT VCPKG_BUILD_TYPE)
102
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
103
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt_a${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/lib/libexslt${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
104
+ endif()
105
+ endif()
106
+
107
+ set(prefix "")
108
+ set(exec_prefix "")
109
+ set(libdir "\${prefix}/lib")
110
+ set(includedir "\${prefix}/include")
111
+ set(XSLT_INCLUDEDIR "-I\${includedir}")
112
+ set(XSLT_LIBDIR "-L\${libdir}")
113
+ set(XSLT_LIBS "-lxslt")
114
+ set(XSLT_PRIVATE_LIBS "")
115
+ set(EXSLT_INCLUDEDIR "-I\${includedir}")
116
+ set(EXSLT_LIBDIR "-L\${libdir}")
117
+ set(EXSLT_LIBS "-lexslt")
118
+ set(EXSLT_PRIVATE_LIBS "")
119
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
120
+ configure_file("${SOURCE_PATH}/libxslt.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libxslt.pc" @ONLY)
121
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libxslt.pc" "\nRequires: " "\nRequires: liblzma ")
122
+ configure_file("${SOURCE_PATH}/libexslt.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libexslt.pc" @ONLY)
123
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libexslt.pc" "\nRequires: " "\nRequires: libxslt ")
124
+ if(NOT VCPKG_BUILD_TYPE)
125
+ file(COPY "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
126
+ endif()
127
+ else()
128
+ vcpkg_configure_make(
129
+ SOURCE_PATH "${SOURCE_PATH}"
130
+ AUTOCONFIG
131
+ OPTIONS
132
+ --without-python
133
+ --without-plugins
134
+ --with-crypto
135
+ OPTIONS_DEBUG
136
+ --with-mem-debug
137
+ --with-debug
138
+ --with-debugger
139
+ )
140
+
141
+ vcpkg_install_make()
142
+
143
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/xsltConf.sh" "${CURRENT_PACKAGES_DIR}/debug/lib/xsltConf.sh")
144
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/libxslt-plugins" "${CURRENT_PACKAGES_DIR}/debug/lib/libxslt-plugins")
145
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/libxslt/aclocal")
146
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/libxslt/doc")
147
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/libxslt/man1")
148
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/libxslt/man3")
149
+
150
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/bin/xslt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../")
151
+ if(NOT VCPKG_BUILD_TYPE)
152
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/bin/xslt-config" "${CURRENT_INSTALLED_DIR}" "`dirname $0`/../../../../")
153
+ endif()
154
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libxslt/xsltconfig.h" "#define LIBXSLT_DEFAULT_PLUGINS_PATH() \"${CURRENT_INSTALLED_DIR}/lib/libxslt-plugins\"" "")
155
+ endif()
156
+
157
+ vcpkg_fixup_pkgconfig()
158
+ vcpkg_copy_pdbs()
159
+
160
+ #
161
+ # Cleanup
162
+ #
163
+
164
+ # You have to define LIB(E)XSLT_STATIC or not, depending on how you link
165
+ file(READ "${CURRENT_PACKAGES_DIR}/include/libxslt/xsltexports.h" XSLTEXPORTS_H)
166
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
167
+ string(REPLACE "!defined(LIBXSLT_STATIC)" "0" XSLTEXPORTS_H "${XSLTEXPORTS_H}")
168
+ else()
169
+ string(REPLACE "!defined(LIBXSLT_STATIC)" "1" XSLTEXPORTS_H "${XSLTEXPORTS_H}")
170
+ endif()
171
+ file(WRITE "${CURRENT_PACKAGES_DIR}/include/libxslt/xsltexports.h" "${XSLTEXPORTS_H}")
172
+
173
+ file(READ "${CURRENT_PACKAGES_DIR}/include/libexslt/exsltexports.h" EXSLTEXPORTS_H)
174
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
175
+ string(REPLACE "!defined(LIBEXSLT_STATIC)" "0" EXSLTEXPORTS_H "${EXSLTEXPORTS_H}")
176
+ else()
177
+ string(REPLACE "!defined(LIBEXSLT_STATIC)" "1" EXSLTEXPORTS_H "${EXSLTEXPORTS_H}")
178
+ endif()
179
+ file(WRITE "${CURRENT_PACKAGES_DIR}/include/libexslt/exsltexports.h" "${EXSLTEXPORTS_H}")
180
+
181
+ # Remove tools and debug include directories
182
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
183
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
184
+
185
+ file(INSTALL "${SOURCE_PATH}/Copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libxslt/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxslt",
3
+ "version": "1.1.34",
4
+ "port-version": 4,
5
+ "description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
6
+ "homepage": "https://github.com/GNOME/libxslt",
7
+ "license": null,
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ "liblzma",
11
+ "libxml2"
12
+ ]
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/export-pkgconfig.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 4f81148..8006536 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -158,3 +158,11 @@ install(
6
+ FILES ${config_version_file}
7
+ DESTINATION ${INSTALL_CMAKE_DIR} COMPONENT Development
8
+ )
9
+ +
10
+ +set(prefix ${CMAKE_INSTALL_PREFIX})
11
+ +set(exec_prefix ${CMAKE_INSTALL_PREFIX})
12
+ +set(includedir ${CMAKE_INSTALL_PREFIX}/include)
13
+ +set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
14
+ +set(PACKAGE_VERSION 0.1)
15
+ +configure_file(yaml-0.1.pc.in ${PROJECT_BINARY_DIR}/yaml-0.1.pc @ONLY)
16
+ +install(FILES ${PROJECT_BINARY_DIR}/yaml-0.1.pc DESTINATION lib/pkgconfig)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/fix-POSIX_name.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/api.c b/src/api.c
2
+ index e793b08..6f16fc5 100644
3
+ --- a/src/api.c
4
+ +++ b/src/api.c
5
+ @@ -63,7 +63,7 @@ yaml_strdup(const yaml_char_t *str)
6
+ if (!str)
7
+ return NULL;
8
+
9
+ - return (yaml_char_t *)strdup((char *)str);
10
+ + return (yaml_char_t *)_strdup((char *)str);
11
+ }
12
+
13
+ /*
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/portfile.cmake ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if (WIN32)
2
+ set(PATCHES fix-POSIX_name.patch)
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO yaml/libyaml
8
+ REF 2c891fc7a770e8ba2fec34fc6b545c672beb37e6 # 0.2.5
9
+ SHA512 7cdde7b48c937777b851747f7e0b9a74cb7da30173e09305dad931ef83c3fcee3e125e721166690fe6a0987ba897564500530e5518e4b66b1c9b1db8900bf320
10
+ HEAD_REF master
11
+ PATCHES
12
+ ${PATCHES}
13
+ export-pkgconfig.patch
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ -DBUILD_TESTING=OFF
20
+ -DINSTALL_CMAKE_DIR=share/yaml
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+
25
+ vcpkg_copy_pdbs()
26
+
27
+ vcpkg_cmake_config_fixup(PACKAGE_NAME yaml CONFIG_PATH share/yaml)
28
+
29
+ vcpkg_fixup_pkgconfig()
30
+
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/include/config.h" "${CURRENT_PACKAGES_DIR}/debug/share")
32
+
33
+ configure_file("${SOURCE_PATH}/License" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyaml/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libyaml",
3
+ "version-string": "0.2.5",
4
+ "port-version": 3,
5
+ "description": "A C library for parsing and emitting YAML.",
6
+ "homepage": "https://github.com/yaml/libyaml",
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/libyuv/deprecated-warning.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index cc49726..25d6ff1 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -10,6 +10,11 @@ OPTION( TEST "Built unit tests" OFF )
6
+
7
+ SET( CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON )
8
+
9
+ +if (MSVC)
10
+ + # Allow deprecated functions
11
+ + add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
12
+ +endif()
13
+ +
14
+ SET ( ly_base_dir ${PROJECT_SOURCE_DIR} )
15
+ SET ( ly_src_dir ${ly_base_dir}/source )
16
+ SET ( ly_inc_dir ${ly_base_dir}/include )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/fix-build-type.patch ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 50442cd..fdc82f2 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -28,24 +28,32 @@ LIST ( SORT ly_unittest_sources )
6
+ INCLUDE_DIRECTORIES( BEFORE ${ly_inc_dir} )
7
+
8
+ # this creates the static library (.a)
9
+ +if (NOT BUILD_SHARED_LIBS)
10
+ ADD_LIBRARY ( ${ly_lib_static} STATIC ${ly_source_files} )
11
+ SET_TARGET_PROPERTIES( ${ly_lib_static} PROPERTIES PUBLIC_HEADER include/libyuv.h )
12
+ -
13
+ +else()
14
+ # this creates the shared library (.so)
15
+ ADD_LIBRARY ( ${ly_lib_shared} SHARED ${ly_source_files} )
16
+ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES OUTPUT_NAME "${ly_lib_name}" )
17
+ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES PREFIX "lib" )
18
+ -
19
+ +endif()
20
+ # this creates the conversion tool
21
+ ADD_EXECUTABLE ( yuvconvert ${ly_base_dir}/util/yuvconvert.cc )
22
+ -TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_static} )
23
+ -
24
+ +if (BUILD_SHARED_LIBS)
25
+ + TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_shared} )
26
+ +else()
27
+ + TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_static} )
28
+ +endif()
29
+
30
+ INCLUDE ( FindJPEG )
31
+ if (JPEG_FOUND)
32
+ - include_directories( ${JPEG_INCLUDE_DIR} )
33
+ - target_link_libraries( ${ly_lib_shared} PUBLIC ${JPEG_LIBRARY} )
34
+ - target_link_libraries( yuvconvert ${JPEG_LIBRARY} )
35
+ + include_directories( ${JPEG_INCLUDE_DIR})
36
+ + if( BUILD_SHARED_LIBS)
37
+ + target_link_libraries(${ly_lib_shared} PUBLIC ${JPEG_LIBRARY})
38
+ + else()
39
+ + target_link_libraries(${ly_lib_static} PUBLIC ${JPEG_LIBRARY})
40
+ + endif()
41
+ + target_link_libraries(yuvconvert ${JPEG_LIBRARY})
42
+ add_definitions( -DHAVE_JPEG )
43
+ endif()
44
+
45
+ @@ -88,11 +96,13 @@ endif()
46
+
47
+
48
+ # install the conversion tool, .so, .a, and all the header files
49
+ -INSTALL ( TARGETS yuvconvert DESTINATION bin )
50
+ +INSTALL ( TARGETS yuvconvert DESTINATION tools )
51
+ INSTALL ( FILES ${ly_include_files} DESTINATION include/libyuv )
52
+ -INSTALL ( TARGETS ${ly_lib_static} EXPORT libyuv-targets DESTINATION lib INCLUDES DESTINATION include PUBLIC_HEADER DESTINATION include )
53
+ -INSTALL ( TARGETS ${ly_lib_shared} EXPORT libyuv-targets LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
54
+ -
55
+ +if (NOT BUILD_SHARED_LIBS)
56
+ + INSTALL ( TARGETS ${ly_lib_static} EXPORT libyuv-targets DESTINATION lib INCLUDES DESTINATION include PUBLIC_HEADER DESTINATION include )
57
+ +else()
58
+ + INSTALL ( TARGETS ${ly_lib_shared} EXPORT libyuv-targets LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
59
+ +endif()
60
+ INSTALL( EXPORT libyuv-targets DESTINATION share/cmake/libyuv/ EXPORT_LINK_INTERFACE_LIBRARIES )
61
+
62
+ # create the .deb and .rpm packages using cpack
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/fix_cmakelists.patch ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ed4948f..5b4e112 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -2,10 +2,14 @@
6
+ # Originally created for "roxlu build system" to compile libyuv on windows
7
+ # Run with -DTEST=ON to build unit tests
8
+
9
+ -PROJECT ( YUV C CXX ) # "C" is required even for C++ projects
10
+ CMAKE_MINIMUM_REQUIRED( VERSION 2.8 )
11
+ +CMAKE_POLICY( SET CMP0022 NEW )
12
+ +
13
+ +PROJECT ( YUV C CXX ) # "C" is required even for C++ projects
14
+ OPTION( TEST "Built unit tests" OFF )
15
+
16
+ +SET( CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON )
17
+ +
18
+ SET ( ly_base_dir ${PROJECT_SOURCE_DIR} )
19
+ SET ( ly_src_dir ${ly_base_dir}/source )
20
+ SET ( ly_inc_dir ${ly_base_dir}/include )
21
+ @@ -14,6 +18,7 @@ SET ( ly_lib_name yuv )
22
+ SET ( ly_lib_static ${ly_lib_name} )
23
+ SET ( ly_lib_shared ${ly_lib_name}_shared )
24
+
25
+ +FILE ( GLOB_RECURSE ly_include_files ${ly_inc_dir}/libyuv/*.h )
26
+ FILE ( GLOB_RECURSE ly_source_files ${ly_src_dir}/*.cc )
27
+ LIST ( SORT ly_source_files )
28
+
29
+ @@ -24,6 +29,7 @@ INCLUDE_DIRECTORIES( BEFORE ${ly_inc_dir} )
30
+
31
+ # this creates the static library (.a)
32
+ ADD_LIBRARY ( ${ly_lib_static} STATIC ${ly_source_files} )
33
+ +SET_TARGET_PROPERTIES( ${ly_lib_static} PROPERTIES PUBLIC_HEADER include/libyuv.h )
34
+
35
+ # this creates the shared library (.so)
36
+ ADD_LIBRARY ( ${ly_lib_shared} SHARED ${ly_source_files} )
37
+ @@ -38,6 +44,7 @@ TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_static} )
38
+ INCLUDE ( FindJPEG )
39
+ if (JPEG_FOUND)
40
+ include_directories( ${JPEG_INCLUDE_DIR} )
41
+ + target_link_libraries( ${ly_lib_shared} PUBLIC ${JPEG_LIBRARY} )
42
+ target_link_libraries( yuvconvert ${JPEG_LIBRARY} )
43
+ add_definitions( -DHAVE_JPEG )
44
+ endif()
45
+ @@ -81,10 +88,12 @@ endif()
46
+
47
+
48
+ # install the conversion tool, .so, .a, and all the header files
49
+ -INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )
50
+ -INSTALL ( TARGETS ${ly_lib_static} DESTINATION lib )
51
+ -INSTALL ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
52
+ -INSTALL ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include )
53
+ +INSTALL ( TARGETS yuvconvert DESTINATION bin )
54
+ +INSTALL ( FILES ${ly_include_files} DESTINATION include/libyuv )
55
+ +INSTALL ( TARGETS ${ly_lib_static} EXPORT libyuv-targets DESTINATION lib INCLUDES DESTINATION include PUBLIC_HEADER DESTINATION include )
56
+ +INSTALL ( TARGETS ${ly_lib_shared} EXPORT libyuv-targets LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
57
+ +
58
+ +INSTALL( EXPORT libyuv-targets DESTINATION share/cmake/libyuv/ EXPORT_LINK_INTERFACE_LIBRARIES )
59
+
60
+ # create the .deb and .rpm packages using cpack
61
+ INCLUDE ( CM_linux_packages.cmake )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/libyuv-config.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ include(CMakeFindDependencyMacro)
2
+ find_dependency(JPEG)
3
+
4
+ set(libyuv_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../include")
5
+ include("${CMAKE_CURRENT_LIST_DIR}/libyuv-targets.cmake")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_git(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ URL https://chromium.googlesource.com/libyuv/libyuv
6
+ REF 287158925b0e03ea4499a18b4e08478c5781541b #2021-4-15
7
+ PATCHES
8
+ fix_cmakelists.patch
9
+ fix-build-type.patch
10
+ deprecated-warning.patch
11
+ )
12
+
13
+ set(POSTFIX d)
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH ${SOURCE_PATH}
16
+ OPTIONS_DEBUG
17
+ -DCMAKE_DEBUG_POSTFIX=${POSTFIX}
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+ vcpkg_copy_pdbs()
22
+
23
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/libyuv)
24
+
25
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
26
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
27
+
28
+ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libyuv/convert.h "#ifdef HAVE_JPEG" "#if 1")
29
+ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libyuv/convert_argb.h "#ifdef HAVE_JPEG" "#if 1")
30
+
31
+ configure_file(${CMAKE_CURRENT_LIST_DIR}/libyuv-config.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT} COPYONLY)
32
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libyuv/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libyuv",
3
+ "version-date": "2021-04-15",
4
+ "port-version": 1,
5
+ "description": "libyuv is an open source project that includes YUV scaling and conversion functionality",
6
+ "homepage": "https://chromium.googlesource.com/libyuv/libyuv",
7
+ "dependencies": [
8
+ "libjpeg-turbo",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzen/portfile.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
2
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO MediaArea/ZenLib
8
+ REF 13b9d3dbd2088390fbdccab32ae4560526389fbc # v0.4.39
9
+ SHA512 ec63af7ea60be2548d45702518a9b638b4f424044ecaebfbca97d9872b3ecafddc9c59aed4a5bae7bd5bbdffbd543c4ed9e106e5c406ec576a9c0970f0aadcac
10
+ HEAD_REF master
11
+ )
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}/Project/CMake"
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+ vcpkg_cmake_config_fixup(PACKAGE_NAME zenlib CONFIG_PATH share/zenlib)
19
+ vcpkg_fixup_pkgconfig()
20
+
21
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
22
+
23
+ file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzen/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libzen",
3
+ "version": "0.4.39",
4
+ "port-version": 1,
5
+ "description": "ZenLib is a C++ utility library for easiest cross-platform development",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ },
11
+ {
12
+ "name": "vcpkg-cmake-config",
13
+ "host": true
14
+ }
15
+ ]
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzip/fix-dependency.patch ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/libzip-config.cmake.in b/libzip-config.cmake.in
2
+ index 5b9aa55..0723f3c 100644
3
+ --- a/libzip-config.cmake.in
4
+ +++ b/libzip-config.cmake.in
5
+ @@ -1,8 +1,20 @@
6
+ @PACKAGE_INIT@
7
+
8
+ # only needed for static library, and doesn't work as-is
9
+ -#include(CMakeFindDependencyMacro)
10
+ -#find_dependency(ZLIB::ZLIB)
11
+ +include(CMakeFindDependencyMacro)
12
+ +if(@ENABLE_BZIP2@)
13
+ + find_dependency(BZip2)
14
+ +endif()
15
+ +if(@ENABLE_LZMA@)
16
+ + find_dependency(LibLZMA)
17
+ +endif()
18
+ +if(@ENABLE_ZSTD@)
19
+ + find_dependency(Zstd)
20
+ +endif()
21
+ +if(@ENABLE_OPENSSL@)
22
+ + find_dependency(OpenSSL)
23
+ +endif()
24
+ +find_dependency(ZLIB)
25
+ # how to handle the optional dependencies?
26
+ # Provide all our library targets to users.
27
+ include("${CMAKE_CURRENT_LIST_DIR}/libzip-targets.cmake")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzip/portfile.cmake ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO nih-at/libzip
4
+ REF v1.8.0
5
+ SHA512 f7a78ff6d964a485b8fe3dfb7a61afae69984e67367e6de78c3cb10f15a0904800a1aeca9d33b63bc24ca926fff98638914343a35e7c3a4c3ec8b7594fc25fc1
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-dependency.patch
9
+ )
10
+
11
+ vcpkg_check_features(
12
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13
+ FEATURES
14
+ bzip2 ENABLE_BZIP2
15
+ liblzma ENABLE_LZMA
16
+ zstd ENABLE_ZSTD
17
+ openssl ENABLE_OPENSSL
18
+ wincrypto ENABLE_WINDOWS_CRYPTO
19
+ commoncrypto ENABLE_COMMONCRYPTO
20
+ mbedtls ENABLE_MBEDTLS
21
+ )
22
+
23
+ vcpkg_cmake_configure(
24
+ SOURCE_PATH "${SOURCE_PATH}"
25
+ OPTIONS
26
+ ${FEATURE_OPTIONS}
27
+ -DBUILD_DOC=OFF
28
+ -DBUILD_EXAMPLES=OFF
29
+ -DBUILD_REGRESS=OFF
30
+ -DBUILD_TOOLS=OFF
31
+ -DENABLE_GNUTLS=OFF
32
+ )
33
+
34
+ vcpkg_cmake_install()
35
+ vcpkg_copy_pdbs()
36
+
37
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libzip)
38
+ vcpkg_fixup_pkgconfig()
39
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
40
+
41
+ # Remove include directories from lib
42
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/libzip" "${CURRENT_PACKAGES_DIR}/debug/lib/libzip")
43
+
44
+ # Remove debug include
45
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
46
+
47
+ # Copy copright information
48
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzip/vcpkg.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libzip",
3
+ "version-semver": "1.8.0",
4
+ "description": "A library for reading, creating, and modifying zip archives.",
5
+ "homepage": "https://github.com/nih-at/libzip",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ },
11
+ {
12
+ "name": "vcpkg-cmake-config",
13
+ "host": true
14
+ },
15
+ "zlib"
16
+ ],
17
+ "default-features": [
18
+ "bzip2",
19
+ "default-aes"
20
+ ],
21
+ "features": {
22
+ "bzip2": {
23
+ "description": "Support bzip2-compressed zip archives",
24
+ "dependencies": [
25
+ "bzip2"
26
+ ]
27
+ },
28
+ "commoncrypto": {
29
+ "description": "AES (encryption) support using Apple's Common Crypto API"
30
+ },
31
+ "default-aes": {
32
+ "description": "Use default AES",
33
+ "dependencies": [
34
+ {
35
+ "name": "libzip",
36
+ "default-features": false,
37
+ "features": [
38
+ "commoncrypto"
39
+ ],
40
+ "platform": "osx"
41
+ },
42
+ {
43
+ "name": "libzip",
44
+ "default-features": false,
45
+ "features": [
46
+ "wincrypto"
47
+ ],
48
+ "platform": "windows"
49
+ },
50
+ {
51
+ "name": "libzip",
52
+ "default-features": false,
53
+ "features": [
54
+ "openssl"
55
+ ],
56
+ "platform": "!(windows | osx)"
57
+ }
58
+ ]
59
+ },
60
+ "liblzma": {
61
+ "description": "Support XZ compressed zip archives using liblzma",
62
+ "dependencies": [
63
+ "liblzma"
64
+ ]
65
+ },
66
+ "mbedtls": {
67
+ "description": "AES (encryption) support using mbedtls",
68
+ "dependencies": [
69
+ "mbedtls"
70
+ ]
71
+ },
72
+ "openssl": {
73
+ "description": "AES (encryption) support using OpenSSL",
74
+ "dependencies": [
75
+ "openssl"
76
+ ]
77
+ },
78
+ "wincrypto": {
79
+ "description": "AES (encryption) support using Windows Crypto API"
80
+ },
81
+ "zstd": {
82
+ "description": "Support Zstandard-compressed zip archives",
83
+ "dependencies": [
84
+ "zstd"
85
+ ]
86
+ }
87
+ }
88
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzippp/fix-find-lzma.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/FindLIBZIP.cmake b/cmake/FindLIBZIP.cmake
2
+ index c51c09a..a32bb13 100644
3
+ --- a/cmake/FindLIBZIP.cmake
4
+ +++ b/cmake/FindLIBZIP.cmake
5
+ @@ -50,7 +50,7 @@ if (LIBZIP_FOUND)
6
+ set_property(TARGET libzip::zip APPEND PROPERTY INTERFACE_LINK_LIBRARIES Nettle::Nettle)
7
+ endif()
8
+ if(_have_extra_libs MATCHES "-llzma")
9
+ - find_package(LibLZMA::LibLZMA REQUIRED)
10
+ + find_package(LibLZMA REQUIRED)
11
+ set_property(TARGET libzip::zip APPEND PROPERTY INTERFACE_LINK_LIBRARIES LibLZMA::LibLZMA)
12
+ endif()
13
+ if(_have_extra_libs MATCHES "-lz")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzippp/portfile.cmake ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO ctabin/libzippp
4
+ REF 0e907d7ef8de46822602cb7633a5bc6fc0cc36de #v5.0-1.8.0 with CXX std version c++11
5
+ SHA512 f91724b0225bddcaf705e7e1493ad415b534096cfe3636d50995245982984e7420148206f4e24d72e596d75eac570d7b512c5aa836eaf4a8951e27737bcee9eb
6
+ HEAD_REF master
7
+ PATCHES fix-find-lzma.patch
8
+ )
9
+
10
+ vcpkg_check_features(
11
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ encryption LIBZIPPP_ENABLE_ENCRYPTION)
14
+
15
+ vcpkg_configure_cmake(
16
+ SOURCE_PATH ${SOURCE_PATH}
17
+ PREFER_NINJA
18
+ OPTIONS
19
+ ${FEATURE_OPTIONS}
20
+ -DLIBZIPPP_BUILD_TESTS=OFF
21
+ OPTIONS_DEBUG
22
+ -DLIBZIPPP_INSTALL_HEADERS=OFF
23
+ )
24
+
25
+ vcpkg_install_cmake()
26
+ vcpkg_copy_pdbs()
27
+
28
+ if(VCPKG_TARGET_IS_WINDOWS)
29
+ vcpkg_fixup_cmake_targets(CONFIG_PATH "cmake/libzippp")
30
+ else()
31
+ vcpkg_fixup_cmake_targets(CONFIG_PATH "share/libzippp")
32
+ endif()
33
+
34
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
35
+
36
+ # Handle copyright
37
+ file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libzippp/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libzippp",
3
+ "version-string": "5.0-1.8.0",
4
+ "port-version": 1,
5
+ "description": "Simple basic C++ wrapper around the libzip library. It is meant to be a portable and easy-to-use library for ZIP handling",
6
+ "homepage": "https://github.com/ctabin/libzippp",
7
+ "dependencies": [
8
+ {
9
+ "name": "libzip",
10
+ "default-features": false,
11
+ "features": [
12
+ "bzip2"
13
+ ]
14
+ },
15
+ "zlib"
16
+ ],
17
+ "features": {
18
+ "encryption": {
19
+ "description": "Support encryption"
20
+ }
21
+ }
22
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/0001-use-old-pem-pack.patch ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From d1b446c7a69344cb53be6692cd76186960a1428d Mon Sep 17 00:00:00 2001
2
+ From: Nicole Mazzuca <[email protected]>
3
+ Date: Wed, 23 Sep 2020 09:40:32 -0700
4
+ Subject: [PATCH 1/2] use old pem pack
5
+
6
+ In this commit: https://github.com/noloader/cryptopp-pem/commit/0cfa60820ec1d5e8ac4d77a0a8786ee43e9a2400
7
+ the parameter orders have been changed.
8
+ But we cannot update pem-pack to this version or newer because it
9
+ wont compile with the current version of cryptopp in vcpkg.
10
+ ---
11
+ src/external/Ripe.cc | 2 +-
12
+ 1 file changed, 1 insertion(+), 1 deletion(-)
13
+
14
+ diff --git a/src/external/Ripe.cc b/src/external/Ripe.cc
15
+ index 6ff9561..a1d1eec 100644
16
+ --- a/src/external/Ripe.cc
17
+ +++ b/src/external/Ripe.cc
18
+ @@ -227,7 +227,7 @@ Ripe::KeyPair Ripe::generateRSAKeyPair(unsigned int length, const std::string& s
19
+ if (secret.empty()) {
20
+ PEM_Save(snk, privateKey);
21
+ } else {
22
+ - PEM_Save(snk, privateKey, rng, PRIVATE_RSA_ALGORITHM, secret.data(), secret.size());
23
+ + PEM_Save(snk, rng, privateKey, PRIVATE_RSA_ALGORITHM, secret.data(), secret.size());
24
+ }
25
+ snk.MessageEnd();
26
+ }
27
+ --
28
+ 2.24.3 (Apple Git-128)
29
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/0002-fix-cmake.patch ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From 5a7cbbe8423ee3daf533bcc1fefa7d1f1315634c Mon Sep 17 00:00:00 2001
2
+ From: Nicole Mazzuca <[email protected]>
3
+ Date: Wed, 23 Sep 2020 09:43:37 -0700
4
+ Subject: [PATCH 2/2] fix cmake
5
+
6
+ Remove this patch if https://github.com/amrayn/licensepp/pull/33 is merged
7
+ ---
8
+ CMakeLists.txt | 7 +++----
9
+ 1 file changed, 3 insertions(+), 4 deletions(-)
10
+
11
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
12
+ index b2c39d1..0d49632 100644
13
+ --- a/CMakeLists.txt
14
+ +++ b/CMakeLists.txt
15
+ @@ -35,10 +35,8 @@ if (APPLE)
16
+ endif()
17
+ endif()
18
+
19
+ -if(MSVC)
20
+ - list (APPEND CMAKE_CXX_FLAGS " -std=c++11 -O3 ")
21
+ -else()
22
+ - list (APPEND CMAKE_CXX_FLAGS " -std=c++11 -O3 -Wall -Werror ")
23
+ +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
24
+ + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -Wall")
25
+ endif()
26
+
27
+ # Check for cryptopp (static)
28
+ @@ -73,6 +71,7 @@ endif()
29
+ set_target_properties (licensepp-lib PROPERTIES
30
+ VERSION ${LICENSEPP_SOVERSION}
31
+ )
32
+ +target_include_directories(licensepp-lib PUBLIC $<INSTALL_INTERFACE:include>)
33
+ target_link_libraries (licensepp-lib
34
+ ${CRYPTOPP_LIBRARIES}
35
+ )
36
+ --
37
+ 2.24.3 (Apple Git-128)
38
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/FindCryptoPP.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ find_path(CRYPTOPP_INCLUDE_DIRS NAMES cryptopp/cryptlib.h)
2
+
3
+ get_filename_component(_prefix_path ${CRYPTOPP_INCLUDE_DIRS} PATH)
4
+
5
+ find_library(
6
+ CRYPTOPP_LIBRARY_DEBUG
7
+ NAMES cryptopp-static cryptopp
8
+ PATHS ${_prefix_path}/debug/lib
9
+ NO_DEFAULT_PATH
10
+ )
11
+ find_library(
12
+ CRYPTOPP_LIBRARY_RELEASE
13
+ NAMES cryptopp-static cryptopp
14
+ PATHS ${_prefix_path}/lib
15
+ NO_DEFAULT_PATH
16
+ )
17
+
18
+ unset(_prefix_path)
19
+
20
+ include(SelectLibraryConfigurations)
21
+ select_library_configurations(CRYPTOPP)
22
+
23
+ include(FindPackageHandleStandardArgs)
24
+ find_package_handle_standard_args(
25
+ CryptoPP
26
+ REQUIRED_VARS CRYPTOPP_LIBRARIES CRYPTOPP_INCLUDE_DIRS
27
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO amrayn/licensepp
6
+ REF 0b6d669c0b323be004f73d8c811d38158ce8c0c7
7
+ SHA512 2161575815d8ff49110d7c2823662ba30d9f1ca2eb6be6dad1ee0807fb3fa9f28483839a133c9d380035254df7c452f8d6fa7f17fd4f29acd8b9bfbbda059291
8
+ HEAD_REF master
9
+ PATCHES
10
+ 0001-use-old-pem-pack.patch
11
+ 0002-fix-cmake.patch
12
+ )
13
+
14
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/FindCryptoPP.cmake DESTINATION ${SOURCE_PATH}/cmake)
15
+
16
+ vcpkg_configure_cmake(
17
+ SOURCE_PATH ${SOURCE_PATH}
18
+ PREFER_NINJA
19
+ OPTIONS
20
+ -Dtest=OFF
21
+ -Dtravis=OFF
22
+ )
23
+
24
+ vcpkg_install_cmake()
25
+
26
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT}/cmake)
27
+
28
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
29
+
30
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/licensepp/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "licensepp",
3
+ "version-date": "2020-05-19",
4
+ "port-version": 3,
5
+ "description": "Cross platform software licensing library",
6
+ "homepage": "https://github.com/zuhd-org/licensepp",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "cryptopp",
11
+ "features": [
12
+ "pem-pack"
13
+ ]
14
+ }
15
+ ]
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lilv/CMakeLists.txt ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.17)
2
+ project(lilv C)
3
+
4
+ find_package(lv2 CONFIG REQUIRED)
5
+ find_package(serd CONFIG REQUIRED)
6
+ find_package(sord CONFIG REQUIRED)
7
+ find_package(sratom CONFIG REQUIRED)
8
+
9
+ add_library(lilv
10
+ src/collections.c
11
+ src/filesystem.c
12
+ src/instance.c
13
+ src/lib.c
14
+ src/node.c
15
+ src/plugin.c
16
+ src/pluginclass.c
17
+ src/port.c
18
+ src/query.c
19
+ src/scalepoint.c
20
+ src/state.c
21
+ src/ui.c
22
+ src/util.c
23
+ src/world.c
24
+ src/zix/tree.c
25
+ )
26
+
27
+ if(CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "MinGW")
28
+ set(LILV_PATH_SEP [[;]])
29
+ set(LILV_DIR_SEP [[\\]])
30
+ set(LV2_PATH [[%APPDATA%\\LV2;%COMMONPROGRAMFILES%\\LV2]])
31
+ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
32
+ set(LILV_PATH_SEP ":")
33
+ set(LILV_DIR_SEP "/")
34
+ set(LV2_PATH "~/Library/Audio/Plug-Ins/LV2:~/.lv2:/usr/local/lib/lv2:/usr/lib/lv2:/Library/Audio/Plug-Ins/LV2")
35
+ else()
36
+ set(LILV_PATH_SEP ":")
37
+ set(LILV_DIR_SEP "/")
38
+ set(LV2_PATH "~/.lv2:/usr/lib/lv2:/usr/local/lib/lv2")
39
+ endif()
40
+
41
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/lilv_config.h.in" [[
42
+ #define LILV_PATH_SEP "@LILV_PATH_SEP@"
43
+ #define LILV_DIR_SEP "@LILV_DIR_SEP@"
44
+ #define LILV_DEFAULT_LV2_PATH "@LV2_PATH@"
45
+ ]])
46
+ configure_file("${CMAKE_CURRENT_BINARY_DIR}/lilv_config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/lilv_config.h")
47
+
48
+ target_include_directories(lilv
49
+ PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/src" "${CMAKE_CURRENT_BINARY_DIR}"
50
+ )
51
+
52
+ target_link_libraries(lilv
53
+ PUBLIC lv2::lv2
54
+ PRIVATE serd::serd sord::sord sratom::sratom
55
+ )
56
+
57
+ set_target_properties(lilv PROPERTIES
58
+ C_STANDARD 99
59
+ C_STANDARD_REQUIRED ON
60
+ )
61
+
62
+ target_compile_definitions(lilv PRIVATE LILV_INTERNAL _CRT_SECURE_NO_WARNINGS)
63
+
64
+ if(BUILD_SHARED_LIBS)
65
+ target_compile_definitions(lilv PUBLIC LILV_SHARED)
66
+ endif()
67
+
68
+ install(
69
+ TARGETS lilv
70
+ EXPORT lilv-targets
71
+ INCLUDES DESTINATION include
72
+ )
73
+
74
+ if(NOT DISABLE_INSTALL_HEADERS)
75
+ install(DIRECTORY lilv DESTINATION include)
76
+ endif()
77
+
78
+ install(
79
+ EXPORT lilv-targets
80
+ NAMESPACE lilv::
81
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/lilv"
82
+ )
83
+
84
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/lilv-config.cmake" [[
85
+ include(CMakeFindDependencyMacro)
86
+ find_dependency(lv2 CONFIG)
87
+ find_dependency(serd CONFIG)
88
+ find_dependency(sord CONFIG)
89
+ find_dependency(sratom CONFIG)
90
+ include("${CMAKE_CURRENT_LIST_DIR}/lilv-targets.cmake")
91
+ ]])
92
+
93
+ install(
94
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/lilv-config.cmake"
95
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/lilv"
96
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lilv/portfile.cmake ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_gitlab(
2
+ GITLAB_URL https://gitlab.com
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO lv2/lilv
5
+ REF v0.24.10
6
+ SHA512 be47b72f2671f3bbab219944519b990156547e26aa432c2618273683c86dc23ae3b071d1de586f45dfda3ea8dbbc095429ad318fda60efcf715ae917a7caa34b
7
+ HEAD_REF master
8
+ )
9
+
10
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
11
+
12
+ vcpkg_configure_cmake(
13
+ SOURCE_PATH "${SOURCE_PATH}"
14
+ PREFER_NINJA
15
+ OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
16
+ )
17
+
18
+ vcpkg_install_cmake()
19
+
20
+ vcpkg_copy_pdbs()
21
+ vcpkg_fixup_cmake_targets()
22
+ file(
23
+ INSTALL "${SOURCE_PATH}/COPYING"
24
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
25
+ RENAME copyright
26
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lilv/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "lilv",
3
+ "version": "0.24.10",
4
+ "port-version": 1,
5
+ "description": "Lilv is a C library for simple use of LV2 plugins in applications.",
6
+ "homepage": "https://drobilla.net/software/lilv",
7
+ "license": "ISC",
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ "lv2",
11
+ "serd",
12
+ "sord",
13
+ "sratom"
14
+ ]
15
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/linalg/portfile.cmake ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO sgorsten/linalg
5
+ REF v2.1
6
+ SHA512 48d8248ea1bca3d4fe35d038690f496cd0c8c9469d76eca684668ce6fef5df0eb9556f9b49e4da90e2c2e8ef475791877aa815c3f9437c097fbfc303134d02d7
7
+ HEAD_REF master
8
+ )
9
+
10
+ configure_file(${SOURCE_PATH}/UNLICENSE ${CURRENT_PACKAGES_DIR}/share/linalg/copyright COPYONLY)
11
+ configure_file(${SOURCE_PATH}/linalg.h ${CURRENT_PACKAGES_DIR}/include/linalg.h COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/linalg/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "linalg",
3
+ "version-string": "2.1",
4
+ "port-version": 1,
5
+ "description": "linalg.h is a single header public domain linear algebra library for C++11"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/linenoise-ng/portfile.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO arangodb/linenoise-ng
4
+ REF 4754bee2d8eb3c4511e6ac87cac62255b2011e2f
5
+ SHA512 080c6b4cde911a162885a2e6fc95143ab481b4dcc0f8b871a55a071ccb4ab868b19201ec17475a3c3ceef1b82325d757913383b3c46da6946ddc8bfc0d82d9ca
6
+ HEAD_REF master
7
+ )
8
+
9
+
10
+ vcpkg_configure_cmake(
11
+ SOURCE_PATH ${SOURCE_PATH}
12
+ PREFER_NINJA
13
+ DISABLE_PARALLEL_CONFIGURE
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+ vcpkg_copy_pdbs()
18
+
19
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
20
+
21
+ # Handle copyright
22
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/linenoise-ng RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/linenoise-ng/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "linenoise-ng",
3
+ "version-string": "4754bee2d8eb3",
4
+ "port-version": 2,
5
+ "description": "A small, portable GNU readline replacement for Linux, Windows and MacOS which is capable of handling UTF-8 characters."
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lionkor-commandline/add-install.patch ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b4db57c..7ace55c 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -22,3 +22,5 @@ if(BUILD_EXAMPLES)
6
+ target_link_libraries(test commandline)
7
+ endif()
8
+
9
+ +set_target_properties(commandline PROPERTIES PUBLIC_HEADER "commandline.h")
10
+ +install(TARGETS commandline RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include)