Add a 'module' attribute to the ns3header object specifying which module each set of headers belongs to.

This commit is contained in:
Gustavo J. A. M. Carneiro
2007-12-26 13:40:39 +00:00
parent 36995793fb
commit 9cf6137916
16 changed files with 18 additions and 0 deletions

View File

@@ -81,11 +81,14 @@ class Ns3Header(Object.genobj):
self.inst_var = 'INCLUDEDIR'
self.inst_dir = 'ns3'
self.sub_dir = None # if not None, header files will be published as ns3/sub_dir/file.h
self.module = None # module name
self.env = env
if not self.env:
self.env = Params.g_build.m_allenvs['default']
def apply(self):
if self.module is None:
Params.fatal("'module' missing on ns3headers object %s" % self)
ns3_dir_node = Params.g_build.m_srcnode.find_dir("ns3")
if self.sub_dir is not None:
ns3_dir_node = ns3_dir_node.find_dir(self.sub_dir)