common: Add the register 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 ]
8
9 source_files_c = [
10     'src/common/startup.c',
11 ]
12
13 libcommon_rlib = env.Rustc('libcommon.rlib', source_files_rs[0])
14
15 for f in source_files_rs:
16     Depends(libcommon_rlib, f)
17
18 libcommon_a = env.Library('libcommon.a', source_files_c)
19
20 for f in source_files_c:
21     Depends(libcommon_a, f)