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

CMake support kickstart #232

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

vpodzime
Copy link
Contributor

No description provided.

CMake is a very common build system. While it can utilize
autotools-based projects as sub-components, it's much better to
have a CMake-native support and avoid the requirement of having
working autotools available.

This is just the very first bit kickstarting the effort and
setting up the base for a large future expansion.

Ticket: MEN-7819
Changelog: libntech now has a limitted support of CMake, expected
           to become more complete in the future
Enabling Link Time Optimizations is the most straightforward way
to get the minimal binary size these days (together with the
`-Os` compiler option, of course) because it ensures unused
functions from static libraries are not included in executables
linked with them.

Ticket: MEN-7819
Changelog: None
@mender-test-bot
Copy link

There was an error running your pipeline, see logs for details.

Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice 🚀

@larsewi
Copy link
Contributor

larsewi commented Dec 19, 2024

We should maybe have a GitHub Action workflow that does a smoke test by trying to build the library with cmake?

@vpodzime
Copy link
Contributor Author

We should maybe have a GitHub Action workflow that does a smoke test by trying to build the library with cmake?

Yes, we totally should. But TBH, this is a "fun work" for me at this stage and I don't want to do stuff that's no fun. :)

@vpodzime vpodzime merged commit 4aaba40 into NorthernTechHQ:master Dec 19, 2024
4 checks passed
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.

3 participants