Subversion Repositories idreammicro-avr

Rev

Rev 19 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19 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 = [
37 jlesech 12
    'env_arduino_uno'
19 jlesech 13
]
14
 
15
# Browse environments.
16
for environment in environments:
17
    # Set environment for target.
18
    SConscript(
19
        '#build_system/' + environment + '.py',
20
        exports = 'env_avr'
21
    )
22
    # Import environment set for target.
23
    Import('env_target')
24
    # Build program.
25
    SConscript(
26
        'SConscript',
27
        variant_dir = '#build/' + 'projects/clock/' + environment,
28
        exports = { 'env_target' : env_target },
29
        duplicate = 0
30
    )