Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Sensible Project Structures (Read 3319 times)
Mike Hole
Newbies
*
Offline


Posts: 4
Location: Penarth - Wales
Joined: Mar 5th, 2014
Sensible Project Structures
Feb 19th, 2016 at 1:36pm
Print Post  
Hi,

I am trying to set up a solution that will allow me to have several projects within it that include a set of projects that will have libraries and test code for those libraries.

http://1drv.ms/1oP89rR

The image above shows this. This is much like using references but I know that you can't use references in this manner.

Can anybody recommend a solution that will help me keep things manageable.

Cheers,

Mike
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Sensible Project Structures
Reply #1 - Feb 19th, 2016 at 1:45pm
Print Post  
Libraries have to be compiled in a different way to normal code so the current features that allow you to share code between projects won't work for you. We have some things coming along for shared local libraries.

However you might find a solution as follows:-

Place your libraries in the official arduino library area normally documents\arduino\libraries.

Add a C++ project to the solution for each library

Visual micro should detect lib changes and recompile but if you add new source code files to a library you just need to click "Tools>Visual Micro>reload tool chains"

There is a new facility in visual micro that allows for libraries below each project but then you won't be able to share them so that will be the next addition.
  
Back to top
IP Logged
 
Mike Hole
Newbies
*
Offline


Posts: 4
Location: Penarth - Wales
Joined: Mar 5th, 2014
Re: Sensible Project Structures
Reply #2 - Feb 19th, 2016 at 2:07pm
Print Post  
Thanks for this. Thinking of adding a post compile step to copy the folders across as I need to keep everything in the same folder so that I can keep code within GitHub.

Looking forward to seeing how the changes work by the way Smiley
« Last Edit: Feb 19th, 2016 at 2:08pm by Mike Hole »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Sensible Project Structures
Reply #3 - Feb 20th, 2016 at 1:42pm
Print Post  
So where would be the best physical place for git aware libs?

Solution Folder
   >>Libraries
   >>Project 1
   >>Project 2

?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint