nasa / fprime-tools

F´ Python tooling and helpers.
https://github.com/nasa/fprime
Apache License 2.0
21 stars 39 forks source link

Refactor `new` build system structure (nasa#1994) #142

Closed thomas-bc closed 1 year ago

thomas-bc commented 1 year ago
Originating Project/Creator
Affected Architectures(s) fprime-util new
Related Issue(s) https://github.com/nasa/fprime/pull/1994 https://github.com/nasa/fprime/issues/2002

Change Description

Addresses https://github.com/nasa/fprime/issues/2002

https://github.com/nasa/fprime/pull/1994 introduced a new structure for projects where the CMake project() can be defined at the top level of the project tree only, and not within deployments. This modifies the fprime-util new commands to account for that.

I also took the liberty to add the Components/ module to the project generation tree because it sounds to me like a good pattern to suggest to users - while it does not force anything onto them.

Note: I had to revert back the default fprime version new --project pulls since #1994 is only in devel for now.

Testing/Review Recommendations

Checkout, install, and verify that fprime-util new --project && fprime-util new --deployment generates a buildable and runnable project.

Future Work