summaryrefslogtreecommitdiff
blob: 8830dd8a054e991ab7056726a21833fced9ba2ad (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
diff --git a/cctbx_sources/clipper_adaptbx/SConscript b/cctbx_sources/clipper_adaptbx/SConscript
index 9cce49e..1046ed0 100644
--- a/cctbx_sources/clipper_adaptbx/SConscript
+++ b/cctbx_sources/clipper_adaptbx/SConscript
@@ -1,56 +1,13 @@
 import libtbx.load_env
 Import("env_base", "env_etc")
 
-env_etc.clipper_dist = libtbx.env.dist_path("clipper")
-env_etc.clipper_include = env_etc.clipper_dist
-
 env = env_base.Clone(
   SHLINKFLAGS=env_etc.shlinkflags,
   LIBS=env_etc.libm)
-env.Prepend(CPPPATH=[env_etc.clipper_include])
-
-if (env_etc.static_libraries): builder = env.StaticLibrary
-else:                          builder = env.SharedLibrary
-builder(target='#lib/clipper',
-  source = ["../clipper/clipper/core/"+file_name for file_name in """
-  atomsf.cpp
-  cell.cpp
-  clipper_memory.cpp
-  clipper_message.cpp
-  clipper_stats.cpp
-  clipper_types.cpp
-  clipper_util.cpp
-  container.cpp
-  container_hkl.cpp
-  container_map.cpp
-  container_types.cpp
-  coords.cpp
-  derivs.cpp
-  hkl_compute.cpp
-  hkl_data.cpp
-  hkl_datatypes.cpp
-  hkl_info.cpp
-  hkl_lookup.cpp
-  hkl_operators.cpp
-  map_interp.cpp
-  map_utils.cpp
-  nxmap.cpp
-  nxmap_operator.cpp
-  ramachandran.cpp
-  resol_basisfn.cpp
-  resol_fn.cpp
-  resol_targetfn.cpp
-  rotation.cpp
-  spacegroup.cpp
-  spacegroup_data.cpp
-  symop.cpp
-  xmap.cpp
-""".split()])
-# fftmap_sparse.cpp
-# fftmap.cpp
 
 env_exe = env.Clone()
-env_exe.Prepend(LIBS=["clipper"])
+env_exe.Prepend(LIBS=["clipper-minimol","clipper-mmdb","clipper-cns","clipper-cif","clipper-contrib","clipper-ccp4","clipper-phs","clipper-core"])
+env_exe.Prepend(SHLINKFLAGS=["-Wl,--as-needed"])
 
 exe = env_exe.Program(
   target='#exe_dev/'+env["PROGPREFIX"]+'clipper.symtest'
@@ -76,12 +33,10 @@ if (hasattr(env_etc, "cctbx_include")):
     env_etc.include_registry.append(
       env=env_clipper_boost_python_ext,
       paths=[
-        env_etc.clipper_include,
         env_etc.libtbx_include,
         env_etc.cctbx_include,
         env_etc.scitbx_include,
         env_etc.boost_adaptbx_include,
-        env_etc.boost_include,
         env_etc.python_include])
     Export("env_clipper_boost_python_ext")
-    SConscript("clipper/SConscript")
+