forked from ngageoint/six-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wscript
34 lines (27 loc) · 816 Bytes
/
wscript
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
import os
import subprocess
from os.path import join
from waflib import Scripting, Options, Context
from build import CPPOptionsContext
# Version is set in six/modules directory
# Set it there because someone may be building SIX as part of another repo and
# skipping our top-level wscript
APPNAME = 'SIX'
Context.APPNAME = APPNAME
top = '.'
out = 'target'
TOOLS = 'build swig matlabtool pythontool'
TOOLS_DIR = join('externals', 'coda-oss', 'build')
DIRS = 'externals six'
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.launch_dir = join(bld.launch_dir, 'six')
bld.recurse(DIRS)
def distclean(context):
context.recurse(DIRS)
Scripting.distclean(context)