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

[portaudio] Control deps, cleanup #43323

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

dg0yt
Copy link
Contributor

@dg0yt dg0yt commented Jan 17, 2025

Fixes installation order issues.
Fixes -ldl usage requirement.

@jimwang118 jimwang118 added the category:code-cleanup This PR cleans up code, without fixing any existing bugs nor adding any features. label Jan 17, 2025
"supports": "!uwp",
"dependencies": [
{
"name": "jack2",
"platform": "!ios & !osx & !windows"
Copy link
Contributor

Choose a reason for hiding this comment

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

We distribute Mixxx with Jack support on macOS and Windows.
https://github.com/mixxxdj/vcpkg/tree/2.5/overlay/ports/portaudio

I am unsure how the upstream status is right now. Do you have interest to integrate our patches?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No extra patches to the old CMakeLists.txt. Portaudio needs to make a release.

@jimwang118
Copy link
Contributor

Usage test passed with x64-windows triplet.

@jimwang118 jimwang118 added the info:reviewed Pull Request changes follow basic guidelines label Jan 20, 2025
vcpkg_list(SET options)
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_list(APPEND options
-DPA_USE_ASIOSDK=OFF
Copy link
Contributor

Choose a reason for hiding this comment

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

This change makes the Windows version of the port barely useable, as ASIO is the standard for all proffesional audio equipment on Windows. Why not linking the VCPKG asiosdk port as dependency or default feature here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original behavior is not acceptable. The port must not pick dependencies just because they are present in arbitrary locations. I can fix this broken behavior only by disabling asiosdk, because I cannot test the configuration with asiosdk.

  • You can and must add a proper feature to depend on, and use, port asiosdk.
  • You can and must use triplet customization to override this cmake option if you want to pick an external copy of asiosdk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:code-cleanup This PR cleans up code, without fixing any existing bugs nor adding any features. info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants