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

Remove pass-through Meson options #186

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Conversation

bgilbert
Copy link
Member

The openslide-bin project doesn't directly use openslide_werror or version_suffix; it just passes them to some subprojects as default_options. However, these are defaults: they take effect during initial configuration, but if later changed with meson setup --reconfigure or meson configure, the new values aren't re-propagated to the subprojects. The abstraction thus encourages errors, and it doesn't really add much value in the first place. Remove the top-level options and replace them with documentation about setting the corresponding subproject options directly.

The openslide-bin project doesn't directly use openslide_werror or
version_suffix; it just passes them to some subprojects as default_options.
However, these are _defaults_: they take effect during initial
configuration, but if later changed with `meson setup --reconfigure` or
`meson configure`, the new values aren't re-propagated to the subprojects.
The abstraction thus encourages errors, and it doesn't really add much
value in the first place.  Remove the top-level options and replace them
with documentation about setting the corresponding subproject options
directly.

Signed-off-by: Benjamin Gilbert <[email protected]>
@openslide-bot
Copy link
Contributor

DCO signed off ✔️

All commits have been signed off. You have certified to the terms of the Developer Certificate of Origin, version 1.1. In particular, you certify that this contribution has not been developed using information obtained under a non-disclosure agreement or other license terms that forbid you from contributing it under the GNU Lesser General Public License, version 2.1.

@bgilbert bgilbert merged commit 0d44132 into openslide:main Nov 15, 2023
12 checks passed
@bgilbert bgilbert deleted the options branch November 15, 2023 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants