-
Notifications
You must be signed in to change notification settings - Fork 10
/
SConstruct
60 lines (46 loc) · 2.05 KB
/
SConstruct
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
# -*- python -*-
#
# Setup our environment
#
import glob, os.path, re, os
import lsst.SConsUtils as scons
env = scons.makeEnv("mops_daymops",
r"$HeadURL: svn+ssh://svn.lsstcorp.org/DMS/mops/daymops/trunk/SConstruct $",
[["boost", "boost/version.hpp", "boost_system:C++"],
["boost", "boost/version.hpp", "boost_filesystem:C++"],
["boost", "boost/regex.hpp", "boost_regex:C++"],
["boost", "boost/filesystem.hpp", "boost_system:C++"],
["boost", "boost/serialization/base_object.hpp", "boost_serialization:C++"],
["boost", "boost/test/included/unit_test.hpp"],
["pex_exceptions", "lsst/pex/exceptions/Exception.h lsst/pex/exceptions/Runtime.h", "pex_exceptions:C++"],
["gsl", "gsl/gsl_fit.h", "gslcblas gsl:C++"],
["slalib", "slalib.h slamac.h", "libsla:C++"],
["eigen", "Eigen/Core.h"],
#["utils", "lsst/tr1/unordered_map.h", "utils:C++"],
#["daf_base", "lsst/daf/base/Citizen.h lsst/daf/base/Persistable.h", "daf_base:C++"],
#["pex_policy", "lsst/pex/policy.h", "pex_policy:C++"],
#["daf_persistence", "lsst/daf/persistence.h", "daf_persistence:C++"],
["python", "Python.h"]
])
env.libs["mops_daymops"] += env.getlibs("boost pex_exceptions gsl python slalib")
env['IgnoreFiles'] = r"(~$|\.pyc$|^\.svn$|\.o$)"
# the "install" target
#
Alias("install", [ env.Install(env['prefix'], "include"),
env.InstallEups(env['prefix'] + "/ups",
glob.glob("ups/*.table"))])
scons.CleanTree(r"*~ core *.os *.o *.a *.so")
#
# Build TAGS files
#
files = scons.filesToTag()
if files:
env.Command("TAGS", files, "etags -o $TARGET $SOURCES")
env.Declare()
env.Help("""
LSST-MOPS package
""")
SConscript(['src/SConscript',
'lib/SConscript',
'doc/SConscript'])
SConscript('doc/SConscript')