-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwscript
More file actions
32 lines (28 loc) · 1.48 KB
/
wscript
File metadata and controls
32 lines (28 loc) · 1.48 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
# -*- python -*-
APPNAME = 'kalab'
VERSION = '1.47.1'
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((3,6,0))
conf.check_python_module('Bio')
conf.check_python_module('click')
conf.env.append_unique('CXXFLAGS', ['-O2', '-DVERSION_STRING=' + VERSION])
conf.env.INCLUDES += '.'
conf.env.LIB += ['pthread', 'dl']
def build(bld):
from waflib import Utils
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', 'sha_scan', 'sha_scanp', 'gfwhich', 'json2csv', 'csv2html', 'plotr',
'ispcr', 'headtail', 'recompressbyxz', 'split_paf', 'reduce_genome_feature', 'cco']
# bld.install_files('${PREFIX}/bin', ['script/' + x for x in executables], chmod=0755)
bld.install_files('${PREFIX}/bin', ['script/' + x for x in executables], chmod=Utils.O755)
if bld.options.enable_perl:
bld.install_files('${ARCHDIR_PERL}', ['script/BLASTM8Parse.pm'])