SCons now builds the binaries in the 'tools' directory
This commit is contained in:
parent
947d8260ad
commit
35cc0d3bbc
5 changed files with 24 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ from buildutils import *
|
|||
Import('env', 'build')
|
||||
|
||||
# (subdir, library name, (file extensions))
|
||||
libs = [LibOpts('src', 'clib')]
|
||||
libs = [BuildOpts('src', 'clib')]
|
||||
|
||||
print os.getcwd()
|
||||
for lib in libs:
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ from buildutils import *
|
|||
Import('env', 'build')
|
||||
|
||||
# (subdir, library name, (file extensions))
|
||||
libs = [LibOpts('src', 'ctcxx')]
|
||||
libs = [BuildOpts('src', 'ctcxx')]
|
||||
|
||||
print os.getcwd()
|
||||
for lib in libs:
|
||||
|
|
|
|||
|
|
@ -274,3 +274,6 @@ SConscript('Cantera/python/SConscript')
|
|||
|
||||
if env['matlab_toolbox'] == 'y':
|
||||
SConscript('Cantera/matlab/SConscript')
|
||||
|
||||
VariantDir('build/tools', 'tools', duplicate=0)
|
||||
SConscript('build/tools/SConscript')
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class CopyNoPrefix(object):
|
|||
shutil.copyfile(str(source[0]), pjoin(*targetpath[depth:]))
|
||||
|
||||
|
||||
class LibOpts(object):
|
||||
class BuildOpts(object):
|
||||
def __init__(self, subdir, name, exts=('cpp',), **kwargs):
|
||||
self.subdir = subdir
|
||||
self.name = name
|
||||
|
|
|
|||
18
tools/SConscript
Normal file
18
tools/SConscript
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
from buildutils import *
|
||||
|
||||
Import('env')
|
||||
localenv = env.Clone()
|
||||
|
||||
bindir = pjoin('..','bin')
|
||||
|
||||
localenv = env.Clone()
|
||||
localenv.Program(target=pjoin(bindir, 'cti2ctml'),
|
||||
source=['src/cti2ctml.cpp'],
|
||||
LIBS=['ctbase'])
|
||||
|
||||
localenv.Program(target=pjoin(bindir, 'ck2cti'),
|
||||
source=['src/ck2cti.cpp'],
|
||||
LIBS=['converters','ctbase','tpx','ctcxx'])
|
||||
|
||||
localenv.Program(target=pjoin(bindir, 'fixtext'),
|
||||
source=['src/fixtext.cpp'])
|
||||
Loading…
Add table
Reference in a new issue