SConscript (9227:c208c904ab13) SConscript (9248:fdf49f35d2a4)
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

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

629
630 i_file = File('python/m5/internal/enum_%s.i' % name)
631 env.Command(i_file, Value(name),
632 MakeAction(createEnumSwigWrapper, Transform("ENUMSWIG")))
633 env.Depends(i_file, depends + extra_deps)
634 SwigSource('m5.internal', i_file)
635
636# Generate SimObject SWIG wrapper files
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

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

629
630 i_file = File('python/m5/internal/enum_%s.i' % name)
631 env.Command(i_file, Value(name),
632 MakeAction(createEnumSwigWrapper, Transform("ENUMSWIG")))
633 env.Depends(i_file, depends + extra_deps)
634 SwigSource('m5.internal', i_file)
635
636# Generate SimObject SWIG wrapper files
637for name in sim_objects.iterkeys():
637for name,simobj in sim_objects.iteritems():
638 py_source = PySource.modules[simobj.__module__]
639 extra_deps = [ py_source.tnode ]
640
638 i_file = File('python/m5/internal/param_%s.i' % name)
639 env.Command(i_file, Value(name),
640 MakeAction(createSimObjectSwigWrapper, Transform("SO SWIG")))
641 i_file = File('python/m5/internal/param_%s.i' % name)
642 env.Command(i_file, Value(name),
643 MakeAction(createSimObjectSwigWrapper, Transform("SO SWIG")))
641 env.Depends(i_file, depends)
644 env.Depends(i_file, depends + extra_deps)
642 SwigSource('m5.internal', i_file)
643
644# Generate the main swig init file
645def makeEmbeddedSwigInit(target, source, env):
646 code = code_formatter()
647 module = source[0].get_contents()
648 code('''\
649#include "sim/init.hh"

--- 395 unchanged lines hidden ---
645 SwigSource('m5.internal', i_file)
646
647# Generate the main swig init file
648def makeEmbeddedSwigInit(target, source, env):
649 code = code_formatter()
650 module = source[0].get_contents()
651 code('''\
652#include "sim/init.hh"

--- 395 unchanged lines hidden ---