SConscript (4202:f7a05daec670) SConscript (4381:d1e914d47111)
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

--- 19 unchanged lines hidden (view full) ---

28#
29# Authors: Steve Reinhardt
30
31import os
32import sys
33
34from os.path import join as joinpath
35
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

--- 19 unchanged lines hidden (view full) ---

28#
29# Authors: Steve Reinhardt
30
31import os
32import sys
33
34from os.path import join as joinpath
35
36import SCons
37
36# This file defines how to build a particular configuration of M5
37# based on variable settings in the 'env' build environment.
38
39Import('*')
40
41sources = []
38# This file defines how to build a particular configuration of M5
39# based on variable settings in the 'env' build environment.
40
41Import('*')
42
43sources = []
42def Source(*args):
43 for arg in args:
44 if isinstance(arg, (list, tuple)):
45 # Recurse to load a list
46 Source(*arg)
47 elif isinstance(arg, str):
48 sources.extend([ File(f) for f in Split(arg) ])
49 else:
50 sources.append(File(arg))
44def Source(source):
45 if isinstance(source, SCons.Node.FS.File):
46 sources.append(source)
47 else:
48 sources.append(File(source))
51
52Export('env')
53Export('Source')
54
55# Include file paths are rooted in this directory. SCons will
56# automatically expand '.' to refer to both the source directory and
57# the corresponding build directory to pick up generated include
58# files.

--- 113 unchanged lines hidden ---
49
50Export('env')
51Export('Source')
52
53# Include file paths are rooted in this directory. SCons will
54# automatically expand '.' to refer to both the source directory and
55# the corresponding build directory to pick up generated include
56# files.

--- 113 unchanged lines hidden ---