Question for C: is there an official #define that distinguishes the Due/Arm build from the AVR builds?
The new IDE 1.5 has 'fat' libraries support: libraries that contains code to run on more than one microcontroller architecture. The advantages of having a 'fat' library are clear:- The IDE will automatically lists the available libraries based on the architecture of the currently selected board- The same library can have multiple architecture inside => you don't have to install a different version of the same library for every architecture.
We also tried to introduce an auto-detection mechanism that takes apart non-fat libraries from fat libraries. This mechanism didn't worked as expected because we assumed that library writers would only use 'examples' and 'utility' folder. This is a clearly wrong assumption, and the patch i have just pushed on the repository fixes this problem.
I'll invite you all to check if the patch will fix the issues you are having.https://github.com/arduino/Arduino/tree/ide-1.5.x