Closed hrszpuk closed 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 :/ ...
Right with that fixed, I can probably finish this tonight and have v1.0.0 out 👍🏼
why would you have /target/run
? you could just build it as normal and then execute the output 👍🏽
Generating directories
Directory generation is usually handled by the
manager
module. In this case, atarget/
directory should be generated with the executable of the correct name inside. Each compilation profile, currently onlyrun
andbuild
, should generate their own directorytarget/run/
andtarget/build/
respectfully. This will involve modifyingmanager::generate_project_executable()
.In addition to the
target/
directory adeps/
(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 thedeps/
directory should be copied into thetarget/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
manager::generate_project_directory()
manager::generate_project_executable()