[libnice-gst] meson dep & copy pdb only if it exists (#37251)

This commit is contained in:
Alexander Neumann 2024-03-08 21:34:02 +01:00 committed by GitHub
parent 908701aea9
commit 363e5e8cc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 7 deletions

View File

@ -64,10 +64,11 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/plugins/gstreamer")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}"
"${CURRENT_PACKAGES_DIR}/debug/plugins/gstreamer/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}")
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_TARGET_IS_WINDOWS AND EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/gstnice.pdb")
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/gstnice.pdb"
"${CURRENT_PACKAGES_DIR}/debug/plugins/gstreamer/gstnice.pdb")
else()
endif()
if(NOT VCPKG_TARGET_IS_WINDOWS)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib")
endif()
@ -77,10 +78,11 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/plugins/gstreamer")
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}"
"${CURRENT_PACKAGES_DIR}/plugins/gstreamer/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}")
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_TARGET_IS_WINDOWS AND EXISTS "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/gstnice.pdb")
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/gstnice.pdb"
"${CURRENT_PACKAGES_DIR}/plugins/gstreamer/gstnice.pdb")
else()
endif()
if(NOT VCPKG_TARGET_IS_WINDOWS)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
endif()

View File

@ -1,13 +1,17 @@
{
"name": "libnice-gst",
"version": "0.1.21",
"port-version": 3,
"port-version": 4,
"description": "Gstreamer Libnice plugins.",
"homepage": "https://nice.freedesktop.org",
"license": "LGPL-2.1-only AND MPL-1.1",
"supports": "!xbox",
"dependencies": [
"gstreamer",
"libnice"
"libnice",
{
"name": "vcpkg-tool-meson",
"host": true
}
]
}

View File

@ -4658,7 +4658,7 @@
},
"libnice-gst": {
"baseline": "0.1.21",
"port-version": 3
"port-version": 4
},
"libnick": {
"baseline": "2024.3.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3717f8377e0dbac46191136366973c45a623850f",
"version": "0.1.21",
"port-version": 4
},
{
"git-tree": "0454363efa550f5437e9bafac810b425ad2cef12",
"version": "0.1.21",