-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript
executable file
·40 lines (37 loc) · 1.54 KB
/
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
import libtbx.load_env
import os
import platform
from libtbx.env_config import get_boost_library_with_python_version
Import("env_etc")
env_etc.dials_scratch_dist = libtbx.env.dist_path("dials_scratch")
env_etc.dials_scratch_include = os.path.dirname(env_etc.dials_scratch_dist)
if not env_etc.no_boost_python and hasattr(env_etc, "boost_adaptbx_include"):
Import("env_no_includes_boost_python_ext")
env = env_no_includes_boost_python_ext.Clone()
env_etc.enable_more_warnings(env=env)
env_etc.include_registry.append(
env=env,
paths=[
env_etc.libtbx_include,
env_etc.scitbx_include,
env_etc.cctbx_include,
env_etc.rstbx_include,
env_etc.boost_include,
env_etc.boost_adaptbx_include,
env_etc.python_include,
env_etc.dxtbx_include,
env_etc.dials_include,
],
)
env.SharedLibrary(target="#lib/dials_scratch_ext", source=["ext.cpp"])
if libtbx.env.build_options.use_conda:
boost_python = get_boost_library_with_python_version(
"boost_python", env_etc.conda_libpath
)
else:
boost_python = "boost_python"
env.Append(LIBS=env_etc.libm + ["scitbx_boost_python", boost_python, "cctbx"])
env.SConscript("idy/algorithms/spot_prediction/SConscript", exports={"env": env})
env.SConscript("dgw/cctbx_cpp_examples/SConscript", exports={"env": env})
env.SConscript("dgw/gemmi_mtz/SConscript", exports={"env": env})
env.SConscript("jmp/SConscript", exports={"env": env})