mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 22:51:37 +08:00
[libopusenc] fix macOS and Linux build (#15671)
This commit is contained in:
parent
2b78e19efa
commit
f1b73fb7fc
@ -3178,7 +3178,7 @@
|
||||
},
|
||||
"libopusenc": {
|
||||
"baseline": "0.2.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"libosip2": {
|
||||
"baseline": "5.1.0-4",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "132909a5cb3c33e038cf9728427910fce455591d",
|
||||
"version-string": "0.2.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "7e66eafbd3552eda0c0243edb904fd8af36d370a",
|
||||
"version-string": "0.2.1",
|
||||
|
@ -1,7 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.4)
|
||||
project(libopusenc C)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4244 /wd4996 /wd4101 /wd4018")
|
||||
if(MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4267 /wd4244 /wd4996 /wd4101 /wd4018")
|
||||
endif()
|
||||
|
||||
find_path(OPUS_INCLUDE_DIR opus.h PATH_SUFFIXES opus)
|
||||
find_library(OPUS_LIBRARY opus)
|
||||
|
@ -1,6 +0,0 @@
|
||||
Source: libopusenc
|
||||
Version: 0.2.1
|
||||
Homepage: https://github.com/xiph/libopusenc
|
||||
Description: Library for encoding .opus audio files and live streams.
|
||||
Build-Depends: opus
|
||||
Supports: !uwp
|
11
ports/libopusenc/vcpkg.json
Normal file
11
ports/libopusenc/vcpkg.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "libopusenc",
|
||||
"version-string": "0.2.1",
|
||||
"port-version": 1,
|
||||
"description": "Library for encoding .opus audio files and live streams.",
|
||||
"homepage": "https://github.com/xiph/libopusenc",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"opus"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user