Spaces:
Sleeping
Sleeping
ad947dc80cdf060a1296f997343da171eeb9236982be2d1b0fbf5b6dddeb9451
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libmysql/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libmysql/vcpkg-cmake-wrapper.cmake +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libmysql/vcpkg.json +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnice/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnice/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnoise/fix-build.patch +100 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnoise/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnoise/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnop/portfile.cmake +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnop/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/CMakeLists.txt +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/config.unix.h.in +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/CMakeLists.txt +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/adapter_mysql_8.0.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/config.unix.h.in +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/fix-redefinttion.patch +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/CMakeLists.txt +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/config.unix.h.in +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/CMakeLists.txt +55 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/config.unix.h.in +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/CMakeLists.txt +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/config.unix.h.in +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/odbConfig.cmake +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/portfile.cmake +50 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libogg/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libogg/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopenmpt/CMakeLists.txt +95 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopenmpt/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopenmpt/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/opensp_1.5.2-13.diff +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/portfile.cmake +56 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/uwp_getenv_fix.diff +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/windows_cmake_build.diff +142 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopusenc/CMakeLists.txt +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopusenc/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopusenc/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosip2/fix-path-in-project.patch +304 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosip2/portfile.cmake +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosip2/vcpkg.json +11 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libmysql/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libmysql provides CMake targets:
|
2 |
+
|
3 |
+
find_package(libmysql REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE ${MYSQL_LIBRARIES})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libmysql/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_package(unofficial-libmysql CONFIG REQUIRED)
|
2 |
+
if (TARGET mysqlclient)
|
3 |
+
set(MYSQL_LIBRARY mysqlclient)
|
4 |
+
elseif (TARGET libmysql)
|
5 |
+
set(MYSQL_LIBRARY libmysql)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
set(libmysql_FOUND 1)
|
9 |
+
set(MYSQL_LIBRARIES ${MYSQL_LIBRARY})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libmysql/vcpkg.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libmysql",
|
3 |
+
"version": "8.0.20",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "A MySQL client library for C development",
|
6 |
+
"homepage": "https://github.com/mysql/mysql-server",
|
7 |
+
"supports": "!(windows & x86) & !uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"boost-algorithm",
|
10 |
+
"boost-functional",
|
11 |
+
"boost-geometry",
|
12 |
+
"boost-graph",
|
13 |
+
"boost-optional",
|
14 |
+
"icu",
|
15 |
+
"libevent",
|
16 |
+
"lz4",
|
17 |
+
"openssl",
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake",
|
20 |
+
"host": true
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "vcpkg-cmake-config",
|
24 |
+
"host": true
|
25 |
+
},
|
26 |
+
"zlib"
|
27 |
+
]
|
28 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnice/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.freedesktop.org
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO libnice/libnice
|
5 |
+
REF 55b71d47f2b427b3baa8812818ed3f059acc748d # 0.1.18
|
6 |
+
SHA512 78575c487d74734d2dff1c04103fd55c76cf5e78edde03ffd68050348881a3efc985513cfd30553bfce0568c8edfcd61be7dea8991731efc749ee4fee2f503d6
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_meson(
|
11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
12 |
+
OPTIONS
|
13 |
+
-Dgtk_doc=disabled #Enable generating the API reference (depends on GTK-Doc)
|
14 |
+
-Dintrospection=disabled #Enable GObject Introspection (depends on GObject)'
|
15 |
+
-Dtests=disabled
|
16 |
+
-Dexamples=disabled
|
17 |
+
-Dgstreamer=disabled
|
18 |
+
-Dcrypto-library=openssl
|
19 |
+
ADDITIONAL_NATIVE_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
20 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
21 |
+
ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
22 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
23 |
+
)
|
24 |
+
|
25 |
+
# Could be features:
|
26 |
+
# option('gupnp', type: 'feature', value: 'auto',
|
27 |
+
# description: 'Enable or disable GUPnP IGD support')
|
28 |
+
# option('ignored-network-interface-prefix', type: 'array', value: ['docker', 'veth', 'virbr', 'vnet'],
|
29 |
+
# description: 'Ignore network interfaces whose name starts with a string from this list in the ICE connection check algorithm. For example, "virbr" to ignore virtual bridge interfaces added by virtd, which do not help in finding connectivity.')
|
30 |
+
# option('crypto-library', type: 'combo', choices : ['auto', 'gnutls', 'openssl'], value : 'auto')
|
31 |
+
|
32 |
+
vcpkg_install_meson()
|
33 |
+
|
34 |
+
vcpkg_copy_pdbs()
|
35 |
+
vcpkg_copy_tools(TOOL_NAMES stunbdc stund AUTO_CLEAN)
|
36 |
+
vcpkg_fixup_pkgconfig()
|
37 |
+
|
38 |
+
file(COPY "${SOURCE_PATH}/COPYING.LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
39 |
+
file(COPY "${SOURCE_PATH}/COPYING.MPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
40 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnice/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libnice",
|
3 |
+
"version": "0.1.18",
|
4 |
+
"description": "Libnice is an implementation of the IETF's Interactive Connectivity Establishment (ICE) standard (RFC 5245) and the Session Traversal Utilities for NAT (STUN) standard (RFC 5389).",
|
5 |
+
"homepage": "https://nice.freedesktop.org",
|
6 |
+
"license": "LGPL-2.1-only",
|
7 |
+
"dependencies": [
|
8 |
+
"glib",
|
9 |
+
{
|
10 |
+
"name": "glib",
|
11 |
+
"host": true,
|
12 |
+
"default-features": false
|
13 |
+
},
|
14 |
+
"openssl"
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnoise/fix-build.patch
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/noiseutils/CMakeLists.txt b/noiseutils/CMakeLists.txt
|
2 |
+
index 07747de..68db2a2 100644
|
3 |
+
--- a/noiseutils/CMakeLists.txt
|
4 |
+
+++ b/noiseutils/CMakeLists.txt
|
5 |
+
@@ -19,11 +19,14 @@ if(BUILD_SHARED_LIBS)
|
6 |
+
|
7 |
+
set_target_properties(${TARGET_NAME} PROPERTIES VERSION ${LIBNOISE_VERSION})
|
8 |
+
target_link_libraries(${TARGET_NAME} noise)
|
9 |
+
- target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src)
|
10 |
+
+ target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}> $<INSTALL_INTERFACE:include>)
|
11 |
+
|
12 |
+
# install dynamic libraries (.dll or .so) into /bin
|
13 |
+
- install(TARGETS ${TARGET_NAME} DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
14 |
+
-endif()
|
15 |
+
+ install(TARGETS ${TARGET_NAME} EXPORT unofficial-noiseutilsTargets
|
16 |
+
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
|
17 |
+
+ LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
|
18 |
+
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
19 |
+
+else()
|
20 |
+
|
21 |
+
#----------------------------------------
|
22 |
+
# build static lib (it's good practice to include a lib file for the dll)
|
23 |
+
@@ -31,11 +34,22 @@ set(TARGET_NAME "${LIB_NAME}-static")
|
24 |
+
add_library(${TARGET_NAME} STATIC ${libSrcs})
|
25 |
+
set_target_properties(${TARGET_NAME} PROPERTIES VERSION ${LIBNOISE_VERSION})
|
26 |
+
target_link_libraries(${TARGET_NAME} noise-static)
|
27 |
+
-target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src)
|
28 |
+
+target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}> $<INSTALL_INTERFACE:include>)
|
29 |
+
# install static libraries (.lib) into /lib
|
30 |
+
-install(TARGETS ${TARGET_NAME} DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
31 |
+
+install(TARGETS ${TARGET_NAME} EXPORT unofficial-noiseutilsTargets DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
32 |
+
#----------------------------------------
|
33 |
+
-
|
34 |
+
+endif()
|
35 |
+
# install include files into /include
|
36 |
+
install( FILES "${PROJECT_SOURCE_DIR}/noiseutils/noiseutils.h"
|
37 |
+
- DESTINATION "${CMAKE_INSTALL_PREFIX}/include/noise" )
|
38 |
+
|
39 |
+
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/include/noise" )
|
40 |
+
+
|
41 |
+
+install(EXPORT unofficial-noiseutilsTargets
|
42 |
+
+ NAMESPACE unofficial::noiseutils::
|
43 |
+
+ DESTINATION share/unofficial-noiseutils
|
44 |
+
+)
|
45 |
+
+
|
46 |
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-noiseutils-config.cmake.in"
|
47 |
+
+[[include("${CMAKE_CURRENT_LIST_DIR}/unofficial-noiseutilsTargets.cmake")]])
|
48 |
+
+configure_file("${CMAKE_CURRENT_BINARY_DIR}/unofficial-noiseutils-config.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/unofficial-noiseutils-config.cmake" @ONLY)
|
49 |
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-noiseutils-config.cmake DESTINATION share/unofficial-noiseutils)
|
50 |
+
+
|
51 |
+
|
52 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
53 |
+
index 2757f30..47dcc51 100644
|
54 |
+
--- a/src/CMakeLists.txt
|
55 |
+
+++ b/src/CMakeLists.txt
|
56 |
+
@@ -60,10 +60,13 @@ if(BUILD_SHARED_LIBS)
|
57 |
+
add_library(${TARGET_NAME} SHARED ${libSrcs})
|
58 |
+
endif()
|
59 |
+
set_target_properties(${TARGET_NAME} PROPERTIES VERSION ${LIBNOISE_VERSION})
|
60 |
+
- target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src)
|
61 |
+
+ target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/noise> $<INSTALL_INTERFACE:include>)
|
62 |
+
target_compile_definitions(${TARGET_NAME} PRIVATE NOISE_BUILD_DLL)
|
63 |
+
- install(TARGETS ${TARGET_NAME} DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
64 |
+
-endif()
|
65 |
+
+ install(TARGETS ${TARGET_NAME} EXPORT unofficial-noiseTargets
|
66 |
+
+ RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
|
67 |
+
+ LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib"
|
68 |
+
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
69 |
+
+else()
|
70 |
+
|
71 |
+
#----------------------------------------
|
72 |
+
# build static lib (it's good practice to include a lib file for the dll)
|
73 |
+
@@ -71,12 +74,22 @@ set(TARGET_NAME "${LIB_NAME}-static")
|
74 |
+
message(STATUS "build ${TARGET_NAME}")
|
75 |
+
add_library(${TARGET_NAME} STATIC ${libSrcs})
|
76 |
+
set_target_properties(${TARGET_NAME} PROPERTIES VERSION ${LIBNOISE_VERSION})
|
77 |
+
-target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src)
|
78 |
+
+target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/src PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/noise> $<INSTALL_INTERFACE:include>)
|
79 |
+
target_compile_definitions(${TARGET_NAME} PUBLIC NOISE_STATIC)
|
80 |
+
# install static libraries (.lib) into /lib
|
81 |
+
-install(TARGETS ${TARGET_NAME} DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
82 |
+
+install(TARGETS ${TARGET_NAME} EXPORT unofficial-noiseTargets DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
83 |
+
#----------------------------------------
|
84 |
+
-
|
85 |
+
+endif()
|
86 |
+
# install include files into /include
|
87 |
+
install( DIRECTORY "${PROJECT_SOURCE_DIR}/src/noise"
|
88 |
+
- DESTINATION "${CMAKE_INSTALL_PREFIX}/include" )
|
89 |
+
|
90 |
+
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/include" )
|
91 |
+
+
|
92 |
+
+install(EXPORT unofficial-noiseTargets
|
93 |
+
+ NAMESPACE unofficial::noise::
|
94 |
+
+ DESTINATION share/unofficial-noise
|
95 |
+
+)
|
96 |
+
+
|
97 |
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-noise-config.cmake.in"
|
98 |
+
+[[include("${CMAKE_CURRENT_LIST_DIR}/unofficial-noiseTargets.cmake")]])
|
99 |
+
+configure_file("${CMAKE_CURRENT_BINARY_DIR}/unofficial-noise-config.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/unofficial-noise-config.cmake" @ONLY)
|
100 |
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-noise-config.cmake DESTINATION share/unofficial-noise)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnoise/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set( LIBNOISE_VERSION "1.0.0" )
|
2 |
+
set( LIBNOISE_COMMIT "d7e68784a2b24c632868506780eba336ede74ecd" )
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO RobertHue/libnoise
|
7 |
+
REF ${LIBNOISE_COMMIT}
|
8 |
+
SHA512 8c4d654acb4ae3d90ee62ebdf0447f876022dcb887ebfad88f39b09d29183a58e6fc1b1f1d03edff804975c8befcc6eda33c44797495285aae338c2e869a14d7
|
9 |
+
HEAD_REF master
|
10 |
+
PATCHES fix-build.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_WALL=ON
|
17 |
+
-DBUILD_SPEED_OPTIMIZED=ON
|
18 |
+
-DBUILD_LIBNOISE_DOCUMENTATION=OFF
|
19 |
+
-DBUILD_LIBNOISE_UTILS=ON
|
20 |
+
-DBUILD_LIBNOISE_EXAMPLES=OFF
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
26 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-noise CONFIG_PATH share/unofficial-noise)
|
27 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-noiseutils CONFIG_PATH share/unofficial-noiseutils)
|
28 |
+
|
29 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
30 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/noise/module/modulebase.h
|
31 |
+
"if NOISE_STATIC" "if 1" )
|
32 |
+
endif()
|
33 |
+
|
34 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnoise/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libnoise",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A general-purpose library that generates three-dimensional coherent noise. Useful for terrain generation and procedural texture generation. Uses a broad number of techniques (Perlin noise, ridged multifractal, etc.) and combinations of those techniques.",
|
6 |
+
"homepage": "https://github.com/RobertHue/libnoise",
|
7 |
+
"license": "LGPL-2.1",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnop/portfile.cmake
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO google/libnop
|
4 |
+
REF 910b55815be16109f04f4180e9adee14fb4ce281
|
5 |
+
SHA512 74c5324eaa1b6b2ac8dfef94c835b5c5b044625f8e5efe3522470b1ecc4798ff43d344a013cee2f6901e83267c6167072947b754e63f1552ae7044cffe234c36
|
6 |
+
)
|
7 |
+
file(INSTALL ${SOURCE_PATH}/include/nop DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
8 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libnop/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libnop",
|
3 |
+
"version-date": "2021-03-01",
|
4 |
+
"description": "libnop is a header-only library for serializing and deserializing C++ data types without external code generators or runtime support libraries",
|
5 |
+
"homepage": "https://github.com/google/libnop"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/CMakeLists.txt
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libodb-boost VERSION 2.4.0 LANGUAGES CXX)
|
3 |
+
find_package(odb 2.4.0 REQUIRED COMPONENTS libodb)
|
4 |
+
configure_file(config.unix.h.in
|
5 |
+
${CMAKE_CURRENT_SOURCE_DIR}/odb/boost/details/config.h COPYONLY)
|
6 |
+
|
7 |
+
# FIXME: should we require boost? which packages?
|
8 |
+
# find_package(PostgreSQL REQUIRED)
|
9 |
+
set(LIBODB_INSTALL_HEADERS ON CACHE BOOL "Install the header files (a debug install)")
|
10 |
+
file(GLOB_RECURSE libodb_src LIST_DIRECTORIES False
|
11 |
+
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
12 |
+
*.cxx)
|
13 |
+
add_library(libodb-boost ${libodb_src})
|
14 |
+
target_include_directories(libodb-boost
|
15 |
+
PUBLIC
|
16 |
+
$<INSTALL_INTERFACE:include>
|
17 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
18 |
+
|
19 |
+
)
|
20 |
+
|
21 |
+
target_link_libraries(libodb-boost PRIVATE odb::libodb)
|
22 |
+
if(BUILD_SHARED_LIBS)
|
23 |
+
target_compile_definitions(libodb-boost PRIVATE
|
24 |
+
-DLIBODB_BOOST_DYNAMIC_LIB)
|
25 |
+
else()
|
26 |
+
target_compile_definitions(libodb-boost PRIVATE
|
27 |
+
-DLIBODB_BOOST_STATIC_LIB)
|
28 |
+
endif()
|
29 |
+
install(TARGETS libodb-boost EXPORT odb_boostConfig
|
30 |
+
COMPONENT boost
|
31 |
+
ARCHIVE DESTINATION lib
|
32 |
+
LIBRARY DESTINATION lib
|
33 |
+
RUNTIME DESTINATION bin
|
34 |
+
)
|
35 |
+
if(LIBODB_INSTALL_HEADERS)
|
36 |
+
install(DIRECTORY odb DESTINATION include/
|
37 |
+
COMPONENT sqlite
|
38 |
+
FILES_MATCHING
|
39 |
+
PATTERN "*.h"
|
40 |
+
PATTERN "*.hxx"
|
41 |
+
PATTERN "*.ixx"
|
42 |
+
PATTERN "*.txx"
|
43 |
+
PATTERN "*.options"
|
44 |
+
)
|
45 |
+
endif()
|
46 |
+
install(EXPORT odb_boostConfig NAMESPACE odb:: COMPONENT boost DESTINATION share/odb)
|
47 |
+
export(TARGETS libodb-boost NAMESPACE odb:: FILE odb_boostConfig.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/config.unix.h.in
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* odb/boost/details/config.h. Generated from config.h.in by configure. */
|
2 |
+
/* file : odb/boost/details/config.h.in
|
3 |
+
* copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
|
4 |
+
* license : GNU GPL v2; see accompanying LICENSE file
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* This file is automatically processed by configure. */
|
8 |
+
|
9 |
+
#ifndef ODB_BOOST_DETAILS_CONFIG_H
|
10 |
+
#define ODB_BOOST_DETAILS_CONFIG_H
|
11 |
+
|
12 |
+
/* #undef LIBODB_BOOST_STATIC_LIB */
|
13 |
+
|
14 |
+
#endif /* ODB_BOOST_DETAILS_CONFIG_H */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "http://www.codesynthesis.com/download/odb/2.4/libodb-boost-2.4.0.tar.gz"
|
3 |
+
FILENAME "libodb-boost-2.4.0.tar.gz"
|
4 |
+
SHA512 af716b0385cf4ea18b20dcd5880c69c43cfc195eec4ff196a8e438833306489c39ab06a494e5d60cd08ba0d94caa05bd07e5f3fa836d835bad15c8a2ad7de306
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
)
|
11 |
+
file(REMOVE "${SOURCE_PATH}/version")
|
12 |
+
|
13 |
+
file(COPY
|
14 |
+
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
15 |
+
${CMAKE_CURRENT_LIST_DIR}/config.unix.h.in
|
16 |
+
DESTINATION ${SOURCE_PATH})
|
17 |
+
|
18 |
+
vcpkg_configure_cmake(
|
19 |
+
SOURCE_PATH ${SOURCE_PATH}
|
20 |
+
PREFER_NINJA
|
21 |
+
OPTIONS_DEBUG
|
22 |
+
-DLIBODB_INSTALL_HEADERS=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_install_cmake()
|
26 |
+
vcpkg_copy_pdbs()
|
27 |
+
|
28 |
+
file(READ ${CURRENT_PACKAGES_DIR}/debug/share/odb/odb_boostConfig-debug.cmake LIBODB_DEBUG_TARGETS)
|
29 |
+
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" LIBODB_DEBUG_TARGETS "${LIBODB_DEBUG_TARGETS}")
|
30 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/odb/odb_boostConfig-debug.cmake "${LIBODB_DEBUG_TARGETS}")
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
33 |
+
|
34 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-boost/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libodb-boost",
|
3 |
+
"version-string": "2.4.0",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Description: Boost support for the ODB ORM library",
|
6 |
+
"dependencies": [
|
7 |
+
"libodb"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/CMakeLists.txt
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libodb-mysql VERSION 2.4.0 LANGUAGES CXX)
|
3 |
+
find_package(odb 2.4.0 REQUIRED COMPONENTS libodb)
|
4 |
+
configure_file(config.unix.h.in
|
5 |
+
${CMAKE_CURRENT_SOURCE_DIR}/odb/mysql/details/config.h COPYONLY)
|
6 |
+
|
7 |
+
INCLUDE_DIRECTORIES(${MYSQL_INCLUDE_DIR})
|
8 |
+
set(LIBODB_INSTALL_HEADERS ON CACHE BOOL "Install the header files (a debug install)")
|
9 |
+
file(GLOB_RECURSE libodb_src
|
10 |
+
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
11 |
+
*.cxx)
|
12 |
+
add_library(libodb-mysql ${libodb_src})
|
13 |
+
target_include_directories(libodb-mysql
|
14 |
+
PUBLIC
|
15 |
+
$<INSTALL_INTERFACE:include>
|
16 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
17 |
+
|
18 |
+
)
|
19 |
+
|
20 |
+
target_link_libraries(libodb-mysql PRIVATE odb::libodb ${MYSQL_LIB})
|
21 |
+
if(BUILD_SHARED_LIBS)
|
22 |
+
target_compile_definitions(libodb-mysql PRIVATE
|
23 |
+
-DLIBODB_MYSQL_DYNAMIC_LIB
|
24 |
+
-DLIBODB_MYSQL_HAVE_UNLOCK_NOTIFY)
|
25 |
+
else()
|
26 |
+
target_compile_definitions(libodb-mysql PRIVATE
|
27 |
+
-DLIBODB_MYSQL_STATIC_LIB
|
28 |
+
-DLIBODB_MYSQL_HAVE_UNLOCK_NOTIFY)
|
29 |
+
endif()
|
30 |
+
install(TARGETS libodb-mysql EXPORT odb_mysqlConfig
|
31 |
+
COMPONENT mysql
|
32 |
+
ARCHIVE DESTINATION lib
|
33 |
+
LIBRARY DESTINATION lib
|
34 |
+
RUNTIME DESTINATION bin
|
35 |
+
)
|
36 |
+
if(LIBODB_INSTALL_HEADERS)
|
37 |
+
install(DIRECTORY odb DESTINATION include/
|
38 |
+
COMPONENT mysql
|
39 |
+
FILES_MATCHING
|
40 |
+
PATTERN "*.h"
|
41 |
+
PATTERN "*.hxx"
|
42 |
+
PATTERN "*.ixx"
|
43 |
+
PATTERN "*.txx"
|
44 |
+
)
|
45 |
+
endif()
|
46 |
+
install(EXPORT odb_mysqlConfig NAMESPACE odb:: COMPONENT mysql DESTINATION share/odb)
|
47 |
+
export(TARGETS libodb-mysql NAMESPACE odb:: FILE odb_mysqlConfig.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/adapter_mysql_8.0.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/odb/mysql/mysql-types.hxx b/odb/mysql/mysql-types.hxx
|
2 |
+
index 1254ccd..5396791 100644
|
3 |
+
--- a/odb/mysql/mysql-types.hxx
|
4 |
+
+++ b/odb/mysql/mysql-types.hxx
|
5 |
+
@@ -7,7 +7,7 @@
|
6 |
+
|
7 |
+
#include <odb/mysql/details/config.hxx>
|
8 |
+
|
9 |
+
-typedef char my_bool;
|
10 |
+
+typedef bool my_bool;
|
11 |
+
typedef struct st_mysql_bind MYSQL_BIND;
|
12 |
+
|
13 |
+
#ifdef LIBODB_MYSQL_INCLUDE_SHORT
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/config.unix.h.in
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* odb/mysql/details/config.h. Generated from config.h.in by configure. */
|
2 |
+
/* file : odb/mysql/details/config.h.in
|
3 |
+
* copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
|
4 |
+
* license : GNU GPL v2; see accompanying LICENSE file
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* This file is automatically processed by configure. */
|
8 |
+
|
9 |
+
#ifndef ODB_MYSQL_DETAILS_CONFIG_H
|
10 |
+
#define ODB_MYSQL_DETAILS_CONFIG_H
|
11 |
+
|
12 |
+
/* #undef LIBODB_MYSQL_STATIC_LIB */
|
13 |
+
|
14 |
+
/* #undef LIBODB_MYSQL_INCLUDE_SHORT */
|
15 |
+
#define LIBODB_MYSQL_INCLUDE_LONG 1
|
16 |
+
|
17 |
+
/* #undef LIBODB_MYSQL_THR_KEY_VISIBLE */
|
18 |
+
|
19 |
+
#endif /* ODB_MYSQL_DETAILS_CONFIG_H */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/fix-redefinttion.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/odb/mysql/mysql-types.hxx b/odb/mysql/mysql-types.hxx
|
2 |
+
index 5396791..32a2a03 100644
|
3 |
+
--- a/odb/mysql/mysql-types.hxx
|
4 |
+
+++ b/odb/mysql/mysql-types.hxx
|
5 |
+
@@ -7,13 +7,24 @@
|
6 |
+
|
7 |
+
#include <odb/mysql/details/config.hxx>
|
8 |
+
|
9 |
+
+#include <odb/mysql/version.hxx>
|
10 |
+
+
|
11 |
+
typedef bool my_bool;
|
12 |
+
+
|
13 |
+
+#if !defined(LIBODB_MYSQL_MARIADB) && MYSQL_VERSION_ID >= 80011
|
14 |
+
+struct MYSQL_BIND;
|
15 |
+
+#else
|
16 |
+
typedef struct st_mysql_bind MYSQL_BIND;
|
17 |
+
+#endif
|
18 |
+
|
19 |
+
-#ifdef LIBODB_MYSQL_INCLUDE_SHORT
|
20 |
+
-# include <mysql_time.h>
|
21 |
+
+#ifdef LIBODB_MYSQL_MARIADB
|
22 |
+
+# include <mysql/mysql.h>
|
23 |
+
#else
|
24 |
+
-# include <mysql/mysql_time.h>
|
25 |
+
+# ifdef LIBODB_MYSQL_INCLUDE_SHORT
|
26 |
+
+# include <mysql_time.h>
|
27 |
+
+# else
|
28 |
+
+# include <mysql/mysql_time.h>
|
29 |
+
+# endif
|
30 |
+
#endif
|
31 |
+
|
32 |
+
#endif // ODB_MYSQL_MYSQL_TYPES_HXX
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://www.codesynthesis.com/download/odb/2.4/libodb-mysql-2.4.0.tar.gz"
|
3 |
+
FILENAME "libodb-mysql-2.4.0.tar.gz"
|
4 |
+
SHA512 c27b73c3f61dccdd149c11c122185f645a00d5bc346b366ee65b738f8719c39d03fad07a0d55b62b3db9e3ad2507679c24ddda331e5d110f367ad32f7cf8b910
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
ARCHIVE ${ARCHIVE}
|
9 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
10 |
+
PATCHES
|
11 |
+
adapter_mysql_8.0.patch
|
12 |
+
fix-redefinttion.patch
|
13 |
+
)
|
14 |
+
file(REMOVE "${SOURCE_PATH}/version")
|
15 |
+
|
16 |
+
file(COPY
|
17 |
+
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
18 |
+
${CMAKE_CURRENT_LIST_DIR}/config.unix.h.in
|
19 |
+
DESTINATION ${SOURCE_PATH})
|
20 |
+
|
21 |
+
set(MYSQL_INCLUDE_DIR "${CURRENT_INSTALLED_DIR}/include/mysql")
|
22 |
+
find_library(MYSQL_LIB NAMES libmysql mysqlclient PATH_SUFFIXES lib PATHS "${CURRENT_INSTALLED_DIR}" NO_DEFAULT_PATH REQUIRED)
|
23 |
+
find_library(MYSQL_LIB_DEBUG NAMES libmysql mysqlclient PATH_SUFFIXES lib PATHS "${CURRENT_INSTALLED_DIR}/debug" NO_DEFAULT_PATH REQUIRED)
|
24 |
+
|
25 |
+
vcpkg_configure_cmake(
|
26 |
+
SOURCE_PATH ${SOURCE_PATH}
|
27 |
+
DISABLE_PARALLEL_CONFIGURE
|
28 |
+
PREFER_NINJA
|
29 |
+
OPTIONS
|
30 |
+
-DMYSQL_INCLUDE_DIR=${MYSQL_INCLUDE_DIR}
|
31 |
+
OPTIONS_RELEASE
|
32 |
+
-DMYSQL_LIB=${MYSQL_LIB}
|
33 |
+
OPTIONS_DEBUG
|
34 |
+
-DLIBODB_INSTALL_HEADERS=OFF
|
35 |
+
-DMYSQL_LIB=${MYSQL_LIB_DEBUG}
|
36 |
+
)
|
37 |
+
|
38 |
+
vcpkg_install_cmake()
|
39 |
+
|
40 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/odb TARGET_PATH share/odb)
|
41 |
+
|
42 |
+
vcpkg_copy_pdbs()
|
43 |
+
|
44 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
45 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libodb-mysql provides CMake integration:
|
2 |
+
|
3 |
+
find_package(odb CONFIG COMPONENTS libodb mysql REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE odb::libodb-mysql)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-mysql/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libodb-mysql",
|
3 |
+
"version": "2.4.0",
|
4 |
+
"port-version": 9,
|
5 |
+
"description": "MySQL support for the ODB ORM library",
|
6 |
+
"homepage": "https://www.codesynthesis.com/products/odb/",
|
7 |
+
"dependencies": [
|
8 |
+
"libmysql",
|
9 |
+
"libodb"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/CMakeLists.txt
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libodb-pgsql VERSION 2.4.0 LANGUAGES CXX)
|
3 |
+
find_package(odb 2.4.0 REQUIRED COMPONENTS libodb)
|
4 |
+
find_package(PostgreSQL REQUIRED)
|
5 |
+
configure_file(config.unix.h.in
|
6 |
+
${CMAKE_CURRENT_SOURCE_DIR}/odb/pgsql/details/config.h COPYONLY)
|
7 |
+
|
8 |
+
set(LIBODB_INSTALL_HEADERS ON CACHE BOOL "Install the header files (a debug install)")
|
9 |
+
file(GLOB_RECURSE libodb_src LIST_DIRECTORIES False
|
10 |
+
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
11 |
+
*.cxx)
|
12 |
+
list(FILTER libodb_src EXCLUDE REGEX /posix/.*)
|
13 |
+
add_library(libodb-pgsql ${libodb_src})
|
14 |
+
target_include_directories(libodb-pgsql
|
15 |
+
PUBLIC
|
16 |
+
$<INSTALL_INTERFACE:include>
|
17 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
18 |
+
|
19 |
+
)
|
20 |
+
|
21 |
+
target_link_libraries(libodb-pgsql PRIVATE odb::libodb ${PostgreSQL_LIBRARY})
|
22 |
+
if(BUILD_SHARED_LIBS)
|
23 |
+
target_compile_definitions(libodb-pgsql PRIVATE
|
24 |
+
-DLIBODB_PGSQL_DYNAMIC_LIB)
|
25 |
+
else()
|
26 |
+
target_compile_definitions(libodb-pgsql PRIVATE
|
27 |
+
-DLIBODB_PGSQL_STATIC_LIB)
|
28 |
+
endif()
|
29 |
+
install(TARGETS libodb-pgsql EXPORT odb_pgsqlConfig
|
30 |
+
COMPONENT pgsql
|
31 |
+
ARCHIVE DESTINATION lib
|
32 |
+
LIBRARY DESTINATION lib
|
33 |
+
RUNTIME DESTINATION bin
|
34 |
+
)
|
35 |
+
if(LIBODB_INSTALL_HEADERS)
|
36 |
+
install(DIRECTORY odb DESTINATION include/
|
37 |
+
COMPONENT sqlite
|
38 |
+
FILES_MATCHING
|
39 |
+
PATTERN "*.h"
|
40 |
+
PATTERN "*.hxx"
|
41 |
+
PATTERN "*.ixx"
|
42 |
+
PATTERN "*.txx"
|
43 |
+
)
|
44 |
+
endif()
|
45 |
+
install(EXPORT odb_pgsqlConfig NAMESPACE odb:: COMPONENT pgsql DESTINATION share/odb)
|
46 |
+
export(TARGETS libodb-pgsql NAMESPACE odb:: FILE odb_pgsqlConfig.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/config.unix.h.in
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* odb/pgsql/details/config.h. Generated from config.h.in by configure. */
|
2 |
+
/* file : odb/pgsql/details/config.h.in
|
3 |
+
* copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
|
4 |
+
* license : GNU GPL v2; see accompanying LICENSE file
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* This file is automatically processed by configure. */
|
8 |
+
|
9 |
+
#ifndef ODB_PGSQL_DETAILS_CONFIG_H
|
10 |
+
#define ODB_PGSQL_DETAILS_CONFIG_H
|
11 |
+
|
12 |
+
/* #undef LIBODB_PGSQL_STATIC_LIB */
|
13 |
+
|
14 |
+
#endif /* ODB_PGSQL_DETAILS_CONFIG_H */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "http://www.codesynthesis.com/download/odb/2.4/libodb-pgsql-2.4.0.tar.gz"
|
3 |
+
FILENAME "libodb-pgsql-2.4.0.tar.gz"
|
4 |
+
SHA512 535515356233b815f144c0098940174f7a530e7fa4e930c0a9ebdc255fdb8bac8cdcceac31f25be4864105323e00bfe50808efa648e7c8ffb5a944e52f514b69
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE "${ARCHIVE}"
|
10 |
+
)
|
11 |
+
file(REMOVE "${SOURCE_PATH}/version")
|
12 |
+
|
13 |
+
file(COPY
|
14 |
+
"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
15 |
+
"${CMAKE_CURRENT_LIST_DIR}/config.unix.h.in"
|
16 |
+
DESTINATION "${SOURCE_PATH}")
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
DISABLE_PARALLEL_CONFIGURE
|
21 |
+
OPTIONS_DEBUG
|
22 |
+
-DLIBODB_INSTALL_HEADERS=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME odb)
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
30 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-pgsql/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libodb-pgsql",
|
3 |
+
"version": "2.4.0",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "Description: PostgreSQL support for the ODB ORM library",
|
6 |
+
"homepage": "https://www.codesynthesis.com/products/odb/",
|
7 |
+
"dependencies": [
|
8 |
+
"libodb",
|
9 |
+
"libpq",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/CMakeLists.txt
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libodb-sqlite VERSION 2.4.0 LANGUAGES CXX)
|
3 |
+
find_package(odb 2.4.0 REQUIRED COMPONENTS libodb)
|
4 |
+
find_package(unofficial-sqlite3 CONFIG)
|
5 |
+
configure_file(config.unix.h.in odb/sqlite/details/config.h COPYONLY)
|
6 |
+
|
7 |
+
set(LIBODB_INSTALL_HEADERS ON CACHE BOOL "Install the header files (a debug install)")
|
8 |
+
file(GLOB_RECURSE libodb_src LIST_DIRECTORIES False
|
9 |
+
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
10 |
+
*.cxx)
|
11 |
+
list(FILTER libodb_src EXCLUDE REGEX /posix/.*)
|
12 |
+
add_library(libodb-sqlite ${libodb_src})
|
13 |
+
target_include_directories(libodb-sqlite
|
14 |
+
PUBLIC
|
15 |
+
$<INSTALL_INTERFACE:include>
|
16 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
17 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
18 |
+
)
|
19 |
+
|
20 |
+
target_link_libraries(libodb-sqlite PRIVATE odb::libodb unofficial::sqlite3::sqlite3)
|
21 |
+
if(BUILD_SHARED_LIBS)
|
22 |
+
target_compile_definitions(libodb-sqlite PRIVATE
|
23 |
+
-DLIBODB_SQLITE_DYNAMIC_LIB
|
24 |
+
-DLIBODB_SQLITE_HAVE_UNLOCK_NOTIFY)
|
25 |
+
else()
|
26 |
+
target_compile_definitions(libodb-sqlite PRIVATE
|
27 |
+
-DLIBODB_SQLITE_STATIC_LIB
|
28 |
+
-DLIBODB_SQLITE_HAVE_UNLOCK_NOTIFY)
|
29 |
+
endif()
|
30 |
+
install(TARGETS libodb-sqlite EXPORT odb_sqliteConfig
|
31 |
+
COMPONENT sqlite
|
32 |
+
ARCHIVE DESTINATION lib
|
33 |
+
LIBRARY DESTINATION lib
|
34 |
+
RUNTIME DESTINATION bin
|
35 |
+
)
|
36 |
+
if(LIBODB_INSTALL_HEADERS)
|
37 |
+
install(
|
38 |
+
DIRECTORY odb
|
39 |
+
DESTINATION include/
|
40 |
+
COMPONENT sqlite
|
41 |
+
FILES_MATCHING
|
42 |
+
PATTERN "*.h"
|
43 |
+
PATTERN "*.hxx"
|
44 |
+
PATTERN "*.ixx"
|
45 |
+
PATTERN "*.txx"
|
46 |
+
)
|
47 |
+
install(
|
48 |
+
FILES config.unix.h.in
|
49 |
+
DESTINATION include/odb/sqlite/detail
|
50 |
+
COMPONENT sqlite
|
51 |
+
RENAME config.h
|
52 |
+
)
|
53 |
+
endif()
|
54 |
+
install(EXPORT odb_sqliteConfig NAMESPACE odb:: COMPONENT sqlite DESTINATION share/odb)
|
55 |
+
export(TARGETS libodb-sqlite NAMESPACE odb:: FILE odb_sqliteConfig.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/config.unix.h.in
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* odb/sqlite/details/config.h. Generated from config.h.in by configure. */
|
2 |
+
/* file : odb/sqlite/details/config.h.in
|
3 |
+
* copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
|
4 |
+
* license : GNU GPL v2; see accompanying LICENSE file
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* This file is automatically processed by configure. */
|
8 |
+
|
9 |
+
#ifndef ODB_SQLITE_DETAILS_CONFIG_H
|
10 |
+
#define ODB_SQLITE_DETAILS_CONFIG_H
|
11 |
+
|
12 |
+
/* #undef LIBODB_SQLITE_STATIC_LIB */
|
13 |
+
#define LIBODB_SQLITE_HAVE_UNLOCK_NOTIFY 1
|
14 |
+
|
15 |
+
#endif /* ODB_SQLITE_DETAILS_CONFIG_H */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "http://www.codesynthesis.com/download/odb/2.4/libodb-sqlite-2.4.0.tar.gz"
|
3 |
+
FILENAME "libodb-sqlite-2.4.0.tar.gz"
|
4 |
+
SHA512 af16da7c82cf8845ca3b393fbd8957a92b05ebc925a5191f20d414ab558345850073cd9c46457d0ef0edfb12ebcb27f267b934c9c69ef598380242fe920c8577
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
)
|
11 |
+
file(REMOVE "${SOURCE_PATH}/version")
|
12 |
+
|
13 |
+
file(COPY
|
14 |
+
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
15 |
+
${CMAKE_CURRENT_LIST_DIR}/config.unix.h.in
|
16 |
+
DESTINATION ${SOURCE_PATH})
|
17 |
+
|
18 |
+
vcpkg_configure_cmake(
|
19 |
+
SOURCE_PATH ${SOURCE_PATH}
|
20 |
+
PREFER_NINJA
|
21 |
+
OPTIONS_DEBUG
|
22 |
+
-DLIBODB_INSTALL_HEADERS=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_install_cmake()
|
26 |
+
|
27 |
+
file(READ ${CURRENT_PACKAGES_DIR}/debug/share/odb/odb_sqliteConfig-debug.cmake LIBODB_DEBUG_TARGETS)
|
28 |
+
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" LIBODB_DEBUG_TARGETS "${LIBODB_DEBUG_TARGETS}")
|
29 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/odb/odb_sqliteConfig-debug.cmake "${LIBODB_DEBUG_TARGETS}")
|
30 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
31 |
+
|
32 |
+
vcpkg_copy_pdbs()
|
33 |
+
|
34 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb-sqlite/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libodb-sqlite",
|
3 |
+
"version-string": "2.4.0",
|
4 |
+
"port-version": 9,
|
5 |
+
"description": "Sqlite support for the ODB ORM library",
|
6 |
+
"homepage": "https://www.codesynthesis.com/products/odb/",
|
7 |
+
"dependencies": [
|
8 |
+
"libodb",
|
9 |
+
"sqlite3"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/CMakeLists.txt
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libodb VERSION 2.4.0 LANGUAGES CXX)
|
3 |
+
set(LIBODB_INSTALL_HEADERS ON CACHE BOOL "Install the header files (a debug install)")
|
4 |
+
configure_file(config.unix.h.in
|
5 |
+
${CMAKE_CURRENT_SOURCE_DIR}/odb/details/config.h COPYONLY)
|
6 |
+
|
7 |
+
file(GLOB_RECURSE libodb_src LIST_DIRECTORIES False
|
8 |
+
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
9 |
+
*.cxx)
|
10 |
+
if (WIN32)
|
11 |
+
list(FILTER libodb_src EXCLUDE REGEX /posix/.*)
|
12 |
+
elseif (UNIX)
|
13 |
+
list(FILTER libodb_src EXCLUDE REGEX /win32/.*)
|
14 |
+
endif()
|
15 |
+
|
16 |
+
add_library(libodb ${libodb_src})
|
17 |
+
target_include_directories(libodb
|
18 |
+
PUBLIC
|
19 |
+
$<INSTALL_INTERFACE:include>
|
20 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
21 |
+
|
22 |
+
)
|
23 |
+
if(BUILD_SHARED_LIBS)
|
24 |
+
target_compile_definitions(libodb PRIVATE
|
25 |
+
-DLIBODB_DYNAMIC_LIB)
|
26 |
+
else()
|
27 |
+
target_compile_definitions(libodb PRIVATE
|
28 |
+
-DLIBODB_STATIC_LIB)
|
29 |
+
endif()
|
30 |
+
install(TARGETS libodb EXPORT odb_libodbConfig
|
31 |
+
COMPONENT libodb
|
32 |
+
ARCHIVE DESTINATION lib
|
33 |
+
LIBRARY DESTINATION lib
|
34 |
+
RUNTIME DESTINATION bin
|
35 |
+
)
|
36 |
+
if(LIBODB_INSTALL_HEADERS)
|
37 |
+
install(DIRECTORY odb DESTINATION include/
|
38 |
+
COMPONENT libodb
|
39 |
+
FILES_MATCHING
|
40 |
+
PATTERN "*.h"
|
41 |
+
PATTERN "*.hxx"
|
42 |
+
PATTERN "*.ixx"
|
43 |
+
PATTERN "*.txx"
|
44 |
+
)
|
45 |
+
endif()
|
46 |
+
install(EXPORT odb_libodbConfig NAMESPACE odb:: COMPONENT libodb DESTINATION share/odb)
|
47 |
+
export(TARGETS libodb NAMESPACE odb:: FILE odb_libodbConfig.cmake)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/config.unix.h.in
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* odb/details/config.h. Generated from config.h.in by configure. */
|
2 |
+
/* file : odb/details/config.h.in
|
3 |
+
* copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
|
4 |
+
* license : GNU GPL v2; see accompanying LICENSE file
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* This file is automatically processed by configure. */
|
8 |
+
|
9 |
+
#ifndef ODB_DETAILS_CONFIG_H
|
10 |
+
#define ODB_DETAILS_CONFIG_H
|
11 |
+
|
12 |
+
/* #undef ODB_THREADS_NONE */
|
13 |
+
#define ODB_THREADS_POSIX 1
|
14 |
+
/* #undef ODB_THREADS_WIN32 */
|
15 |
+
#define ODB_THREADS_TLS_KEYWORD 1
|
16 |
+
/* #undef ODB_THREADS_TLS_DECLSPEC */
|
17 |
+
|
18 |
+
/* #undef LIBODB_STATIC_LIB */
|
19 |
+
|
20 |
+
#endif /* ODB_DETAILS_CONFIG_H */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/odbConfig.cmake
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(_supported_components libodb sqlite mysql pgsql)
|
2 |
+
|
3 |
+
foreach(_comp ${odb_FIND_COMPONENTS})
|
4 |
+
if(NOT ";${_supported_components};" MATCHES _comp)
|
5 |
+
set(odb_FOUND False)
|
6 |
+
set(odb_NOTFOUND_MESSAGE "Unsupported component: ${_comp}")
|
7 |
+
endif()
|
8 |
+
include("${CMAKE_CURRENT_LIST_DIR}/odb_${_comp}Config.cmake")
|
9 |
+
endforeach()
|
10 |
+
set(odb_FOUND True)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/portfile.cmake
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(CMakePackageConfigHelpers)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "http://www.codesynthesis.com/download/odb/2.4/libodb-2.4.0.tar.gz"
|
5 |
+
FILENAME "libodb-2.4.0.tar.gz"
|
6 |
+
SHA512 f1311458634695eb6ba307ebfd492e3b260e7beb06db1c5c46df58c339756be4006322cdc4e42d055bf5b2ad14ce4656ddcafcc4e16c282034db8a77d255c3eb
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
)
|
13 |
+
file(REMOVE "${SOURCE_PATH}/version")
|
14 |
+
|
15 |
+
file(COPY
|
16 |
+
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
17 |
+
${CMAKE_CURRENT_LIST_DIR}/config.unix.h.in
|
18 |
+
DESTINATION ${SOURCE_PATH})
|
19 |
+
|
20 |
+
vcpkg_configure_cmake(
|
21 |
+
SOURCE_PATH ${SOURCE_PATH}
|
22 |
+
PREFER_NINJA
|
23 |
+
DISABLE_PARALLEL_CONFIGURE
|
24 |
+
OPTIONS_DEBUG
|
25 |
+
-DLIBODB_INSTALL_HEADERS=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_cmake()
|
29 |
+
file(READ ${CURRENT_PACKAGES_DIR}/debug/share/odb/odb_libodbConfig-debug.cmake LIBODB_DEBUG_TARGETS)
|
30 |
+
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" LIBODB_DEBUG_TARGETS "${LIBODB_DEBUG_TARGETS}")
|
31 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/odb/odb_libodbConfig-debug.cmake "${LIBODB_DEBUG_TARGETS}")
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
33 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/odbConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/odb)
|
34 |
+
write_basic_package_version_file(${CURRENT_PACKAGES_DIR}/share/odb/odbConfigVersion.cmake
|
35 |
+
VERSION 2.4.0
|
36 |
+
COMPATIBILITY SameMajorVersion
|
37 |
+
)
|
38 |
+
|
39 |
+
set(LIBODB_HEADER_PATH ${CURRENT_PACKAGES_DIR}/include/odb/details/export.hxx)
|
40 |
+
file(READ ${LIBODB_HEADER_PATH} LIBODB_HEADER)
|
41 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
42 |
+
string(REPLACE "#ifdef LIBODB_STATIC_LIB" "#if 1" LIBODB_HEADER ${LIBODB_HEADER})
|
43 |
+
else()
|
44 |
+
string(REPLACE "#ifdef LIBODB_STATIC_LIB" "#if 0" LIBODB_HEADER ${LIBODB_HEADER})
|
45 |
+
endif()
|
46 |
+
file(WRITE ${LIBODB_HEADER_PATH} "${LIBODB_HEADER}")
|
47 |
+
|
48 |
+
vcpkg_copy_pdbs()
|
49 |
+
|
50 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libodb/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libodb",
|
3 |
+
"version": "2.4.0",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "ODB library, base runtime for the ODB ORM solution",
|
6 |
+
"homepage": "https://www.codesynthesis.com/products/odb/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libogg/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.xiph.org
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO xiph/ogg
|
5 |
+
REF v1.3.5
|
6 |
+
SHA512 72bfad534a459bfca534eae9b209fa630ac20364a82e82f2707b210a40deaf9a7dc9031532a8b27120a9dd66f804655ddce79875758ef14b109bf869e57fb747
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
if(VCPKG_TARGET_IS_MINGW)
|
11 |
+
vcpkg_replace_string(${SOURCE_PATH}/win32/ogg.def "LIBRARY ogg" "LIBRARY libogg")
|
12 |
+
endif()
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA
|
17 |
+
OPTIONS -DINSTALL_DOCS=0 -DINSTALL_PKG_CONFIG_MODULE=1
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
|
22 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Ogg TARGET_PATH share/ogg)
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
25 |
+
|
26 |
+
vcpkg_copy_pdbs()
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
|
29 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
30 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libogg/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libogg",
|
3 |
+
"version": "1.3.5",
|
4 |
+
"description": "Ogg is a multimedia container format, and the native file and stream format for the Xiph.org multimedia codecs.",
|
5 |
+
"homepage": "https://www.xiph.org/ogg"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopenmpt/CMakeLists.txt
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(libopenmpt)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(
|
6 |
+
/W3 /wd4005 /wd4267 /wd4244 /wd4996 /wd4100 /wd4018
|
7 |
+
-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
|
8 |
+
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
|
9 |
+
)
|
10 |
+
endif()
|
11 |
+
|
12 |
+
find_package(ZLIB REQUIRED)
|
13 |
+
find_package(mpg123 CONFIG REQUIRED)
|
14 |
+
find_package(Vorbis REQUIRED)
|
15 |
+
|
16 |
+
file(GLOB HEADERS libopenmpt/*.h libopenmpt/*.hpp)
|
17 |
+
list(FILTER HEADERS EXCLUDE REGEX "_impl\\.hpp$|_internal\\.h$")
|
18 |
+
|
19 |
+
include_directories(
|
20 |
+
.
|
21 |
+
build/svn_version
|
22 |
+
libopenmpt
|
23 |
+
common
|
24 |
+
soundbase
|
25 |
+
sounddsp
|
26 |
+
soundlib
|
27 |
+
openmpt123
|
28 |
+
)
|
29 |
+
|
30 |
+
file(GLOB_RECURSE SOURCES
|
31 |
+
common/*.cpp
|
32 |
+
soundbase/*.cpp
|
33 |
+
sounddsp/*.cpp
|
34 |
+
# Because this is a GLOB_RECURSE, soundlib/plugins/*.cpp will be included
|
35 |
+
soundlib/*.cpp
|
36 |
+
libopenmpt/libopenmpt_c.cpp
|
37 |
+
libopenmpt/libopenmpt_cxx.cpp
|
38 |
+
libopenmpt/libopenmpt_ext_impl.cpp
|
39 |
+
libopenmpt/libopenmpt_impl.cpp
|
40 |
+
)
|
41 |
+
|
42 |
+
set(CMAKE_CXX_STANDARD 17)
|
43 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
44 |
+
|
45 |
+
add_library(libopenmpt ${SOURCES})
|
46 |
+
|
47 |
+
target_compile_definitions(libopenmpt PRIVATE
|
48 |
+
-DMPT_WITH_MPG123 -DMPT_WITH_OGG
|
49 |
+
-DMPT_WITH_VORBIS -DMPT_WITH_VORBISFILE
|
50 |
+
-DMPT_WITH_ZLIB -DMPT_BUILD_VCPKG
|
51 |
+
-DLIBOPENMPT_BUILD
|
52 |
+
)
|
53 |
+
|
54 |
+
if(BUILD_SHARED_LIBS)
|
55 |
+
target_compile_definitions(
|
56 |
+
libopenmpt
|
57 |
+
PRIVATE -DLIBOPENMPT_BUILD_DLL
|
58 |
+
)
|
59 |
+
endif()
|
60 |
+
|
61 |
+
target_include_directories(
|
62 |
+
libopenmpt
|
63 |
+
PUBLIC
|
64 |
+
$<INSTALL_INTERFACE:include>
|
65 |
+
)
|
66 |
+
|
67 |
+
target_link_libraries(
|
68 |
+
libopenmpt
|
69 |
+
PRIVATE
|
70 |
+
MPG123::libmpg123
|
71 |
+
Vorbis::vorbisfile
|
72 |
+
Vorbis::vorbis
|
73 |
+
ZLIB::ZLIB
|
74 |
+
)
|
75 |
+
|
76 |
+
set(LIBOPENMPT_REQUIRES_PRIVATE "zlib vorbis vorbisfile libmpg123")
|
77 |
+
set(LIBOPENMPT_LIBS_PRIVATE "")
|
78 |
+
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
79 |
+
set(exec_prefix [[${prefix}]])
|
80 |
+
set(includedir [[${prefix}/include]])
|
81 |
+
set(libdir [[${prefix}/lib]])
|
82 |
+
configure_file(libopenmpt/libopenmpt.pc.in libopenmpt.pc)
|
83 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenmpt.pc DESTINATION lib/pkgconfig)
|
84 |
+
|
85 |
+
install(TARGETS libopenmpt EXPORT libopenmpt-targets)
|
86 |
+
install(EXPORT libopenmpt-targets DESTINATION share/libopenmpt NAMESPACE libopenmpt::)
|
87 |
+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/libopenmpt-config.cmake [[
|
88 |
+
include(CMakeFindDependencyMacro)
|
89 |
+
find_dependency(ZLIB)
|
90 |
+
find_dependency(mpg123 CONFIG)
|
91 |
+
find_dependency(Vorbis)
|
92 |
+
include(${CMAKE_CURRENT_LIST_DIR}/libopenmpt-targets.cmake)
|
93 |
+
]])
|
94 |
+
install(FILES ${HEADERS} DESTINATION include/libopenmpt)
|
95 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenmpt-config.cmake DESTINATION share/libopenmpt)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopenmpt/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO OpenMPT/openmpt
|
4 |
+
REF 7da598b28acdb8ee8ea0ed93bcb57d680424f5cc # libopenmpt-0.5.12
|
5 |
+
SHA512 0f5441518dbbbbae194c724c47238a3cad876d8eb81e6a89fed3801724a6ae023d6d8806f792dc2f44082f3849cd4e1130081db3668f9974170171227f70e879
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(READ ${CMAKE_CURRENT_LIST_DIR}/vcpkg.json vcpkg_json)
|
10 |
+
string(JSON version GET "${vcpkg_json}" "version")
|
11 |
+
|
12 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
OPTIONS
|
17 |
+
-DVERSION=${version}
|
18 |
+
)
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_cmake_config_fixup()
|
21 |
+
vcpkg_fixup_pkgconfig()
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
25 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "0")
|
26 |
+
else()
|
27 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "1")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
31 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopenmpt/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libopenmpt",
|
3 |
+
"version": "0.5.12",
|
4 |
+
"description": "a library to render tracker music",
|
5 |
+
"homepage": "https://openmpt.org/",
|
6 |
+
"dependencies": [
|
7 |
+
"libogg",
|
8 |
+
"libvorbis",
|
9 |
+
"mpg123",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
"zlib"
|
19 |
+
]
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/opensp_1.5.2-13.diff
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- opensp-1.5.2.orig/sx/XmlOutputEventHandler.cxx
|
2 |
+
+++ opensp-1.5.2/sx/XmlOutputEventHandler.cxx
|
3 |
+
@@ -1199,12 +1199,22 @@
|
4 |
+
// Check to make sure we haven't passed outside of the
|
5 |
+
// output directory
|
6 |
+
char *dirs = strdup (filePath);
|
7 |
+
+#ifdef MAXPATHLEN
|
8 |
+
char realDirs[MAXPATHLEN];
|
9 |
+
char realOutputDir[MAXPATHLEN];
|
10 |
+
+#else
|
11 |
+
+ char *realDirs;
|
12 |
+
+ char *realOutputDir;
|
13 |
+
+#endif
|
14 |
+
char *outputDir = strdup(outputDir_);
|
15 |
+
|
16 |
+
+#ifdef MAXPATHLEN
|
17 |
+
realpath((const char *)dirname(dirs), realDirs);
|
18 |
+
realpath((const char *)dirname(outputDir), realOutputDir);
|
19 |
+
+#else
|
20 |
+
+ realDirs = realpath((const char *)dirname(dirs), NULL);
|
21 |
+
+ realOutputDir = realpath((const char *)dirname(outputDir), NULL);
|
22 |
+
+#endif
|
23 |
+
|
24 |
+
if (strncmp(realDirs, realOutputDir, strlen (realOutputDir)) != 0) {
|
25 |
+
app_->message(XmlOutputMessages::pathOutsideOutputDirectory,
|
26 |
+
@@ -1214,6 +1224,11 @@
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
+#ifndef MAXPATHLEN
|
31 |
+
+ free(realDirs);
|
32 |
+
+ free(realOutputDir);
|
33 |
+
+#endif
|
34 |
+
+
|
35 |
+
// Make the necessary directories
|
36 |
+
maybeCreateDirectories(dirname(dirs));
|
37 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/portfile.cmake
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(OPENSP_VERSION 1.5.2)
|
2 |
+
|
3 |
+
set(PATCHES opensp_1.5.2-13.diff) # http://deb.debian.org/debian/pool/main/o/opensp/opensp_1.5.2-13.diff.gz
|
4 |
+
if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
|
5 |
+
list(APPEND PATCHES windows_cmake_build.diff) # https://invent.kde.org/packaging/craft-blueprints-kde/-/tree/master/libs/libopensp
|
6 |
+
endif()
|
7 |
+
if (VCPKG_TARGET_IS_UWP)
|
8 |
+
list(APPEND PATCHES uwp_getenv_fix.diff)
|
9 |
+
endif()
|
10 |
+
|
11 |
+
vcpkg_download_distfile(ARCHIVE
|
12 |
+
URLS "https://downloads.sourceforge.net/project/openjade/opensp/${OPENSP_VERSION}/OpenSP-${OPENSP_VERSION}.tar.gz"
|
13 |
+
FILENAME "OpenSP-${OPENSP_VERSION}.tar.gz"
|
14 |
+
SHA512 a7dcc246ba7f58969ecd6d107c7b82dede811e65f375b7aa3e683621f2c6ff3e7dccefdd79098fcadad6cca8bb94c2933c63f4701be2c002f9a56f1bbe6b047e
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_extract_source_archive_ex(
|
18 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
19 |
+
ARCHIVE "${ARCHIVE}"
|
20 |
+
REF ${OPENSP_VERSION}
|
21 |
+
PATCHES ${PATCHES}
|
22 |
+
)
|
23 |
+
|
24 |
+
if (VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
|
25 |
+
vcpkg_cmake_configure(
|
26 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
else()
|
31 |
+
set(EXTRA_OPTS "")
|
32 |
+
if(VCPKG_TARGET_IS_OSX)
|
33 |
+
list(APPEND EXTRA_OPTS "LDFLAGS=-framework CoreFoundation \$LDFLAGS") # libintl links to it
|
34 |
+
endif()
|
35 |
+
|
36 |
+
vcpkg_configure_make(
|
37 |
+
AUTOCONFIG
|
38 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
39 |
+
OPTIONS
|
40 |
+
--disable-doc-build
|
41 |
+
${EXTRA_OPTS}
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_install_make()
|
45 |
+
endif()
|
46 |
+
|
47 |
+
vcpkg_fixup_pkgconfig()
|
48 |
+
vcpkg_copy_pdbs()
|
49 |
+
|
50 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
51 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
52 |
+
endif()
|
53 |
+
|
54 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
55 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
56 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/uwp_getenv_fix.diff
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/config.h b/config.h
|
2 |
+
index 6a2b097..7db8a93 100644
|
3 |
+
--- a/config.h
|
4 |
+
+++ b/config.h
|
5 |
+
@@ -64,6 +64,8 @@
|
6 |
+
#pragma warning ( disable : 4251 ) // __declspec(dllexport)
|
7 |
+
#pragma warning ( disable : 4275 )
|
8 |
+
#pragma warning ( disable : 4237 ) // future reserved keyword
|
9 |
+
+#pragma warning ( disable : 4996 ) // 'getenv': This function or variable may be unsafe (on UWP)
|
10 |
+
+#pragma warning ( disable : 4703 ) // potentially uninitialized local pointer variable 'declaredValue'
|
11 |
+
#define huge verybig
|
12 |
+
#if _MSC_VER == 900
|
13 |
+
#define SP_DECLARE_PLACEMENT_OPERATOR_NEW
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libopensp",
|
3 |
+
"version": "1.5.2",
|
4 |
+
"description": "SGML parser algorithm",
|
5 |
+
"homepage": "http://openjade.sourceforge.net",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "gettext",
|
9 |
+
"platform": "!(windows | uwp)"
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true,
|
14 |
+
"platform": "windows"
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true,
|
19 |
+
"platform": "windows"
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopensp/windows_cmake_build.diff
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -Nru -x '*~' OpenSP-1.5.2.orig/CMakeLists.txt OpenSP-1.5.2/CMakeLists.txt
|
2 |
+
--- OpenSP-1.5.2.orig/CMakeLists.txt 1970-01-01 02:00:00.000000000 +0200
|
3 |
+
+++ OpenSP-1.5.2/CMakeLists.txt 2014-08-24 17:23:19.941495700 +0300
|
4 |
+
@@ -0,0 +1,24 @@
|
5 |
+
+project(opensp)
|
6 |
+
+
|
7 |
+
+set (VERSION_MAJOR 1)
|
8 |
+
+set (VERSION_MINOR 5)
|
9 |
+
+set (VERSION_PATH 2)
|
10 |
+
+
|
11 |
+
+cmake_minimum_required(VERSION 2.6)
|
12 |
+
+
|
13 |
+
+include_directories(
|
14 |
+
+ .
|
15 |
+
+ include
|
16 |
+
+ generic
|
17 |
+
+)
|
18 |
+
+
|
19 |
+
+file(GLOB SRC_SOURCES lib/*.cxx)
|
20 |
+
+file(GLOB libopensp_HEADERS config.h generic/*.h include/*.h)
|
21 |
+
+
|
22 |
+
+add_library(opensp ${SRC_SOURCES})
|
23 |
+
+set_target_properties(opensp PROPERTIES OUTPUT_NAME "osp")
|
24 |
+
+target_link_libraries(opensp)
|
25 |
+
+
|
26 |
+
+install(TARGETS opensp RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
|
27 |
+
+install(FILES ${libopensp_HEADERS} DESTINATION include/opensp)
|
28 |
+
+
|
29 |
+
diff -Nru -x '*~' OpenSP-1.5.2.orig/config.h OpenSP-1.5.2/config.h
|
30 |
+
--- OpenSP-1.5.2.orig/config.h 2005-12-23 16:16:30.000000000 +0200
|
31 |
+
+++ OpenSP-1.5.2/config.h 2014-08-24 17:26:33.724698900 +0300
|
32 |
+
@@ -26,6 +26,12 @@
|
33 |
+
#endif
|
34 |
+
#endif /* __GNUG__ */
|
35 |
+
|
36 |
+
+#ifdef __MINGW32__
|
37 |
+
+#define SP_HAVE_BOOL
|
38 |
+
+#define SP_HAVE_TYPENAME
|
39 |
+
+#define SP_DEFINE_TEMPLATES
|
40 |
+
+#endif /* __MINGW32__ */
|
41 |
+
+
|
42 |
+
#if defined(sun) || defined(__sun)
|
43 |
+
// struct stat has st_blksize member
|
44 |
+
#define SP_STAT_BLKSIZE
|
45 |
+
@@ -80,6 +86,11 @@
|
46 |
+
#define SP_HAVE_TYPENAME
|
47 |
+
#endif
|
48 |
+
|
49 |
+
+#if _MSC_VER >=1800
|
50 |
+
+// Visual Studio 2013
|
51 |
+
+#define SP_ANSI_FOR_SCOPE
|
52 |
+
+#endif
|
53 |
+
+
|
54 |
+
#define SP_HAVE_SETMODE
|
55 |
+
#define SP_DLLEXPORT __declspec(dllexport)
|
56 |
+
#define SP_DLLIMPORT __declspec(dllimport)
|
57 |
+
@@ -301,15 +312,8 @@
|
58 |
+
#define PATH_SEPARATOR ':'
|
59 |
+
#endif
|
60 |
+
|
61 |
+
-
|
62 |
+
-/* new stuff */
|
63 |
+
-
|
64 |
+
-#ifndef HAVE_MUTABLE
|
65 |
+
-#define mutable
|
66 |
+
-#endif
|
67 |
+
-
|
68 |
+
// NOTE: This is processed as a Makefile, not as a header by autoconf.
|
69 |
+
-#define SP_PACKAGE "OpenSP"
|
70 |
+
-#define SP_VERSION "1.5.2"
|
71 |
+
+#define SP_PACKAGE "@PACKAGE@"
|
72 |
+
+#define SP_VERSION "@VERSION@"
|
73 |
+
|
74 |
+
#endif /* not config_INCLUDED */
|
75 |
+
diff -Nru -x '*~' OpenSP-1.5.2.orig/generic/SGMLApplication.h OpenSP-1.5.2/generic/SGMLApplication.h
|
76 |
+
--- OpenSP-1.5.2.orig/generic/SGMLApplication.h 2005-05-14 12:17:41.000000000 +0300
|
77 |
+
+++ OpenSP-1.5.2/generic/SGMLApplication.h 2014-08-24 17:23:19.957120700 +0300
|
78 |
+
@@ -269,6 +269,7 @@
|
79 |
+
unsigned count_;
|
80 |
+
friend class OpenEntityPtr;
|
81 |
+
};
|
82 |
+
+ SGMLApplication();
|
83 |
+
virtual ~SGMLApplication();
|
84 |
+
virtual void appinfo(const AppinfoEvent &);
|
85 |
+
virtual void startDtd(const StartDtdEvent &);
|
86 |
+
diff -Nru -x '*~' OpenSP-1.5.2.orig/include/OutputCharStream.h OpenSP-1.5.2/include/OutputCharStream.h
|
87 |
+
--- OpenSP-1.5.2.orig/include/OutputCharStream.h 2005-07-21 17:04:39.000000000 +0300
|
88 |
+
+++ OpenSP-1.5.2/include/OutputCharStream.h 2014-08-24 17:23:19.957120700 +0300
|
89 |
+
@@ -31,6 +31,7 @@
|
90 |
+
OutputCharStream &operator<<(const char *);
|
91 |
+
OutputCharStream &operator<<(const StringC &);
|
92 |
+
OutputCharStream &operator<<(unsigned long);
|
93 |
+
+ OutputCharStream &operator<<(unsigned long long);
|
94 |
+
OutputCharStream &operator<<(int);
|
95 |
+
OutputCharStream &operator<<(Newline);
|
96 |
+
private:
|
97 |
+
diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/MessageReporter.cxx OpenSP-1.5.2/lib/MessageReporter.cxx
|
98 |
+
--- OpenSP-1.5.2.orig/lib/MessageReporter.cxx 2005-07-21 17:05:17.000000000 +0300
|
99 |
+
+++ OpenSP-1.5.2/lib/MessageReporter.cxx 2014-08-24 17:23:19.957120700 +0300
|
100 |
+
@@ -123,7 +123,11 @@
|
101 |
+
os() << ':';
|
102 |
+
}
|
103 |
+
if (options_ & messageNumbers)
|
104 |
+
+#ifdef _WIN64
|
105 |
+
+ os() << (unsigned long long)message.type->module() << "."
|
106 |
+
+#else
|
107 |
+
os() << (unsigned long)message.type->module() << "."
|
108 |
+
+#endif
|
109 |
+
<< (unsigned long)message.type->number() << ":";
|
110 |
+
switch (message.type->severity()) {
|
111 |
+
case MessageType::info:
|
112 |
+
diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/OutputCharStream.cxx OpenSP-1.5.2/lib/OutputCharStream.cxx
|
113 |
+
--- OpenSP-1.5.2.orig/lib/OutputCharStream.cxx 2005-07-21 17:05:17.000000000 +0300
|
114 |
+
+++ OpenSP-1.5.2/lib/OutputCharStream.cxx 2014-08-24 17:23:19.957120700 +0300
|
115 |
+
@@ -61,6 +61,13 @@
|
116 |
+
return *this << buf;
|
117 |
+
}
|
118 |
+
|
119 |
+
+OutputCharStream &OutputCharStream::operator<<(unsigned long long n)
|
120 |
+
+{
|
121 |
+
+ char buf[sizeof(unsigned long long)*3 + 1];
|
122 |
+
+ sprintf(buf, "%I64u", n);
|
123 |
+
+ return *this << buf;
|
124 |
+
+}
|
125 |
+
+
|
126 |
+
OutputCharStream &OutputCharStream::operator<<(int n)
|
127 |
+
{
|
128 |
+
char buf[sizeof(int)*3 + 2];
|
129 |
+
diff -Nru -x '*~' OpenSP-1.5.2.orig/lib/SGMLApplication.cxx OpenSP-1.5.2/lib/SGMLApplication.cxx
|
130 |
+
--- OpenSP-1.5.2.orig/lib/SGMLApplication.cxx 2005-07-21 17:05:18.000000000 +0300
|
131 |
+
+++ OpenSP-1.5.2/lib/SGMLApplication.cxx 2014-08-24 17:23:19.972745700 +0300
|
132 |
+
@@ -9,6 +9,10 @@
|
133 |
+
#include "Boolean.h"
|
134 |
+
#include "SGMLApplication.h"
|
135 |
+
|
136 |
+
+SGMLApplication::SGMLApplication()
|
137 |
+
+{
|
138 |
+
+}
|
139 |
+
+
|
140 |
+
SGMLApplication::~SGMLApplication()
|
141 |
+
{
|
142 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopusenc/CMakeLists.txt
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.4)
|
2 |
+
project(libopusenc C)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4244 /wd4996 /wd4101 /wd4018")
|
6 |
+
endif()
|
7 |
+
|
8 |
+
find_path(OPUS_INCLUDE_DIR opus.h PATH_SUFFIXES opus)
|
9 |
+
find_library(OPUS_LIBRARY opus)
|
10 |
+
|
11 |
+
add_library(opusenc
|
12 |
+
src/ogg_packer.c
|
13 |
+
src/opus_header.c
|
14 |
+
src/opusenc.c
|
15 |
+
src/picture.c
|
16 |
+
src/resample.c
|
17 |
+
src/unicode_support.c)
|
18 |
+
|
19 |
+
get_filename_component(FOLDER ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
20 |
+
string(REPLACE "libopusenc-" "" VERSION ${FOLDER})
|
21 |
+
|
22 |
+
target_compile_definitions(opusenc PRIVATE
|
23 |
+
RANDOM_PREFIX=libopusenc
|
24 |
+
OUTSIDE_SPEEX
|
25 |
+
FLOATING_POINT
|
26 |
+
PACKAGE_VERSION="${VERSION}"
|
27 |
+
PACKAGE_NAME="libopusenc"
|
28 |
+
OPE_BUILD)
|
29 |
+
set_target_properties(opusenc PROPERTIES DEFINE_SYMBOL DLL_EXPORT)
|
30 |
+
target_include_directories(opusenc PRIVATE include ${OPUS_INCLUDE_DIR})
|
31 |
+
target_link_libraries(opusenc PRIVATE ${OPUS_LIBRARY})
|
32 |
+
|
33 |
+
install(TARGETS opusenc
|
34 |
+
RUNTIME DESTINATION bin
|
35 |
+
LIBRARY DESTINATION lib
|
36 |
+
ARCHIVE DESTINATION lib)
|
37 |
+
|
38 |
+
if(NOT OPUSENC_SKIP_HEADERS)
|
39 |
+
install(FILES include/opusenc.h
|
40 |
+
DESTINATION include/opus)
|
41 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopusenc/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
|
2 |
+
message(FATAL_ERROR "UWP builds not supported")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO xiph/libopusenc
|
8 |
+
REF v0.2.1
|
9 |
+
SHA512 9681421a967b93770796dd3503c00e1418de86438d2bfe77011dc68f6db5d666508d33c0df7308db3b7ea18f5e1b14a3115fd63837987e16347ec801c3771d26
|
10 |
+
HEAD_REF master)
|
11 |
+
|
12 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS_DEBUG
|
17 |
+
-DOPUSENC_SKIP_HEADERS=ON)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
# make includes work with MSBuild integration
|
23 |
+
file(READ ${CURRENT_PACKAGES_DIR}/include/opus/opusenc.h OPUSENC_H)
|
24 |
+
string(REPLACE "#include <opus.h>" "#include \"opus.h\"" OPUSENC_H "${OPUSENC_H}")
|
25 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/include/opus/opusenc.h "${OPUSENC_H}")
|
26 |
+
|
27 |
+
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libopusenc)
|
28 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libopusenc/COPYING ${CURRENT_PACKAGES_DIR}/share/libopusenc/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libopusenc/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libopusenc",
|
3 |
+
"version-string": "0.2.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Library for encoding .opus audio files and live streams.",
|
6 |
+
"homepage": "https://github.com/xiph/libopusenc",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"opus"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosip2/fix-path-in-project.patch
ADDED
@@ -0,0 +1,304 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/platform/vsnet/osip2.vcxproj b/platform/vsnet/osip2.vcxproj
|
2 |
+
index b13cbe9..40b8e23 100644
|
3 |
+
--- a/platform/vsnet/osip2.vcxproj
|
4 |
+
+++ b/platform/vsnet/osip2.vcxproj
|
5 |
+
@@ -79,7 +79,7 @@
|
6 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
7 |
+
<ClCompile>
|
8 |
+
<Optimization>Disabled</Optimization>
|
9 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
10 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
11 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
12 |
+
<MinimalRebuild>true</MinimalRebuild>
|
13 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
14 |
+
@@ -97,7 +97,7 @@
|
15 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
16 |
+
<ClCompile>
|
17 |
+
<Optimization>Disabled</Optimization>
|
18 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
19 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
20 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
21 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
22 |
+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
23 |
+
@@ -113,7 +113,7 @@
|
24 |
+
</ItemDefinitionGroup>
|
25 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
26 |
+
<ClCompile>
|
27 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
28 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
29 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
30 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
31 |
+
<PrecompiledHeader>
|
32 |
+
@@ -129,7 +129,7 @@
|
33 |
+
</ItemDefinitionGroup>
|
34 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
35 |
+
<ClCompile>
|
36 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
37 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
38 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
39 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
40 |
+
<PrecompiledHeader>
|
41 |
+
@@ -144,37 +144,37 @@
|
42 |
+
</Lib>
|
43 |
+
</ItemDefinitionGroup>
|
44 |
+
<ItemGroup>
|
45 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\fsm_misc.c" />
|
46 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\ict.c" />
|
47 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\ict_fsm.c" />
|
48 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\ist.c" />
|
49 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\ist_fsm.c" />
|
50 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\nict.c" />
|
51 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\nict_fsm.c" />
|
52 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\nist.c" />
|
53 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\nist_fsm.c" />
|
54 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\osip.c" />
|
55 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\osip_dialog.c" />
|
56 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\osip_event.c" />
|
57 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\osip_time.c" />
|
58 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\osip_transaction.c" />
|
59 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\port_condv.c" />
|
60 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\port_fifo.c" />
|
61 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\port_sema.c" />
|
62 |
+
- <ClCompile Include="..\..\..\osip\src\osip2\port_thread.c" />
|
63 |
+
+ <ClCompile Include="..\..\src\osip2\fsm_misc.c" />
|
64 |
+
+ <ClCompile Include="..\..\src\osip2\ict.c" />
|
65 |
+
+ <ClCompile Include="..\..\src\osip2\ict_fsm.c" />
|
66 |
+
+ <ClCompile Include="..\..\src\osip2\ist.c" />
|
67 |
+
+ <ClCompile Include="..\..\src\osip2\ist_fsm.c" />
|
68 |
+
+ <ClCompile Include="..\..\src\osip2\nict.c" />
|
69 |
+
+ <ClCompile Include="..\..\src\osip2\nict_fsm.c" />
|
70 |
+
+ <ClCompile Include="..\..\src\osip2\nist.c" />
|
71 |
+
+ <ClCompile Include="..\..\src\osip2\nist_fsm.c" />
|
72 |
+
+ <ClCompile Include="..\..\src\osip2\osip.c" />
|
73 |
+
+ <ClCompile Include="..\..\src\osip2\osip_dialog.c" />
|
74 |
+
+ <ClCompile Include="..\..\src\osip2\osip_event.c" />
|
75 |
+
+ <ClCompile Include="..\..\src\osip2\osip_time.c" />
|
76 |
+
+ <ClCompile Include="..\..\src\osip2\osip_transaction.c" />
|
77 |
+
+ <ClCompile Include="..\..\src\osip2\port_condv.c" />
|
78 |
+
+ <ClCompile Include="..\..\src\osip2\port_fifo.c" />
|
79 |
+
+ <ClCompile Include="..\..\src\osip2\port_sema.c" />
|
80 |
+
+ <ClCompile Include="..\..\src\osip2\port_thread.c" />
|
81 |
+
</ItemGroup>
|
82 |
+
<ItemGroup>
|
83 |
+
- <ClInclude Include="..\..\..\osip\src\osip2\fsm.h" />
|
84 |
+
- <ClInclude Include="..\..\..\osip\include\osip2\internal.h" />
|
85 |
+
- <ClInclude Include="..\..\..\osip\include\osip2\osip.h" />
|
86 |
+
- <ClInclude Include="..\..\..\osip\include\osip2\osip_condv.h" />
|
87 |
+
- <ClInclude Include="..\..\..\osip\include\osip2\osip_dialog.h" />
|
88 |
+
- <ClInclude Include="..\..\..\osip\include\osip2\osip_fifo.h" />
|
89 |
+
- <ClInclude Include="..\..\..\osip\include\osip2\osip_mt.h" />
|
90 |
+
- <ClInclude Include="..\..\..\osip\src\osip2\xixt.h" />
|
91 |
+
+ <ClInclude Include="..\..\src\osip2\fsm.h" />
|
92 |
+
+ <ClInclude Include="..\..\include\osip2\internal.h" />
|
93 |
+
+ <ClInclude Include="..\..\include\osip2\osip.h" />
|
94 |
+
+ <ClInclude Include="..\..\include\osip2\osip_condv.h" />
|
95 |
+
+ <ClInclude Include="..\..\include\osip2\osip_dialog.h" />
|
96 |
+
+ <ClInclude Include="..\..\include\osip2\osip_fifo.h" />
|
97 |
+
+ <ClInclude Include="..\..\include\osip2\osip_mt.h" />
|
98 |
+
+ <ClInclude Include="..\..\src\osip2\xixt.h" />
|
99 |
+
</ItemGroup>
|
100 |
+
<ItemGroup>
|
101 |
+
- <ProjectReference Include="..\..\..\osip\platform\vsnet\osipparser2.vcxproj">
|
102 |
+
+ <ProjectReference Include="..\..\platform\vsnet\osipparser2.vcxproj">
|
103 |
+
<Project>{44f46b7e-0e51-4304-9735-330dfbab41e5}</Project>
|
104 |
+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
105 |
+
</ProjectReference>
|
106 |
+
diff --git a/platform/vsnet/osipparser2.vcxproj b/platform/vsnet/osipparser2.vcxproj
|
107 |
+
index 6c73222..bda0fe5 100644
|
108 |
+
--- a/platform/vsnet/osipparser2.vcxproj
|
109 |
+
+++ b/platform/vsnet/osipparser2.vcxproj
|
110 |
+
@@ -79,7 +79,7 @@
|
111 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
112 |
+
<ClCompile>
|
113 |
+
<Optimization>Disabled</Optimization>
|
114 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
115 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
116 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
117 |
+
<MinimalRebuild>true</MinimalRebuild>
|
118 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
119 |
+
@@ -97,7 +97,7 @@
|
120 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
121 |
+
<ClCompile>
|
122 |
+
<Optimization>Disabled</Optimization>
|
123 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
124 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
125 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
126 |
+
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
127 |
+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
128 |
+
@@ -113,7 +113,7 @@
|
129 |
+
</ItemDefinitionGroup>
|
130 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
131 |
+
<ClCompile>
|
132 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
133 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
134 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
135 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
136 |
+
<PrecompiledHeader>
|
137 |
+
@@ -129,7 +129,7 @@
|
138 |
+
</ItemDefinitionGroup>
|
139 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
140 |
+
<ClCompile>
|
141 |
+
- <AdditionalIncludeDirectories>..\..\..\osip\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
142 |
+
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
143 |
+
<PreprocessorDefinitions>ENABLE_TRACE;SYSTEM_LOGGER_ENABLED;_CRT_SECURE_NO_DEPRECATE;WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
144 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
145 |
+
<PrecompiledHeader>
|
146 |
+
@@ -144,83 +144,83 @@
|
147 |
+
</Lib>
|
148 |
+
</ItemDefinitionGroup>
|
149 |
+
<ItemGroup>
|
150 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_accept.c" />
|
151 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_accept_encoding.c" />
|
152 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_accept_language.c" />
|
153 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_alert_info.c" />
|
154 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_allow.c" />
|
155 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_authentication_info.c" />
|
156 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_authorization.c" />
|
157 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_body.c" />
|
158 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_call_id.c" />
|
159 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_call_info.c" />
|
160 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_contact.c" />
|
161 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_content_disposition.c" />
|
162 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_content_encoding.c" />
|
163 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_content_length.c" />
|
164 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_content_type.c" />
|
165 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_cseq.c" />
|
166 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_error_info.c" />
|
167 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_from.c" />
|
168 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_header.c" />
|
169 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_list.c" />
|
170 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_md5c.c" />
|
171 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_message.c" />
|
172 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_message_parse.c" />
|
173 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_message_to_str.c" />
|
174 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_mime_version.c" />
|
175 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_parser_cfg.c" />
|
176 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_port.c" />
|
177 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_proxy_authenticate.c" />
|
178 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_proxy_authentication_info.c" />
|
179 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_proxy_authorization.c" />
|
180 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_record_route.c" />
|
181 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_route.c" />
|
182 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_to.c" />
|
183 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_uri.c" />
|
184 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_via.c" />
|
185 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\osip_www_authenticate.c" />
|
186 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\sdp_accessor.c" />
|
187 |
+
- <ClCompile Include="..\..\..\osip\src\osipparser2\sdp_message.c" />
|
188 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_accept.c" />
|
189 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_accept_encoding.c" />
|
190 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_accept_language.c" />
|
191 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_alert_info.c" />
|
192 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_allow.c" />
|
193 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_authentication_info.c" />
|
194 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_authorization.c" />
|
195 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_body.c" />
|
196 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_call_id.c" />
|
197 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_call_info.c" />
|
198 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_contact.c" />
|
199 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_content_disposition.c" />
|
200 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_content_encoding.c" />
|
201 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_content_length.c" />
|
202 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_content_type.c" />
|
203 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_cseq.c" />
|
204 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_error_info.c" />
|
205 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_from.c" />
|
206 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_header.c" />
|
207 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_list.c" />
|
208 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_md5c.c" />
|
209 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_message.c" />
|
210 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_message_parse.c" />
|
211 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_message_to_str.c" />
|
212 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_mime_version.c" />
|
213 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_parser_cfg.c" />
|
214 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_port.c" />
|
215 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_proxy_authenticate.c" />
|
216 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_proxy_authentication_info.c" />
|
217 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_proxy_authorization.c" />
|
218 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_record_route.c" />
|
219 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_route.c" />
|
220 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_to.c" />
|
221 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_uri.c" />
|
222 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_via.c" />
|
223 |
+
+ <ClCompile Include="..\..\src\osipparser2\osip_www_authenticate.c" />
|
224 |
+
+ <ClCompile Include="..\..\src\osipparser2\sdp_accessor.c" />
|
225 |
+
+ <ClCompile Include="..\..\src\osipparser2\sdp_message.c" />
|
226 |
+
</ItemGroup>
|
227 |
+
<ItemGroup>
|
228 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_accept.h" />
|
229 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_accept_encoding.h" />
|
230 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_accept_language.h" />
|
231 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_alert_info.h" />
|
232 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_allow.h" />
|
233 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_authorization.h" />
|
234 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\internal.h" />
|
235 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_body.h" />
|
236 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_call_id.h" />
|
237 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_call_info.h" />
|
238 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_const.h" />
|
239 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_contact.h" />
|
240 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_content_disposition.h" />
|
241 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_content_encoding.h" />
|
242 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_content_length.h" />
|
243 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_content_type.h" />
|
244 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_cseq.h" />
|
245 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_error_info.h" />
|
246 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_from.h" />
|
247 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_header.h" />
|
248 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_headers.h" />
|
249 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_list.h" />
|
250 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_md5.h" />
|
251 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_message.h" />
|
252 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_mime_version.h" />
|
253 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_parser.h" />
|
254 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_port.h" />
|
255 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_proxy_authenticate.h" />
|
256 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_proxy_authorization.h" />
|
257 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_record_route.h" />
|
258 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_route.h" />
|
259 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_to.h" />
|
260 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\osip_uri.h" />
|
261 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_via.h" />
|
262 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\headers\osip_www_authenticate.h" />
|
263 |
+
- <ClInclude Include="..\..\..\osip\src\osipparser2\parser.h" />
|
264 |
+
- <ClInclude Include="..\..\..\osip\include\osipparser2\sdp_message.h" />
|
265 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_accept.h" />
|
266 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_accept_encoding.h" />
|
267 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_accept_language.h" />
|
268 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_alert_info.h" />
|
269 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_allow.h" />
|
270 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_authorization.h" />
|
271 |
+
+ <ClInclude Include="..\..\include\osipparser2\internal.h" />
|
272 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_body.h" />
|
273 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_call_id.h" />
|
274 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_call_info.h" />
|
275 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_const.h" />
|
276 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_contact.h" />
|
277 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_content_disposition.h" />
|
278 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_content_encoding.h" />
|
279 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_content_length.h" />
|
280 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_content_type.h" />
|
281 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_cseq.h" />
|
282 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_error_info.h" />
|
283 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_from.h" />
|
284 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_header.h" />
|
285 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_headers.h" />
|
286 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_list.h" />
|
287 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_md5.h" />
|
288 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_message.h" />
|
289 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_mime_version.h" />
|
290 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_parser.h" />
|
291 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_port.h" />
|
292 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_proxy_authenticate.h" />
|
293 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_proxy_authorization.h" />
|
294 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_record_route.h" />
|
295 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_route.h" />
|
296 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_to.h" />
|
297 |
+
+ <ClInclude Include="..\..\include\osipparser2\osip_uri.h" />
|
298 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_via.h" />
|
299 |
+
+ <ClInclude Include="..\..\include\osipparser2\headers\osip_www_authenticate.h" />
|
300 |
+
+ <ClInclude Include="..\..\src\osipparser2\parser.h" />
|
301 |
+
+ <ClInclude Include="..\..\include\osipparser2\sdp_message.h" />
|
302 |
+
<ClInclude Include="..\..\include\osipparser2\headers\osip_authentication_info.h" />
|
303 |
+
<ClInclude Include="..\..\include\osipparser2\headers\osip_proxy_authentication_info.h" />
|
304 |
+
</ItemGroup>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosip2/portfile.cmake
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBOSIP2_VER "5.2.0")
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "https://ftp.gnu.org/gnu/osip/libosip2-${LIBOSIP2_VER}.tar.gz" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/osip/libosip2-${LIBOSIP2_VER}.tar.gz"
|
5 |
+
FILENAME "libosip2-${LIBOSIP2_VER}.tar.gz"
|
6 |
+
SHA512 cc714ab5669c466ee8f0de78cf74a8b7633f3089bf104c9c1474326840db3d791270159456f9deb877af2df346b04493e8f796b2bb7d2be134f6c08b25a29f83
|
7 |
+
)
|
8 |
+
|
9 |
+
set(PATCHES)
|
10 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
11 |
+
list(APPEND PATCHES fix-path-in-project.patch)
|
12 |
+
endif()
|
13 |
+
|
14 |
+
vcpkg_extract_source_archive_ex(
|
15 |
+
ARCHIVE "${ARCHIVE}"
|
16 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
17 |
+
PATCHES ${PATCHES}
|
18 |
+
)
|
19 |
+
|
20 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
21 |
+
# Use /Z7 rather than /Zi to avoid "fatal error C1090: PDB API call failed, error code '23': (0x00000006)"
|
22 |
+
foreach(VCXPROJ IN ITEMS
|
23 |
+
"${SOURCE_PATH}/platform/vsnet/osip2.vcxproj"
|
24 |
+
"${SOURCE_PATH}/platform/vsnet/osipparser2.vcxproj")
|
25 |
+
vcpkg_replace_string(
|
26 |
+
"${VCXPROJ}"
|
27 |
+
"<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>"
|
28 |
+
"<DebugInformationFormat>OldStyle</DebugInformationFormat>"
|
29 |
+
)
|
30 |
+
endforeach()
|
31 |
+
|
32 |
+
vcpkg_install_msbuild(
|
33 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
34 |
+
PROJECT_SUBPATH "platform/vsnet/osip2.vcxproj"
|
35 |
+
INCLUDES_SUBPATH include
|
36 |
+
USE_VCPKG_INTEGRATION
|
37 |
+
REMOVE_ROOT_INCLUDES
|
38 |
+
)
|
39 |
+
|
40 |
+
vcpkg_install_msbuild(
|
41 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
42 |
+
PROJECT_SUBPATH "platform/vsnet/osipparser2.vcxproj"
|
43 |
+
USE_VCPKG_INTEGRATION
|
44 |
+
)
|
45 |
+
|
46 |
+
elseif(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
47 |
+
vcpkg_configure_make(SOURCE_PATH "${SOURCE_PATH}")
|
48 |
+
vcpkg_install_make()
|
49 |
+
vcpkg_fixup_pkgconfig()
|
50 |
+
|
51 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
52 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
53 |
+
|
54 |
+
endif()
|
55 |
+
|
56 |
+
# Handle copyright
|
57 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libosip2/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libosip2",
|
3 |
+
"version": "5.2.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "oSIP is an LGPL implementation of SIP. It's stable, portable, flexible and compliant! -may be more-! It is used mostly with eXosip2 stack (GPL) which provides simpler API for User-Agent implementation.",
|
6 |
+
"homepage": "https://www.gnu.org/software/osip/",
|
7 |
+
"supports": "!(windows & arm)",
|
8 |
+
"dependencies": [
|
9 |
+
"pthread"
|
10 |
+
]
|
11 |
+
}
|