[io] serializers generation: scan all components for xml
@@ -47,7 +47,7 @@ def get_classes_conditional(doxy_xml_files, cond):
})
return found
-def classes_from_build_path(build_path):
+def classes_from_build_path(build_path, targets):
"""Get classes and members from all Doxygen XML files found on the
provided build path."""
doxy_xml_path = os.path.join(build_path,'docs/build/doxygen/xml4rst')
@@ -55,10 +55,8 @@ def classes_from_build_path(build_path):
print('%s: Error, path "%s" does not exist.'%(sys.argv[0], doxy_xml_path))
sys.exit(1)
- components = ["kernel"] # FP : review this. Which components are to be included
- # in serialization/generation process ?
doxy_xml_files = []
- for component in components:
+ for component in targets:
doxypath = os.path.join(doxy_xml_path, component)
doxy_xml_files += glob(os.path.join(doxypath, 'class*.xml'))
doxy_xml_files += glob(os.path.join(doxypath, 'struct*.xml'))
@@ -148,7 +146,7 @@ if __name__=='__main__':
all_headers = get_headers(targets)
- doxygen_classes = classes_from_build_path(build_path)
+ doxygen_classes = classes_from_build_path(build_path, targets)
header_classes = classes_from_headers(all_headers, include_paths)
