This option stages "installed" files in a local directory which can then be used to generate installation packages while $prefix still references the final installed location.
20 lines
739 B
Python
20 lines
739 B
Python
from buildutils import *
|
|
|
|
Import('env', 'buildTargets', 'installTargets')
|
|
|
|
localenv = env.Clone()
|
|
|
|
if localenv['OS'] == 'Windows':
|
|
lib = localenv.SharedLibrary(pjoin('../../lib', 'clib'),
|
|
source=mglob(localenv, 'src', 'cpp'),
|
|
LIBS=env['cantera_libs'])
|
|
env['clib_shared'] = lib
|
|
inst = localenv.Install('$inst_libdir', lib)
|
|
buildTargets.extend(lib)
|
|
installTargets.extend(inst)
|
|
else:
|
|
static_lib = localenv.Library(pjoin('../../lib', 'clib'),
|
|
source=mglob(localenv, 'src', 'cpp'))
|
|
inst_static = localenv.Install('$inst_libdir', static_lib)
|
|
buildTargets.extend(static_lib)
|
|
installTargets.extend(inst_static)
|