Blame | Last modification | View Log | Download | RSS feed
# Import build tools.
SConscript('#min_env/build_tools.py')
# Set environment for AVR-GCC.
SConscript('#min_env/env_target.py')
# Import environment set for AVR-GCC.
Import('env_target')
# Append CPPPATH.
env_target.Append(CPPPATH = [ '#../' ])
# Build library.
SConscript(
'src/SConscript',
variant_dir = '#build/lib/',
exports = { 'env_target' : env_target },
duplicate = 0
)
# Append LIBPATH and LIBS.
env_target.Append(LIBPATH = [ '#build/lib/'])
env_target.Append(LIBS = [ 'eeprom' ])
# Build demonstration program.
SConscript(
'demo/SConscript',
variant_dir = '#build/demo/',
exports = { 'env_target' : env_target },
duplicate = 0
)
# Build test program.
SConscript(
'test/SConscript',
variant_dir = '#build/test/',
exports = { 'env_target' : env_target },
duplicate = 0
)