1 |
|
|
2 |
|
# Copyright 2006 by ACcESS MNRF |
3 |
|
# |
4 |
|
# http://www.access.edu.au |
5 |
|
# Primary Business: Queensland, Australia |
6 |
|
# Licensed under the Open Software License version 3.0 |
7 |
|
# http://www.opensource.org/licenses/osl-3.0.php |
8 |
|
# |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
# this code should be called by all esys13 scons builder and testing scripts |
# this code should be called by all esys13 scons builder and testing scripts |
13 |
# it sets default values for relevant variables and overloads them with the |
# it sets default values for relevant variables and overloads them with the |
14 |
# standard gcc settings by importing gcc_options. If there is |
# standard gcc settings by importing gcc_options. If there is |
38 |
# locations of include files for python |
# locations of include files for python |
39 |
python_path = Dir('/usr/include') |
python_path = Dir('/usr/include') |
40 |
python_lib_path = Dir('/usr/lib') |
python_lib_path = Dir('/usr/lib') |
41 |
python_lib = Library('python2.3') |
python_lib = [ 'python2.3' ] |
42 |
|
|
43 |
|
# locations of PAPI |
44 |
|
papi_path = '' |
45 |
|
papi_lib_path = '' |
46 |
|
papi_libs = [] |
47 |
|
|
48 |
# locations of libraries for boost |
# locations of libraries for boost |
49 |
boost_path = Dir('/usr/include') |
boost_path = '/usr/include' |
50 |
boost_lib_path = Dir('/usr/lib') |
boost_lib_path = '/usr/lib' |
51 |
boost_lib = Library('boost_python') |
boost_lib = 'boost_python' |
52 |
|
|
53 |
# locations of doc building executables |
# locations of doc building executables |
54 |
doxygen_path = '' |
doxygen_path = '' |
96 |
if ARGUMENTS.get('debug',0): dodebug = 1 |
if ARGUMENTS.get('debug',0): dodebug = 1 |
97 |
if ARGUMENTS.get('options',0): options = ARGUMENTS.get('options',0) |
if ARGUMENTS.get('options',0): options = ARGUMENTS.get('options',0) |
98 |
if ARGUMENTS.get('usegcc',0): usegcc = 1 |
if ARGUMENTS.get('usegcc',0): usegcc = 1 |
|
|
|
99 |
# |
# |
100 |
# try to import <hostname>_options |
# try to import <hostname>_options |
101 |
try: |
try: |
107 |
# try to import <hostname>_options |
# try to import <hostname>_options |
108 |
if usegcc==0: |
if usegcc==0: |
109 |
import socket |
import socket |
110 |
hostname = socket.gethostname() |
from string import ascii_letters,digits |
111 |
|
hostname="" |
112 |
|
for s in socket.gethostname().split('.')[0]: |
113 |
|
if s in ascii_letters+digits: |
114 |
|
hostname+=s |
115 |
|
else: |
116 |
|
hostname+="_" |
117 |
try: |
try: |
118 |
exec "from "+hostname+"_options import *" |
exec "from "+hostname+"_options import *" |
119 |
except ImportError: |
except ImportError: |
132 |
|
|
133 |
# |
# |
134 |
# export configuration variables |
# export configuration variables |
135 |
|
# |
136 |
Export(["esysroot"]) |
Export(["esysroot"]) |
137 |
Export(["libinstall"]) |
Export(["libinstall"]) |
|
Export(["pyinstall"]) |
|
138 |
Export(["incinstall"]) |
Export(["incinstall"]) |
139 |
|
Export(["pyinstall"]) |