Subversion Repositories idreammicro-avr

Rev

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

Rev Author Line No. Line
7 jlesech 1
# Import build tools.
9 jlesech 2
SConscript('#min_env/build_tools.py')
7 jlesech 3
 
2 jlesech 4
# Set environment for AVR-GCC.
9 jlesech 5
SConscript('#min_env/env_target.py')
2 jlesech 6
 
9 jlesech 7
# Import environment set for AVR-GCC.
8
Import('env_target')
6 jlesech 9
 
2 jlesech 10
# Append CPPPATH.
9 jlesech 11
env_target.Append(CPPPATH = [ '#../' ])
2 jlesech 12
 
13
# Build library.
14
SConscript(
15
    'src/SConscript',
16
    variant_dir = '#build/lib/',
9 jlesech 17
    exports = { 'env_target' : env_target },
2 jlesech 18
    duplicate = 0
19
)
20
 
21
# Append LIBPATH and LIBS.
9 jlesech 22
env_target.Append(LIBPATH = [ '#build/lib/'])
23
env_target.Append(LIBS = [ 'digital_io' ])
2 jlesech 24
 
25
# Build demonstration program.
26
SConscript(
27
    'demo/SConscript',
28
    variant_dir = '#build/demo/',
9 jlesech 29
    exports = { 'env_target' : env_target },
2 jlesech 30
    duplicate = 0
31
)
32
 
33
# Build test program.
34
SConscript(
35
    'test/SConscript',
36
    variant_dir = '#build/test/',
9 jlesech 37
    exports = { 'env_target' : env_target },
2 jlesech 38
    duplicate = 0
39
)
40