SConscript (5344:d4faff20645a) | SConscript (5456:9e1f352d6761) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 318 unchanged lines hidden (view full) --- 327flags = [ Value(f) for f in trace_flags ] 328env.Command('base/traceflags.py', flags, generate.traceFlagsPy) 329PySource('m5', 'base/traceflags.py') 330 331env.Command('base/traceflags.hh', flags, generate.traceFlagsHH) 332env.Command('base/traceflags.cc', flags, generate.traceFlagsCC) 333Source('base/traceflags.cc') 334 | 1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 318 unchanged lines hidden (view full) --- 327flags = [ Value(f) for f in trace_flags ] 328env.Command('base/traceflags.py', flags, generate.traceFlagsPy) 329PySource('m5', 'base/traceflags.py') 330 331env.Command('base/traceflags.hh', flags, generate.traceFlagsHH) 332env.Command('base/traceflags.cc', flags, generate.traceFlagsCC) 333Source('base/traceflags.cc') 334 |
335# Generate program_info.cc 336env.Command('base/program_info.cc', 337 Value(str(SCons.Node.FS.default_fs.SConstruct_dir)), generate.programInfo) 338 |
|
335# Build the zip file 336py_compiled = [] 337py_zip_depends = [] 338for source in py_sources: 339 env.Command(source.compiled, source.source, generate.compilePyFile) 340 py_compiled.append(source.compiled) 341 342 # make the zipfile depend on the archive name so that the archive --- 16 unchanged lines hidden (view full) --- 359 360# This function adds the specified sources to the given build 361# environment, and returns a list of all the corresponding SCons 362# Object nodes (including an extra one for date.cc). We explicitly 363# add the Object nodes so we can set up special dependencies for 364# date.cc. 365def make_objs(sources, env): 366 objs = [env.Object(s) for s in sources] | 339# Build the zip file 340py_compiled = [] 341py_zip_depends = [] 342for source in py_sources: 343 env.Command(source.compiled, source.source, generate.compilePyFile) 344 py_compiled.append(source.compiled) 345 346 # make the zipfile depend on the archive name so that the archive --- 16 unchanged lines hidden (view full) --- 363 364# This function adds the specified sources to the given build 365# environment, and returns a list of all the corresponding SCons 366# Object nodes (including an extra one for date.cc). We explicitly 367# add the Object nodes so we can set up special dependencies for 368# date.cc. 369def make_objs(sources, env): 370 objs = [env.Object(s) for s in sources] |
371 |
|
367 # make date.cc depend on all other objects so it always gets 368 # recompiled whenever anything else does 369 date_obj = env.Object('base/date.cc') | 372 # make date.cc depend on all other objects so it always gets 373 # recompiled whenever anything else does 374 date_obj = env.Object('base/date.cc') |
375 376 # Make the generation of program_info.cc dependend on all 377 # the other cc files and the compiling of program_info.cc 378 # dependent on all the objects but program_info.o 379 pinfo_obj = env.Object('base/program_info.cc') 380 env.Depends('base/program_info.cc', sources) |
|
370 env.Depends(date_obj, objs) | 381 env.Depends(date_obj, objs) |
371 objs.append(date_obj) | 382 env.Depends(pinfo_obj, objs) 383 objs.extend([date_obj,pinfo_obj]) |
372 return objs 373 374# Function to create a new build environment as clone of current 375# environment 'env' with modified object suffix and optional stripped 376# binary. Additional keyword arguments are appended to corresponding 377# build environment vars. 378def makeEnv(label, objsfx, strip = False, **kwargs): 379 newEnv = env.Copy(OBJSUFFIX=objsfx) --- 62 unchanged lines hidden --- | 384 return objs 385 386# Function to create a new build environment as clone of current 387# environment 'env' with modified object suffix and optional stripped 388# binary. Additional keyword arguments are appended to corresponding 389# build environment vars. 390def makeEnv(label, objsfx, strip = False, **kwargs): 391 newEnv = env.Copy(OBJSUFFIX=objsfx) --- 62 unchanged lines hidden --- |