-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
70 lines (53 loc) · 1.58 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
61
62
63
64
65
66
67
68
69
70
# -*- python -*-
import os
import sys
import SCons
sys.path.append('vardb/site_scons')
import eol_scons
def nimbusbase(env):
env.Require(['prefixoptions', 'buildmode', 'openmotif', 'nidas', 'netcdf', 'gsl', 'postgres_pq', 'boost_regex', 'bz2', 'z'])
env.Append(CPPPATH=['#/include', '#/src/filter'])
env.Append(CXXFLAGS=['-std=c++11'])
env.Append(CXXFLAGS=['-g'])
env.Append(CXXFLAGS=Split("-Wno-write-strings -Wstrict-aliasing "))
env['CC'] = env['CXX']
env['CCFLAGS'] = env['CXXFLAGS']
env['PUBLISH_PREFIX'] = '/net/www/docs/raf/Software'
env = Environment(platform='posix', tools=['default', 'gitinfo', nimbusbase])
# GLOBAL_TOOLS=['scanbuild'])
env.GitInfo('include/gitInfo.h', '.')
Export('env')
##
## Build include files.
##
SConscript('include/SConscript')
##
## Build NCAR COS blocked file decoding library.
##
SConscript('src/ncaru/src/SConscript')
##
## Build ADS2 Header API.
##
SConscript('src/hdr_api/SConscript')
##
## Build Derived Calculations libraries.
##
SConscript('src/amlib/SConscript')
##
## Build nimbus proper.
##
SConscript('src/filter/SConscript')
SConscript('tests/SConscript')
ninja = Environment(tools = ['default', 'ninja'])
ninja.NinjaCheck()
variables = env.GlobalVariables()
variables.Update(env)
env.SetHelp()
if "publish" in COMMAND_LINE_TARGETS:
pub = env.Install('$PUBLISH_PREFIX', ["doc/html/netCDF.html", 'doc/html/netCDF_1_3.html', 'doc/html/TimeExamp.html'])
env.Alias('publish', pub)
env.SetHelp()
env.AddHelp("""
Targets:
publish: Copy html documentation to EOL web space : $PUBLISH_PREFIX.
""")