bindings/python/ns3modulescan.py
changeset 3474 dac9146297c8
parent 3467 351f5847dda5
child 3484 ebdeeb7cd463
equal deleted inserted replaced
3473:6bce86ea4778 3474:dac9146297c8
   249 
   249 
   250     module_parser = ModuleParser('ns3', 'ns3')
   250     module_parser = ModuleParser('ns3', 'ns3')
   251 
   251 
   252     module_parser.add_pre_scan_hook(pre_scan_hook)
   252     module_parser.add_pre_scan_hook(pre_scan_hook)
   253     #module_parser.add_post_scan_hook(post_scan_hook)
   253     #module_parser.add_post_scan_hook(post_scan_hook)
       
   254 
       
   255     gccxml_options = dict(
       
   256         include_paths=[top_builddir],
       
   257          define_symbols={
       
   258             'NS3_ASSERT_ENABLE': None,
       
   259             'NS3_LOG_ENABLE': None,
       
   260             }
       
   261         )
       
   262 
   254     module_parser.parse_init([everything_h],
   263     module_parser.parse_init([everything_h],
   255                              include_paths=[top_builddir], whitelist_paths=[top_builddir, os.path.dirname(everything_h)],
   264                              None, whitelist_paths=[top_builddir, os.path.dirname(everything_h)],
   256                              #includes=['"ns3/everything.h"'],
   265                              #includes=['"ns3/everything.h"'],
   257                              pygen_sink=sections,
   266                              pygen_sink=sections,
   258                              pygen_classifier=MyPygenClassifier(headers_map))
   267                              pygen_classifier=MyPygenClassifier(headers_map),
       
   268                              gccxml_options=gccxml_options)
   259     module_parser.scan_types()
   269     module_parser.scan_types()
   260 
   270 
   261     callback_classes_file = open(os.path.join(os.path.dirname(pygen_file_name), "callbacks_list.py"), "wt")
   271     callback_classes_file = open(os.path.join(os.path.dirname(pygen_file_name), "callbacks_list.py"), "wt")
   262     scan_callback_classes(module_parser, callback_classes_file)
   272     scan_callback_classes(module_parser, callback_classes_file)
   263     callback_classes_file.close()
   273     callback_classes_file.close()