diff --git a/doxy/default_doxy_file.dox b/doxy/default_doxy_file.dox index bf454b0..3cdbd42 100644 --- a/doxy/default_doxy_file.dox +++ b/doxy/default_doxy_file.dox @@ -1963,7 +1963,7 @@ MACRO_EXPANSION = YES # The default value is: NO. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. -EXPAND_ONLY_PREDEF = NO +EXPAND_ONLY_PREDEF = YES # If the SEARCH_INCLUDES tag is set to YES, the include files in the # INCLUDE_PATH will be searched if a #include is found. @@ -2378,4 +2378,5 @@ GENERATE_LEGEND = YES DOT_CLEANUP = YES -ALIASES += license="@note License:\n" \ No newline at end of file +ALIASES += license="@note License:\n" +ALIASES += not_in_doc="@brief No documentation done\n @internal\n" \ No newline at end of file diff --git a/doxy/module.py b/doxy/module.py index a80c58a..d37d772 100644 --- a/doxy/module.py +++ b/doxy/module.py @@ -39,6 +39,7 @@ class Module: self.name=module_name # Dependency list: self.depends = [] + self.define = [] self.version = [0,0] self.full_name = "No Title" self.website = "" @@ -103,6 +104,8 @@ class Module: data += 'INPUT += "' + str(elem) + '"\n' else: data += 'INPUT = "' + str(self.path) + '"\n' + for elem in self.define: + data += 'PREDEFINED += ' + str(elem) + '=1\n' if len(self.sub_heritage_list.list_heritage) > 0: data += 'TAGFILES =' for element in self.sub_heritage_list.list_heritage: @@ -144,6 +147,9 @@ class Module: def add_module_depend(self, list): tools.list_append_to(self.depends, list, True) + def add_module_define(self, list): + tools.list_append_to(self.define, list, True) + def print_list(self, description, input_list): if type(input_list) == list: if len(input_list) > 0: @@ -165,6 +171,7 @@ class Module: print(' website source:"' + str(self.website_source) + "'") print(' path:"' + str(self.path) + "'") self.print_list('depends',self.depends) + self.print_list('define',self.define) return True