SConscript (5461:943f436efe9b) | SConscript (5463:ca74f6845b27) |
---|---|
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 --- 252 unchanged lines hidden (view full) --- 261 extra_deps = [ File(generate.py_modules[simobj.__module__]) ] 262 263 hh_file = File('params/%s.hh' % name) 264 params_hh_files.append(hh_file) 265 env.Command(hh_file, Value(name), generate.createSimObjectParam) 266 env.Depends(hh_file, depends + extra_deps) 267 268# Generate any parameter header files needed | 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 --- 252 unchanged lines hidden (view full) --- 261 extra_deps = [ File(generate.py_modules[simobj.__module__]) ] 262 263 hh_file = File('params/%s.hh' % name) 264 params_hh_files.append(hh_file) 265 env.Command(hh_file, Value(name), generate.createSimObjectParam) 266 env.Depends(hh_file, depends + extra_deps) 267 268# Generate any parameter header files needed |
269params_i_files = [] |
|
269for name,param in generate.params.iteritems(): 270 if isinstance(param, m5.params.VectorParamDesc): 271 ext = 'vptype' 272 else: 273 ext = 'ptype' 274 275 i_file = File('params/%s_%s.i' % (name, ext)) | 270for name,param in generate.params.iteritems(): 271 if isinstance(param, m5.params.VectorParamDesc): 272 ext = 'vptype' 273 else: 274 ext = 'ptype' 275 276 i_file = File('params/%s_%s.i' % (name, ext)) |
277 params_i_files.append(i_file) |
|
276 env.Command(i_file, Value(name), generate.createSwigParam) 277 env.Depends(i_file, depends) 278 279# Generate all enum header files 280for name,enum in generate.enums.iteritems(): 281 extra_deps = [ File(generate.py_modules[enum.__module__]) ] 282 283 cc_file = File('enums/%s.cc' % name) --- 6 unchanged lines hidden (view full) --- 290 env.Depends(hh_file, depends + extra_deps) 291 292# Build the big monolithic swigged params module (wraps all SimObject 293# param structs and enum structs) 294params_file = File('params/params.i') 295names = sort_list(generate.sim_objects.keys()) 296env.Command(params_file, [ Value(v) for v in names ], 297 generate.buildParams) | 278 env.Command(i_file, Value(name), generate.createSwigParam) 279 env.Depends(i_file, depends) 280 281# Generate all enum header files 282for name,enum in generate.enums.iteritems(): 283 extra_deps = [ File(generate.py_modules[enum.__module__]) ] 284 285 cc_file = File('enums/%s.cc' % name) --- 6 unchanged lines hidden (view full) --- 292 env.Depends(hh_file, depends + extra_deps) 293 294# Build the big monolithic swigged params module (wraps all SimObject 295# param structs and enum structs) 296params_file = File('params/params.i') 297names = sort_list(generate.sim_objects.keys()) 298env.Command(params_file, [ Value(v) for v in names ], 299 generate.buildParams) |
298env.Depends(params_file, params_hh_files + depends) | 300env.Depends(params_file, params_hh_files + params_i_files + depends) |
299SwigSource('m5.objects', params_file) 300 301# Build all swig modules 302swig_modules = [] 303for source,package in swig_sources: 304 filename = str(source) 305 assert filename.endswith('.i') 306 --- 148 unchanged lines hidden --- | 301SwigSource('m5.objects', params_file) 302 303# Build all swig modules 304swig_modules = [] 305for source,package in swig_sources: 306 filename = str(source) 307 assert filename.endswith('.i') 308 --- 148 unchanged lines hidden --- |