feature - ability to specify additional source/include folders to add to project #248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is just the command line PG changes necessary to add other source / includes folders to a project outside of the project directory.
PR adds a
--source
or-s
argument to the command line PG and lets you specify both absolute or relative source or include paths to add to the project. eg:This is super helpful for Visual Studio users, as each time you regenerate a project ( if you need to include another addon ) you lose any other files and folders added and unlike other IDEs it is very tedious to add back in any shared code folders each time.
Before I start working on the frontend changes I just wanted to get some thoughts on the best way to cache/store the added source paths so they can be loaded back in by the frontend.
Right now we use addons.make to keep track of the addons added to a project.
I was hoping to avoid using another file to keep track of the file paths.
config.make has
PROJECT_EXTERNAL_SOURCE_PATHS
which has the same idea / functionality.Would that make sense or be weird?
With any PG changes we might be thinking about is there a need for a file to store additional info for the frontend at a per project level? Or is config.make the best solutions for this?
Would love any thoughts @arturoc @thomasgeissl
ps: I realize @thomasgeissl #245 uses the -s argument in a different way. Happy to coordinate so we don't end up using the same args. :)