forked from ngageoint/six-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
38 lines (31 loc) · 1.06 KB
/
wscript
File metadata and controls
38 lines (31 loc) · 1.06 KB
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
import os
from os.path import join
from waflib import Scripting, Options, Context
from build import CPPOptionsContext
VERSION = '1.0'
APPNAME = 'SIX'
Context.APPNAME = APPNAME
top = '.'
out = 'target'
TOOLS = 'build swig matlabtool pythontool'
TOOLS_DIR = join('externals', 'coda-oss', 'build')
DIRS = 'externals modules projects'
def options(opt):
opt.load(TOOLS, tooldir=TOOLS_DIR)
opt.recurse(DIRS)
def configure(conf):
conf.load(TOOLS, tooldir=TOOLS_DIR)
conf.recurse(DIRS)
def build(bld):
bld.recurse(DIRS)
if not bld.targets:
bld.targets = 'cphd-c++,six.sicd-c++,six.sidd-c++,six-samples'
if 'HAVE_CSM' in bld.env:
bld.targets += ',six-csm,vts'
if bld.is_defined('HAVE_MEX_H'):
bld.targets += ',nitf_image,nitf_metadata,xml_metadata'
if 'PYTHON' in bld.env and bld.env['PYTHON'] and bld.is_defined('HAVE_PYTHON_H'):
bld.targets += ',six.sicd-python,xml.lite-python,logging-python'
def distclean(context):
context.recurse('modules projects')
Scripting.distclean(context)