-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwscript
55 lines (51 loc) · 1.85 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
47
48
49
50
51
52
53
54
55
VERSION= '0.1.3'
APPNAME= 'fujimap'
srcdir= '.'
blddir= 'bin'
def set_options(ctx):
ctx.tool_options('compiler_cxx')
def configure(ctx):
ctx.check_tool('compiler_cxx')
ctx.env.CXXFLAGS += ['-O2', '-Wall', '-g']
def build(bld):
task1= bld(features='cxx cshlib',
source = 'fujimap.cpp fujimapBlock.cpp fujimapCommon.cpp bitVec.cpp keyEdge.cpp keyFile.cpp smaz.cpp',
name = 'fujimap',
target = 'fujimap',
includes = '.')
task2= bld(features='cxx cprogram',
source = 'fujimapMain.cpp smaz.cpp',
target ='fujimap',
includes = '.',
uselib_local = 'fujimap')
task3= bld(features='cxx cprogram',
source = 'fujimapTest.cpp',
target ='fujimapTest',
includes = '.',
uselib_local = 'fujimap')
task4= bld(features='cxx cprogram',
source = 'bitVecTest.cpp bitVec.cpp fujimapCommon.cpp',
target ='bitVecTest',
includes = '.'),
task5= bld(features='cxx cprogram',
source = 'fujimapPerformanceTest.cpp',
target ='fujimapPerformanceTest',
includes = '.',
uselib_local = 'fujimap'),
task6= bld(features='cxx cprogram',
source = 'keyFile.cpp fujimapCommon.cpp keyFileTest.cpp',
target ='keyFileTest',
includes = '.')
task7= bld(features='cxx cprogram',
source = 'encodeTest.cpp fujimapCommon.cpp',
target ='encodeTest',
includes = '.')
task8= bld(features='cxx cprogram',
source = 'huffman.cpp',
target ='huffman',
includes = '.')
task9= bld(features='cxx cprogram',
source = 'smaz-test.cpp smaz.cpp',
target ='smaz-test',
includes = '.')
bld.install_files('${PREFIX}/include/fujimap', bld.path.ant_glob('*.hpp'))