1 |
opts = Options('custom.py') |
opts = Options('custom.py') |
2 |
opts.AddOptions( |
opts.AddOptions( |
3 |
BoolOption('RELEASE', 'Set to build for release', 0), |
BoolOption('RELEASE', 'Set to build for release', 0), |
4 |
PathOption('PYTHON_HOME','Path to python home','/usr/lib/python2.3') |
PathOption('PYTHON_HOME','Path to python home','/usr/lib/python2.3'), |
5 |
|
PathOption('BOOST_HOME','Path to boost home','/usr/include/boost') |
6 |
) |
) |
7 |
|
|
8 |
|
|
25 |
#TODO: Is there a more compact way of setting up the include paths? |
#TODO: Is there a more compact way of setting up the include paths? |
26 |
|
|
27 |
# Third-Party libraries |
# Third-Party libraries |
28 |
boost_home = '/usr/include/boost' |
boost_home = env['BOOST_HOME'] |
29 |
python_home = env['PYTHON_HOME'] |
python_home = env['PYTHON_HOME'] |
30 |
|
|
31 |
# Where to install (and find) esys includes and libraries |
# Where to install (and find) esys includes and libraries |
38 |
python_inc = python_home + '/include' |
python_inc = python_home + '/include' |
39 |
python_lib = python_home + '/libs' |
python_lib = python_home + '/libs' |
40 |
boost_inc = boost_home |
boost_inc = boost_home |
41 |
boost_lib = boost_home + '/usr/lib' |
boost_lib = boost_home + '/windows_binary/lib' |
42 |
elif env['PLATFORM'] == "posix": |
elif env['PLATFORM'] == "posix": |
43 |
python_inc = '/usr/include/python2.3' |
python_inc = '/usr/include/python2.3' |
44 |
python_lib = '/usr/lib' |
python_lib = '/usr/lib' |