systemc: Add some common test include files.

These are "common" in the sense that they're not in a particular test
directory, but I think they're only used by one test.

Change-Id: I4ffd209d04ed0e5253085810913827b87412b302
Reviewed-on: https://gem5-review.googlesource.com/11272
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
Gabe Black
2018-06-15 20:02:54 -07:00
parent dc0b98dcdc
commit eba0ab506b
23 changed files with 10751 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ if env['USE_SYSTEMC']:
}
ext_dir = Dir('..').Dir('ext')
test_dir = Dir('.')
class SystemCTestBin(Executable):
def __init__(self, test):
super(SystemCTestBin, self).__init__(test.target, *test.sources)
@@ -75,6 +76,7 @@ if env['USE_SYSTEMC']:
env['CCFLAGS'] = \
filter(lambda f: f not in to_remove, env['CCFLAGS'])
env.Append(CPPPATH=test_dir.Dir('include'))
env.Append(CPPPATH=ext_dir)
super(SystemCTestBin, cls).declare_all(env)