Skip to content

Commit

Permalink
[vcpkg baseline][libao] Disable dlfcn check under windows (#23235)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>
  • Loading branch information
Cheney-W and Cheney-Wang authored Feb 23, 2022
1 parent 4015784 commit b23242b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ports/libao/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -18,7 +20,8 @@ endif()
vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
AUTOCONFIG
OPTIONS --disable-binaries
OPTIONS --disable-binaries
${NO_DLFCN}
)
vcpkg_install_make()

Expand Down
2 changes: 1 addition & 1 deletion ports/libao/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3334,7 +3334,7 @@
},
"libao": {
"baseline": "1.2.2",
"port-version": 3
"port-version": 4
},
"libarchive": {
"baseline": "3.5.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libao.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "11240d91b73e6a968da37b8053a8a64a6d9ea55f",
"version": "1.2.2",
"port-version": 4
},
{
"git-tree": "931d3ed363323bdc4de00c91165f3a09e23fb6b1",
"version": "1.2.2",
Expand Down

0 comments on commit b23242b

Please sign in to comment.