Skip to content

Commit

Permalink
[cubeb] Add new port (microsoft#26648)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zopolis4 authored Sep 6, 2022
1 parent c382312 commit 1912e1a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ports/cubeb/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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 changes: 18 additions & 0 deletions ports/cubeb/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/cubeb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7d7979530500923609dae0ce99dc4a63fea13056",
"version-date": "2022-07-22",
"port-version": 0
}
]
}

0 comments on commit 1912e1a

Please sign in to comment.