blob: 9ff46d070523b7b4cb4d810e3cacca2610e0e3b4 (
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
32
33
|
#!/bin/false
import os
import os.path
import glob
Import('env')
dir_path = Dir('.').abspath
# Environment for base library
tools_env = env.Clone();
tools_env.sources = sorted(glob.glob(dir_path + "/*.cpp"))
tools_env.headers = sorted(glob.glob(dir_path + "/*.hpp"))
env.sources += tools_env.sources;
env.headers += tools_env.headers;
## Static lib
objects_static = []
tools_env.add_source_files(objects_static, tools_env.sources, shared=False);
env.library_static = tools_env.StaticLibrary('#build/forstio-tools', [objects_static]);
# Set Alias
env.Alias('library_tools', [env.library_static]);
env.targets += ['library_tools'];
# Install
env.Install('$prefix/lib/', [env.library_static]);
env.Install('$prefix/include/forstio/tools/', [tools_env.headers]);
|