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

Meson builsystem #1

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

fvalette
Copy link

@fvalette fvalette commented Aug 28, 2023

Meson buildsystem introduction.
Compare to the orig makefile, meson is building a static library for libdrbg and self test binary is built is with_test option is set to true (see meson.options).

One can build and run self test with th following:

meson setup -Dstrict-nist-hashes=true -Dwith_test=true -Dwith_test_entropy_source=true build
meson compile -C build
meson test -C build

TODO:

  • options description
  • src / include / test layout
  • Add include directory in meson declared dependency (for libhash and libdrbg)
  • generate configuration header (instead of WITH_HASH_CONF_OVERRIDE boilerplate)
  • generate a .pc file ?

A lot of Makefile options are built-in w/ meson (sanitizer, werror trigger, etc.),
thus there are not in meson.options files.
One can checks available options (built-in and project specific) with the following:

 meson configure
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.

1 participant