Skip to content

Conversation

@JoergAtGithub
Copy link
Contributor

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

Disable builds of the command line tool linkhut for android
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

See also JoergAtGithub#1

install_test_executable("hut" "LinkHut")
install_test_executable("hutsilent" "LinkHutSilent")

# We must not correct the CMake include path before build
Copy link
Member

Choose a reason for hiding this comment

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

This seems broken; the whole reason vcpkg_apply_patches is deprecated is because it does not completely clean things up between runs, so it's possible the patch has already been applied.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not touch this code section in this PR. But note that the vcpkg_from_github PATCHES feature is not usable here, as the patch must not be applied before installation of the test executables.

Copy link
Member

Choose a reason for hiding this comment

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

I did not touch this code section in this PR. But note that the vcpkg_from_github PATCHES feature is not usable here, as the patch must not be applied before installation of the test executables.

I'm saying as written that doesn't actually happen. What happens if the patch is applied before installing executables?

Comment on lines +54 to +56
+ find_package(ALSA)
+ find_package(portaudio CONFIG)
+ if(ALSA_FOUND AND portaudio_FOUND)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
+ find_package(ALSA)
+ find_package(portaudio CONFIG)
+ if(ALSA_FOUND AND portaudio_FOUND)
+ find_package(ALSA REQUIRED)
+ find_package(portaudio CONFIG REQUIRED)

Dependencies need to be controlled explicitly.

Copy link
Contributor Author

@JoergAtGithub JoergAtGithub Dec 23, 2025

Choose a reason for hiding this comment

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

This would not work, because this CMakeLists.txt is used to build multiple features, but ALSA and portaudio are only a dependency for the hut feature, and only on Linux.

Copy link
Member

Choose a reason for hiding this comment

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

Then that needs to be controlled by whether the feature is turned on, not based on whether alsa and/or pulseaudio happen to be installed first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants