Made dependency of Matlab extension on the Cantera library explicit
This commit is contained in:
parent
59b878bf41
commit
a1641019dd
2 changed files with 9 additions and 3 deletions
|
|
@ -53,6 +53,7 @@ lib = build(localenv.StaticLibrary('../lib/cantera', libraryTargets,
|
|||
SPAWN=getSpawn(localenv)))
|
||||
localenv.Depends(lib, localenv['config_h_target'])
|
||||
install('$inst_libdir', lib)
|
||||
env['cantera_staticlib'] = lib
|
||||
|
||||
# OS X requires the shared libraries at link time
|
||||
if (localenv['use_sundials'] == 'y' and
|
||||
|
|
|
|||
|
|
@ -50,7 +50,8 @@ mexSuffix = '.mex%s%i' % (mexPlatform, localenv['OS_BITS'])
|
|||
|
||||
localenv.Append(CPPPATH=['#include', '#src', matlab_include],
|
||||
CPPDEFINES=['MATLAB_MEX_FILE'],
|
||||
LIBPATH=[matlab_libs])
|
||||
LIBPATH=[matlab_libs],
|
||||
LINKFLAGS=linkflags)
|
||||
|
||||
linklibs += localenv['sundials_libs']
|
||||
linklibs += localenv['blas_lapack_libs']
|
||||
|
|
@ -60,8 +61,12 @@ ctmethods = build(localenv.SharedLibrary('#interfaces/matlab/toolbox/ctmethods',
|
|||
LIBPREFIX='',
|
||||
SHLIBPREFIX='',
|
||||
SHLIBSUFFIX=mexSuffix,
|
||||
LIBS=linklibs,
|
||||
LINKFLAGS=linkflags))
|
||||
LIBS=linklibs))
|
||||
|
||||
if localenv['OS'] in ('Windows', 'Darwin'):
|
||||
localenv.Depends(ctmethods, localenv['cantera_shlib'])
|
||||
else:
|
||||
localenv.Depends(ctmethods, localenv['cantera_staticlib'])
|
||||
|
||||
env['matlab_extension'] = ctmethods
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue