-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript.bs
57 lines (46 loc) · 1.54 KB
/
SConscript.bs
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# \file SConscript.bs
# \brief SConscript for build plugins by blue-sky build system
# \author Sergey Miryanov (sergey-miryanov), [email protected]
# \date 23.10.2009
# \copyright This source code is released under the terms of
# the BSD License. See LICENSE for more details.
#
import os
Import ("*")
lib_name = "bs_arch"
tar_name = "bs_arch"
env = custom_env.Clone ()
env.Append (CPPPATH = ["include",
includes["bs_bos_core_base"],
includes["bs_matrix"],
includes["bs_base_linear_solvers"],
includes["bs_csr_ilu_prec"],
includes["bs_bos_core_data_storage"],
includes["bs_mesh_mpfa"],
includes["bs_scal"],
includes["bs_pvt"]
] + includes["kernel"]
+ includes["bs_mesh"]
)
libs = ["blue_sky",
"bs_bos_core_base",
"bs_matrix",
"bs_base_linear_solvers",
"bs_csr_ilu_prec",
"bs_bos_core_data_storage",
"bs_scal",
"bs_pvt"
]
boost_libs = ["boost_date_time-mt"]
if (build_kind == "debug") :
env.AppendUnique (LIBS = list_suffix (libs, "_d") + list_suffix (boost_libs, "-d"))
lib_name += "_d"
elif (build_kind == "release") :
env.AppendUnique (LIBS = libs + boost_libs)
bs_arch = env.SharedLibrary (target = os.path.join (tar_exe_plugin_dir, lib_name), source = files (["."], ["stdafx.cpp"]).sources)
env.Alias (tar_name, bs_arch)
Export ("bs_arch")
if (env["install"] == 1) :
inst_tar = env.Install ("$plugins_prefix", bs_arch)
env.Alias (tar_name, inst_tar)