Build clib as a shared library
This commit is contained in:
parent
96f93bbac7
commit
b78fa7c9de
4 changed files with 6 additions and 4 deletions
|
|
@ -3,8 +3,9 @@ from buildutils import *
|
|||
Import('env', 'buildTargets', 'installTargets')
|
||||
|
||||
localenv = env.Clone()
|
||||
lib = localenv.Library(pjoin('../../lib', 'clib'),
|
||||
source=mglob(localenv, 'src', 'cpp'))
|
||||
lib = localenv.SharedLibrary(pjoin('../../lib', 'clib'),
|
||||
source=mglob(localenv, 'src', 'cpp'),
|
||||
LIBS=env['cantera_libs'])
|
||||
inst = localenv.Install('$ct_libdir', lib)
|
||||
buildTargets.extend(lib)
|
||||
installTargets.extend(inst)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#ifndef CTC_DEFS_H
|
||||
#define CTC_DEFS_H
|
||||
|
||||
#include "ct_defs.h"
|
||||
|
||||
#ifdef WIN32
|
||||
// Either build as a DLL under Windows or not.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ make_setup = localenv.SubstFile('setup.py', 'setup.py.in')
|
|||
|
||||
if env['python_package'] == 'full':
|
||||
pymodule = localenv.SharedLibrary('Cantera/_cantera', ['src/pycantera.cpp'],
|
||||
LIBS=localenv['cantera_libs'],
|
||||
LIBS='clib',
|
||||
SHLIBPREFIX='',
|
||||
SHLIBSUFFIX=gcv('SO'))
|
||||
buildTargets.extend(pymodule)
|
||||
|
|
|
|||
|
|
@ -626,7 +626,7 @@ for header in mglob(env, 'Cantera/clib/src', 'h'):
|
|||
installTargets.extend(inst)
|
||||
|
||||
### List of libraries needed to link to Cantera ###
|
||||
linkLibs = ['clib','oneD','zeroD','equil','kinetics','transport',
|
||||
linkLibs = ['oneD','zeroD','equil','kinetics','transport',
|
||||
'thermo','ctnumerics','ctmath','tpx',
|
||||
'ctspectra','converters','ctbase']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue