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