[vcpkg baseline][libao] Disable dlfcn check under windows (#23235)

* [libao] Add parameter to control whether to detect dlfcn

* Use Cache variables instead of patch file

* Avoid using undefined variable

Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
Cheney Wang 2022-02-24 03:58:56 +08:00 committed by GitHub
parent 401578455f
commit b23242b620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,7 @@
set(NO_DLFCN )
if(VCPKG_TARGET_IS_WINDOWS)
list(APPEND PATCHES "0001-windows-build-patch.patch")
set(NO_DLFCN "ac_cv_header_dlfcn_h=no")
endif()
vcpkg_from_github(
@ -18,7 +20,8 @@ endif()
vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
AUTOCONFIG
OPTIONS --disable-binaries
OPTIONS --disable-binaries
${NO_DLFCN}
)
vcpkg_install_make()

View File

@ -1,7 +1,7 @@
{
"name": "libao",
"version": "1.2.2",
"port-version": 3,
"port-version": 4,
"description": "libao - A Cross-platform Audio Library",
"homepage": "https://github.com/xiph/libao",
"license": "GPL-2.0",

View File

@ -3334,7 +3334,7 @@
},
"libao": {
"baseline": "1.2.2",
"port-version": 3
"port-version": 4
},
"libarchive": {
"baseline": "3.5.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "11240d91b73e6a968da37b8053a8a64a6d9ea55f",
"version": "1.2.2",
"port-version": 4
},
{
"git-tree": "931d3ed363323bdc4de00c91165f3a09e23fb6b1",
"version": "1.2.2",