hrszpuk / rectx

The powerful little project manager for the ReCT programming language!
GNU General Public License v3.0
6 stars 1 forks source link

Generating compilation directories, and dependency management #8

Closed hrszpuk closed 2 years ago

hrszpuk commented 2 years ago

Generating directories

Directory generation is usually handled by the manager module. In this case, a target/ directory should be generated with the executable of the correct name inside. Each compilation profile, currently only run and build, should generate their own directory target/run/ and target/build/ respectfully. This will involve modifying manager::generate_project_executable().

In addition to the target/ directory a deps/ (for storing dependencies or files that are needed at runtime) should be generated during project creation (i.e. rectx new project-name). Any files inside the deps/ directory should be copied into the target/build//target/run/.

Milestone reference (#1)

This is the last feature needed for the v1.0.0 milestone to be complete and is referenced on the v1.0.0 section as "Add target/" and "Add /deps".

Tasks

hrszpuk commented 2 years ago

Note: when I mean /target I mean the output_dir in the compilation profile. Perhaps target/ and deps/ should be defined within [project] not inside the profiles? Can't think of a reason you'd want different output directories for specific profiles over an overall project one :/ ...

hrszpuk commented 2 years ago

Right with that fixed, I can probably finish this tonight and have v1.0.0 out 👍🏼

mauro-balades commented 2 years ago

why would you have /target/run? you could just build it as normal and then execute the output 👍🏽