4 |
|
import string |
5 |
|
|
6 |
|
OPTFILE = 'rayopts.py' |
7 |
< |
|
7 |
> |
SourceSignatures('timestamp') |
8 |
|
def set_opts(env): |
9 |
|
# XXX add some caching |
10 |
|
opts = Options(OPTFILE, ARGUMENTS) |
45 |
|
# Set up build environment |
46 |
|
env = Environment() |
47 |
|
|
48 |
+ |
if os.name == 'posix': |
49 |
+ |
from build_utils import install |
50 |
+ |
csh_b = Builder(action = install.install_cshscript, |
51 |
+ |
suffix = '', src_suffix = '.csh') |
52 |
+ |
env.Append(BUILDERS={'InstallCsh': csh_b}) |
53 |
+ |
|
54 |
|
# configure platform-specific stuff |
55 |
|
from build_utils import load_plat |
56 |
|
load_plat.load_plat(env, ARGUMENTS, platform=None) |
66 |
|
# fill in generic config |
67 |
|
allplats_setup(env) |
68 |
|
|
69 |
+ |
|
70 |
+ |
|
71 |
|
# Bring in all the actual things to build |
72 |
|
Export('env') |
73 |
|
SConscript(os.path.join('src', 'common', 'SConscript')) |
80 |
|
shareinstall_setup(env) |
81 |
|
|
82 |
|
# virtual targets |
83 |
< |
# RAD_XXXINSTALL are filled in by the local scripts |
84 |
< |
env.Alias('bininstall', env.get('RAD_BININSTALL', [])) |
85 |
< |
env.Alias('rlibinstall', env.get('RAD_RLIBINSTALL',[])) |
78 |
< |
env.Alias('maninstall', env.get('RAD_MANINSTALL', [])) |
83 |
> |
env.Alias('bininstall', '$RAD_BINDIR') |
84 |
> |
env.Alias('rlibinstall', '$RAD_RLIBDIR') |
85 |
> |
env.Alias('maninstall', '$RAD_MANDIR') |
86 |
|
|
87 |
|
env.Alias('build', ['#bin']) |
88 |
|
env.Alias('test', ['#src/test']) |