Deleted Added
sdiff udiff text old ( 9338:97b4a2be1e5b ) new ( 9396:0c0ec9d87746 )
full compact
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

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

228
229 self.module = modname
230 cc_file = joinpath(self.dirname, modname + '_wrap.cc')
231 py_file = joinpath(self.dirname, modname + '.py')
232
233 self.cc_source = Source(cc_file, swig=True, parent=self)
234 self.py_source = PySource(package, py_file, parent=self)
235
236class UnitTest(object):
237 '''Create a UnitTest'''
238
239 all = []
240 def __init__(self, target, *sources, **kwargs):
241 '''Specify the target name and any sources. Sources that are
242 not SourceFiles are evalued with Source(). All files are
243 guarded with a guard of the same name as the UnitTest

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

255 self.main = kwargs.get('main', False)
256 UnitTest.all.append(self)
257
258# Children should have access
259Export('Source')
260Export('PySource')
261Export('SimObject')
262Export('SwigSource')
263Export('UnitTest')
264
265########################################################################
266#
267# Debug Flags
268#
269debug_flags = {}
270def DebugFlag(name, desc=None):

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

671 MakeAction('$SWIG $SWIGFLAGS -outdir ${TARGETS[1].dir} '
672 '-o ${TARGETS[0]} $SOURCES', Transform("SWIG")))
673 cc_file = str(swig.tnode)
674 init_file = '%s/%s_init.cc' % (dirname(cc_file), basename(cc_file))
675 env.Command(init_file, Value(swig.module),
676 MakeAction(makeEmbeddedSwigInit, Transform("EMBED SW")))
677 Source(init_file, **swig.guards)
678
679#
680# Handle debug flags
681#
682def makeDebugFlagCC(target, source, env):
683 assert(len(target) == 1 and len(source) == 1)
684
685 val = eval(source[0].get_contents())
686 name, compound, desc = val

--- 367 unchanged lines hidden ---