You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I want to write scripts to do the following:
Check for errors in meson.build files (missing subdir, missing source files, etc.)
Generate meson.build files (when creating a new library in the project, or when importing existing part of the project)
Ensure consistency in the meson.build files format (indentations, blank lines, etc.)
meson provides introspect --ast and rewrite commands. However, those commands seem to only support partially what I want to achieve. What would be the best approach?
Should I try to improve meson to be able to:
parse ast in arbitrary meson files
convert ast to a meson.build file (that would be a meson file formatter)
Or would I be better to do this on my own, using regexp and string manipulation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my project, I want to write scripts to do the following:
meson.build
files (missing subdir, missing source files, etc.)meson.build
files (when creating a new library in the project, or when importing existing part of the project)meson.build
files format (indentations, blank lines, etc.)meson provides
introspect --ast
andrewrite
commands. However, those commands seem to only support partially what I want to achieve. What would be the best approach?Should I try to improve meson to be able to:
Or would I be better to do this on my own, using regexp and string manipulation?
Beta Was this translation helpful? Give feedback.
All reactions