scons: Stop building the big monolithic swigged params module

kill params.i and create a separate .i for each object (param, enums, etc.)
This commit is contained in:
Nathan Binkert
2010-09-09 14:26:29 -07:00
parent e6ee56c657
commit 47ef97b9ca
12 changed files with 281 additions and 118 deletions

View File

@@ -32,6 +32,9 @@
#include "base/inet.hh"
%}
%import "stdint.i"
%import "std_string.i"
namespace Net {
struct EthAddr
{

View File

@@ -28,10 +28,18 @@
* Authors: Nathan Binkert
*/
%rename(assign) *::operator=;
%module(package="m5.internal") range
%include "base/range.hh"
%{
#include "base/range.hh"
#include "base/types.hh"
%}
%include "stdint.i"
%include "base/types.hh"
%rename(assign) *::operator=;
%include "base/range.hh"
%template(AddrRange) Range<Addr>;
%template(TickRange) Range<Tick>;

View File

@@ -28,8 +28,6 @@
* Authors: Nathan Binkert
*/
%module sim_object
%{
#include "python/swig/pyobject.hh"
%}
@@ -39,6 +37,7 @@
%include "std_string.i"
%include "base/types.hh"
%include "sim/sim_object_params.hh"
class BaseCPU;

View File

@@ -28,9 +28,12 @@
* Authors: Nathan Binkert
*/
%module sim_object
%{
#include "sim/system.hh"
%}
%include "enums/MemoryMode.hh"
%import "python/swig/sim_object.i"
%import "enums/MemoryMode.hh"
class System : public SimObject
{