6 |
|
OPTFILE = 'rayopts.py' |
7 |
|
def set_opts(env): |
8 |
|
# XXX add some caching |
9 |
< |
opts = Options(OPTFILE, ARGUMENTS) |
10 |
< |
opts.Add('SKIP', 'Skip Display of License terms', 0) |
11 |
< |
opts.Add('RAD_BINDIR', 'Install executables here', env['RAD_BINDIR']) |
12 |
< |
opts.Add('RAD_RLIBDIR', 'Install support files here', env['RAD_RLIBDIR']) |
13 |
< |
opts.Add('RAD_MANDIR', 'Install man pages here', env['RAD_MANDIR']) |
14 |
< |
opts.Add('RAD_DEBUG', 'Build a debug version', 0) |
15 |
< |
opts.Update(env) |
16 |
< |
opts.Save(OPTFILE, env) |
17 |
< |
Help(opts.GenerateHelpText(env, sort=cmp)) |
9 |
> |
vars = Variables(OPTFILE, ARGUMENTS) |
10 |
> |
vars.Add('SKIP', 'Skip Display of License terms', 0) |
11 |
> |
vars.Add('RAD_BINDIR', 'Install executables here', env['RAD_BINDIR']) |
12 |
> |
vars.Add('RAD_RLIBDIR', 'Install support files here', env['RAD_RLIBDIR']) |
13 |
> |
vars.Add('RAD_MANDIR', 'Install man pages here', env['RAD_MANDIR']) |
14 |
> |
vars.Add('RAD_DEBUG', 'Build a debug version', 0) |
15 |
> |
vars.Update(env) |
16 |
> |
vars.Save(OPTFILE, env) |
17 |
> |
Help(vars.GenerateHelpText(env, sort=cmp)) |
18 |
|
# where stuff is located in the source tree |
19 |
|
env['RAD_BUILDLIB'] = '#src/lib' |
20 |
|
env['RAD_BUILDBIN'] = '#bin' |
48 |
|
|
49 |
|
if os.name == 'posix': |
50 |
|
from build_utils import install |
51 |
< |
csh_b = Builder(action = install.install_script, |
52 |
< |
suffix = '', src_suffix = '.csh') |
53 |
< |
env.Append(BUILDERS={'InstallScript': csh_b}) |
51 |
> |
script_b = Builder(action = install.install_script, suffix = '') |
52 |
> |
env.Append(BUILDERS={'InstallScript': script_b}) |
53 |
> |
tclscript_b = Builder(action = install.install_tclscript, suffix = '') |
54 |
> |
env.Append(BUILDERS={'InstallTCLScript': tclscript_b}) |
55 |
|
|
56 |
|
# configure platform-specific stuff |
57 |
|
from build_utils import load_plat |
58 |
< |
load_plat.load_plat(env, ARGUMENTS, platform=None) |
58 |
> |
load_plat.load_plat(env, ARGUMENTS, ourplat=None) |
59 |
|
|
60 |
|
# override options |
61 |
|
set_opts(env) |
96 |
|
env.Alias('test', ['#test']) |
97 |
|
env.Alias('install', ['bininstall', 'rlibinstall', 'maninstall']) |
98 |
|
|
99 |
+ |
# vim: set syntax=python: |