from buildutils import *

Import('env', 'buildTargets', 'installTargets', 'demoTargets')

localenv = env.Clone()

### Demos ###

# (subdir, program name, [source extensions])
demos = [('combustor', 'combustor', ['cpp']),
         ('flamespeed', 'flamespeed', ['cpp']),
         ('kinetics1', 'kinetics1', ['cpp']),
         ('NASA_coeffs', 'NASA_coeffs', ['cpp']),
         ('rankine', 'rankine', ['cpp'])]

for subdir, name, extensions in demos:
    prog = localenv.Program(pjoin('demos',subdir, name),
                            mglob(localenv, pjoin('demos',subdir), *extensions),
                            LIBS=env['cantera_libs'])
    demoTargets.extend(prog)

    inst = localenv.Install(pjoin('$inst_demodir', 'cxx', subdir),
                            mglob(localenv, pjoin('demos', subdir),
                                  'csv','txt','cpp','h','^runtest'))

    installTargets.extend(inst)

67f12f9092d56721e494fb40e97930a2a325a75d
<mask token>

<mask token>
Import('env', 'buildTargets', 'installTargets', 'demoTargets')
<mask token>
for subdir, name, extensions in demos:
    prog = localenv.Program(pjoin('demos', subdir, name), mglob(localenv,
        pjoin('demos', subdir), *extensions), LIBS=env['cantera_libs'])
    demoTargets.extend(prog)
    inst = localenv.Install(pjoin('$inst_demodir', 'cxx', subdir), mglob(
        localenv, pjoin('demos', subdir), 'csv', 'txt', 'cpp', 'h', '^runtest')
        )
    installTargets.extend(inst)

<mask token>
Import('env', 'buildTargets', 'installTargets', 'demoTargets')
localenv = env.Clone()
demos = [('combustor', 'combustor', ['cpp']), ('flamespeed', 'flamespeed',
    ['cpp']), ('kinetics1', 'kinetics1', ['cpp']), ('NASA_coeffs',
    'NASA_coeffs', ['cpp']), ('rankine', 'rankine', ['cpp'])]
for subdir, name, extensions in demos:
    prog = localenv.Program(pjoin('demos', subdir, name), mglob(localenv,
        pjoin('demos', subdir), *extensions), LIBS=env['cantera_libs'])
    demoTargets.extend(prog)
    inst = localenv.Install(pjoin('$inst_demodir', 'cxx', subdir), mglob(
        localenv, pjoin('demos', subdir), 'csv', 'txt', 'cpp', 'h', '^runtest')
        )
    installTargets.extend(inst)

from buildutils import *
Import('env', 'buildTargets', 'installTargets', 'demoTargets')
localenv = env.Clone()
demos = [('combustor', 'combustor', ['cpp']), ('flamespeed', 'flamespeed',
    ['cpp']), ('kinetics1', 'kinetics1', ['cpp']), ('NASA_coeffs',
    'NASA_coeffs', ['cpp']), ('rankine', 'rankine', ['cpp'])]
for subdir, name, extensions in demos:
    prog = localenv.Program(pjoin('demos', subdir, name), mglob(localenv,
        pjoin('demos', subdir), *extensions), LIBS=env['cantera_libs'])
    demoTargets.extend(prog)
    inst = localenv.Install(pjoin('$inst_demodir', 'cxx', subdir), mglob(
        localenv, pjoin('demos', subdir), 'csv', 'txt', 'cpp', 'h', '^runtest')
        )
    installTargets.extend(inst)

from buildutils import *

Import('env', 'buildTargets', 'installTargets', 'demoTargets')

localenv = env.Clone()

### Demos ###

# (subdir, program name, [source extensions])
demos = [('combustor', 'combustor', ['cpp']),
         ('flamespeed', 'flamespeed', ['cpp']),
         ('kinetics1', 'kinetics1', ['cpp']),
         ('NASA_coeffs', 'NASA_coeffs', ['cpp']),
         ('rankine', 'rankine', ['cpp'])]

for subdir, name, extensions in demos:
    prog = localenv.Program(pjoin('demos',subdir, name),
                            mglob(localenv, pjoin('demos',subdir), *extensions),
                            LIBS=env['cantera_libs'])
    demoTargets.extend(prog)

    inst = localenv.Install(pjoin('$inst_demodir', 'cxx', subdir),
                            mglob(localenv, pjoin('demos', subdir),
                                  'csv','txt','cpp','h','^runtest'))

    installTargets.extend(inst)
