??? 08/22/12 12:10 Read: times |
#188114 - -Ddefine or -Ddefine=val Responding to: ???'s previous message |
Don't the IDE supports specifying a #define symbol in the project file?
Then one of the project-global header files can contain: #if BUILT_VARIANT=1 #define MAX_QSIZE 100 #define RELAY_COUNT 4 #define HAVE_UART2 ... #elif BUILD_VARIANT=2 #define MAX_QSIZE 20 #define RELAY_COUNT 8 #define HAVE_SPI #define HAVE_BATTERY_CHARGER ... #else #error "Unsupported build alternative." #endif |
Topic | Author | Date |
Best Way to Select Options | 01/01/70 00:00 | |
I chose .... | 01/01/70 00:00 | |
Method 3 | 01/01/70 00:00 | |
batch | 01/01/70 00:00 | |
-Ddefine or -Ddefine=val | 01/01/70 00:00 | |
Don't the IDE supports specifying a #define symbol in the pr | 01/01/70 00:00 | |
-Ddefine=val | 01/01/70 00:00 | |
C51 - not IDE | 01/01/70 00:00 | |
*also* IDE | 01/01/70 00:00 | |
Of course | 01/01/70 00:00 | |
that's the bugger | 01/01/70 00:00 | |
You can, but... | 01/01/70 00:00 | |
once more - the bugger | 01/01/70 00:00 | |
Ok, Let's See the Documentation | 01/01/70 00:00 | |
Not Found | 01/01/70 00:00 | |
Documentation | 01/01/70 00:00 | |
Make Files | 01/01/70 00:00 | |
make | 01/01/70 00:00 | |
gnu make | 01/01/70 00:00 |