-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwscript
47 lines (36 loc) · 1.08 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
#! /usr/bin/env python
from shutil import copyfile
from subprocess import call
import os
import platform
VERSION='0.0.0'
APPNAME='rational_geometry'
top = '.'
out = 'bin'
def options(opt):
opt.load('compiler_cxx')
def configure(conf):
conf.env.MSVC_TARGETS = ['x64']
conf.env.CXXFLAGS = ['/nologo', '/EHsc', '/MD']
conf.load('compiler_cxx msvc')
def post(ctx):
print("\n -- Running Unit tests: --\n")
call(['./bin/rational_geometry_test.exe'])
print("\n -- End Unit tests --\n")
def build(bld):
my_source = [
'tests/Direction.test.cpp',
'tests/FixedRational.test.cpp',
'tests/Matrix.test.cpp',
'tests/Point.test.cpp',
'tests/common_factor.test.cpp',
'tests/operations.test.cpp',
'tests/test.cpp',
'tests/unrepresentable_operation_error.test.cpp',
]
bld.program(
source = my_source,
features = 'cxx cxxprogram',
target = 'rational_geometry_test')
bld.add_post_fun(post)
# vim:set et ts=4 sts=4 sw=4 ft=python: