Skip to content

Conversation

@shymega
Copy link
Member

@shymega shymega commented Jul 1, 2023

As discussed with the team, this is a draft PR for the conversion of Makefiles to CMake.

This means enhanced IDE/editor support, easier code FFI with Rust, and easier maintenance.

This PR may be force-pushed at points, but eventually, will be squashed when ready.

For now, it's a draft, and contributions are welcome via reviews.

@Newbytee
Copy link

Sorry if this is unsolicited feedback, but why CMake over Meson?

@shymega
Copy link
Member Author

shymega commented Sep 14, 2023

@Newbytee Because I, and other maintainers, are more experienced with CMake, and prefer it over Meson.

We're also looking to integrate Rust with the codebase, and CMake handles this better, in my experience with similar initiatives.

CMake is also older, and has an established ecosystem.

shymega and others added 17 commits February 9, 2025 21:18
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Also:

- Expand on CMakeLists.txt files

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
Main work by @nicka101.

Also, by @shymega:

- Add another `target_link_libraries` to util_sha256
    This links to CMSIS and HAL libs.
- Fixup Dockerfile for GCC ARM download, and tidy
- Had to run `dos2unix` on some files.
- Remove `*.cmake` from .gitignore
  This allows us to keep future CMake modules, for example, Corrosion.
- Update devcontainer.json name
- Move `.devcontainer/devcontainer.json` to root of repo

Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
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.

4 participants