alericardi / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Per-sketch libraries (e.g. code/ folder) #314

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What change would like to see?

The ability to include libraries on a per-sketch basis.  This should probably 
be in the code/ folder to mirror Processing, or a libraries/ folder (to mirror 
other library locations).  In the long run, this should support pre-compiled 
libraries too (issue #199), but source libraries would be a good start.

Why?

So people can include all the dependencies for a sketch in one place.  This 
would also be a nice place to put assembly files for a sketch (since you can't 
edit them in the IDE) - issue #274.

Original issue reported on code.google.com by dmel...@gmail.com on 2 Aug 2010 at 7:40

GoogleCodeExporter commented 9 years ago
Issue 274 has been merged into this issue.

Original comment by dmel...@gmail.com on 2 Aug 2010 at 7:41

GoogleCodeExporter commented 9 years ago
The latest IDE changelog indicated that there now was a recipy for .S files 
(assembly), but in no way I am able to add assembly files to be picked up by 
the build process.

Is this issue the reason to that nothing happens?
Or else I don't get the point of adding a recipy for assembly when it still 
isn't possible to let the build system compile them.

Original comment by lars.wad...@gmail.com on 6 Mar 2014 at 1:40

GoogleCodeExporter commented 9 years ago
From my personal point of view, Issue 274 was not to be fused with Issue 314.
Issue 314 speaks about "ability to include libraries per-sketch".
Issue 274 speaks about "support .S (assembly files)".

When I starred this issue, I was looking for the possibility to include 
personalized libraries per-sketch. For example, if I need to add a personalized 
version of "stepper" library to ONE of my sketches, I would like to add it in 
the same folder (or subfolder) of the sketch.
Why? --> 1) Because the sketch itself should be portable.
     --> 2) Because if I lose the folder of the IDE...........

I hope in a solution for this issue, or in some advices, in case I did not 
understand something.

Original comment by doppio...@gmail.com on 6 Mar 2014 at 5:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes, I know. I saw Issue 314 at first but then I was thinking that since the 
changelog indicated assembly recipy was added, why then doesn't it work to have 
assembly files in the project?
One reason I could think of is that maybe it is related to this issue, that it 
doesn't accept libraries per-sketch yet, that's why I posted in this issue.

I don't know, there is not much light on this issue about assembly files.
I want it badly, but I don't want to hack the IDE or the build tools. My 
project should work out of the box without people having to rebuild the arduino 
ide.
Can't believe that such an obvious feature like assembly is missing, especially 
since the gnu tool chain builds this without much extra work.

Original comment by lars.wad...@gmail.com on 7 Mar 2014 at 9:59