-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project structure with multiple programs #37
Comments
You will probably understand that everyone and their grandmother have different ways to structure a project. Thus it doesn't seam feasible to to implement such things in a general purpose software. Anyway, I'd like to understand your structure a little bit more. Which of those folders contain teensy code besides the obvious some-program folder? |
I understand that there is no ONE way to structure your projects but possibly the general purpose software can be a bit more general. The structure I currently use and mentioned is most likely ideal even for me, however the thing I've found to repeatedly need/want is many applications/programs/main.cpp using the same shared teensy libs and project specific code. Maybe it would have been a better idea to start with a discussion about project structure on the PJRC forums than as an issue here? Not sure where you draw the line of what to count as teensy code, all code in the project intended to run on teensy even if parts might work on other platforms too.
Contain the kind of project VisualTeensy generates but without lib folder (containing copies of Teensy libs) which is instead moved to Project specific code shared between programs is in Does that explain it? So while I think it would be a good addition to VisualTeensy to support some kind of more involved/alternate project generation I completely understand if it doesn't fit the project. If some way that can benefit more people than me can be found I might be able to try help implementing it. |
OK, I think I understand. Thanks for the info. Shared libs: Shared code: more than one subproject in a main project (your some-program folders) I'm currently working (slowly) on a library mode which allows to set up library projects. I.e., one main project with some examples (which are self-contained projects. Since this is similar to your needs I might generate some spinoffs supporting your scenario. |
Thank you for this project. I've been using it to generate the base when doing larger teensy projects and then manually editing it for my needs.
When working on larger projects what I've found I need is a shared code base with many programs/main.cpp.
This is roughly the project structure I'm currently using:
This works ok after having set it up for one program and then copying that folder for new programs and applying minor manual edits. I then work with the project folder open in one vscode window and then opening a specific program folder in a new window to build/run that program.
Do you have a good way to use visual teensy to structure projects in this way or is this something you would consider adding that would fit within the scope of the project?
The text was updated successfully, but these errors were encountered: