20 lines
659 B
Python
20 lines
659 B
Python
from buildutils import *
|
|
|
|
Import('env', 'build', 'install')
|
|
localenv = env.Clone()
|
|
localenv.Prepend(CPPPATH=['#src', '#include', '#src/apps'])
|
|
|
|
def buildProgram(name, src):
|
|
prog = build(localenv.Program(target=pjoin('#build/bin', name),
|
|
source=src,
|
|
LIBS=env['cantera_libs']))
|
|
install('$inst_bindir', prog)
|
|
|
|
buildProgram('cti2ctml', ['cti2ctml.cpp'])
|
|
|
|
if env['layout'] != 'debian':
|
|
buildProgram('csvdiff', ['csvdiff.cpp', 'tok_input_util.cpp', 'mdp_allo.cpp'])
|
|
|
|
# Copy man pages
|
|
if env['INSTALL_MANPAGES']:
|
|
install('$inst_mandir', mglob(localenv, '#platform/posix/man', '*'))
|