scons: Group Source-s based on what SConscript included them.
[gem5.git] / src / arch / SConscript
index e0d6845f5790edb2e64c51dfe70d2f0c81bd70ba..54d97a4d96eafd18d120b3533f7e880d64ee0c36 100644 (file)
@@ -68,6 +68,15 @@ isa_switch_hdrs = Split('''
 # Set up this directory to support switching headers
 make_switching_dir('arch', isa_switch_hdrs, env)
 
+if env['BUILD_GPU']:
+    gpu_isa_switch_hdrs = Split('''
+            gpu_decoder.hh
+            gpu_isa.hh
+            gpu_types.hh
+            ''')
+
+    make_gpu_switching_dir('arch', gpu_isa_switch_hdrs, env)
+
 #################################################################
 #
 # Include architecture-specific files.