Subversion Repositories idreammicro-avr

Rev

Details | Last modification | View Log | RSS feed

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