summaryrefslogtreecommitdiff
path: root/forstio/async/SConscript
blob: 0b1e7dd3417fa7756fabd2bcd2a165058090091e (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
#!/bin/false

import os
import os.path
import glob


Import('env')

dir_path = Dir('.').abspath

env.sources += sorted(glob.glob(dir_path + "/*.cpp"))
env.headers += sorted(glob.glob(dir_path + "/*.h"))

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

## Shared lib
objects_shared = []
base_lib_env.add_source_files(objects_shared, env.sources, shared=True);
env.library_shared = base_lib_env.SharedLibrary('#build/forstio-async', [objects_shared]);

## Static lib
objects_static = []
base_lib_env.add_source_files(objects_static, env.sources, shared=False);
env.library_static = base_lib_env.StaticLibrary('#build/forstio-async', [objects_static]);

# Export to other libs
Export('base_lib_env')

# Set Alias
env.Alias('library', [env.library_shared, env.library_static]);