-
Notifications
You must be signed in to change notification settings - Fork 447
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
Ability to put src files in a subfolder #267
Comments
Can you show us a directory structure like the one you'd like to have? |
I'd love to have some
Expected structure:
|
this is kind of how 1.5 libraries work: /~https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#source-code which just got backported to 1.0.6: but its not for ino sketches, just libraries. the tree structure above seems odd as you're mixing ino files with header files in the same directory, which should really be in an includes or lib directory. |
@mgcrea If you put your That's what I do here. (note: the I have different directories into my Why would you like to keep your |
@ladislas, I'm coming from a JS background where you usually have a @sej7278 my app.h file is only used by the app.ino for forward declaration, would be strange to put it n a lib folder. To me it should live in the src folder, maybe in |
@mgcrea I know what you mean. But as a little advice I'd say "don't try to c++ the way you js". They are two different languages made for different things and the directory structure might change from what you're used to with js. but if your want to do what you try to do, you can put a |
Sorry for resurrecting this, but I too think this would be a super useful feature. I have my arduino code inside an What I did as a hacky workaround is to have both my Makefile + this tiny shell script on my root:
Ugly? very. But it does the trick... |
@marbru Why copy the makefile into |
I have to build a project with lots of subdirectories (see /~https://github.com/repetier/Repetier-Firmware ), so I replaced lines
with
This finds all .c and .cpp files recursively in all subdirectories. |
I'd like to put all my src files (.ino, .h, etc.) in a
src
subfolder. Is there a way to achieve that?The text was updated successfully, but these errors were encountered: