26 |
envp = env.Clone() |
envp = env.Clone() |
27 |
|
|
28 |
# get compile/link settings for libpython, Python.h |
# get compile/link settings for libpython, Python.h |
29 |
|
print("PYTHON_PKG =",envp['PYTHON_PKG']) |
30 |
envp.ParseConfig('pkg-config $PYTHON_PKG --cflags --libs') |
envp.ParseConfig('pkg-config $PYTHON_PKG --cflags --libs') |
31 |
|
|
32 |
configh = envp.Substfile(source='config.h.in') |
configh = envp.Substfile(source='config.h.in') |
39 |
# LITTLE WEE TEST PROGRAMS for debuggin the c++ wrapper |
# LITTLE WEE TEST PROGRAMS for debuggin the c++ wrapper |
40 |
# currently out of order because of need for a separate builddir due to ASCXX_WITH_PYTHON flag taking different |
# currently out of order because of need for a separate builddir due to ASCXX_WITH_PYTHON flag taking different |
41 |
|
|
42 |
envx = envp.Clone() |
envx = env.Clone() |
43 |
|
envx.ParseConfig('pkg-config $PYTHON_PKG_EMBED --cflags --libs') |
44 |
|
print("envx LIBS =",envx['LIBS']) |
45 |
envx.Append(LIBS=['ascend'],LIBPATH=['#']) |
envx.Append(LIBS=['ascend'],LIBPATH=['#']) |
46 |
|
print("envx LIBS =",envx['LIBS']) |
47 |
ipopttest = envx.Program('testipopt',['testipopt.cpp'] + objs) |
ipopttest = envx.Program('testipopt',['testipopt.cpp'] + objs) |
48 |
conopttest = envx.Program('testconopt',['testconopt.cpp'] + objs) |
conopttest = envx.Program('testconopt',['testconopt.cpp'] + objs) |
49 |
slvreqtest = envx.Program('testslvreq',['testslvreq.cpp'] + objs) |
slvreqtest = envx.Program('testslvreq',['testslvreq.cpp'] + objs) |