Techt3o commited on
Commit
3692853
·
verified ·
1 Parent(s): 0bbb72e

0a9fd6fbfabc9ff015d993d94af9311bf092f6095f24a268bd82cb8305c63833

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-arm-build.patch +24 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-dependencies.patch +176 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-dependency-libbson.patch +72 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-include-directory.patch +13 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-static-cmake.patch +13 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/portfile.cmake +124 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/usage +9 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/vcpkg.json +43 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/disable-c2338-mongo-cxx-driver.patch +12 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/disable_test_and_example.patch +47 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/fix-dependencies.patch +11 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/fix-uwp.patch +12 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/github-654.patch +16 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/portfile.cmake +108 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/vcpkg.json +36 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongoose/CMakeLists.txt +28 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongoose/portfile.cmake +30 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongoose/vcpkg.json +26 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/fix-project-config.patch +16 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/license +42 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/portfile.cmake +71 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/remove-certificate-step.patch +24 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/vcpkg.json +16 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-core/cmake_fix.patch +48 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-core/portfile.cmake +31 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-core/vcpkg.json +7 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-essential/fix.patch +23 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-essential/portfile.cmake +33 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-essential/vcpkg.json +10 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-ui/portfile.cmake +32 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-ui/vcpkg.json +10 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/morton-nd/portfile.cmake +30 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/morton-nd/vcpkg.json +7 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0001-add-archive-destination-to-install.patch +39 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0002-win64-support.patch +18 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0003-add-find_package-libwebsockets.patch +24 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0004-support-static-build.patch +42 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0005-websocket-shared-lib-name.patch +20 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/portfile.cmake +80 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/usage +5 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/vcpkg-cmake-wrapper.cmake +15 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/vcpkg.json +13 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mozjpeg/fix-install-error.patch +13 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mozjpeg/portfile.cmake +60 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mozjpeg/vcpkg.json +17 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp-units/cmake.patch +30 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp-units/config.patch +14 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp-units/portfile.cmake +24 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp-units/vcpkg.json +18 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp3lame/00001-msvc-upgrade-solution-up-to-vc11.patch +1018 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-arm-build.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
2
+ index 5b7f448f2..8881f5194 100644
3
+ --- a/src/libmongoc/CMakeLists.txt
4
+ +++ b/src/libmongoc/CMakeLists.txt
5
+ @@ -729,6 +729,9 @@ if (NOT MONGOC_ENABLE_STATIC_BUILD)
6
+ add_library (mongoc_shared SHARED ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
7
+ set_target_properties (mongoc_shared PROPERTIES CMAKE_CXX_VISIBILITY_PRESET hidden)
8
+ target_link_libraries (mongoc_shared PRIVATE ${LIBRARIES} PUBLIC mongo::bson_shared)
9
+ +if (WIN32)
10
+ + target_link_libraries (mongoc_shared PRIVATE Advapi32)
11
+ +endif()
12
+ target_include_directories (mongoc_shared BEFORE PUBLIC ${MONGOC_INTERNAL_INCLUDE_DIRS})
13
+ target_include_directories (mongoc_shared PRIVATE ${ZLIB_INCLUDE_DIRS})
14
+ target_include_directories (mongoc_shared PRIVATE ${LIBMONGOCRYPT_INCLUDE_DIRECTORIES})
15
+ @@ -749,6 +752,9 @@ set_target_properties (mongoc_shared PROPERTIES OUTPUT_NAME "${MONGOC_OUTPUT_BAS
16
+ else ()
17
+ add_library (mongoc_static STATIC ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
18
+ target_link_libraries (mongoc_static ${STATIC_LIBRARIES} mongo::bson_static)
19
+ + if (WIN32)
20
+ + target_link_libraries (mongoc_static Advapi32)
21
+ + endif()
22
+ if (NOT WIN32 AND ENABLE_PIC)
23
+ target_compile_options (mongoc_static PUBLIC -fPIC)
24
+ message ("Adding -fPIC to compilation of mongoc_static components")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-dependencies.patch ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
2
+ index 8881f5194..c366f160a 100644
3
+ --- a/src/libmongoc/CMakeLists.txt
4
+ +++ b/src/libmongoc/CMakeLists.txt
5
+ @@ -58,8 +58,9 @@ configure_file (
6
+ set (ZLIB_INCLUDE_DIRS "")
7
+ if (ENABLE_ZLIB MATCHES "SYSTEM|AUTO")
8
+ message (STATUS "Searching for zlib CMake packages")
9
+ - include (FindZLIB)
10
+ + find_package(ZLIB REQUIRED)
11
+ if (ZLIB_FOUND)
12
+ + set(VCPKG_ZLIB_LIBRARIES "ZLIB::ZLIB")
13
+ message ("-- zlib found version \"${ZLIB_VERSION_STRING}\"")
14
+ message ("-- zlib include path \"${ZLIB_INCLUDE_DIRS}\"")
15
+ message ("-- zlib libraries \"${ZLIB_LIBRARIES}\"")
16
+ @@ -100,32 +101,31 @@ endif ()
17
+
18
+ if (NOT ENABLE_ZSTD STREQUAL OFF)
19
+ message (STATUS "Searching for compression library zstd")
20
+ - find_package(PkgConfig)
21
+ - pkg_check_modules (ZSTD libzstd)
22
+ + find_package(zstd CONFIG REQUIRED)
23
+
24
+ - if (NOT ZSTD_FOUND)
25
+ + if (NOT zstd_FOUND)
26
+ if (ENABLE_ZSTD MATCHES "ON")
27
+ message (FATAL_ERROR " Not found")
28
+ else ()
29
+ message (STATUS " Not found")
30
+ endif ()
31
+ # The compression format below this version isn't supported. See SERVER-43070
32
+ - elseif (${ZSTD_VERSION} VERSION_LESS "0.8.0")
33
+ + elseif (${zstd_VERSION} VERSION_LESS "0.8.0")
34
+ if (ENABLE_ZSTD MATCHES "ON")
35
+ - message (FATAL_ERROR "Detected zstd version ${ZSTD_VERSION} but version 0.8.0 required")
36
+ + message (FATAL_ERROR "Detected zstd version ${zstd_VERSION} but version 0.8.0 required")
37
+ else ()
38
+ - message (STATUS "Detected zstd version ${ZSTD_VERSION} but version 0.8.0 required")
39
+ + message (STATUS "Detected zstd version ${zstd_VERSION} but version 0.8.0 required")
40
+ endif ()
41
+ else ()
42
+ - message (STATUS " Found zstd version ${ZSTD_VERSION} in ${ZSTD_INCLUDE_DIRS}")
43
+ + message (STATUS " Found zstd version ${zstd_VERSION} in ${ZSTD_INCLUDE_DIRS}")
44
+ set (MONGOC_ENABLE_COMPRESSION 1)
45
+ set (MONGOC_ENABLE_COMPRESSION_ZSTD 1)
46
+
47
+ include_directories (${ZSTD_INCLUDE_DIRS})
48
+ - if (${CMAKE_VERSION} VERSION_LESS "3.12.0")
49
+ - set (MONGOC_ZSTD_LIBRARIES ${ZSTD_LIBRARIES})
50
+ + if (MONGOC_ENABLE_STATIC_BUILD)
51
+ + set (MONGOC_ZSTD_LIBRARIES "zstd::libzstd_static")
52
+ else ()
53
+ - set (MONGOC_ZSTD_LIBRARIES ${ZSTD_LINK_LIBRARIES})
54
+ + set (MONGOC_ZSTD_LIBRARIES "zstd::libzstd_shared")
55
+ endif ()
56
+ endif()
57
+ endif()
58
+ @@ -134,8 +134,8 @@ if (NOT ENABLE_SSL STREQUAL OFF)
59
+ # Try OpenSSL automatically everywhere but Mac and Windows.
60
+ if (ENABLE_SSL STREQUAL "OPENSSL"
61
+ OR (NOT APPLE AND NOT WIN32 AND ENABLE_SSL STREQUAL "AUTO"))
62
+ - # Sets OPENSSL_FOUND on success.
63
+ - include (FindOpenSSL)
64
+ + # Sets OpenSSL_FOUND on success.
65
+ + find_package(OpenSSL REQUIRED)
66
+ endif ()
67
+
68
+ if (ENABLE_SSL STREQUAL LIBRESSL)
69
+ @@ -171,7 +171,7 @@ if (NOT ENABLE_SSL STREQUAL OFF)
70
+ endif ()
71
+ endif ()
72
+
73
+ - if (NOT OPENSSL_FOUND AND NOT SECURE_TRANSPORT AND NOT SECURE_CHANNEL AND NOT LIBRESSL)
74
+ + if (NOT OpenSSL_FOUND AND NOT SECURE_TRANSPORT AND NOT SECURE_CHANNEL AND NOT LIBRESSL)
75
+ if (ENABLE_SSL STREQUAL AUTO)
76
+ set (ENABLE_SSL OFF)
77
+ else ()
78
+ @@ -180,8 +180,8 @@ if (NOT ENABLE_SSL STREQUAL OFF)
79
+ endif ()
80
+ endif ()
81
+
82
+ -if (OPENSSL_FOUND)
83
+ - if (WIN32 AND OPENSSL_VERSION GREATER 1.1 AND NOT
84
+ +if (OpenSSL_FOUND)
85
+ + if (WIN32 AND OpenSSL_VERSION GREATER 1.1 AND NOT
86
+ ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.7)
87
+ message (FATAL_ERROR "Building against OpenSSL 1.1.0 and later requires CMake 3.7 or later (hint:"
88
+ " You can also compile against Windows Secure Transport with -DENABLE_SSL=WINDOWS")
89
+ @@ -220,7 +220,7 @@ elseif (LIBRESSL)
90
+ endif ()
91
+
92
+ if (ENABLE_CRYPTO_SYSTEM_PROFILE)
93
+ - if (OPENSSL_FOUND)
94
+ + if (OpenSSL_FOUND)
95
+ set (MONGOC_ENABLE_CRYPTO_SYSTEM_PROFILE 1)
96
+ else ()
97
+ message (FATAL_ERROR "ENABLE_CRYPTO_SYSTEM_PROFILE only available with OpenSSL")
98
+ @@ -349,10 +349,10 @@ if (ENABLE_TRACING)
99
+ endif ()
100
+
101
+ # Sets SNAPPY_LIBRARIES and SNAPPY_INCLUDE_DIRS.
102
+ -include (FindSnappy)
103
+ -if (SNAPPY_INCLUDE_DIRS)
104
+ +if (ENABLE_SNAPPY)
105
+ + find_package(Snappy CONFIG REQUIRED)
106
+ set (MONGOC_ENABLE_COMPRESSION 1)
107
+ - include_directories ("${SNAPPY_INCLUDE_DIRS}")
108
+ + set (VCPKG_SNAPPY_LIBRARIES "Snappy::snappy")
109
+ endif ()
110
+
111
+ set (MONGOC_ENABLE_SHM_COUNTERS 0)
112
+ @@ -393,6 +393,7 @@ if (NOT ENABLE_ICU STREQUAL OFF)
113
+ endif()
114
+ if (ICU_FOUND)
115
+ set (MONGOC_ENABLE_ICU 1)
116
+ + set(VCPKG_ICU_LIBRARIES "ICU::uc")
117
+ include_directories ("${ICU_INCLUDE_DIR}")
118
+ elseif (ENABLE_ICU STREQUAL ON)
119
+ message (FATAL_ERROR "No ICU library found. If ICU is installed in a non-standard directory, define ICU_ROOT as the ICU installation path.")
120
+ @@ -623,7 +624,7 @@ if (NOT ENABLE_SSL STREQUAL OFF)
121
+ ${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-ssl.c
122
+ )
123
+
124
+ - if (OPENSSL_FOUND)
125
+ + if (OpenSSL_FOUND)
126
+ message (STATUS "Compiling against OpenSSL")
127
+ set (SOURCES ${SOURCES}
128
+ ${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-crypto-openssl.c
129
+ @@ -633,7 +634,7 @@ if (NOT ENABLE_SSL STREQUAL OFF)
130
+ ${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-openssl.c
131
+ ${PROJECT_SOURCE_DIR}/src/mongoc/mongoc-ocsp-cache.c
132
+ )
133
+ - set (SSL_LIBRARIES ${OPENSSL_LIBRARIES})
134
+ + set (SSL_LIBRARIES "OpenSSL::SSL")
135
+ include_directories (${OPENSSL_INCLUDE_DIR})
136
+ if (WIN32)
137
+ set (SSL_LIBRARIES ${SSL_LIBRARIES} crypt32.lib)
138
+ @@ -696,11 +697,11 @@ endif ()
139
+
140
+ set (LIBRARIES
141
+ ${SASL_LIBRARIES} ${SSL_LIBRARIES} ${SHM_LIBRARIES} ${RESOLV_LIBRARIES}
142
+ - ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES} ${MONGOC_ZSTD_LIBRARIES} Threads::Threads ${ICU_LIBRARIES} ${LIBMONGOCRYPT_LIBRARY}
143
+ + ${VCPKG_SNAPPY_LIBRARIES} ${VCPKG_ZLIB_LIBRARIES} ${MONGOC_ZSTD_LIBRARIES} Threads::Threads ${VCPKG_ICU_LIBRARIES} ${LIBMONGOCRYPT_LIBRARY}
144
+ )
145
+ set (STATIC_LIBRARIES
146
+ ${SASL_LIBRARIES} ${SSL_LIBRARIES} ${SHM_LIBRARIES} ${RESOLV_LIBRARIES}
147
+ - ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES} ${MONGOC_ZSTD_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${ICU_LIBRARIES} ${LIBMONGOCRYPT_LIBRARY}
148
+ + ${VCPKG_SNAPPY_LIBRARIES} ${VCPKG_ZLIB_LIBRARIES} ${MONGOC_ZSTD_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${VCPKG_ICU_LIBRARIES} ${LIBMONGOCRYPT_LIBRARY}
149
+ )
150
+
151
+ if (WIN32)
152
+ diff --git a/src/libmongoc/src/mongoc-config.cmake b/src/libmongoc/src/mongoc-config.cmake
153
+ index 9224178e6..6e449c109 100644
154
+ --- a/src/libmongoc/src/mongoc-config.cmake
155
+ +++ b/src/libmongoc/src/mongoc-config.cmake
156
+ @@ -1,3 +1,20 @@
157
+ include(CMakeFindDependencyMacro)
158
+ find_dependency(bson-1.0 @MONGOC_MAJOR_VERSION@.@MONGOC_MINOR_VERSION@.@MONGOC_MICRO_VERSION@ CONFIG REQUIRED)
159
+ +
160
+ +if("@Threads_FOUND@")
161
+ + find_dependency(Threads REQUIRED)
162
+ +endif()
163
+ +if("@ZLIB_FOUND@")
164
+ + find_dependency(ZLIB REQUIRED)
165
+ +endif()
166
+ +if("@zstd_FOUND@")
167
+ + find_dependency(zstd CONFIG REQUIRED)
168
+ +endif()
169
+ +if("@OpenSSL_FOUND@")
170
+ + find_dependency(OpenSSL REQUIRED)
171
+ +endif()
172
+ +if("@Snappy_FOUND@")
173
+ + find_dependency(Snappy CONFIG REQUIRED)
174
+ +endif()
175
+ +
176
+ include("${CMAKE_CURRENT_LIST_DIR}/mongoc-targets.cmake")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-dependency-libbson.patch ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 91fd663da..fc9565770 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -179,14 +179,6 @@ if (ENABLE_BSON STREQUAL SYSTEM)
6
+ SET (ENABLE_TESTS OFF)
7
+
8
+ set (USING_SYSTEM_BSON TRUE)
9
+ - if (NOT TARGET mongo::bson_shared)
10
+ - message (FATAL_ERROR "System libbson built without shared library target")
11
+ - endif ()
12
+ - set (BSON_LIBRARIES mongo::bson_shared)
13
+ - if (NOT TARGET mongo::bson_static)
14
+ - message (FATAL_ERROR "System libbson built without static library target")
15
+ - endif ()
16
+ - set (BSON_STATIC_LIBRARIES mongo::bson_static)
17
+ endif ()
18
+
19
+ unset (dist_generated CACHE)
20
+ diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
21
+ index af5a398a9..de96ab864 100644
22
+ --- a/src/libmongoc/CMakeLists.txt
23
+ +++ b/src/libmongoc/CMakeLists.txt
24
+ @@ -727,7 +727,7 @@ endif ()
25
+
26
+ add_library (mongoc_shared SHARED ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
27
+ set_target_properties (mongoc_shared PROPERTIES CMAKE_CXX_VISIBILITY_PRESET hidden)
28
+ -target_link_libraries (mongoc_shared PRIVATE ${LIBRARIES} PUBLIC ${BSON_LIBRARIES})
29
+ +target_link_libraries (mongoc_shared PRIVATE ${LIBRARIES} PUBLIC mongo::bson_shared)
30
+ target_include_directories (mongoc_shared BEFORE PUBLIC ${MONGOC_INTERNAL_INCLUDE_DIRS})
31
+ target_include_directories (mongoc_shared PRIVATE ${ZLIB_INCLUDE_DIRS})
32
+ target_include_directories (mongoc_shared PRIVATE ${LIBMONGOCRYPT_INCLUDE_DIRECTORIES})
33
+ @@ -747,7 +747,7 @@ set_target_properties (mongoc_shared PROPERTIES OUTPUT_NAME "${MONGOC_OUTPUT_BAS
34
+
35
+ if (MONGOC_ENABLE_STATIC_BUILD)
36
+ add_library (mongoc_static STATIC ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
37
+ - target_link_libraries (mongoc_static ${STATIC_LIBRARIES} ${BSON_STATIC_LIBRARIES})
38
+ + target_link_libraries (mongoc_static ${STATIC_LIBRARIES} mongo::bson_static)
39
+ if (NOT WIN32 AND ENABLE_PIC)
40
+ target_compile_options (mongoc_static PUBLIC -fPIC)
41
+ message ("Adding -fPIC to compilation of mongoc_static components")
42
+ diff --git a/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in b/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
43
+ index 6f05b0c18..c23da9f61 100644
44
+ --- a/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
45
+ +++ b/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
46
+ @@ -19,7 +19,7 @@ set (MONGOC_STATIC_MINOR_VERSION @MONGOC_MINOR_VERSION@)
47
+ set (MONGOC_STATIC_MICRO_VERSION @MONGOC_MICRO_VERSION@)
48
+ set (MONGOC_STATIC_VERSION @MONGOC_VERSION@)
49
+
50
+ -find_package (libbson-static-1.0 "@MONGOC_MAJOR_VERSION@.@MONGOC_MINOR_VERSION@" REQUIRED)
51
+ +find_package (libbson-1.0 "@MONGOC_MAJOR_VERSION@.@MONGOC_MINOR_VERSION@" REQUIRED)
52
+
53
+ @PACKAGE_INIT@
54
+
55
+ @@ -57,3 +57,7 @@ foreach (LIB @SASL_LIBRARIES@ @SSL_LIBRARIES@ @SHM_LIBRARIES@ @ZLIB_LIBRARIES@
56
+ endforeach ()
57
+
58
+ set (MONGOC_STATIC_DEFINITIONS MONGOC_STATIC ${BSON_STATIC_DEFINITIONS})
59
+ +
60
+ +set (MONGOC_INCLUDE_DIRS ${MONGOC_STATIC_INCLUDE_DIRS})
61
+ +set (MONGOC_LIBRARIES ${MONGOC_STATIC_LIBRARIES})
62
+ +set (MONGOC_DEFINITIONS ${MONGOC_STATIC_DEFINITIONS})
63
+
64
+ diff --git a/src/libmongoc/src/mongoc-config.cmake b/src/libmongoc/src/mongoc-config.cmake
65
+ index 7fe7cf42d..9224178e6 100644
66
+ --- a/src/libmongoc/src/mongoc-config.cmake
67
+ +++ b/src/libmongoc/src/mongoc-config.cmake
68
+ @@ -1,3 +1,3 @@
69
+ include(CMakeFindDependencyMacro)
70
+ -find_dependency(bson-1.0 @MONGOC_MAJOR_VERSION@.@MONGOC_MINOR_VERSION@.@MONGOC_MICRO_VERSION@)
71
+ +find_dependency(bson-1.0 @MONGOC_MAJOR_VERSION@.@MONGOC_MINOR_VERSION@.@MONGOC_MICRO_VERSION@ CONFIG REQUIRED)
72
+ include("${CMAKE_CURRENT_LIST_DIR}/mongoc-targets.cmake")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-include-directory.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
2
+ index a5767ac..3656efa 100644
3
+ --- a/src/libmongoc/CMakeLists.txt
4
+ +++ b/src/libmongoc/CMakeLists.txt
5
+ @@ -998,7 +998,7 @@ else ()
6
+ endif ()
7
+
8
+ set (MONGOC_HEADER_INSTALL_DIR
9
+ - "${CMAKE_INSTALL_INCLUDEDIR}/libmongoc-${MONGOC_API_VERSION}"
10
+ + "${CMAKE_INSTALL_INCLUDEDIR}"
11
+ )
12
+
13
+ install (
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/fix-static-cmake.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in b/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
2
+ index c23da9f..05c03e8 100644
3
+ --- a/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
4
+ +++ b/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
5
+ @@ -30,7 +30,7 @@ list (APPEND MONGOC_STATIC_INCLUDE_DIRS ${BSON_STATIC_INCLUDE_DIRS})
6
+ # directory and the base name, but not the suffix, so we use CMake's
7
+ # find_library () to pick that up. Users can override this by configuring
8
+ # MONGOC_STATIC_LIBRARY themselves.
9
+ -find_library (MONGOC_STATIC_LIBRARY mongoc-static-1.0 PATHS "@PACKAGE_LIBRARY_INSTALL_DIRS@" NO_DEFAULT_PATH)
10
+ +find_library (MONGOC_STATIC_LIBRARY mongoc-1.0 PATHS "@PACKAGE_LIBRARY_INSTALL_DIRS@" NO_DEFAULT_PATH)
11
+ if (MSVC)
12
+ set (MONGOC_STATIC_LIB_EXT "lib")
13
+ else ()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/portfile.cmake ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This port needs to be updated at the same time as libbson
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO mongodb/mongo-c-driver
5
+ REF 00c59aa4a1f72e49e55b211f28650c66c542739e # 1.17.6
6
+ SHA512 9191c64def45ff268cb5d2ce08782265fb8e0567237c8d3311b91e996bd938d629578a7b50e8db29c4b3aa5bc96f93361f6d918e9cfd4861e5f5c5554cf4616d
7
+ HEAD_REF master
8
+ PATCHES
9
+ fix-dependency-libbson.patch
10
+ disable-static-when-dynamic-build.patch
11
+ fix-arm-build.patch
12
+ fix-dependencies.patch
13
+ disable-source-write.patch
14
+ fix-include-directory.patch
15
+ fix-static-cmake.patch
16
+ )
17
+
18
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
19
+ FEATURES
20
+ "snappy" ENABLE_SNAPPY
21
+ "icu" ENABLE_ICU
22
+ "zstd" ENABLE_ZSTD
23
+ )
24
+
25
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
26
+ set(ENABLE_STATIC ON)
27
+ else()
28
+ set(ENABLE_STATIC OFF)
29
+ endif()
30
+
31
+ if(VCPKG_TARGET_IS_WINDOWS)
32
+ set(ENABLE_SSL "WINDOWS")
33
+ else()
34
+ set(ENABLE_SSL "OPENSSL")
35
+ endif()
36
+
37
+ if(VCPKG_TARGET_IS_ANDROID)
38
+ set(ENABLE_SRV OFF)
39
+ set(ENABLE_SHM_COUNTERS OFF)
40
+ else()
41
+ set(ENABLE_SRV AUTO)
42
+ set(ENABLE_SHM_COUNTERS AUTO)
43
+ endif()
44
+
45
+ file(READ "${CMAKE_CURRENT_LIST_DIR}/vcpkg.json" _contents)
46
+ string(JSON BUILD_VERSION GET "${_contents}" version)
47
+ file(WRITE "${SOURCE_PATH}/VERSION_CURRENT" "${BUILD_VERSION}")
48
+
49
+ vcpkg_cmake_configure(
50
+ SOURCE_PATH "${SOURCE_PATH}"
51
+ OPTIONS
52
+ -DBSON_ROOT_DIR=${CURRENT_INSTALLED_DIR}
53
+ -DENABLE_MONGOC=ON
54
+ -DENABLE_BSON=SYSTEM
55
+ -DENABLE_TESTS=OFF
56
+ -DENABLE_EXAMPLES=OFF
57
+ -DENABLE_SRV=${ENABLE_SRV}
58
+ -DENABLE_SHM_COUNTERS=${ENABLE_SHM_COUNTERS}
59
+ -DENABLE_SSL=${ENABLE_SSL}
60
+ -DENABLE_ZLIB=SYSTEM
61
+ -DENABLE_STATIC=${ENABLE_STATIC}
62
+ -DBUILD_VERSION=${BUILD_VERSION}
63
+ -DCMAKE_DISABLE_FIND_PACKAGE_PythonInterp=ON
64
+ ${FEATURE_OPTIONS}
65
+ MAYBE_UNUSED_VARIABLES
66
+ CMAKE_DISABLE_FIND_PACKAGE_PythonInterp
67
+ )
68
+
69
+ vcpkg_cmake_install()
70
+
71
+ vcpkg_copy_pdbs()
72
+
73
+ vcpkg_cmake_config_fixup(PACKAGE_NAME mongoc-1.0 CONFIG_PATH "lib/cmake/mongoc-1.0" DO_NOT_DELETE_PARENT_CONFIG_PATH)
74
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
75
+ vcpkg_cmake_config_fixup(PACKAGE_NAME libmongoc-1.0 CONFIG_PATH "lib/cmake/libmongoc-static-1.0")
76
+ else()
77
+ vcpkg_cmake_config_fixup(PACKAGE_NAME libmongoc-1.0 CONFIG_PATH "lib/cmake/libmongoc-1.0")
78
+ endif()
79
+
80
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
81
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
82
+
83
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
84
+ # drop the __declspec(dllimport) when building static
85
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/mongoc/mongoc-macros.h"
86
+ "define MONGOC_API __declspec(dllimport)" "define MONGOC_API")
87
+
88
+ file(RENAME
89
+ "${CURRENT_PACKAGES_DIR}/share/libmongoc-1.0/libmongoc-static-1.0-config.cmake"
90
+ "${CURRENT_PACKAGES_DIR}/share/libmongoc-1.0/libmongoc-1.0-config.cmake")
91
+ file(RENAME
92
+ "${CURRENT_PACKAGES_DIR}/share/libmongoc-1.0/libmongoc-static-1.0-config-version.cmake"
93
+ "${CURRENT_PACKAGES_DIR}/share/libmongoc-1.0/libmongoc-1.0-config-version.cmake")
94
+
95
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
96
+ endif()
97
+
98
+ # Create cmake files for _both_ find_package(mongo-c-driver) and find_package(libmongoc-static-1.0)/find_package(libmongoc-1.0)
99
+ file(READ "${CURRENT_PACKAGES_DIR}/share/libmongoc-1.0/libmongoc-1.0-config.cmake" LIBMONGOC_CONFIG_CMAKE)
100
+
101
+ # Patch: Set _IMPORT_PREFIX and replace PACKAGE_PREFIX_DIR
102
+ string(REPLACE
103
+ [[
104
+ get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
105
+ ]]
106
+ [[
107
+ # VCPKG PATCH SET IMPORT_PREFIX
108
+ get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
109
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
110
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
111
+ if(_IMPORT_PREFIX STREQUAL "/")
112
+ set(_IMPORT_PREFIX "")
113
+ endif()
114
+ ]]
115
+ LIBMONGOC_CONFIG_CMAKE "${LIBMONGOC_CONFIG_CMAKE}")
116
+ string(REPLACE [[PACKAGE_PREFIX_DIR]] [[_IMPORT_PREFIX]] LIBMONGOC_CONFIG_CMAKE "${LIBMONGOC_CONFIG_CMAKE}")
117
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/libmongoc-1.0/libmongoc-1.0-config.cmake" "${LIBMONGOC_CONFIG_CMAKE}")
118
+
119
+ file(COPY "${SOURCE_PATH}/THIRD_PARTY_NOTICES" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
120
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
121
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
122
+
123
+ vcpkg_fixup_pkgconfig()
124
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/share/mongo-c-driver/uninstall.sh")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/usage ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ The package mongo-c-driver is compatible with built-in CMake targets:
2
+
3
+ find_package(mongoc-1.0 CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE mongo::mongoc_shared)
5
+
6
+ or:
7
+
8
+ find_package(mongoc-1.0 CONFIG REQUIRED)
9
+ target_link_libraries(main PRIVATE mongo::mongoc_static)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/vcpkg.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mongo-c-driver",
3
+ "version": "1.17.6",
4
+ "port-version": 2,
5
+ "description": "Client library written in C for MongoDB.",
6
+ "homepage": "https://github.com/mongodb/mongo-c-driver",
7
+ "dependencies": [
8
+ "libbson",
9
+ {
10
+ "name": "openssl",
11
+ "platform": "!windows"
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ },
21
+ "zlib"
22
+ ],
23
+ "features": {
24
+ "icu": {
25
+ "description": "Enable ICU support, necessary to use non-ASCII usernames or passwords",
26
+ "dependencies": [
27
+ "icu"
28
+ ]
29
+ },
30
+ "snappy": {
31
+ "description": "Enables snappy compressor support",
32
+ "dependencies": [
33
+ "snappy"
34
+ ]
35
+ },
36
+ "zstd": {
37
+ "description": "Enables zstd compressor support",
38
+ "dependencies": [
39
+ "zstd"
40
+ ]
41
+ }
42
+ }
43
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/disable-c2338-mongo-cxx-driver.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index 2f7a16aa1..326edd332 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -14,6 +14,7 @@
6
+
7
+ add_definitions(-DMONGO_CXX_DRIVER_COMPILING)
8
+ add_definitions(-D_SCL_SECURE_NO_WARNINGS)
9
+ +add_definitions(-D_DISABLE_EXTENDED_ALIGNED_STORAGE)
10
+ add_subdirectory(bsoncxx)
11
+ add_subdirectory(mongocxx)
12
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/disable_test_and_example.patch ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b2bc2a17c..347faa5ca 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -190,6 +190,7 @@ set (BUILD_SOURCE_DIR ${CMAKE_BINARY_DIR})
6
+
7
+ include (MakeDistFiles)
8
+
9
+ +if(0)
10
+ add_custom_target(hugo_dir
11
+ COMMAND ${CMAKE_COMMAND} -E make_directory hugo
12
+ )
13
+ @@ -248,6 +249,8 @@ add_custom_target(docs
14
+
15
+ set(THIRD_PARTY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/third_party)
16
+
17
+ +endif()
18
+ +
19
+ enable_testing()
20
+
21
+ add_subdirectory(src)
22
+ diff --git a/src/bsoncxx/CMakeLists.txt b/src/bsoncxx/CMakeLists.txt
23
+ index 480b7cd32..b890c36b6 100644
24
+ --- a/src/bsoncxx/CMakeLists.txt
25
+ +++ b/src/bsoncxx/CMakeLists.txt
26
+ @@ -204,7 +204,7 @@ if(BSONCXX_BUILD_STATIC)
27
+ endif()
28
+ bsoncxx_install("${bsoncxx_target_list}" "${bsoncxx_pkg_dep}")
29
+
30
+ -add_subdirectory(test)
31
+ +# add_subdirectory(test)
32
+
33
+ set_local_dist (src_bsoncxx_DIST_local
34
+ CMakeLists.txt
35
+ diff --git a/src/mongocxx/CMakeLists.txt b/src/mongocxx/CMakeLists.txt
36
+ index f67ae35f7..b783a4716 100644
37
+ --- a/src/mongocxx/CMakeLists.txt
38
+ +++ b/src/mongocxx/CMakeLists.txt
39
+ @@ -231,7 +231,7 @@ if(MONGOCXX_BUILD_STATIC)
40
+ endif()
41
+ mongocxx_install("${mongocxx_target_list}" "${mongocxx_pkg_dep}")
42
+
43
+ -add_subdirectory(test)
44
+ +# add_subdirectory(test)
45
+
46
+ set_local_dist (src_mongocxx_DIST_local
47
+ CMakeLists.txt
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/fix-dependencies.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/bsoncxx/cmake/bsoncxx-config.cmake.in b/src/bsoncxx/cmake/bsoncxx-config.cmake.in
2
+ index 768f3dde6..6dc7f064b 100644
3
+ --- a/src/bsoncxx/cmake/bsoncxx-config.cmake.in
4
+ +++ b/src/bsoncxx/cmake/bsoncxx-config.cmake.in
5
+ @@ -1,3 +1,6 @@
6
+ include(CMakeFindDependencyMacro)
7
+ @BSONCXX_PKG_DEP@
8
+ +if("@Boost_FOUND@")
9
+ + find_dependency(Boost 1.56.0 REQUIRED)
10
+ +endif()
11
+ include("${CMAKE_CURRENT_LIST_DIR}/bsoncxx_targets.cmake")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/fix-uwp.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index d1bf5e944..2f7a16aa1 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -13,6 +13,7 @@
6
+ # limitations under the License.
7
+
8
+ add_definitions(-DMONGO_CXX_DRIVER_COMPILING)
9
+ +add_definitions(-D_SCL_SECURE_NO_WARNINGS)
10
+ add_subdirectory(bsoncxx)
11
+ add_subdirectory(mongocxx)
12
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/github-654.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/mongocxx/instance.cpp b/src/mongocxx/instance.cpp
2
+ index f12bd84a8..acc570fa9 100644
3
+ --- a/src/mongocxx/instance.cpp
4
+ +++ b/src/mongocxx/instance.cpp
5
+ @@ -75,9 +75,10 @@ typename std::aligned_storage<sizeof(instance), alignof(instance)>::type sentine
6
+ std::atomic<instance*> current_instance{nullptr};
7
+ static_assert(std::is_standard_layout<decltype(current_instance)>::value,
8
+ "Must be standard layout");
9
+ +#if (!defined(_MSVC_STL_VERSION))
10
+ static_assert(std::is_trivially_destructible<decltype(current_instance)>::value,
11
+ "Must be trivially destructible");
12
+ -
13
+ +#endif
14
+ } // namespace
15
+
16
+ class instance::impl {
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/portfile.cmake ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(VERSION_MAJOR 3)
2
+ set(VERSION_MINOR 6)
3
+ set(VERSION_PATCH 5)
4
+ set(VERSION_FULL ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
5
+
6
+ vcpkg_from_github(
7
+ OUT_SOURCE_PATH SOURCE_PATH
8
+ REPO mongodb/mongo-cxx-driver
9
+ REF r${VERSION_FULL}
10
+ SHA512 fe304d2f406f65d79a030dcfd1509543a9ab3057e46328d5ca1fc58da04758b9a2c6666a6194d574f9b42022324972d41c37d00d6fba87dfba63fbfb99e821de
11
+ HEAD_REF master
12
+ PATCHES
13
+ fix-uwp.patch
14
+ disable-c2338-mongo-cxx-driver.patch
15
+ disable_test_and_example.patch
16
+ github-654.patch
17
+ fix-dependencies.patch
18
+ )
19
+
20
+ if ("mnmlstc" IN_LIST FEATURES)
21
+ if (VCPKG_TARGET_IS_WINDOWS)
22
+ message(FATAL_ERROR "Feature mnmlstc only supports UNIX")
23
+ endif()
24
+ set(BSONCXX_POLY MNMLSTC)
25
+ elseif ("system-mnmlstc" IN_LIST FEATURES)
26
+ message("Please make sure you have mnmlstc installed via the package manager")
27
+ set(BSONCXX_POLY SYSTEM_MNMLSTC)
28
+ elseif ("boost" IN_LIST FEATURES)
29
+ set(BSONCXX_POLY BOOST)
30
+ elseif("std-experimental" IN_LIST FEATURES)
31
+ set(BSONCXX_POLY STD_EXPERIMENTAL)
32
+ else()
33
+ if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
34
+ set(BSONCXX_POLY BOOST)
35
+ else()
36
+ set(BSONCXX_POLY MNMLSTC)
37
+ endif()
38
+ endif()
39
+
40
+ vcpkg_cmake_configure(
41
+ SOURCE_PATH "${SOURCE_PATH}"
42
+ OPTIONS
43
+ -DMONGOCXX_HEADER_INSTALL_DIR=include
44
+ -DBSONCXX_HEADER_INSTALL_DIR=include
45
+ -DBSONCXX_POLY_USE_${BSONCXX_POLY}=1
46
+ -DBUILD_VERSION=${VERSION_FULL}
47
+ )
48
+
49
+ vcpkg_cmake_install()
50
+
51
+ vcpkg_copy_pdbs()
52
+
53
+ vcpkg_cmake_config_fixup(PACKAGE_NAME bsoncxx CONFIG_PATH "lib/cmake/bsoncxx-${VERSION_FULL}" DO_NOT_DELETE_PARENT_CONFIG_PATH)
54
+ vcpkg_cmake_config_fixup(PACKAGE_NAME mongocxx CONFIG_PATH "lib/cmake/mongocxx-${VERSION_FULL}")
55
+
56
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/libbsoncxx/libbsoncxx-config.cmake"
57
+ "
58
+ message(WARNING \"This CMake target is deprecated. Use mongo::bsoncxx instead.\")
59
+
60
+ set(LIBBSONCXX_VERSION_MAJOR ${VERSION_MAJOR})
61
+ set(LIBBSONCXX_VERSION_MINOR ${VERSION_MINOR})
62
+ set(LIBBSONCXX_VERSION_PATCH ${VERSION_PATCH})
63
+ set(LIBBSONCXX_PACKAGE_VERSION ${VERSION_FULL})
64
+
65
+ include(CMakeFindDependencyMacro)
66
+ find_dependency(bsoncxx CONFIG REQUIRED)
67
+ get_filename_component(LIBBSONCXX_INCLUDE_DIRS \"\${CMAKE_CURRENT_LIST_DIR}/../../include\" ABSOLUTE)
68
+ if (TARGET mongo::bsoncxx_shared)
69
+ set(LIBBSONCXX_LIBRARIES mongo::bsoncxx_shared)
70
+ else()
71
+ set(LIBBSONCXX_LIBRARIES mongo::bsoncxx_static)
72
+ endif()
73
+ "
74
+ )
75
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/libmongocxx/libmongocxx-config.cmake
76
+ "
77
+ message(WARNING \"This CMake target is deprecated. Use mongo::mongocxx instead.\")
78
+
79
+ set(LIBMONGOCXX_VERSION_MAJOR ${VERSION_MAJOR})
80
+ set(LIBMONGOCXX_VERSION_MINOR ${VERSION_MINOR})
81
+ set(LIBMONGOCXX_VERSION_PATCH ${VERSION_PATCH})
82
+ set(LIBMONGOCXX_PACKAGE_VERSION ${VERSION_FULL})
83
+
84
+ include(CMakeFindDependencyMacro)
85
+ find_dependency(mongocxx CONFIG REQUIRED)
86
+ get_filename_component(LIBMONGOCXX_INCLUDE_DIRS \"\${CMAKE_CURRENT_LIST_DIR}/../../include\" ABSOLUTE)
87
+ if (TARGET mongo::bsoncxx_shared)
88
+ set(LIBMONGOCXX_LIBRARIES mongo::mongocxx_shared)
89
+ else()
90
+ set(LIBMONGOCXX_LIBRARIES mongo::mongocxx_static)
91
+ endif()
92
+ "
93
+ )
94
+
95
+ vcpkg_fixup_pkgconfig()
96
+
97
+ if (NOT BSONCXX_POLY STREQUAL MNMLSTC)
98
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/bsoncxx/third_party")
99
+ endif()
100
+
101
+ file(REMOVE_RECURSE
102
+ "${CURRENT_PACKAGES_DIR}/debug/share"
103
+ "${CURRENT_PACKAGES_DIR}/debug/include"
104
+ )
105
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/share/${PORT}/uninstall.sh")
106
+
107
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
108
+ file(COPY "${SOURCE_PATH}/THIRD-PARTY-NOTICES" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-cxx-driver/vcpkg.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mongo-cxx-driver",
3
+ "version": "3.6.5",
4
+ "port-version": 2,
5
+ "description": "MongoDB C++ Driver.",
6
+ "homepage": "https://github.com/mongodb/mongo-cxx-driver",
7
+ "dependencies": [
8
+ "boost-optional",
9
+ "boost-smart-ptr",
10
+ "boost-utility",
11
+ "libbson",
12
+ "mongo-c-driver",
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ }
21
+ ],
22
+ "features": {
23
+ "boost": {
24
+ "description": "Use Boost C++17 polyfill. The only option under MSVC."
25
+ },
26
+ "mnmlstc": {
27
+ "description": "Use MNMLSTC/core C++17 polyfill."
28
+ },
29
+ "std-experimental": {
30
+ "description": "Use optional and string_view from std::experimental."
31
+ },
32
+ "system-mnmlstc": {
33
+ "description": "Use an available version of MNMLSTC on your system as C++17 polyfill."
34
+ }
35
+ }
36
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongoose/CMakeLists.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.14)
2
+
3
+ project(mongoose C)
4
+
5
+ include(GNUInstallDirs)
6
+
7
+ option(ENABLE_SSL "Build with openssl support" OFF)
8
+
9
+ set(CMAKE_INCLUDE_CURRENT_DIR ON)
10
+
11
+ add_library(mongoose mongoose.c)
12
+ target_include_directories(mongoose PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
13
+ set_target_properties(mongoose PROPERTIES PUBLIC_HEADER mongoose.h)
14
+
15
+ if (ENABLE_SSL)
16
+ find_package(OpenSSL REQUIRED)
17
+ target_compile_options(mongoose PRIVATE -DMG_ENABLE_SSL)
18
+ target_link_libraries(mongoose PRIVATE OpenSSL::SSL OpenSSL::Crypto)
19
+ endif()
20
+
21
+ install(TARGETS mongoose EXPORT unofficial-mongoose-config)
22
+
23
+ install(
24
+ EXPORT unofficial-mongoose-config
25
+ NAMESPACE unofficial::mongoose::
26
+ DESTINATION share/unofficial-mongoose
27
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
28
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongoose/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 cesanta/mongoose
6
+ REF 9d38e26b817b6b151fd925e9a8420a46c99a8375 #v7.5
7
+ SHA512 ce488a6b9dc1e7437b17ea32e62c2c90fe05b298df995e624f24f05c539ee96444fa892dab7958a81541c711bb3e399808f793c8ce317b0fd904b037955d81fa
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12
+
13
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
14
+ FEATURES
15
+ ssl ENABLE_SSL
16
+ )
17
+
18
+ vcpkg_cmake_configure(
19
+ SOURCE_PATH "${SOURCE_PATH}"
20
+ OPTIONS ${FEATURE_OPTIONS}
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+
25
+ vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT} CONFIG_PATH share/unofficial-${PORT})
26
+
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
28
+
29
+ # Handle copyright
30
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongoose/vcpkg.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mongoose",
3
+ "version": "7.5",
4
+ "port-version": 1,
5
+ "description": "Embedded web server / embedded networking library",
6
+ "homepage": "https://cesanta.com/",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ],
18
+ "features": {
19
+ "ssl": {
20
+ "description": "Build with openssl",
21
+ "dependencies": [
22
+ "openssl"
23
+ ]
24
+ }
25
+ }
26
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/fix-project-config.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Source/Projects/VS2019/MACDll/MACDll.vcxproj 2020-12-23 21:42:15.830541000 +0100
2
+ +++ b/Source/Projects/VS2019/MACDll/MACDll.vcxproj 2020-12-29 06:07:36.101967600 +0100
3
+ @@ -74,11 +74,9 @@
4
+ <_ProjectFileVersion>11.0.50727.1</_ProjectFileVersion>
5
+ </PropertyGroup>
6
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7
+ - <OutDir>C:\Applications\Cool Edit Pro\</OutDir>
8
+ + <OutDir>$(Configuration)\</OutDir>
9
+ <IntDir>$(Configuration)\</IntDir>
10
+ - <LinkIncremental>true</LinkIncremental>
11
+ - <TargetName>APE</TargetName>
12
+ - <TargetExt>.flt</TargetExt>
13
+ + <LinkIncremental>false</LinkIncremental>
14
+ </PropertyGroup>
15
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
16
+ <OutDir>$(Configuration)\</OutDir>
third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/license ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Monkey's Audio Program License Agreement
2
+ ========================================
3
+
4
+ 1. Monkey's Audio is completely free for personal, educational, or commercial use.
5
+
6
+ 2. Although the software has been tested thoroughly, the author is in no way responsible for
7
+ damages due to bugs or misuse.
8
+
9
+ 3. The redistribution of Monkey's Audio is only allowed in cases where the original installer and
10
+ components therein have not been modified.
11
+
12
+ 4. The use of Monkey's Audio or any component thereof from another program requires
13
+ compliance with the 'Monkey's Audio SDK and Source Code License Agreement'.
14
+
15
+ 5. Installing and using Monkey's Audio signifies the acceptance of these terms. If you do not
16
+ agree with any of the above terms, you must cease using Monkey's Audio and remove it from
17
+ your storage device.
18
+
19
+
20
+ Monkey's Audio SDK and Source Code License Agreement
21
+ ====================================================
22
+
23
+ 1. The Monkey's Audio SDK and source code can be freely used to add APE format playback,
24
+ encoding, or tagging support to any product, free or commercial.
25
+
26
+ 2. Monkey's Audio source can be included in GPL and open-source software, although Monkey's
27
+ Audio itself will not be subjected to external licensing requirements or other viral source
28
+ restrictions.
29
+
30
+ 3. Code changes and improvements must be contributed back to the Monkey's Audio project or
31
+ made freely available, unless exempted by written consent of the author.
32
+
33
+ 4. Any source code, ideas, or libraries used must be plainly acknowledged in the software using
34
+ the code.
35
+
36
+ 5. Although the software has been tested thoroughly, the author is in no way responsible for
37
+ damages due to bugs or misuse.
38
+
39
+ 6. If you do not completely agree with all of the previous stipulations, you must cease using this
40
+ source code and remove it from your storage device.
41
+
42
+ All materials and programs copyrighted ©2000-2018 by Matt Ashland
third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/portfile.cmake ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
2
+
3
+ set(MA_VERSION 570)
4
+
5
+ vcpkg_download_distfile(ARCHIVE
6
+ URLS "https://monkeysaudio.com/files/MAC_SDK_${MA_VERSION}.zip"
7
+ "https://web.archive.org/web/20201229182615if_/https://monkeysaudio.com/files/MAC_SDK_570.zip"
8
+ FILENAME "MAC_SDK_${MA_VERSION}.zip"
9
+ SHA512 d3b5a10574dde1ea90578959378b87f8a8c94b3cc7198bc51b86f7128d66117d706c191d56a699dce0c2a53b7722e0893cb614f96f9ad725a266a871da587fd4
10
+ )
11
+
12
+ vcpkg_extract_source_archive_ex(
13
+ OUT_SOURCE_PATH SOURCE_PATH
14
+ ARCHIVE ${ARCHIVE}
15
+ NO_REMOVE_ONE_LEVEL
16
+ PATCHES
17
+ fix-project-config.patch
18
+ remove-certificate-step.patch
19
+ )
20
+
21
+ file(REMOVE_RECURSE
22
+ ${SOURCE_PATH}/Shared/32
23
+ ${SOURCE_PATH}/Shared/64
24
+ )
25
+
26
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
27
+ set(PLATFORM Win32)
28
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
29
+ set(PLATFORM x64)
30
+ else()
31
+ message(FATAL_ERROR "Unsupported architecture")
32
+ endif()
33
+
34
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
35
+ vcpkg_install_msbuild(
36
+ SOURCE_PATH ${SOURCE_PATH}
37
+ PROJECT_SUBPATH Source/Projects/VS2019/MACDll/MACDll.vcxproj
38
+ PLATFORM ${PLATFORM}
39
+ )
40
+ else()
41
+ vcpkg_install_msbuild(
42
+ SOURCE_PATH ${SOURCE_PATH}
43
+ PROJECT_SUBPATH Source/Projects/VS2019/MACLib/MACLib.vcxproj
44
+ PLATFORM ${PLATFORM}
45
+ )
46
+ endif()
47
+
48
+ if ("tools" IN_LIST FEATURES)
49
+ vcpkg_install_msbuild(
50
+ SOURCE_PATH ${SOURCE_PATH}
51
+ PROJECT_SUBPATH Source/Projects/VS2019/Console/Console.vcxproj
52
+ PLATFORM ${PLATFORM}
53
+ )
54
+
55
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/Console.lib ${CURRENT_PACKAGES_DIR}/debug/lib/Console.lib)
56
+ file(RENAME ${CURRENT_PACKAGES_DIR}/tools/monkeys-audio/Console.exe ${CURRENT_PACKAGES_DIR}/tools/monkeys-audio/mac.exe)
57
+
58
+ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
59
+ endif()
60
+
61
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
62
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/MACLib.lib ${CURRENT_PACKAGES_DIR}/debug/lib/MACLib.lib)
63
+ endif()
64
+
65
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
66
+ file(COPY ${SOURCE_PATH}/Shared/
67
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include/monkeys-audio
68
+ FILES_MATCHING PATTERN "*.h")
69
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/include/monkeys-audio/MACDll.h)
70
+
71
+ file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/license DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/remove-certificate-step.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Source/Projects/VS2019/Console/Console.vcxproj 2020-12-23 21:42:15.672211100 +0100
2
+ +++ b/Source/Projects/VS2019/Console/Console.vcxproj 2020-12-29 05:29:53.916306700 +0100
3
+ @@ -180,10 +180,6 @@
4
+ <DataExecutionPrevention />
5
+ <TargetMachine>MachineX86</TargetMachine>
6
+ </Link>
7
+ - <PostBuildEvent>
8
+ - <Command>C:\MAC\Current\Source\Certificate\signtool.exe sign /t http://timestamp.digicert.com /f C:\MAC\Current\Source\Certificate\MAC3.pfx /p password /v "$(TargetPath)"
9
+ -C:\MAC\Current\Source\Certificate\signtool.exe sign /f C:\MAC\Current\Source\Certificate\MAC3.pfx /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /td sha256 /fd sha256 /a /as /p password "$(TargetPath)"</Command>
10
+ - </PostBuildEvent>
11
+ </ItemDefinitionGroup>
12
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
13
+ <Midl>
14
+ @@ -273,10 +269,6 @@
15
+ <DataExecutionPrevention />
16
+ <TargetMachine>MachineX64</TargetMachine>
17
+ </Link>
18
+ - <PostBuildEvent>
19
+ - <Command>C:\MAC\Current\Source\Certificate\signtool.exe sign /t http://timestamp.digicert.com /f C:\MAC\Current\Source\Certificate\MAC3.pfx /p password /v "$(TargetPath)"
20
+ -C:\MAC\Current\Source\Certificate\signtool.exe sign /f C:\MAC\Current\Source\Certificate\MAC3.pfx /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /td sha256 /fd sha256 /a /as /p password "$(TargetPath)"</Command>
21
+ - </PostBuildEvent>
22
+ </ItemDefinitionGroup>
23
+ <ItemGroup>
24
+ <ClCompile Include="..\..\..\Console\Console.cpp">
third-party/DPVO/Pangolin/scripts/vcpkg/ports/monkeys-audio/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "monkeys-audio",
3
+ "version": "5.70",
4
+ "port-version": 2,
5
+ "description": [
6
+ "Monkey's Audio is an excellent audio compression tool which has multiple advantages over traditional methods.",
7
+ "Audio files compressed with it end with .ape extension."
8
+ ],
9
+ "homepage": "https://monkeysaudio.com",
10
+ "supports": "!(uwp | osx | linux)",
11
+ "features": {
12
+ "tools": {
13
+ "description": "Build monkeys-audio tools"
14
+ }
15
+ }
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-core/cmake_fix.patch ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 75f367f..6ef3dc2 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -190,7 +190,7 @@ add_subdirectory(Core)
6
+ export(
7
+ TARGETS MOOS
8
+ NAMESPACE MOOS::
9
+ - FILE UseMOOS.cmake
10
+ + FILE UseMOOSTargets.cmake
11
+ )
12
+
13
+ # Support existing projects that expect to find MOOS_LIBRARIES and
14
+ @@ -222,7 +222,7 @@ set(PROJECT_CONFIG_PATH "lib/cmake/MOOS")
15
+ install(
16
+ EXPORT MOOS
17
+ NAMESPACE MOOS::
18
+ - FILE UseMOOS.cmake
19
+ + FILE UseMOOSTargets.cmake
20
+ DESTINATION ${PROJECT_CONFIG_PATH}
21
+ )
22
+
23
+ diff --git a/Core/libMOOS/CMakeLists.txt b/Core/libMOOS/CMakeLists.txt
24
+ index b74a30f..492df50 100644
25
+ --- a/Core/libMOOS/CMakeLists.txt
26
+ +++ b/Core/libMOOS/CMakeLists.txt
27
+ @@ -196,7 +196,7 @@ mark_as_advanced(TIME_WARP_AGGLOMERATION_CONSTANT)
28
+ install(
29
+ DIRECTORY ${INCLUDE_ROOTS}
30
+ DESTINATION .
31
+ - FILES_MATCHING PATTERN "*.h" PATTERN "*.hxx"
32
+ + FILES_MATCHING PATTERN "*.h" PATTERN "*.hxx" PATTERN "*.hpp"
33
+ )
34
+
35
+ # install libraries
36
+ diff --git a/MOOSConfig.cmake.in b/MOOSConfig.cmake.in
37
+ index 10af599..dff769a 100644
38
+ --- a/MOOSConfig.cmake.in
39
+ +++ b/MOOSConfig.cmake.in
40
+ @@ -2,7 +2,7 @@
41
+
42
+ # Pick up the auto-generated file which knows how to add the imported library
43
+ # targets for the libraries that MOOS exports.
44
+ -set(exports_file "${CMAKE_CURRENT_LIST_DIR}/UseMOOS.cmake")
45
+ +set(exports_file "${CMAKE_CURRENT_LIST_DIR}/UseMOOSTargets.cmake")
46
+ include(${exports_file})
47
+
48
+ include(FindPackageHandleStandardArgs)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-core/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO themoos/core-moos
6
+ REF v10.4.0
7
+ SHA512 8a82074bd219bbedbe56c2187afe74a55a252b0654a675c64d1f75e62353b0874e7b405d9f677fadb297e955d11aea50a07e8f5f3546be3c4ddab76fe356a51e
8
+ HEAD_REF master
9
+ PATCHES
10
+ cmake_fix.patch
11
+ )
12
+
13
+ vcpkg_configure_cmake(
14
+ SOURCE_PATH ${SOURCE_PATH}
15
+ PREFER_NINJA
16
+ DISABLE_PARALLEL_CONFIGURE
17
+ OPTIONS
18
+ -DCMAKE_ENABLE_EXPORT=OFF
19
+ )
20
+
21
+ vcpkg_install_cmake()
22
+
23
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/MOOS)
24
+
25
+ # Stage tools
26
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
27
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/tools/${PORT})
28
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin ${CURRENT_PACKAGES_DIR}/debug/include)
29
+
30
+ # Put the licence file where vcpkg expects it
31
+ file(COPY ${SOURCE_PATH}/Core/GPLCore.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-core/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "moos-core",
3
+ "version-string": "10.4.0",
4
+ "port-version": 6,
5
+ "description": "A very light weight, easy to use middleware.",
6
+ "homepage": "https://sites.google.com/site/moossoftware/"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-essential/fix.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/Essentials/pShare/CMakeLists.txt b/Essentials/pShare/CMakeLists.txt
2
+ index 5128a50..7fee919 100644
3
+ --- a/Essentials/pShare/CMakeLists.txt
4
+ +++ b/Essentials/pShare/CMakeLists.txt
5
+ @@ -20,4 +20,4 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/pshare_test_scripts DESTINATION ${CMAKE_RU
6
+
7
+ add_custom_command(TARGET pShare POST_BUILD
8
+ COMMAND ${CMAKE_COMMAND} -E copy_directory
9
+ - ${CMAKE_SOURCE_DIR}/pshare_test_scripts ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
10
+ + ${CMAKE_SOURCE_DIR}/Essentials/pShare/pshare_test_scripts ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
11
+ diff --git a/Essentials/pShare/Share.cpp b/Essentials/pShare/Share.cpp
12
+ index 7825e00..756a760 100644
13
+ --- a/Essentials/pShare/Share.cpp
14
+ +++ b/Essentials/pShare/Share.cpp
15
+ @@ -17,7 +17,7 @@
16
+
17
+ #include "MOOS/libMOOS/Utils/MOOSUtilityFunctions.h"
18
+ #include "MOOS/libMOOS/Utils/IPV4Address.h"
19
+ -#include "MOOS/libMOOS/Thirdparty/getpot/GetPot"
20
+ +#include "MOOS/libMOOS/Thirdparty/getpot/GetPot.hpp"
21
+ #include "MOOS/libMOOS/Utils/SafeList.h"
22
+ #include "MOOS/libMOOS/Utils/ConsoleColours.h"
23
+ #include "MOOS/libMOOS/Utils/KeyboardCapture.h"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-essential/portfile.cmake ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO themoos/essential-moos
4
+ REF b897ea86dba8b61412dc48ac0cfb5ff34cdaf5f6
5
+ SHA512 7284744d211dcdcb0cd321eec96f3632ccda690e8894261f4f09a06bc8faefb2de68f4f2f755f4eeef5bb586044e98ac65cdd18c15193a1a4632bd2f4208c52f
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix.patch
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+
18
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/MOOS)
19
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/pAntler")
20
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pAntler ${CURRENT_PACKAGES_DIR}/tools/MOOS/pAntler)
21
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pLogger ${CURRENT_PACKAGES_DIR}/tools/MOOS/pLoggers)
22
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pMOOSBridge ${CURRENT_PACKAGES_DIR}/tools/MOOS/pMOOSBridge)
23
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pScheduler ${CURRENT_PACKAGES_DIR}/tools/MOOS/pScheduler)
24
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/pShare ${CURRENT_PACKAGES_DIR}/tools/MOOS/pShare)
25
+ endif()
26
+
27
+
28
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
29
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug)
30
+ endif()
31
+
32
+ file(WRITE ${CURRENT_PACKAGES_DIR}/include/fake_header.h "// fake header to pass vcpkg post install check \n")
33
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "see moos-core for copyright\n" )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-essential/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "moos-essential",
3
+ "version-string": "10.0.1",
4
+ "port-version": 3,
5
+ "description": "a set of useful applications that leverage the core-moos communications layer.",
6
+ "homepage": "https://sites.google.com/site/moossoftware/",
7
+ "dependencies": [
8
+ "moos-core"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-ui/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO themoos/ui-moos
4
+ REF ba7dd1db7db1848acb3e68b9e54d3da9d7014684
5
+ SHA512 96225216973656a9029d4e8ac8a8b69df15db5c160bcbd02755cd291bfe5817dbde3a6a5f46b71a138ddf4a389c3c702d4d502ade91ad88554042d7b9d75f843
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_configure_cmake(
10
+ SOURCE_PATH ${SOURCE_PATH}
11
+ PREFER_NINJA
12
+ OPTIONS
13
+ -DBUILD_CONSOLE_TOOLS=ON
14
+ -DBUILD_GRAPHICAL_TOOLS=OFF #${BUILD_GRAPHICAL_TOOLS}
15
+ )
16
+
17
+ vcpkg_install_cmake()
18
+
19
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/MOOS)
20
+ if (VCPKG_TARGET_IS_WINDOWS)
21
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/uPoke.exe ${CURRENT_PACKAGES_DIR}/tools/MOOS/uPoke.exe)
22
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/iRemoteLite.exe ${CURRENT_PACKAGES_DIR}/tools/MOOS/iRemoteLite.exe)
23
+ else()
24
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/uPoke ${CURRENT_PACKAGES_DIR}/tools/MOOS/uPoke)
25
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/iRemoteLite ${CURRENT_PACKAGES_DIR}/tools/MOOS/iRemoteLite)
26
+ endif()
27
+ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/MOOS)
28
+
29
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug)
30
+
31
+ file(WRITE ${CURRENT_PACKAGES_DIR}/include/fake_header_ui.h "// fake header to pass vcpkg post install check \n")
32
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "see moos-core for copyright\n" )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/moos-ui/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "moos-ui",
3
+ "version-string": "10.0.1",
4
+ "port-version": 3,
5
+ "description": "set of user interface tools to use and leverage the MOOS project.",
6
+ "homepage": "https://sites.google.com/site/moossoftware/",
7
+ "dependencies": [
8
+ "moos-core"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/morton-nd/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO kevinhartman/morton-nd
6
+ REF v4.0.0
7
+ SHA512 19dc51ae5d7fc868625a9c9f0dddec95a77fdeac714300033008f096bc3a83f146738e525e8a0ec541903263355a7fec84b1873d8eacfca4b93d3cd8945653da
8
+ HEAD_REF main
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ DISABLE_PARALLEL_CONFIGURE
14
+ PREFER_NINJA
15
+ OPTIONS
16
+ -DBUILD_TESTING=OFF
17
+ )
18
+
19
+ vcpkg_install_cmake()
20
+
21
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/morton-nd/cmake TARGET_PATH)
22
+
23
+ file(REMOVE_RECURSE
24
+ ${CURRENT_PACKAGES_DIR}/debug
25
+ ${CURRENT_PACKAGES_DIR}/share/doc
26
+ )
27
+
28
+ # Handle copyright
29
+ configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
30
+ file(COPY ${SOURCE_PATH}/NOTICE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/morton-nd/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "morton-nd",
3
+ "version-string": "4.0.0",
4
+ "port-version": 1,
5
+ "description": "header-only constexpr library for fast Morton encoding/decoding in N dimensions.",
6
+ "homepage": "https://github.com/kevinhartman/morton-nd"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0001-add-archive-destination-to-install.patch ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From df5ec7ba4e7b1516a2636e47c33a4a6161b5c422 Mon Sep 17 00:00:00 2001
2
+ From: Nicole Mazzuca <[email protected]>
3
+ Date: Tue, 22 Sep 2020 15:38:44 -0700
4
+ Subject: [PATCH 1/5] add archive destination to install
5
+
6
+ ---
7
+ lib/CMakeLists.txt | 2 +-
8
+ lib/cpp/CMakeLists.txt | 2 +-
9
+ 2 files changed, 2 insertions(+), 2 deletions(-)
10
+
11
+ diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
12
+ index e1521f1..bd60b75 100644
13
+ --- a/lib/CMakeLists.txt
14
+ +++ b/lib/CMakeLists.txt
15
+ @@ -87,7 +87,7 @@ set_target_properties(libmosquitto PROPERTIES
16
+ SOVERSION 1
17
+ )
18
+
19
+ -install(TARGETS libmosquitto RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
20
+ +install(TARGETS libmosquitto RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
21
+
22
+ if (WITH_STATIC_LIBRARIES)
23
+ add_library(libmosquitto_static STATIC ${C_SRC})
24
+ diff --git a/lib/cpp/CMakeLists.txt b/lib/cpp/CMakeLists.txt
25
+ index b39ac3f..5805244 100644
26
+ --- a/lib/cpp/CMakeLists.txt
27
+ +++ b/lib/cpp/CMakeLists.txt
28
+ @@ -13,7 +13,7 @@ set_target_properties(mosquittopp PROPERTIES
29
+ VERSION ${VERSION}
30
+ SOVERSION 1
31
+ )
32
+ -install(TARGETS mosquittopp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
33
+ +install(TARGETS mosquittopp RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
34
+
35
+ if (WITH_STATIC_LIBRARIES)
36
+ add_library(mosquittopp_static STATIC
37
+ --
38
+ 2.24.3 (Apple Git-128)
39
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0002-win64-support.patch ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 07eff849..3edc7efa 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -67,12 +67,7 @@ option(WITH_THREADING "Include client library threading support?" ON)
6
+ if (WITH_THREADING)
7
+ add_definitions("-DWITH_THREADING")
8
+ if (WIN32)
9
+ - if (CMAKE_CL_64)
10
+ - set (PTHREAD_LIBRARIES C:\\pthreads\\Pre-built.2\\lib\\x64\\pthreadVC2.lib)
11
+ - else (CMAKE_CL_64)
12
+ - set (PTHREAD_LIBRARIES C:\\pthreads\\Pre-built.2\\lib\\x86\\pthreadVC2.lib)
13
+ - endif (CMAKE_CL_64)
14
+ - set (PTHREAD_INCLUDE_DIR C:\\pthreads\\Pre-built.2\\include)
15
+ + find_package(pthread REQUIRED)
16
+ elseif (ANDROID)
17
+ set (PTHREAD_LIBRARIES "")
18
+ set (PTHREAD_INCLUDE_DIR "")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0003-add-find_package-libwebsockets.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From 902ab5bf91937188d3ebf0aece81a704729e5580 Mon Sep 17 00:00:00 2001
2
+ From: Nicole Mazzuca <[email protected]>
3
+ Date: Tue, 22 Sep 2020 15:42:53 -0700
4
+ Subject: [PATCH 3/5] add find_package libwebsockets
5
+
6
+ ---
7
+ CMakeLists.txt | 1 +
8
+ 1 file changed, 1 insertion(+)
9
+
10
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
11
+ index 1a92fe3..3c78b2c 100644
12
+ --- a/CMakeLists.txt
13
+ +++ b/CMakeLists.txt
14
+ @@ -45,6 +45,7 @@ endif (WITH_TLS)
15
+
16
+ option(WITH_SOCKS "Include SOCKS5 support?" ON)
17
+ if (WITH_SOCKS)
18
+ + find_package(Libwebsockets CONFIG REQUIRED)
19
+ add_definitions("-DWITH_SOCKS")
20
+ endif (WITH_SOCKS)
21
+
22
+ --
23
+ 2.24.3 (Apple Git-128)
24
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0004-support-static-build.patch ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/apps/mosquitto_passwd/CMakeLists.txt b/apps/mosquitto_passwd/CMakeLists.txt
2
+ index 13a7d826..31069306 100644
3
+ --- a/apps/mosquitto_passwd/CMakeLists.txt
4
+ +++ b/apps/mosquitto_passwd/CMakeLists.txt
5
+ @@ -13,6 +13,10 @@ if (WITH_TLS)
6
+ )
7
+
8
+
9
+ - target_link_libraries(mosquitto_passwd ${OPENSSL_LIBRARIES})
10
+ + if(WIN32)
11
+ + target_link_libraries(mosquitto_passwd ${OPENSSL_LIBRARIES} ws2_32 crypt32)
12
+ + else()
13
+ + target_link_libraries(mosquitto_passwd ${OPENSSL_LIBRARIES})
14
+ + endif()
15
+ install(TARGETS mosquitto_passwd RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
16
+ endif (WITH_TLS)
17
+ diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
18
+ index 5da221dc..c3e9fce0 100644
19
+ --- a/lib/CMakeLists.txt
20
+ +++ b/lib/CMakeLists.txt
21
+ @@ -69,7 +69,7 @@ if (UNIX AND NOT APPLE AND NOT ANDROID)
22
+ endif (UNIX AND NOT APPLE AND NOT ANDROID)
23
+
24
+ if (WIN32)
25
+ - set (LIBRARIES ${LIBRARIES} ws2_32)
26
+ + set (LIBRARIES ${LIBRARIES} ws2_32 crypt32)
27
+ endif (WIN32)
28
+
29
+ if (WITH_SRV)
30
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
31
+ index 9380a046..62ce99e5 100644
32
+ --- a/src/CMakeLists.txt
33
+ +++ b/src/CMakeLists.txt
34
+ @@ -189,7 +189,7 @@ if (UNIX)
35
+ endif (UNIX)
36
+
37
+ if (WIN32)
38
+ - set (MOSQ_LIBS ${MOSQ_LIBS} ws2_32)
39
+ + set (MOSQ_LIBS ${MOSQ_LIBS} ws2_32 crypt32)
40
+ endif (WIN32)
41
+
42
+ if (WITH_WEBSOCKETS)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/0005-websocket-shared-lib-name.patch ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index 9380a046..f2929e19 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -194,13 +194,13 @@ endif (WIN32)
6
+
7
+ if (WITH_WEBSOCKETS)
8
+ if (STATIC_WEBSOCKETS)
9
+ - set (MOSQ_LIBS ${MOSQ_LIBS} websockets_static)
10
+ + set (MOSQ_LIBS ${MOSQ_LIBS} websockets)
11
+ if (WIN32)
12
+ set (MOSQ_LIBS ${MOSQ_LIBS} iphlpapi)
13
+ link_directories(${mosquitto_SOURCE_DIR})
14
+ endif (WIN32)
15
+ else (STATIC_WEBSOCKETS)
16
+ - set (MOSQ_LIBS ${MOSQ_LIBS} websockets)
17
+ + set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared)
18
+ endif (STATIC_WEBSOCKETS)
19
+ endif (WITH_WEBSOCKETS)
20
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/portfile.cmake ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO eclipse/mosquitto
4
+ HEAD_REF master
5
+ REF v2.0.12
6
+ SHA512 bf502f4f8c5f8d9ae9ee6e6a417e3f9deea9933c69176903d460a1c91132658ebe093c8e9ed000cb579fe93f15626c15d8041ceb6438e15caca1d153a67975f9
7
+ PATCHES
8
+ 0001-add-archive-destination-to-install.patch
9
+ 0002-win64-support.patch
10
+ 0003-add-find_package-libwebsockets.patch
11
+ 0004-support-static-build.patch
12
+ 0005-websocket-shared-lib-name.patch
13
+ )
14
+
15
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" STATIC_LINKAGE)
16
+
17
+ vcpkg_configure_cmake(
18
+ SOURCE_PATH ${SOURCE_PATH}
19
+ PREFER_NINJA
20
+ OPTIONS
21
+ -DWITH_STATIC_LIBRARIES=${STATIC_LINKAGE}
22
+ -DWITH_SRV=OFF
23
+ -DWITH_WEBSOCKETS=ON
24
+ -DSTATIC_WEBSOCKETS=${STATIC_LINKAGE}
25
+ -DWITH_TLS=ON
26
+ -DWITH_TLS_PSK=ON
27
+ -DWITH_THREADING=ON
28
+ -DDOCUMENTATION=OFF
29
+ -DWITH_PLUGINS=OFF
30
+ -DWITH_CJSON=OFF
31
+ )
32
+
33
+ vcpkg_install_cmake()
34
+ vcpkg_copy_pdbs()
35
+
36
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
37
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
38
+
39
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/mosquitto_passwd${VCPKG_TARGET_EXECUTABLE_SUFFIX})
40
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/mosquitto_passwd${VCPKG_TARGET_EXECUTABLE_SUFFIX})
41
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/mosquitto_pub${VCPKG_TARGET_EXECUTABLE_SUFFIX})
42
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/mosquitto_pub${VCPKG_TARGET_EXECUTABLE_SUFFIX})
43
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/mosquitto_rr${VCPKG_TARGET_EXECUTABLE_SUFFIX})
44
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/mosquitto_rr${VCPKG_TARGET_EXECUTABLE_SUFFIX})
45
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/mosquitto_sub${VCPKG_TARGET_EXECUTABLE_SUFFIX})
46
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/mosquitto_sub${VCPKG_TARGET_EXECUTABLE_SUFFIX})
47
+
48
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
49
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
50
+
51
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquitto${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX})
52
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquittopp${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX})
53
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquitto${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX})
54
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquittopp${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX})
55
+
56
+ file(GLOB VERSIONED_LIBRARIES LIST_DIRECTORIES FALSE
57
+ ${CURRENT_PACKAGES_DIR}/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquitto${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}.*
58
+ ${CURRENT_PACKAGES_DIR}/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquittopp${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}.*
59
+ ${CURRENT_PACKAGES_DIR}/debug/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquitto${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}.*
60
+ ${CURRENT_PACKAGES_DIR}/debug/lib/${VCPKG_TARGET_SHARED_LIBRARY_PREFIX}mosquittopp${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}.*
61
+ )
62
+
63
+ if(NOT "x${VERSIONED_LIBRARIES}x" STREQUAL "xx")
64
+ file(REMOVE ${VERSIONED_LIBRARIES})
65
+ endif()
66
+
67
+ if(NOT "x${VCPKG_TARGET_IMPORT_LIBRARY_PREFIX}${VCPKG_TARGET_IMPORT_LIBRARY_SUFFIX}x" STREQUAL "xx")
68
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/${VCPKG_TARGET_IMPORT_LIBRARY_PREFIX}mosquitto${VCPKG_TARGET_IMPORT_LIBRARY_SUFFIX})
69
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/${VCPKG_TARGET_IMPORT_LIBRARY_PREFIX}mosquittopp${VCPKG_TARGET_IMPORT_LIBRARY_SUFFIX})
70
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/${VCPKG_TARGET_IMPORT_LIBRARY_PREFIX}mosquitto${VCPKG_TARGET_IMPORT_LIBRARY_SUFFIX})
71
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/${VCPKG_TARGET_IMPORT_LIBRARY_PREFIX}mosquittopp${VCPKG_TARGET_IMPORT_LIBRARY_SUFFIX})
72
+ endif()
73
+ endif()
74
+
75
+ configure_file(${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake @ONLY)
76
+ file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
77
+
78
+ file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
79
+
80
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/usage ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ The package mosquitto provides CMake targets:
2
+
3
+ find_package(mosquitto REQUIRED)
4
+ target_include_directories(main PRIVATE ${MOSQUITTO_INCLUDE_DIRS})
5
+ target_link_libraries(main PRIVATE ${MOSQUITTO_LIBRARIES})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ include(FindPackageHandleStandardArgs)
2
+ include(SelectLibraryConfigurations)
3
+
4
+ find_path(MOSQUITTO_INCLUDE_DIR mosquitto.h)
5
+
6
+ find_library(MOSQUITTO_LIBRARY_DEBUG NAMES mosquitto libmosquitto mosquitto_static libmosquitto_static NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
7
+ find_library(MOSQUITTO_LIBRARY_RELEASE NAMES mosquitto libmosquitto mosquitto_static libmosquitto_static NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
8
+ find_library(MOSQUITTOPP_LIBRARY_DEBUG NAMES mosquittopp libmosquittopp mosquittopp_static libmosquittopp_static NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
9
+ find_library(MOSQUITTOPP_LIBRARY_RELEASE NAMES mosquittopp libmosquittopp mosquittopp_static libmosquittopp_static NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
10
+
11
+ select_library_configurations(MOSQUITTO)
12
+ select_library_configurations(MOSQUITTOPP)
13
+
14
+ set(MOSQUITTO_INCLUDE_DIRS ${MOSQUITTO_INCLUDE_DIR})
15
+ set(MOSQUITTO_LIBRARIES ${MOSQUITTO_LIBRARY} ${MOSQUITTOPP_LIBRARY})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mosquitto/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mosquitto",
3
+ "version": "2.0.12",
4
+ "port-version": 3,
5
+ "description": "Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol versions 3.1 and 3.1.1, MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model, This makes it suitable for machine to machine messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino",
6
+ "homepage": "https://mosquitto.org/download/",
7
+ "dependencies": [
8
+ "c-ares",
9
+ "libwebsockets",
10
+ "openssl",
11
+ "pthreads"
12
+ ]
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mozjpeg/fix-install-error.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ae07280..54dc4f3 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -1487,7 +1487,7 @@ if(ENABLE_STATIC)
6
+ endif()
7
+ endif()
8
+
9
+ -install(TARGETS rdjpgcom wrjpgcom RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
10
+ +#install(TARGETS rdjpgcom wrjpgcom RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
11
+
12
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.ijg
13
+ ${CMAKE_CURRENT_SOURCE_DIR}/README.md ${CMAKE_CURRENT_SOURCE_DIR}/example.txt
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mozjpeg/portfile.cmake ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(EXISTS "${CURRENT_INSTALLED_DIR}/share/libjpeg-turbo/copyright")
2
+ message(FATAL_ERROR "Can't build ${PORT} if libjpeg-turbo is installed. Please remove libjpeg-turbo:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO mozilla/mozjpeg
8
+ REF 512a7c3a51071981e4b314c9bc029f1daa3fb72b #2021-09-27
9
+ SHA512 bdada9757bec5e02533d976a988210e59e37a07aa9dd321d29f18161d4143a1398c004b210d05748aa61a9005411b46e9e0bfa37af2b45570e45020fbc28f551
10
+ HEAD_REF master
11
+ PATCHES
12
+ fix-install-error.patch
13
+ )
14
+
15
+ vcpkg_find_acquire_program(NASM)
16
+ get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
17
+ vcpkg_add_to_path(${NASM_EXE_PATH})
18
+
19
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED)
20
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC)
21
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" WITH_CRT_DLL)
22
+
23
+ vcpkg_cmake_configure(
24
+ SOURCE_PATH "${SOURCE_PATH}"
25
+ OPTIONS
26
+ -DENABLE_SHARED=${ENABLE_SHARED}
27
+ -DENABLE_STATIC=${ENABLE_STATIC}
28
+ -DWITH_CRT_DLL=${WITH_CRT_DLL}
29
+ )
30
+
31
+ vcpkg_cmake_install()
32
+
33
+ # Rename libraries for static builds
34
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
35
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/jpeg-static.lib")
36
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/jpeg-static.lib" "${CURRENT_PACKAGES_DIR}/lib/jpeg.lib")
37
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/turbojpeg-static.lib" "${CURRENT_PACKAGES_DIR}/lib/turbojpeg.lib")
38
+ endif()
39
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg-static.lib")
40
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg-static.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/jpeg.lib")
41
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpeg-static.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/turbojpeg.lib")
42
+ endif()
43
+ endif()
44
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mozjpeg)
45
+ # Remove extra debug files
46
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
47
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
48
+
49
+ vcpkg_copy_tools(TOOL_NAMES cjpeg djpeg jpegtran tjbench AUTO_CLEAN)
50
+ vcpkg_fixup_pkgconfig()
51
+ vcpkg_copy_pdbs()
52
+
53
+ # Remove empty folders after static build
54
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
55
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
56
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
57
+ endif()
58
+
59
+ # Handle copyright
60
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mozjpeg/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mozjpeg",
3
+ "version-date": "2021-09-27",
4
+ "description": "MozJPEG reduces file sizes of JPEG images while retaining quality and compatibility with the vast majority of the world's deployed decoders. It's compatible with libjpeg API and ABI, and can be used as a drop-in replacement for libjpeg.",
5
+ "homepage": "https://github.com/mozilla/mozjpeg",
6
+ "dependencies": [
7
+ "libpng",
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/mp-units/cmake.patch ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b18a30a96..d89248aa1 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -66,11 +66,21 @@ conan_init(cmake)
6
+ add_subdirectory(src)
7
+
8
+ # add usage example
9
+ -add_subdirectory(example)
10
+ +option(BUILD_EXAMPLES "Build usage examples" OFF)
11
+ +if(BUILD_EXAMPLES)
12
+ + add_subdirectory(example)
13
+ +endif()
14
+
15
+ # generate project documentation
16
+ -add_subdirectory(docs)
17
+ +option(BUILD_DOCS "Generate docs" OFF)
18
+ +if(BUILD_DOCS)
19
+ + add_subdirectory(docs)
20
+ +endif()
21
+
22
+ # add unit tests
23
+ -enable_testing()
24
+ -add_subdirectory(test)
25
+ +option(BUILD_TESTING "Build tests" OFF)
26
+ +if(BUILD_TESTING)
27
+ + set_warnings(mp-units)
28
+ + enable_testing()
29
+ + add_subdirectory(test)
30
+ +endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp-units/config.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/mp-unitsConfig.cmake b/src/mp-unitsConfig.cmake
2
+ --- a/src/mp-unitsConfig.cmake
3
+ +++ b/src/mp-unitsConfig.cmake
4
+ @@ -39,8 +39,8 @@ function(__check_libcxx_in_use variable)
5
+ endfunction()
6
+
7
+ include(CMakeFindDependencyMacro)
8
+ -find_dependency(fmt)
9
+ -find_dependency(gsl-lite)
10
+ +find_dependency(fmt CONFIG)
11
+ +find_dependency(gsl-lite CONFIG)
12
+
13
+ # add range-v3 dependency only for clang + libc++
14
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp-units/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO mpusz/units
4
+ REF v0.7.0
5
+ SHA512 72175f34f358d0741650ce9c8a7b28fced90cc45ddd3f1662ae1cb9ff7d31403ff742ee07ab4c96bd2d95af714d9111a888cf6acccb91e568e12d1ef663b2f64
6
+ PATCHES
7
+ cmake.patch
8
+ config.patch
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ )
14
+
15
+ vcpkg_cmake_install()
16
+
17
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
18
+
19
+ # Handle copyright/readme/package files
20
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
21
+ file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
22
+
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
24
+ "${CURRENT_PACKAGES_DIR}/lib") # Header only
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mp-units/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mp-units",
3
+ "version-semver": "0.7.0",
4
+ "description": "mp-units - A Units Library for C++",
5
+ "homepage": "https://github.com/mpusz/units",
6
+ "dependencies": [
7
+ "fmt",
8
+ "gsl-lite",
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/mp3lame/00001-msvc-upgrade-solution-up-to-vc11.patch ADDED
@@ -0,0 +1,1018 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/vc_solution/arch_nasm.props b/vc_solution/arch_nasm.props
2
+ new file mode 100644
3
+ index 0000000..13174c9
4
+ --- /dev/null
5
+ +++ b/vc_solution/arch_nasm.props
6
+ @@ -0,0 +1,15 @@
7
+ +<?xml version="1.0" encoding="utf-8"?>
8
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
9
+ + <ImportGroup Label="PropertySheets">
10
+ + </ImportGroup>
11
+ + <PropertyGroup Label="UserMacros" />
12
+ + <PropertyGroup>
13
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
14
+ + </PropertyGroup>
15
+ + <ItemDefinitionGroup>
16
+ + <ClCompile>
17
+ + <PreprocessorDefinitions>TAKEHIRO_IEEE754_HACK;HAVE_NASM;MMX_choose_table;%(PreprocessorDefinitions)</PreprocessorDefinitions>
18
+ + </ClCompile>
19
+ + </ItemDefinitionGroup>
20
+ + <ItemGroup />
21
+ +</Project>
22
+
23
+ diff --git a/vc_solution/arch_sse2.props b/vc_solution/arch_sse2.props
24
+ new file mode 100644
25
+ index 0000000..1f97d57
26
+ --- /dev/null
27
+ +++ b/vc_solution/arch_sse2.props
28
+ @@ -0,0 +1,17 @@
29
+ +<?xml version="1.0" encoding="utf-8"?>
30
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
31
+ + <ImportGroup Label="PropertySheets">
32
+ + </ImportGroup>
33
+ + <PropertyGroup Label="UserMacros" />
34
+ + <PropertyGroup>
35
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
36
+ + </PropertyGroup>
37
+ + <ItemDefinitionGroup>
38
+ + <ClCompile>
39
+ + <PreprocessorDefinitions>HAVE_XMMINTRIN_H;MIN_ARCH_SSE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
40
+ + <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet>
41
+ + <FloatingPointModel>Fast</FloatingPointModel>
42
+ + </ClCompile>
43
+ + </ItemDefinitionGroup>
44
+ + <ItemGroup />
45
+ +</Project>
46
+
47
+ diff --git a/vc_solution/arch_x87.props b/vc_solution/arch_x87.props
48
+ new file mode 100644
49
+ index 0000000..3268c6b
50
+ --- /dev/null
51
+ +++ b/vc_solution/arch_x87.props
52
+ @@ -0,0 +1,15 @@
53
+ +<?xml version="1.0" encoding="utf-8"?>
54
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
55
+ + <ImportGroup Label="PropertySheets">
56
+ + </ImportGroup>
57
+ + <PropertyGroup Label="UserMacros" />
58
+ + <PropertyGroup>
59
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
60
+ + </PropertyGroup>
61
+ + <ItemDefinitionGroup>
62
+ + <ClCompile>
63
+ + <PreprocessorDefinitions>TAKEHIRO_IEEE754_HACK;%(PreprocessorDefinitions)</PreprocessorDefinitions>
64
+ + </ClCompile>
65
+ + </ItemDefinitionGroup>
66
+ + <ItemGroup />
67
+ +</Project>
68
+
69
+ diff --git a/vc_solution/vc11_lame.sln b/vc_solution/vc11_lame.sln
70
+ new file mode 100644
71
+ index 0000000..9453bb0
72
+ --- /dev/null
73
+ +++ b/vc_solution/vc11_lame.sln
74
+ @@ -0,0 +1,41 @@
75
+ +
76
+ +Microsoft Visual Studio Solution File, Format Version 12.00
77
+ +# Visual Studio 2012
78
+ +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lame", "vc11_lame_lame.vcxproj", "{EEF5B49E-DBD1-4E1B-8B86-C5D64FCBAD38}"
79
+ + ProjectSection(ProjectDependencies) = postProject
80
+ + {92BD50AA-04D6-4FBF-ACE1-468FAF6778F2} = {92BD50AA-04D6-4FBF-ACE1-468FAF6778F2}
81
+ + EndProjectSection
82
+ +EndProject
83
+ +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmp3lame-static", "vc11_libmp3lame.vcxproj", "{20536101-3B0E-43EF-94F9-080D595DAC57}"
84
+ +EndProject
85
+ +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmp3lame", "vc11_libmp3lame_dll.vcxproj", "{92BD50AA-04D6-4FBF-ACE1-468FAF6778F2}"
86
+ +EndProject
87
+ +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpghip-static", "vc11_mpglib.vcxproj", "{E2DAB91A-8248-4625-8A85-2C2C2A390DD8}"
88
+ +EndProject
89
+ +Global
90
+ + GlobalSection(SolutionConfigurationPlatforms) = preSolution
91
+ + Debug|Win32 = Debug|Win32
92
+ + Release|Win32 = Release|Win32
93
+ + EndGlobalSection
94
+ + GlobalSection(ProjectConfigurationPlatforms) = postSolution
95
+ + {EEF5B49E-DBD1-4E1B-8B86-C5D64FCBAD38}.Debug|Win32.ActiveCfg = Debug|Win32
96
+ + {EEF5B49E-DBD1-4E1B-8B86-C5D64FCBAD38}.Debug|Win32.Build.0 = Debug|Win32
97
+ + {EEF5B49E-DBD1-4E1B-8B86-C5D64FCBAD38}.Release|Win32.ActiveCfg = Release|Win32
98
+ + {EEF5B49E-DBD1-4E1B-8B86-C5D64FCBAD38}.Release|Win32.Build.0 = Release|Win32
99
+ + {20536101-3B0E-43EF-94F9-080D595DAC57}.Debug|Win32.ActiveCfg = Debug|Win32
100
+ + {20536101-3B0E-43EF-94F9-080D595DAC57}.Debug|Win32.Build.0 = Debug|Win32
101
+ + {20536101-3B0E-43EF-94F9-080D595DAC57}.Release|Win32.ActiveCfg = Release|Win32
102
+ + {20536101-3B0E-43EF-94F9-080D595DAC57}.Release|Win32.Build.0 = Release|Win32
103
+ + {92BD50AA-04D6-4FBF-ACE1-468FAF6778F2}.Debug|Win32.ActiveCfg = Debug|Win32
104
+ + {92BD50AA-04D6-4FBF-ACE1-468FAF6778F2}.Debug|Win32.Build.0 = Debug|Win32
105
+ + {92BD50AA-04D6-4FBF-ACE1-468FAF6778F2}.Release|Win32.ActiveCfg = Release|Win32
106
+ + {92BD50AA-04D6-4FBF-ACE1-468FAF6778F2}.Release|Win32.Build.0 = Release|Win32
107
+ + {E2DAB91A-8248-4625-8A85-2C2C2A390DD8}.Debug|Win32.ActiveCfg = Debug|Win32
108
+ + {E2DAB91A-8248-4625-8A85-2C2C2A390DD8}.Debug|Win32.Build.0 = Debug|Win32
109
+ + {E2DAB91A-8248-4625-8A85-2C2C2A390DD8}.Release|Win32.ActiveCfg = Release|Win32
110
+ + {E2DAB91A-8248-4625-8A85-2C2C2A390DD8}.Release|Win32.Build.0 = Release|Win32
111
+ + EndGlobalSection
112
+ + GlobalSection(SolutionProperties) = preSolution
113
+ + HideSolutionNode = FALSE
114
+ + EndGlobalSection
115
+ +EndGlobal
116
+ diff --git a/vc_solution/vc11_lame_config.props b/vc_solution/vc11_lame_config.props
117
+ new file mode 100644
118
+ index 0000000..fd60017
119
+ --- /dev/null
120
+ +++ b/vc_solution/vc11_lame_config.props
121
+ @@ -0,0 +1,32 @@
122
+ +<?xml version="1.0" encoding="utf-8"?>
123
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
124
+ + <ImportGroup Label="PropertySheets">
125
+ + </ImportGroup>
126
+ + <PropertyGroup Label="UserMacros" />
127
+ + <PropertyGroup>
128
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
129
+ + <OutDir>$(SolutionDir)..\output\$(Configuration)\</OutDir>
130
+ + <IntDir>$(SolutionDir)..\obj\$(Configuration)\$(ProjectName)\</IntDir>
131
+ + <LinkIncremental>false</LinkIncremental>
132
+ + </PropertyGroup>
133
+ + <ItemDefinitionGroup>
134
+ + <Bscmake>
135
+ + <OutputFile>$(IntDir)$(ProjectName).bsc</OutputFile>
136
+ + </Bscmake>
137
+ + <ClCompile>
138
+ + <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATED;%(PreprocessorDefinitions)</PreprocessorDefinitions>
139
+ + <StringPooling>true</StringPooling>
140
+ + <FunctionLevelLinking>true</FunctionLevelLinking>
141
+ + <AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
142
+ + <BrowseInformation>true</BrowseInformation>
143
+ + <WarningLevel>Level4</WarningLevel>
144
+ + <DisableSpecificWarnings>4995;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
145
+ + </ClCompile>
146
+ + <Link>
147
+ + <AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
148
+ + <ProgramDatabaseFile>$(OutDir)$(TargetName).pdb</ProgramDatabaseFile>
149
+ + <OptimizeReferences>true</OptimizeReferences>
150
+ + </Link>
151
+ + </ItemDefinitionGroup>
152
+ + <ItemGroup />
153
+ +</Project>
154
+
155
+ diff --git a/vc_solution/vc11_lame_lame.vcxproj b/vc_solution/vc11_lame_lame.vcxproj
156
+ new file mode 100644
157
+ index 0000000..faf101a
158
+ --- /dev/null
159
+ +++ b/vc_solution/vc11_lame_lame.vcxproj
160
+ @@ -0,0 +1,128 @@
161
+ +<?xml version="1.0" encoding="utf-8"?>
162
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
163
+ + <ItemGroup Label="ProjectConfigurations">
164
+ + <ProjectConfiguration Include="Debug|Win32">
165
+ + <Configuration>Debug</Configuration>
166
+ + <Platform>Win32</Platform>
167
+ + </ProjectConfiguration>
168
+ + <ProjectConfiguration Include="Release|Win32">
169
+ + <Configuration>Release</Configuration>
170
+ + <Platform>Win32</Platform>
171
+ + </ProjectConfiguration>
172
+ + </ItemGroup>
173
+ + <PropertyGroup Label="Globals">
174
+ + <ProjectName>lame</ProjectName>
175
+ + <ProjectGuid>{EEF5B49E-DBD1-4E1B-8B86-C5D64FCBAD38}</ProjectGuid>
176
+ + <RootNamespace>lame</RootNamespace>
177
+ + </PropertyGroup>
178
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
179
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
180
+ + <ConfigurationType>Application</ConfigurationType>
181
+ + <PlatformToolset>v110</PlatformToolset>
182
+ + <UseOfMfc>false</UseOfMfc>
183
+ + </PropertyGroup>
184
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
185
+ + <ConfigurationType>Application</ConfigurationType>
186
+ + <PlatformToolset>v110</PlatformToolset>
187
+ + <UseOfMfc>false</UseOfMfc>
188
+ + </PropertyGroup>
189
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
190
+ + <ImportGroup Label="ExtensionSettings">
191
+ + </ImportGroup>
192
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
193
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
194
+ + <Import Project="vc11_lame_config.props" />
195
+ + <Import Project="arch_x87.props" />
196
+ + </ImportGroup>
197
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
198
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
199
+ + <Import Project="vc11_lame_config.props" />
200
+ + <Import Project="arch_x87.props" />
201
+ + </ImportGroup>
202
+ + <PropertyGroup Label="UserMacros" />
203
+ + <PropertyGroup>
204
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
205
+ + </PropertyGroup>
206
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
207
+ + <Midl>
208
+ + <TypeLibraryName>..\output\Debug/lame.tlb</TypeLibraryName>
209
+ + <HeaderFileName />
210
+ + </Midl>
211
+ + <ClCompile>
212
+ + <Optimization>Disabled</Optimization>
213
+ + <AdditionalIncludeDirectories>../;../mpglib;../libmp3lame;../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
214
+ + <PreprocessorDefinitions>_DEBUG;WIN32;_WIN32;_CONSOLE;_WINDOWS;HAVE_MPGLIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
215
+ + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
216
+ + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
217
+ + </ClCompile>
218
+ + <ResourceCompile>
219
+ + <PreprocessorDefinitions>_DEBUG;_APP=$(TargetFileName);%(PreprocessorDefinitions)</PreprocessorDefinitions>
220
+ + <Culture>0x0409</Culture>
221
+ + </ResourceCompile>
222
+ + <Link>
223
+ + <OutputFile>$(OutDir)lame.exe</OutputFile>
224
+ + <GenerateDebugInformation>true</GenerateDebugInformation>
225
+ + <SubSystem>Console</SubSystem>
226
+ + <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
227
+ + <AdditionalOptions>/APPCONTAINER /machine:x86 %(AdditionalOptions)</AdditionalOptions>
228
+ + <TargetMachine>NotSet</TargetMachine>
229
+ + </Link>
230
+ + </ItemDefinitionGroup>
231
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
232
+ + <Midl>
233
+ + <TypeLibraryName>..\output\Release/lame.tlb</TypeLibraryName>
234
+ + <HeaderFileName />
235
+ + </Midl>
236
+ + <ClCompile>
237
+ + <Optimization>Full</Optimization>
238
+ + <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
239
+ + <IntrinsicFunctions>true</IntrinsicFunctions>
240
+ + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
241
+ + <AdditionalIncludeDirectories>..;../mpglib;../libmp3lame;../include;../;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
242
+ + <PreprocessorDefinitions>NDEBUG;WIN32;_WIN32;_CONSOLE;_WINDOWS;HAVE_MPGLIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
243
+ + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
244
+ + </ClCompile>
245
+ + <ResourceCompile>
246
+ + <PreprocessorDefinitions>NDEBUG;_APP=$(TargetFileName);%(PreprocessorDefinitions)</PreprocessorDefinitions>
247
+ + <Culture>0x0409</Culture>
248
+ + </ResourceCompile>
249
+ + <Link>
250
+ + <OutputFile>$(OutDir)lame.exe</OutputFile>
251
+ + <SubSystem>Console</SubSystem>
252
+ + <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
253
+ + <AdditionalOptions>/APPCONTAINER /machine:x86 %(AdditionalOptions)</AdditionalOptions>
254
+ + <TargetMachine>NotSet</TargetMachine>
255
+ + </Link>
256
+ + </ItemDefinitionGroup>
257
+ + <ItemGroup>
258
+ + <ClCompile Include="..\frontend\brhist.c" />
259
+ + <ClCompile Include="..\frontend\console.c" />
260
+ + <ClCompile Include="..\frontend\get_audio.c" />
261
+ + <ClCompile Include="..\frontend\lame_main.c" />
262
+ + <ClCompile Include="..\frontend\lametime.c" />
263
+ + <ClCompile Include="..\frontend\main.c" />
264
+ + <ClCompile Include="..\frontend\parse.c" />
265
+ + <ClCompile Include="..\frontend\timestatus.c" />
266
+ + </ItemGroup>
267
+ + <ItemGroup>
268
+ + <ClInclude Include="..\frontend\brhist.h" />
269
+ + <ClInclude Include="..\frontend\console.h" />
270
+ + <ClInclude Include="..\frontend\get_audio.h" />
271
+ + <ClInclude Include="..\frontend\lametime.h" />
272
+ + <ClInclude Include="..\frontend\main.h" />
273
+ + <ClInclude Include="..\frontend\parse.h" />
274
+ + <ClInclude Include="..\frontend\timestatus.h" />
275
+ + </ItemGroup>
276
+ + <ItemGroup>
277
+ + <ResourceCompile Include="..\libmp3lame\lame.rc" />
278
+ + </ItemGroup>
279
+ + <ItemGroup>
280
+ + <ProjectReference Include="vc11_libmp3lame.vcxproj">
281
+ + <Project>{20536101-3b0e-43ef-94f9-080d595dac57}</Project>
282
+ + <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
283
+ + </ProjectReference>
284
+ + </ItemGroup>
285
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
286
+ + <ImportGroup Label="ExtensionTargets">
287
+ + </ImportGroup>
288
+ +</Project>
289
+
290
+ diff --git a/vc_solution/vc11_libmp3lame.vcxproj b/vc_solution/vc11_libmp3lame.vcxproj
291
+ new file mode 100644
292
+ index 0000000..d4636b0
293
+ --- /dev/null
294
+ +++ b/vc_solution/vc11_libmp3lame.vcxproj
295
+ @@ -0,0 +1,188 @@
296
+ +<?xml version="1.0" encoding="utf-8"?>
297
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
298
+ + <ItemGroup Label="ProjectConfigurations">
299
+ + <ProjectConfiguration Include="Debug|Win32">
300
+ + <Configuration>Debug</Configuration>
301
+ + <Platform>Win32</Platform>
302
+ + </ProjectConfiguration>
303
+ + <ProjectConfiguration Include="Release|Win32">
304
+ + <Configuration>Release</Configuration>
305
+ + <Platform>Win32</Platform>
306
+ + </ProjectConfiguration>
307
+ + </ItemGroup>
308
+ + <PropertyGroup Label="Globals">
309
+ + <ProjectName>libmp3lame-static</ProjectName>
310
+ + <ProjectGuid>{20536101-3B0E-43EF-94F9-080D595DAC57}</ProjectGuid>
311
+ + <RootNamespace>libmp3lame</RootNamespace>
312
+ + </PropertyGroup>
313
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
314
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
315
+ + <ConfigurationType>StaticLibrary</ConfigurationType>
316
+ + <PlatformToolset>v110</PlatformToolset>
317
+ + <UseOfMfc>false</UseOfMfc>
318
+ + </PropertyGroup>
319
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
320
+ + <ConfigurationType>StaticLibrary</ConfigurationType>
321
+ + <PlatformToolset>v110</PlatformToolset>
322
+ + <UseOfMfc>false</UseOfMfc>
323
+ + </PropertyGroup>
324
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
325
+ + <ImportGroup Label="ExtensionSettings">
326
+ + <Import Project="vc11_nasm.props" />
327
+ + </ImportGroup>
328
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
329
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
330
+ + <Import Project="vc11_lame_config.props" />
331
+ + <Import Project="arch_x87.props" />
332
+ + </ImportGroup>
333
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
334
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
335
+ + <Import Project="vc11_lame_config.props" />
336
+ + <Import Project="arch_x87.props" />
337
+ + </ImportGroup>
338
+ + <PropertyGroup Label="UserMacros" />
339
+ + <PropertyGroup>
340
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
341
+ + </PropertyGroup>
342
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
343
+ + <ClCompile>
344
+ + <Optimization>Full</Optimization>
345
+ + <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
346
+ + <IntrinsicFunctions>true</IntrinsicFunctions>
347
+ + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
348
+ + <AdditionalIncludeDirectories>../mpglib;../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
349
+ + <PreprocessorDefinitions>NDEBUG;_WINDOWS;HAVE_MPGLIB;WIN32;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
350
+ + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
351
+ + </ClCompile>
352
+ + <ResourceCompile>
353
+ + <Culture>0x0409</Culture>
354
+ + </ResourceCompile>
355
+ + <Lib>
356
+ + <OutputFile>$(OutDir)libmp3lame-static.lib</OutputFile>
357
+ + </Lib>
358
+ + </ItemDefinitionGroup>
359
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
360
+ + <ClCompile>
361
+ + <Optimization>Disabled</Optimization>
362
+ + <AdditionalIncludeDirectories>../mpglib;../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
363
+ + <PreprocessorDefinitions>_DEBUG;_WINDOWS;HAVE_MPGLIB;WIN32;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
364
+ + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
365
+ + <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
366
+ + <DebugInformationFormat>OldStyle</DebugInformationFormat>
367
+ + </ClCompile>
368
+ + <ResourceCompile>
369
+ + <Culture>0x0409</Culture>
370
+ + </ResourceCompile>
371
+ + <Lib>
372
+ + <OutputFile>$(OutDir)libmp3lame-static.lib</OutputFile>
373
+ + </Lib>
374
+ + </ItemDefinitionGroup>
375
+ + <ItemGroup>
376
+ + <ClCompile Include="..\libmp3lame\bitstream.c" />
377
+ + <ClCompile Include="..\libmp3lame\encoder.c" />
378
+ + <ClCompile Include="..\libmp3lame\fft.c" />
379
+ + <ClCompile Include="..\libmp3lame\gain_analysis.c" />
380
+ + <ClCompile Include="..\libmp3lame\id3tag.c" />
381
+ + <ClCompile Include="..\libmp3lame\lame.c" />
382
+ + <ClCompile Include="..\libmp3lame\mpglib_interface.c" />
383
+ + <ClCompile Include="..\libmp3lame\newmdct.c" />
384
+ + <ClCompile Include="..\libmp3lame\presets.c" />
385
+ + <ClCompile Include="..\libmp3lame\psymodel.c" />
386
+ + <ClCompile Include="..\libmp3lame\quantize.c" />
387
+ + <ClCompile Include="..\libmp3lame\quantize_pvt.c" />
388
+ + <ClCompile Include="..\libmp3lame\reservoir.c" />
389
+ + <ClCompile Include="..\libmp3lame\set_get.c" />
390
+ + <ClCompile Include="..\libmp3lame\tables.c">
391
+ + <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Level1</WarningLevel>
392
+ + <WarningLevel Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Level1</WarningLevel>
393
+ + </ClCompile>
394
+ + <ClCompile Include="..\libmp3lame\takehiro.c" />
395
+ + <ClCompile Include="..\libmp3lame\util.c" />
396
+ + <ClCompile Include="..\libmp3lame\vbrquantize.c" />
397
+ + <ClCompile Include="..\libmp3lame\VbrTag.c" />
398
+ + <ClCompile Include="..\libmp3lame\version.c" />
399
+ + <ClCompile Include="..\libmp3lame\vector\xmm_quantize_sub.c">
400
+ + <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../libmp3lame;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
401
+ + <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../libmp3lame;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
402
+ + </ClCompile>
403
+ + </ItemGroup>
404
+ + <ItemGroup>
405
+ + <ClInclude Include="..\libmp3lame\bitstream.h" />
406
+ + <CustomBuild Include="..\configMS.h">
407
+ + <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Performing Custom Build Step on %(Filename)</Message>
408
+ + <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy ..\configMS.h ..\config.h
409
+ +</Command>
410
+ + <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\config.h;%(Outputs)</Outputs>
411
+ + <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Performing Custom Build Step on %(Filename)</Message>
412
+ + <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy ..\configMS.h ..\config.h
413
+ +</Command>
414
+ + <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\config.h;%(Outputs)</Outputs>
415
+ + </CustomBuild>
416
+ + <ClInclude Include="..\libmp3lame\encoder.h" />
417
+ + <ClInclude Include="..\libmp3lame\fft.h" />
418
+ + <ClInclude Include="..\libmp3lame\gain_analysis.h" />
419
+ + <ClInclude Include="..\libmp3lame\id3tag.h" />
420
+ + <ClInclude Include="..\libmp3lame\l3side.h" />
421
+ + <ClInclude Include="..\libmp3lame\lame-analysis.h" />
422
+ + <ClInclude Include="..\libmp3lame\lame_global_flags.h" />
423
+ + <ClInclude Include="..\libmp3lame\vector\lame_intrin.h" />
424
+ + <ClInclude Include="..\libmp3lame\lameerror.h" />
425
+ + <ClInclude Include="..\libmp3lame\machine.h" />
426
+ + <ClInclude Include="..\libmp3lame\newmdct.h" />
427
+ + <ClInclude Include="..\libmp3lame\psymodel.h" />
428
+ + <ClInclude Include="..\libmp3lame\quantize.h" />
429
+ + <ClInclude Include="..\libmp3lame\quantize_pvt.h" />
430
+ + <ClInclude Include="..\libmp3lame\reservoir.h" />
431
+ + <ClInclude Include="..\libmp3lame\set_get.h" />
432
+ + <ClInclude Include="..\libmp3lame\tables.h" />
433
+ + <ClInclude Include="..\libmp3lame\util.h" />
434
+ + <ClInclude Include="..\libmp3lame\vbrquantize.h" />
435
+ + <ClInclude Include="..\libmp3lame\VbrTag.h" />
436
+ + <ClInclude Include="..\libmp3lame\version.h" />
437
+ + <ClInclude Include="..\include\lame.h" />
438
+ + </ItemGroup>
439
+ + <ItemGroup>
440
+ + <NASM Include="..\libmp3lame\i386\choose_table.nas">
441
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
442
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
443
+ + </NASM>
444
+ + <NASM Include="..\libmp3lame\i386\cpu_feat.nas">
445
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
446
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
447
+ + </NASM>
448
+ + <NASM Include="..\libmp3lame\i386\fft.nas">
449
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
450
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
451
+ + </NASM>
452
+ + <NASM Include="..\libmp3lame\i386\fft3dn.nas">
453
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
454
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
455
+ + </NASM>
456
+ + <NASM Include="..\libmp3lame\i386\fftfpu.nas">
457
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
458
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
459
+ + </NASM>
460
+ + <NASM Include="..\libmp3lame\i386\fftsse.nas">
461
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
462
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
463
+ + </NASM>
464
+ + <NASM Include="..\libmp3lame\i386\ffttbl.nas">
465
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
466
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
467
+ + </NASM>
468
+ + <NASM Include="..\libmp3lame\i386\scalar.nas">
469
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
470
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
471
+ + </NASM>
472
+ + </ItemGroup>
473
+ + <ItemGroup>
474
+ + <ProjectReference Include="vc11_mpglib.vcxproj">
475
+ + <Project>{e2dab91a-8248-4625-8a85-2c2c2a390dd8}</Project>
476
+ + <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
477
+ + </ProjectReference>
478
+ + </ItemGroup>
479
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
480
+ + <ImportGroup Label="ExtensionTargets">
481
+ + <Import Project="vc11_nasm.targets" />
482
+ + </ImportGroup>
483
+ +</Project>
484
+
485
+ diff --git a/vc_solution/vc11_libmp3lame_dll.vcxproj b/vc_solution/vc11_libmp3lame_dll.vcxproj
486
+ new file mode 100644
487
+ index 0000000..9dad9d5
488
+ --- /dev/null
489
+ +++ b/vc_solution/vc11_libmp3lame_dll.vcxproj
490
+ @@ -0,0 +1,125 @@
491
+ +<?xml version="1.0" encoding="utf-8"?>
492
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
493
+ + <ItemGroup Label="ProjectConfigurations">
494
+ + <ProjectConfiguration Include="Debug|Win32">
495
+ + <Configuration>Debug</Configuration>
496
+ + <Platform>Win32</Platform>
497
+ + </ProjectConfiguration>
498
+ + <ProjectConfiguration Include="Release|Win32">
499
+ + <Configuration>Release</Configuration>
500
+ + <Platform>Win32</Platform>
501
+ + </ProjectConfiguration>
502
+ + </ItemGroup>
503
+ + <PropertyGroup Label="Globals">
504
+ + <ProjectName>libmp3lame</ProjectName>
505
+ + <ProjectGuid>{92BD50AA-04D6-4FBF-ACE1-468FAF6778F2}</ProjectGuid>
506
+ + <RootNamespace>libmp3lameDLL</RootNamespace>
507
+ + </PropertyGroup>
508
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
509
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
510
+ + <ConfigurationType>DynamicLibrary</ConfigurationType>
511
+ + <PlatformToolset>v110</PlatformToolset>
512
+ + <UseOfMfc>false</UseOfMfc>
513
+ + </PropertyGroup>
514
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
515
+ + <ConfigurationType>DynamicLibrary</ConfigurationType>
516
+ + <PlatformToolset>v110</PlatformToolset>
517
+ + <UseOfMfc>false</UseOfMfc>
518
+ + </PropertyGroup>
519
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
520
+ + <ImportGroup Label="ExtensionSettings">
521
+ + <Import Project="vc11_nasm.props" />
522
+ + </ImportGroup>
523
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
524
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
525
+ + <Import Project="vc11_lame_config.props" />
526
+ + <Import Project="arch_x87.props" />
527
+ + </ImportGroup>
528
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
529
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
530
+ + <Import Project="vc11_lame_config.props" />
531
+ + <Import Project="arch_x87.props" />
532
+ + </ImportGroup>
533
+ + <PropertyGroup Label="UserMacros" />
534
+ + <PropertyGroup>
535
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
536
+ + </PropertyGroup>
537
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
538
+ + <Midl>
539
+ + <TypeLibraryName>..\output\Release/libmp3lame_dll.tlb</TypeLibraryName>
540
+ + <HeaderFileName />
541
+ + </Midl>
542
+ + <ClCompile>
543
+ + <Optimization>Full</Optimization>
544
+ + <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
545
+ + <IntrinsicFunctions>true</IntrinsicFunctions>
546
+ + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
547
+ + <AdditionalIncludeDirectories>../libmp3lame;../;../mpglib;../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
548
+ + <PreprocessorDefinitions>NDEBUG;_WINDOWS;HAVE_MPGLIB;WIN32;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
549
+ + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
550
+ + </ClCompile>
551
+ + <ResourceCompile>
552
+ + <PreprocessorDefinitions>_VC80_UPGRADE=0x0600;_DLL=$(TargetFileName);%(PreprocessorDefinitions)</PreprocessorDefinitions>
553
+ + <Culture>0x0409</Culture>
554
+ + </ResourceCompile>
555
+ + <ProjectReference>
556
+ + <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs>
557
+ + </ProjectReference>
558
+ + <Link>
559
+ + <OutputFile>$(OutDir)libmp3lame.dll</OutputFile>
560
+ + <ModuleDefinitionFile>..\include\lame.def</ModuleDefinitionFile>
561
+ + <ImportLibrary>$(OutDir)libmp3lame.lib</ImportLibrary>
562
+ + <AdditionalOptions>/APPCONTAINER /machine:x86 %(AdditionalOptions)</AdditionalOptions>
563
+ + <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
564
+ + <TargetMachine>NotSet</TargetMachine>
565
+ + </Link>
566
+ + </ItemDefinitionGroup>
567
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
568
+ + <Midl>
569
+ + <TypeLibraryName>..\output\Debug/libmp3lame_dll.tlb</TypeLibraryName>
570
+ + <HeaderFileName />
571
+ + </Midl>
572
+ + <ClCompile>
573
+ + <Optimization>Disabled</Optimization>
574
+ + <AdditionalIncludeDirectories>../libmp3lame;../;../mpglib;../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
575
+ + <PreprocessorDefinitions>_DEBUG;_WINDOWS;HAVE_MPGLIB;WIN32;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
576
+ + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
577
+ + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
578
+ + </ClCompile>
579
+ + <ResourceCompile>
580
+ + <PreprocessorDefinitions>_VC80_UPGRADE=0x0600;_DLL=$(TargetFileName);_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
581
+ + <Culture>0x0409</Culture>
582
+ + </ResourceCompile>
583
+ + <ProjectReference>
584
+ + <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs>
585
+ + </ProjectReference>
586
+ + <Link>
587
+ + <OutputFile>$(OutDir)libmp3lame.dll</OutputFile>
588
+ + <ModuleDefinitionFile>..\include\lame.def</ModuleDefinitionFile>
589
+ + <GenerateDebugInformation>true</GenerateDebugInformation>
590
+ + <ImportLibrary>$(OutDir)libmp3lame.lib</ImportLibrary>
591
+ + <AdditionalOptions>/APPCONTAINER /machine:x86 %(AdditionalOptions)</AdditionalOptions>
592
+ + <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
593
+ + <TargetMachine>NotSet</TargetMachine>
594
+ + </Link>
595
+ + </ItemDefinitionGroup>
596
+ + <ItemGroup>
597
+ + <CustomBuild Include="..\include\lame.def">
598
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
599
+ + <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
600
+ + </CustomBuild>
601
+ + </ItemGroup>
602
+ + <ItemGroup>
603
+ + <ResourceCompile Include="..\libmp3lame\lame.rc" />
604
+ + </ItemGroup>
605
+ + <ItemGroup>
606
+ + <ProjectReference Include="vc11_libmp3lame.vcxproj">
607
+ + <Project>{20536101-3b0e-43ef-94f9-080d595dac57}</Project>
608
+ + <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
609
+ + </ProjectReference>
610
+ + </ItemGroup>
611
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
612
+ + <ImportGroup Label="ExtensionTargets">
613
+ + <Import Project="vc11_nasm.targets" />
614
+ + </ImportGroup>
615
+ +</Project>
616
+
617
+ diff --git a/vc_solution/vc11_mpglib.vcxproj b/vc_solution/vc11_mpglib.vcxproj
618
+ new file mode 100644
619
+ index 0000000..a455bca
620
+ --- /dev/null
621
+ +++ b/vc_solution/vc11_mpglib.vcxproj
622
+ @@ -0,0 +1,116 @@
623
+ +<?xml version="1.0" encoding="utf-8"?>
624
+ +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
625
+ + <ItemGroup Label="ProjectConfigurations">
626
+ + <ProjectConfiguration Include="Debug|Win32">
627
+ + <Configuration>Debug</Configuration>
628
+ + <Platform>Win32</Platform>
629
+ + </ProjectConfiguration>
630
+ + <ProjectConfiguration Include="Release|Win32">
631
+ + <Configuration>Release</Configuration>
632
+ + <Platform>Win32</Platform>
633
+ + </ProjectConfiguration>
634
+ + </ItemGroup>
635
+ + <PropertyGroup Label="Globals">
636
+ + <ProjectName>libmpghip-static</ProjectName>
637
+ + <ProjectGuid>{E2DAB91A-8248-4625-8A85-2C2C2A390DD8}</ProjectGuid>
638
+ + <RootNamespace>libmpghip</RootNamespace>
639
+ + </PropertyGroup>
640
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
641
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
642
+ + <ConfigurationType>StaticLibrary</ConfigurationType>
643
+ + <PlatformToolset>v110</PlatformToolset>
644
+ + <UseOfMfc>false</UseOfMfc>
645
+ + </PropertyGroup>
646
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
647
+ + <ConfigurationType>StaticLibrary</ConfigurationType>
648
+ + <PlatformToolset>v110</PlatformToolset>
649
+ + <UseOfMfc>false</UseOfMfc>
650
+ + </PropertyGroup>
651
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
652
+ + <ImportGroup Label="ExtensionSettings">
653
+ + </ImportGroup>
654
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
655
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
656
+ + <Import Project="vc11_lame_config.props" />
657
+ + <Import Project="arch_x87.props" />
658
+ + </ImportGroup>
659
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
660
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
661
+ + <Import Project="vc11_lame_config.props" />
662
+ + <Import Project="arch_x87.props" />
663
+ + </ImportGroup>
664
+ + <PropertyGroup Label="UserMacros" />
665
+ + <PropertyGroup>
666
+ + <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
667
+ + </PropertyGroup>
668
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
669
+ + <ClCompile>
670
+ + <Optimization>Full</Optimization>
671
+ + <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
672
+ + <IntrinsicFunctions>true</IntrinsicFunctions>
673
+ + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
674
+ + <AdditionalIncludeDirectories>../libmp3lame;../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
675
+ + <PreprocessorDefinitions>NDEBUG;HAVE_MPGLIB;_WINDOWS;USE_LAYER_2;WIN32;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
676
+ + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
677
+ + </ClCompile>
678
+ + <ResourceCompile>
679
+ + <Culture>0x0409</Culture>
680
+ + </ResourceCompile>
681
+ + <Lib>
682
+ + <OutputFile>$(OutDir)libmpghip-static.lib</OutputFile>
683
+ + </Lib>
684
+ + </ItemDefinitionGroup>
685
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
686
+ + <ClCompile>
687
+ + <Optimization>Disabled</Optimization>
688
+ + <AdditionalIncludeDirectories>../libmp3lame;../include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
689
+ + <PreprocessorDefinitions>_DEBUG;_WINDOWS;USE_LAYER_2;HAVE_MPGLIB;WIN32;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
690
+ + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
691
+ + <ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
692
+ + <DebugInformationFormat>OldStyle</DebugInformationFormat>
693
+ + </ClCompile>
694
+ + <ResourceCompile>
695
+ + <Culture>0x0409</Culture>
696
+ + </ResourceCompile>
697
+ + <Lib>
698
+ + <OutputFile>$(OutDir)libmpghip-static.lib</OutputFile>
699
+ + </Lib>
700
+ + </ItemDefinitionGroup>
701
+ + <ItemGroup>
702
+ + <ClCompile Include="..\mpglib\common.c" />
703
+ + <ClCompile Include="..\mpglib\dct64_i386.c" />
704
+ + <ClCompile Include="..\mpglib\decode_i386.c" />
705
+ + <ClCompile Include="..\mpglib\interface.c" />
706
+ + <ClCompile Include="..\mpglib\layer1.c" />
707
+ + <ClCompile Include="..\mpglib\layer2.c" />
708
+ + <ClCompile Include="..\mpglib\layer3.c" />
709
+ + <ClCompile Include="..\mpglib\tabinit.c" />
710
+ + </ItemGroup>
711
+ + <ItemGroup>
712
+ + <ClInclude Include="..\mpglib\common.h" />
713
+ + <CustomBuild Include="..\configMS.h">
714
+ + <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Performing Custom Build Step on %(Filename)</Message>
715
+ + <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">copy ..\configMS.h ..\config.h
716
+ +</Command>
717
+ + <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\config.h;%(Outputs)</Outputs>
718
+ + <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Performing Custom Build Step on %(Filename)</Message>
719
+ + <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">copy ..\configMS.h ..\config.h
720
+ +</Command>
721
+ + <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\config.h;%(Outputs)</Outputs>
722
+ + </CustomBuild>
723
+ + <ClInclude Include="..\mpglib\dct64_i386.h" />
724
+ + <ClInclude Include="..\mpglib\decode_i386.h" />
725
+ + <ClInclude Include="..\mpglib\huffman.h" />
726
+ + <ClInclude Include="..\mpglib\interface.h" />
727
+ + <ClInclude Include="..\mpglib\l2tables.h" />
728
+ + <ClInclude Include="..\mpglib\layer1.h" />
729
+ + <ClInclude Include="..\mpglib\layer2.h" />
730
+ + <ClInclude Include="..\mpglib\layer3.h" />
731
+ + <ClInclude Include="..\mpglib\mpg123.h" />
732
+ + <ClInclude Include="..\mpglib\mpglib.h" />
733
+ + <ClInclude Include="..\mpglib\tabinit.h" />
734
+ + </ItemGroup>
735
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
736
+ + <ImportGroup Label="ExtensionTargets">
737
+ + </ImportGroup>
738
+ +</Project>
739
+
740
+ diff --git a/vc_solution/vc11_nasm.props b/vc_solution/vc11_nasm.props
741
+ new file mode 100644
742
+ index 0000000..0f8542f
743
+ --- /dev/null
744
+ +++ b/vc_solution/vc11_nasm.props
745
+ @@ -0,0 +1,24 @@
746
+ +<?xml version="1.0" encoding="utf-8"?>
747
+ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
748
+ + <PropertyGroup
749
+ + Condition="'$(NASMBeforeTargets)' == '' and '$(NASMAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
750
+ + <NASMBeforeTargets>Midl</NASMBeforeTargets>
751
+ + <NASMAfterTargets>CustomBuild</NASMAfterTargets>
752
+ + </PropertyGroup>
753
+ + <PropertyGroup>
754
+ + <NASMDependsOn
755
+ + Condition="'$(ConfigurationType)' != 'Makefile'">_SelectedFiles;$(NASMDependsOn)</NASMDependsOn>
756
+ + </PropertyGroup>
757
+ + <ItemDefinitionGroup>
758
+ + <NASM>
759
+ + <OutFile>$(IntDir)%(Filename).obj</OutFile>
760
+ + <BinFormat>win32</BinFormat>
761
+ + <IncludeDir>%(RootDir)%(Directory)</IncludeDir>
762
+ + <Defines>WIN32</Defines>
763
+ + <CommandLineTemplate>nasmw [BinFormat] [IncludeDir] [Defines] -o [OutFile] %(FullPath)</CommandLineTemplate>
764
+ + <Outputs>[OutFile]</Outputs>
765
+ + <ExecutionDescription>Assembling %(Filename)...</ExecutionDescription>
766
+ + <ShowOnlyRuleProperties>false</ShowOnlyRuleProperties>
767
+ + </NASM>
768
+ + </ItemDefinitionGroup>
769
+ +</Project>
770
+
771
+ diff --git a/vc_solution/vc11_nasm.targets b/vc_solution/vc11_nasm.targets
772
+ new file mode 100644
773
+ index 0000000..3158d8d
774
+ --- /dev/null
775
+ +++ b/vc_solution/vc11_nasm.targets
776
+ @@ -0,0 +1,85 @@
777
+ +<?xml version="1.0" encoding="utf-8"?>
778
+ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
779
+ + <ItemGroup>
780
+ + <PropertyPageSchema
781
+ + Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
782
+ + <AvailableItemName
783
+ + Include="NASM">
784
+ + <Targets>_NASM</Targets>
785
+ + </AvailableItemName>
786
+ + </ItemGroup>
787
+ + <UsingTask
788
+ + TaskName="NASM"
789
+ + TaskFactory="XamlTaskFactory"
790
+ + AssemblyName="Microsoft.Build.Tasks.v4.0">
791
+ + <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
792
+ + </UsingTask>
793
+ + <Target
794
+ + Name="_NASM"
795
+ + BeforeTargets="$(NASMBeforeTargets)"
796
+ + AfterTargets="$(NASMAfterTargets)"
797
+ + Condition="'@(NASM)' != ''"
798
+ + DependsOnTargets="$(NASMDependsOn);ComputeNASMOutput"
799
+ + Outputs="@(NASM-&gt;Metadata('Outputs')-&gt;Distinct())"
800
+ + Inputs="@(NASM);%(NASM.AdditionalDependencies);$(MSBuildProjectFile)">
801
+ + <ItemGroup
802
+ + Condition="'@(SelectedFiles)' != ''">
803
+ + <NASM
804
+ + Remove="@(NASM)"
805
+ + Condition="'%(Identity)' != '@(SelectedFiles)'" />
806
+ + </ItemGroup>
807
+ + <ItemGroup>
808
+ + <NASM_tlog
809
+ + Include="%(NASM.Outputs)"
810
+ + Condition="'%(NASM.Outputs)' != '' and '%(NASM.ExcludedFromBuild)' != 'true'">
811
+ + <Source>@(NASM, '|')</Source>
812
+ + </NASM_tlog>
813
+ + </ItemGroup>
814
+ + <Message
815
+ + Importance="High"
816
+ + Text="%(NASM.ExecutionDescription)" />
817
+ + <WriteLinesToFile
818
+ + Condition="'@(NASM_tlog)' != '' and '%(NASM_tlog.ExcludedFromBuild)' != 'true'"
819
+ + File="$(TLogLocation)$(ProjectName).write.1.tlog"
820
+ + Lines="^%(NASM_tlog.Source);@(NASM_tlog-&gt;'%(Fullpath)')" />
821
+ + <NASM
822
+ + Condition="'@(NASM)' != '' and '%(NASM.ExcludedFromBuild)' != 'true'"
823
+ + CommandLineTemplate="%(NASM.CommandLineTemplate)"
824
+ + OutFile="%(NASM.OutFile)"
825
+ + BinFormat="%(NASM.BinFormat)"
826
+ + IncludeDir="%(NASM.IncludeDir)"
827
+ + Defines="%(NASM.Defines)"
828
+ + AdditionalOptions="%(NASM.AdditionalOptions)"
829
+ + Inputs="@(NASM)" />
830
+ + </Target>
831
+ + <PropertyGroup>
832
+ + <ComputeLinkInputsTargets>
833
+ + $(ComputeLinkInputsTargets);
834
+ + ComputeNASMOutput;
835
+ + </ComputeLinkInputsTargets>
836
+ + <ComputeLibInputsTargets>
837
+ + $(ComputeLibInputsTargets);
838
+ + ComputeNASMOutput;
839
+ + </ComputeLibInputsTargets>
840
+ + </PropertyGroup>
841
+ + <Target
842
+ + Name="ComputeNASMOutput"
843
+ + Condition="'@(NASM)' != ''">
844
+ + <ItemGroup>
845
+ + <NASMDirsToMake
846
+ + Condition="'@(NASM)' != '' and '%(NASM.ExcludedFromBuild)' != 'true'"
847
+ + Include="%(NASM.Outputs)" />
848
+ + <Link
849
+ + Include="%(NASMDirsToMake.Identity)"
850
+ + Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
851
+ + <Lib
852
+ + Include="%(NASMDirsToMake.Identity)"
853
+ + Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
854
+ + <ImpLib
855
+ + Include="%(NASMDirsToMake.Identity)"
856
+ + Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
857
+ + </ItemGroup>
858
+ + <MakeDir
859
+ + Directories="@(NASMDirsToMake-&gt;'%(RootDir)%(Directory)')" />
860
+ + </Target>
861
+ +</Project>
862
+
863
+ diff --git a/vc_solution/vc11_nasm.xml b/vc_solution/vc11_nasm.xml
864
+ new file mode 100644
865
+ index 0000000..390d570
866
+ --- /dev/null
867
+ +++ b/vc_solution/vc11_nasm.xml
868
+ @@ -0,0 +1,149 @@
869
+ +<?xml version="1.0" encoding="utf-8"?>
870
+ +<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:transformCallback="Microsoft.Cpp.Dev10.ConvertPropertyCallback">
871
+ + <Rule
872
+ + Name="NASM"
873
+ + PageTemplate="tool"
874
+ + DisplayName="NASM"
875
+ + Order="200">
876
+ + <Rule.DataSource>
877
+ + <DataSource
878
+ + Persistence="ProjectFile"
879
+ + ItemType="NASM" />
880
+ + </Rule.DataSource>
881
+ + <Rule.Categories>
882
+ + <Category
883
+ + Name="General">
884
+ + <Category.DisplayName>
885
+ + <sys:String>General</sys:String>
886
+ + </Category.DisplayName>
887
+ + </Category>
888
+ + <Category
889
+ + Name="Command Line"
890
+ + Subtype="CommandLine">
891
+ + <Category.DisplayName>
892
+ + <sys:String>Command Line</sys:String>
893
+ + </Category.DisplayName>
894
+ + </Category>
895
+ + </Rule.Categories>
896
+ + <StringListProperty
897
+ + Name="Inputs"
898
+ + Category="Command Line"
899
+ + IsRequired="true"
900
+ + Switch=" ">
901
+ + <StringListProperty.DataSource>
902
+ + <DataSource
903
+ + Persistence="ProjectFile"
904
+ + ItemType="NASM"
905
+ + SourceType="Item" />
906
+ + </StringListProperty.DataSource>
907
+ + </StringListProperty>
908
+ + <StringProperty
909
+ + Name="OutFile"
910
+ + HelpContext="0"
911
+ + DisplayName="output file path"
912
+ + Switch="[value]" />
913
+ + <StringProperty
914
+ + Name="BinFormat"
915
+ + HelpContext="0"
916
+ + DisplayName="Binary format"
917
+ + Switch="-f [value]" />
918
+ + <StringListProperty
919
+ + Name="IncludeDir"
920
+ + HelpContext="0"
921
+ + DisplayName="Additional include directories"
922
+ + Separator=";"
923
+ + Switch="-i [value]" />
924
+ + <StringListProperty
925
+ + Name="Defines"
926
+ + HelpContext="0"
927
+ + DisplayName="Defines"
928
+ + Separator=" ;,"
929
+ + Switch="-D[value]" />
930
+ + <StringProperty
931
+ + Name="CommandLineTemplate"
932
+ + DisplayName="Command Line"
933
+ + Visible="False"
934
+ + IncludeInCommandLine="False" />
935
+ + <DynamicEnumProperty
936
+ + Name="NASMBeforeTargets"
937
+ + Category="General"
938
+ + EnumProvider="Targets"
939
+ + IncludeInCommandLine="False">
940
+ + <DynamicEnumProperty.DisplayName>
941
+ + <sys:String>Execute Before</sys:String>
942
+ + </DynamicEnumProperty.DisplayName>
943
+ + <DynamicEnumProperty.Description>
944
+ + <sys:String>Specifies the targets for the build customization to run before.</sys:String>
945
+ + </DynamicEnumProperty.Description>
946
+ + <DynamicEnumProperty.ProviderSettings>
947
+ + <NameValuePair
948
+ + Name="Exclude"
949
+ + Value="^NASMBeforeTargets|^Compute" />
950
+ + </DynamicEnumProperty.ProviderSettings>
951
+ + <DynamicEnumProperty.DataSource>
952
+ + <DataSource
953
+ + Persistence="ProjectFile"
954
+ + HasConfigurationCondition="true" />
955
+ + </DynamicEnumProperty.DataSource>
956
+ + </DynamicEnumProperty>
957
+ + <DynamicEnumProperty
958
+ + Name="NASMAfterTargets"
959
+ + Category="General"
960
+ + EnumProvider="Targets"
961
+ + IncludeInCommandLine="False">
962
+ + <DynamicEnumProperty.DisplayName>
963
+ + <sys:String>Execute After</sys:String>
964
+ + </DynamicEnumProperty.DisplayName>
965
+ + <DynamicEnumProperty.Description>
966
+ + <sys:String>Specifies the targets for the build customization to run after.</sys:String>
967
+ + </DynamicEnumProperty.Description>
968
+ + <DynamicEnumProperty.ProviderSettings>
969
+ + <NameValuePair
970
+ + Name="Exclude"
971
+ + Value="^NASMAfterTargets|^Compute" />
972
+ + </DynamicEnumProperty.ProviderSettings>
973
+ + <DynamicEnumProperty.DataSource>
974
+ + <DataSource
975
+ + Persistence="ProjectFile"
976
+ + ItemType=""
977
+ + HasConfigurationCondition="true" />
978
+ + </DynamicEnumProperty.DataSource>
979
+ + </DynamicEnumProperty>
980
+ + <StringListProperty
981
+ + Name="Outputs"
982
+ + DisplayName="Outputs"
983
+ + Visible="False"
984
+ + IncludeInCommandLine="False" />
985
+ + <StringProperty
986
+ + Name="ExecutionDescription"
987
+ + DisplayName="Execution Description"
988
+ + Visible="False"
989
+ + IncludeInCommandLine="False" />
990
+ + <StringListProperty
991
+ + Name="AdditionalDependencies"
992
+ + DisplayName="Additional Dependencies"
993
+ + IncludeInCommandLine="False"
994
+ + Visible="true" />
995
+ + <StringProperty
996
+ + Subtype="AdditionalOptions"
997
+ + Name="AdditionalOptions"
998
+ + Category="Command Line">
999
+ + <StringProperty.DisplayName>
1000
+ + <sys:String>Additional Options</sys:String>
1001
+ + </StringProperty.DisplayName>
1002
+ + <StringProperty.Description>
1003
+ + <sys:String>Additional Options</sys:String>
1004
+ + </StringProperty.Description>
1005
+ + </StringProperty>
1006
+ + </Rule>
1007
+ + <ItemType
1008
+ + Name="NASM"
1009
+ + DisplayName="NASM" />
1010
+ + <FileExtension
1011
+ + Name="*.nas"
1012
+ + ContentType="NASM" />
1013
+ + <ContentType
1014
+ + Name="NASM"
1015
+ + DisplayName="NASM"
1016
+ + ItemType="NASM" />
1017
+ +</ProjectSchemaDefinitions>
1018
+