diff options
| author | Phoebe <20694052+PhoebeHui@users.noreply.github.com> | 2020-04-07 15:38:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-07 15:38:52 +0800 |
| commit | deca92ce4eec3a3d6808cc11fbaa4456c9a600b0 (patch) | |
| tree | 4b2417bbd7957b05664273c53b24925418dc8c84 /ports/opus | |
| parent | 7f2bb735dfcfa5ac580f9e825c687d017c476c17 (diff) | |
| parent | 6c4e822611324de4af9c8bb0ef8094e4a9b30a6e (diff) | |
| download | vcpkg-deca92ce4eec3a3d6808cc11fbaa4456c9a600b0.tar.gz vcpkg-deca92ce4eec3a3d6808cc11fbaa4456c9a600b0.zip | |
Merge branch 'master' into supported-version-change
Diffstat (limited to 'ports/opus')
| -rw-r--r-- | ports/opus/CONTROL | 5 | ||||
| -rw-r--r-- | ports/opus/portfile.cmake | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/ports/opus/CONTROL b/ports/opus/CONTROL index c7b8d246f..f4ed522c3 100644 --- a/ports/opus/CONTROL +++ b/ports/opus/CONTROL @@ -1,4 +1,7 @@ Source: opus -Version: 1.3.1 +Version: 1.3.1-2 Homepage: https://github.com/xiph/opus Description: Totally open, royalty-free, highly versatile audio codec + +Feature: avx +Description: Builds the library with avx instruction set diff --git a/ports/opus/portfile.cmake b/ports/opus/portfile.cmake index bf23718df..a770da51f 100644 --- a/ports/opus/portfile.cmake +++ b/ports/opus/portfile.cmake @@ -1,5 +1,3 @@ -include(vcpkg_common_functions) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH @@ -12,7 +10,14 @@ vcpkg_from_github( HEAD_REF master) -vcpkg_configure_cmake(SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA) +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + avx AVX_SUPPORTED +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS ${FEATURE_OPTIONS} + PREFER_NINJA) vcpkg_install_cmake() vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Opus) vcpkg_copy_pdbs() |
