-
Notifications
You must be signed in to change notification settings - Fork 15
Switch to meson build system and add CI #26
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
Conversation
meson.build
Outdated
| command: ['echo', | ||
| '/* Autogenerated file, do not edit */\n\n' + | ||
| '\n'.join(platform_strings)]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it just me who thinks this is really dirty? I love the idea of autogenerating the file, but we have the string contents in a Meson variable... And have to run that through a shell command to get it into the file?!? Doesn't configure_file() have a file_contents: str sort of argument for this use-case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it actually makes sense to create a platforms.h.in file with the static contents (comment header, static inline for the platforms and use @NAME@ syntax) via meson variables to fill in the contents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately no. I think this is the best way I have for now. Suggestions are appreciated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll see if I can submit a PR with that idea later, if it turns out to work.
d0a2731 to
e69f306
Compare
Switch to meson as a build system. Define a list of supported platforms and use it to generate platforms list and the symlink targets. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Add very simple CI setup to check that debugcc builds correctly. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fix the following error: ../debugcc.c: In function 'mmap_mux': ../debugcc.c:295:40: error: format '%zx' expects argument of type 'size_t', but argument 2 has type 'long unsigned int' [-Werror=format=] Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
No description provided.