diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cubeb | |
Diffstat (limited to 'vcpkg/ports/cubeb')
| -rw-r--r-- | vcpkg/ports/cubeb/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/cubeb/vcpkg.json | 19 |
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/cubeb/portfile.cmake b/vcpkg/ports/cubeb/portfile.cmake new file mode 100644 index 0000000..f675816 --- /dev/null +++ b/vcpkg/ports/cubeb/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mozilla/cubeb + REF f1bfefbbd412eaa0fe89f5afb3c11b427dc2446a + SHA512 541bdcdc17c02f51e6faae1c90e0ddf30f40b137bb47498f7845919107190a4acb97d88e26ccf4877dbce7aeddee0f6538fd34c71396bc6a81644438a1a3242e + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DUSE_SANITIZERS=OFF + -DBUILD_TESTS=OFF + -DBUILD_TOOLS=OFF + -DDOXYGEN_EXECUTABLE= # Prevents the generation of documentation +) +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() diff --git a/vcpkg/ports/cubeb/vcpkg.json b/vcpkg/ports/cubeb/vcpkg.json new file mode 100644 index 0000000..74a0756 --- /dev/null +++ b/vcpkg/ports/cubeb/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "cubeb", + "version-date": "2023-09-26", + "port-version": 1, + "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 + } + ] +} |