blob: 4071add3e403444ebd0acb34d556f3cf48869d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/false
import os
import os.path
import glob
Import('env')
dir_path = Dir('.').abspath
swarm_env = env.Clone();
swarm_env.sources = sorted(glob.glob(dir_path + "/*.cpp"));
swarm_env.headers = sorted(glob.glob(dir_path + "/*.hpp"));
env.sources += swarm_env.sources;
env.headers += swarm_env.headers;
# Header only, like core. The StaticLibrary exists so dependents have something
# to name; it is built from zero translation units.
objects = []
swarm_env.add_source_files(objects, swarm_env.sources, shared=False);
env.library_static = swarm_env.StaticLibrary('#build/kel-lbm-swarm', [objects]);
env.Install('$prefix/lib/', env.library_static);
env.Install('$prefix/include/kel/lbm/swarm/', swarm_env.headers);
|