ext: Revamp the systemc SConscripts.
authorGabe Black <gabeblack@google.com>
Fri, 19 May 2017 23:35:00 +0000 (16:35 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 29 May 2017 16:54:08 +0000 (16:54 +0000)
commit6e8b0f659602602765fcfdb4d32a8aa2548d669e
treed4d4011856f28be4b90e4b0180d9195499c4d9dc
parent7159ea669825a2a876dc3f0f2022336b517299a0
ext: Revamp the systemc SConscripts.

The existing scripts were including pthread code and QT code at the same
time, and also insisting on an having a set of architecture specific
source files for whatever the current architecture is.

This change selects using either QT or pthreads based on the host
architecture, distributes accumulating source files, list source files
explicitly (to avoid including redundant coroutine libraries) and makes
scons insist on an architecture specific QT implementation only if QT is
being used. It also defines a preprocessor symbol which tells some headers
whether or not pthreads are being used, and also clones the scons
environment to avoid leaking flags into the main environment used to
compile gem5 itself.

If the host architecture isn't supported by systemc, a warning will be
printed, and the various build products and SConscript files will be
skipped over.

Change-Id: I1a40123a11e49e02922a054f093246cf197087bf
Reviewed-on: https://gem5-review.googlesource.com/3461
Reviewed-by: Matthias Jung <jungma@eit.uni-kl.de>
Reviewed-by: Christian Menard <christian.menard@tu-dresden.de>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
ext/systemc/SConscript
ext/systemc/src/sysc/communication/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/datatypes/bit/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/datatypes/fx/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/datatypes/int/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/datatypes/misc/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/kernel/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/qt/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/tracing/SConscript.sc [new file with mode: 0644]
ext/systemc/src/sysc/utils/SConscript.sc [new file with mode: 0644]