[cubeb] Add new port (#26648)

This commit is contained in:
Maximilian Downey Twiss 2022-09-07 05:52:35 +10:00 committed by GitHub
parent c382312bed
commit 1912e1a397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,23 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mozilla/cubeb
REF dc511c6b3597b6384d28949285b9289e009830ea
SHA512 a4ccd3f0a156db4e2e75a8d231e95a08d555390571551cb3e92c71cdee46dc74dc66b5272fda4b5f1f083b92672b360152cefd38be242f238fe802acc1ea17e9
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DUSE_SANITIZERS=OFF
-DBUILD_TESTS=OFF
-DBUILD_TOOLS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cubeb)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

18
ports/cubeb/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "cubeb",
"version-date": "2022-07-22",
"description": "Cross platform audio library",
"homepage": "https://github.com/mozilla/cubeb",
"license": "ISC",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1760,6 +1760,10 @@
"baseline": "1.16.0",
"port-version": 0
},
"cubeb": {
"baseline": "2022-07-22",
"port-version": 0
},
"cuda": {
"baseline": "10.1",
"port-version": 11

9
versions/c-/cubeb.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7d7979530500923609dae0ce99dc4a63fea13056",
"version-date": "2022-07-22",
"port-version": 0
}
]
}