/[ascend]/trunk/solvers/ipopt/SConscript
ViewVC logotype

Contents of /trunk/solvers/ipopt/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2715 - (show annotations) (download)
Sun Sep 1 12:29:23 2013 UTC (9 years ago) by jpye
File size: 790 byte(s)
reviewing mingw32 build.
changing detection of glade directory on windows.
1 Import('env')
2 import platform
3
4 if env.get('WITH_IPOPT'):
5 solver_env = env.Clone()
6
7 solver_env.AppendUnique(CPPPATH=[solver_env.get('IPOPT_CPPPATH')])
8
9 solver_env.Append(
10 CPPDEFINES=[
11 'ASC_WITH_IPOPT'
12 ]
13 ,CPPPATH = [solver_env.get('IPOPT_CPPPATH')]
14 )
15
16 if platform.system()=="Windows":
17 solver_env.Append(
18 CFLAGS=["-static"]
19 )
20
21 lib = solver_env.SharedLibrary("ipopt",["asc_ipopt.c"]
22 ,LIBS = ['ascend'] + solver_env.get('IPOPT_LIBS')
23 ,LIBPATH = ['#'] + [solver_env.get('IPOPT_LIBPATH')]
24 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
25 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
26 )
27
28 env.Depends(lib,env['libascend'])
29
30 env['extfns'] += [lib]
31
32 if env.get('CAN_INSTALL'):
33 dir = Dir(env.subst("$INSTALL_ROOT$INSTALL_SOLVERS"))
34 env.InstallShared(dir,lib)
35
36 # vim: set syntax=python:

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22