/[ascend]/branches/python3/ascxx/SConscript
ViewVC logotype

Diff of /branches/python3/ascxx/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3506 by jpye, Wed Mar 8 23:02:10 2023 UTC revision 3507 by jpye, Wed Mar 8 23:37:58 2023 UTC
# Line 26  srcs = Split(""" Line 26  srcs = Split("""
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')
# Line 38  for s in srcs: Line 39  for s in srcs:
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)

Legend:
Removed from v.3506  
changed lines
  Added in v.3507

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