1,32 → 1,2 |
# Set environment for AVR-GCC. |
SConscript('#build_system/env_avr.py') |
|
# Import environment set for AVR-GCC. |
Import('env_avr') |
|
# Append CPPPATH with the root path of libraries. |
env_avr.Append(CPPPATH = [ '#libraries/' ]) |
|
# Define environments to use (one environment per target). |
environments = [ |
'env_arduino_uno', |
'env_arduino_mega2560' |
] |
|
# Browse environments. |
for environment in environments: |
# Set environment for target. |
SConscript( |
'#build_system/' + environment + '.py', |
exports = 'env_avr' |
) |
# Import environment set for target. |
Import('env_target') |
# Build program. |
SConscript( |
'SConscript', |
variant_dir = '#build/' + environment, |
exports = { 'env_target' : env_target, 'env_name' : environment }, |
duplicate = 0 |
) |
|
# Execute projects SConscript. |
SConscript('projects/SConscript') |