i really agree with first message:
Switching things by source would be very usefull (at least for me :-).
i work with different types of Arduino at a time and its hard to change Board/Serial/Programmer
all times, when it must be compiled and upload.
So i tried this to as a first step:
Then i selected a Mega1280 Board and hope to see somthing like this
from the precompiler output , but he ignored this an gave me a...
C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\avr\variants\mega -IZ:\Kingston-DataTravelerG3-01\Projekt\Arduino\libraries\PCF8574 -IC:\Program Files\Arduino\hardware\arduino\avr\libraries\Wire -IC:\Program Files\Arduino\libraries\LiquidCrystal\src
so, this does not change anything :(.
Is there a way to do this all on a "IDE-legal"-way ? Or do i have to do it in some way by changing scripts (are there scripts ?) ?
I think about write a wrapper for avr-gcc and place a script there to parse code and switch things - but there will be a small problem with IDE-updates :-/.
i dont know where to start now. internet searching does not help..
(sorry about many many errors in writing - keep some of them and use them in your own postings ! I place them in publicdomain :slightly_smiling_face: )