Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[openal-soft] Remove removing macro in dynamic triplets #20310

Merged
merged 1 commit into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ports/openal-soft/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ foreach(HEADER al.h alc.h)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
string(REPLACE "defined(AL_LIBTYPE_STATIC)" "1" AL_H "${AL_H}")
else()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you want to keep the empty if case?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably to put the comment in?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the empty else() is to indicate that we didn't forget and it is intentional.

string(REPLACE "defined(AL_LIBTYPE_STATIC)" "0" AL_H "${AL_H}")
# Normally we would say:
# string(REPLACE "defined(AL_LIBTYPE_STATIC)" "0" AL_H "${AL_H}")
# but we are leaving these undefined macros alone in support of
# https://github.com/microsoft/vcpkg/issues/18098
endif()
file(WRITE "${CURRENT_PACKAGES_DIR}/include/AL/${HEADER}" "${AL_H}")
endforeach()
Expand Down
2 changes: 1 addition & 1 deletion ports/openal-soft/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "openal-soft",
"version-semver": "1.21.1",
"port-version": 2,
"port-version": 3,
"description": "OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API.",
"homepage": "https://github.com/kcat/openal-soft",
"supports": "!uwp"
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4726,7 +4726,7 @@
},
"openal-soft": {
"baseline": "1.21.1",
"port-version": 2
"port-version": 3
},
"openblas": {
"baseline": "0.3.15",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openal-soft.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b6672158f9eda4512b07d89ba193c51ef2802641",
"version-semver": "1.21.1",
"port-version": 3
},
{
"git-tree": "9b1e7ccf10631bcb24825e8742bf18de9c561e71",
"version-semver": "1.21.1",
Expand Down