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

Improve meson setup #202

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

Conversation

QuLogic
Copy link

@QuLogic QuLogic commented Aug 6, 2021

A variety of things to update and modernize the Meson setup. It would also be good to set a minimum Meson version in your project call, as there are other things that could be done, but I wasn't sure if it would be too new.

  • Rename Meson option names to be more conventional.
    It is recommended to not use (enable|disable) prefix on option names, as this is not autoconf.
  • Packages that provide a pkg-config file or are supported by Meson should use dependency, not find_library.
  • Both dl and m are glibc-specific, and should be optional in order to build on other systems.
  • Set cpp_std as a build option, use include_directories, and enable hidden symbol visibility again.

I would also say you should explicitly list out the files instead of using find, but you do that so much I didn't want to do that out of the blue.

It is recommended [1] to not use (enable|disable) prefix on option
names, as this is not autoconf.

[1] https://mesonbuild.com/Style-guide.html#naming-options
* Packages that provide a pkg-config file or are supported by Meson
  should use `dependency`, not `find_library`.
* Both `dl` and `m` are glibc-specific, and should be optional in order
  to build on other systems.
Set `cpp_std` as a build option, use `include_directories`, and enable
hidden symbol visiblity again.
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.

None yet

1 participant