Import('env') if 'CMSLV' in env['WITH_SOLVERS'] and 'CONOPT' in env['WITH_SOLVERS']: solver_env = env.Clone() solver_env.AppendUnique( LIBS = ['ascend'] , LIBPATH = ['#'] ) if solver_env.get('CONOPT_LINKED'): solver_env.AppendUnique( CPPPATH=env['CONOPT_CPPPATH'] , LIBS=env['CONOPT_LIB'] , LIBPATH=env['CONOPT_LIBPATH'] ) lib = solver_env.SharedLibrary("cmslv",["cmslv.c"] ,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] ,SHLIBPREFIX = env['EXTLIB_PREFIX'] ) env.Depends(lib,env['libascend']) env['extfns'] += [lib] if env.get('CAN_INSTALL'): env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS")),lib) # vim: set syntax=python: