suapapa / arscons

!! DEPRECATED !! scons script for Arduino sketch
76 stars 19 forks source link

Problem when there are multiple .pde files #6

Open dhylands opened 12 years ago

dhylands commented 12 years ago

Arduino seems to concatenate multiple .pde files, if more than one exist in the project.

So if have Blink/Blink.pde and Blink/Foo.pde then arduino compiles both of these, and furthermore it seems to concatenate them.

If I put a #define in Blink.pde, then I can reference that #define in Foo.pde and get no errors when building under arduino, but it fails to build when using arscons.

I did some experimentation, and it seems to sort the .pde's alphabetically, with the exception that the one that has the same name as the directory is at the beginning of the list.

suapapa commented 11 years ago

Now, you can do this like with ARSCONS_TARGET variable. Try this:

$ scons ARSCONS_TARGET=Foo