forked from mkasa/klab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
28 lines (24 loc) · 1.3 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
# -*- python -*-
APPNAME = 'kalab'
VERSION = '1.36'
def options(opt):
opt.load(['compiler_c', 'compiler_cxx', 'python', 'perl'])
opt.add_option('--enable-perl', action = 'store_true', default = False, help = 'enable Perl modules')
def configure(conf):
conf.load(['compiler_c', 'compiler_cxx', 'python', 'perl'])
if conf.options.enable_perl:
conf.check_perl_version((5,6,0))
conf.check_perl_ext_devel()
conf.check_python_version((2,4,2))
conf.env.append_unique('CXXFLAGS', ['-O2', '-DVERSION_STRING=' + VERSION])
conf.env.INCLUDES += '.'
conf.env.LIB += ['pthread', 'dl']
def build(bld):
bld(features = 'cxx cxxprogram', source = 'src/sieve.cc', target = 'sieve')
bld(features = 'cxx c cxxprogram', source = ['src/fatt.cc', 'src/sqlite3.c', 'src/sqdb.cc'], target = 'fatt')
executables = ['convertsequence', 'fixshebang', 'icc-color', 'gcc-color',
'mydaemon', 'rep', 'sq', 'mddoc', 'gmddoc', 'sha_scan', 'gfwhich', 'json2csv', 'csv2html', 'csv2md',
'ods2xls', 'ods2xlsx', 'pbjellysummary2json', 'ispcr', 'headtail', 'recompressbyxz', 'taw']
bld.install_files('${PREFIX}/bin', ['script/' + x for x in executables], chmod=0755)
if bld.options.enable_perl:
bld.install_files('${ARCHDIR_PERL}', ['script/BLASTM8Parse.pm'])