--- ray/src/util/SConscript 2004/10/21 15:47:13 1.7 +++ ray/src/util/SConscript 2005/09/19 11:30:11 1.12 @@ -9,14 +9,12 @@ progs = [] def radbin(name): return os.path.join('$RAD_BUILDBIN', name) def radlib(name): return os.path.join('$RAD_BUILDLIB', name) -setscan = env.Object(source='setscan.c') Version = env.Object(source='../rt/Version.c') # XXX ../rt/not_nice # standard targets PROGS = [ -('findglare', Split('findglare.c glareval.c glaresrc.c')+[setscan], +('findglare', Split('findglare.c glareval.c glaresrc.c setscan.c'), ['rtpic','rtargs','rtio','rtproc','rtmath','rtpath','rtmem','rterror']), -#('contour', Split('contour.c'), ['rtmath']), # XXX what is this? ('glarendx', Split('glarendx.c'), ['rtpic','rtio','rtargs','rtmath']), ('vwright', Split('vwright.c'), ['rtpic','rtio','rtargs','rtmath']), ('vwrays', Split('vwrays.c'), ['rtpic','rtio','rtargs','rtmath']), @@ -24,16 +22,14 @@ PROGS = [ ['rtpic','rtproc','rtpath','rtio','rtmath','rtargs','rtcont','rtmem','rterror']), ('rpiece', Split('rpiece.c') + [Version], ['rtpic','rtargs','rtio','rtproc','rtmath','rtpath','rtmem']), +('ranimate', ['ranimate.c', '$RAD_NETCOMPAT'], + ['rtpic','rtargs','rtio','rtproc','rtcont','rtmem','rtpath','rtmath', + 'rtnet','rterror','$RAD_SOCKETLIB']), +('rtcontrib', ['rtcontrib.c', Version], + ['rtpic','rtargs','rtfunc','rtio','rtproc','rtcont','rtmem','rtpath', + 'rtmath','rtnet','rterror','$RAD_SOCKETLIB']) ] -if os.name == 'nt': # XXX should be set in a *.cfg file - netproc = 'win_netproc.c' - netlib = ['ws2_32'] -else: - netproc = 'netproc.c' - netlib = [] -PROGS.append(('ranimate', ['ranimate.c', netproc], - ['rtpic','rtargs','rtio','rtcont','rtmem','rtpath','rtmath','rtnet','rterror'] + netlib)) for p in PROGS: prog = env.Program(target=radbin(p[0]), source=p[1], LIBS=p[2]+mlib) progs.append(prog) @@ -51,17 +47,6 @@ getinfo = env.Program(target=radbin('getinfo'), source LIBS=['rtio']) progs.append(getinfo) -# special targets not normally built -if os.name != 'nt': # XXX pending replacement of fork() and friends - scanner = env.Program(target=radbin('scanner'), source='scanner.c', - LIBS=mlib) - scanner_i = env.Install('$RAD_BINDIR', scanner) - makedist = env.Program(target=radbin('makedist'), - source=Split('makedist.c')+[setscan], - LIBS=['rtmath']+mlib) - makedist_i = env.Install('$RAD_BINDIR', makedist) - env.Alias('util_special', [scanner, makedist]) - env.Alias('util_special_install', [scanner_i, makedist_i]) # X11 targets if env.has_key('X11LIB'): @@ -89,6 +74,11 @@ if os.name == 'posix': # XXX ignoring trad.wsh for s in Split('''objview objline objpict glare dayfact debugcal rlux raddepend compamb vinfo genambpos'''): Default(env.InstallCsh(radbin(s), s + '.csh')) +# Those don't really work yet +#else: +# for s in Split('''objview glare rlux '''): +# prog = env.Program(target=radbin(s), source=s+'.c') +# progs.append(prog) Default('#src/util') env.Install('$RAD_BINDIR', progs)