forked from freelan-developers/freelan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript
41 lines (31 loc) · 880 Bytes
/
SConscript
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
34
35
36
37
38
39
40
41
"""The SConscript file"""
import os
Import('env')
env = env.Clone()
# Here are the libraries, in order of compilation
libraries = [
'libiconvplus',
'libkfather',
'libasiotap',
'libcryptoplus',
'libfscp',
'libfreelan',
'freelan',
]
targets_names = [
'build',
'install',
'documentation',
'indent',
'samples',
]
targets = {}
for library in libraries:
targets[library] = SConscript(os.path.join(library, 'SConscript'), variant_dir=env.get_variant_dir(Dir(library)), exports='env')
# Special alias to build the libraries
env.Alias(library, targets[library]['build'])
for target_name in targets_names:
if target_name in targets[library]:
env.Alias(library + '_' + target_name, targets[library][target_name])
env.Alias(target_name, targets[library][target_name])
Return('targets')