common: Add the nvic module.
[gps-watch.git] / SConscript.libcommon
1 Import('env')
2 env = env.Clone()
3
4 source_files_rs = [
5     'src/common/lib.rs', # Must be listed first (see below).
6     'src/common/register.rs',
7     'src/common/nvic.rs',
8 ]
9
10 source_files_c = [
11     'src/common/startup.c',
12 ]
13
14 libcommon_rlib = env.Rustc('libcommon.rlib', source_files_rs[0])
15
16 for f in source_files_rs:
17     Depends(libcommon_rlib, f)
18
19 libcommon_a = env.Library('libcommon.a', source_files_c)
20
21 for f in source_files_c:
22     Depends(libcommon_a, f)