summaryrefslogtreecommitdiff
path: root/examples/SConscript
blob: f69fc640277e41f7121f4e7b7e44e1347f2a5b89 (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
28
29
30
31
#!/bin/false

import os
import os.path
import glob


Import('env')

dir_path = Dir('.').abspath

# Environment for base library
examples_env = env.Clone();

examples_env.sources = sorted(glob.glob(dir_path + "/*.cpp"))
examples_env.headers = sorted(glob.glob(dir_path + "/*.hpp"))

env.sources += examples_env.sources;
env.headers += examples_env.headers;

objects_static = []
examples_env.echo_server = examples_env.Program('#bin/kel_unit_example_basic', ['basic.cpp']);

# Set Alias
env.examples = [examples_env.echo_server];
env.Alias('examples', env.examples);

if env["build_examples"]:
	env.targets += ['examples'];
	env.Install('$prefix/bin/', env.examples);
#endif