Rev 3 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# 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/' + 'projects/helloworld/' + environment,
exports = { 'env_target' : env_target },
duplicate = 0
)