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

parse dependencies from meson.build file #17

Open
milahu opened this issue Feb 2, 2023 · 1 comment
Open

parse dependencies from meson.build file #17

milahu opened this issue Feb 2, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@milahu
Copy link

milahu commented Feb 2, 2023

just an idea ...

  • parse the top-level meson.build file with muon/src/lang/parser.c
  • find calls to dependency and executable (docs)
  • if has dependencies, add dependency pkg-config

bonus points:

  • parse option calls from meson_options.txt file
  • parse conditions
  • translate dependencies to nixpkgs names
@figsoda figsoda added enhancement New feature or request help wanted Extra attention is needed labels Feb 2, 2023
@milahu
Copy link
Author

milahu commented Feb 4, 2023

cheap win: parse project version from meson.build file

example:
https://github.com/frida/vala/blob/62ee2b101a5e5f37ce2a073fdb36e7f6ffb553d1/meson.build#L1

project('vala',
	'c', 'vala',
	version: '0.58.0-frida',
	meson_version: '>= 0.47.0',
	license: 'LGPL2.1'
)

in this example, the project has no git tags (see also #19), so when using the latest commit, the version would be something like unstable-2022-11-07

a version like 0.58.0-frida-unstable-2022-11-07 is more useful to see API/ABI compatibility (semantic versioning)

see also RFC 107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants