Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | jlesech | 1 | # Set environment for AVR-GCC. |
2 | SConscript('#build_system/env_avr.py') |
||
3 | |||
4 | # Import environment set for AVR-GCC. |
||
5 | Import('env_avr') |
||
6 | |||
7 | # Append CPPPATH with the root path of libraries. |
||
8 | env_avr.Append(CPPPATH = [ '#libraries/' ]) |
||
9 | |||
10 | # Define environments to use (one environment per target). |
||
11 | environments = [ |
||
12 | 'env_arduino_uno', |
||
13 | 'env_arduino_mega2560' |
||
14 | ] |
||
15 | |||
16 | # Browse environments. |
||
17 | for environment in environments: |
||
18 | # Set environment for target. |
||
19 | SConscript( |
||
20 | '#build_system/' + environment + '.py', |
||
21 | exports = 'env_avr' |
||
22 | ) |
||
23 | # Import environment set for target. |
||
24 | Import('env_target') |
||
25 | # Build program. |
||
26 | SConscript( |
||
27 | 'SConscript', |
||
28 | variant_dir = '#build/' + 'projects/ultimate/' + environment, |
||
29 | exports = { 'env_target' : env_target }, |
||
30 | duplicate = 0 |
||
31 | ) |