[DEV] better display

This commit is contained in:
Edouard DUPIN 2016-04-01 21:28:37 +02:00
parent a659faff81
commit 401c6d9fb3
2 changed files with 10 additions and 2 deletions

View File

@ -1963,7 +1963,7 @@ MACRO_EXPANSION = YES
# The default value is: NO. # The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. # 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 # If the SEARCH_INCLUDES tag is set to YES, the include files in the
# INCLUDE_PATH will be searched if a #include is found. # INCLUDE_PATH will be searched if a #include is found.
@ -2379,3 +2379,4 @@ GENERATE_LEGEND = YES
DOT_CLEANUP = YES DOT_CLEANUP = YES
ALIASES += license="@note License:\n" ALIASES += license="@note License:\n"
ALIASES += not_in_doc="@brief No documentation done\n @internal\n"

View File

@ -39,6 +39,7 @@ class Module:
self.name=module_name self.name=module_name
# Dependency list: # Dependency list:
self.depends = [] self.depends = []
self.define = []
self.version = [0,0] self.version = [0,0]
self.full_name = "No Title" self.full_name = "No Title"
self.website = "" self.website = ""
@ -103,6 +104,8 @@ class Module:
data += 'INPUT += "' + str(elem) + '"\n' data += 'INPUT += "' + str(elem) + '"\n'
else: else:
data += 'INPUT = "' + str(self.path) + '"\n' 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: if len(self.sub_heritage_list.list_heritage) > 0:
data += 'TAGFILES =' data += 'TAGFILES ='
for element in self.sub_heritage_list.list_heritage: for element in self.sub_heritage_list.list_heritage:
@ -144,6 +147,9 @@ class Module:
def add_module_depend(self, list): def add_module_depend(self, list):
tools.list_append_to(self.depends, list, True) 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): def print_list(self, description, input_list):
if type(input_list) == list: if type(input_list) == list:
if len(input_list) > 0: if len(input_list) > 0:
@ -165,6 +171,7 @@ class Module:
print(' website source:"' + str(self.website_source) + "'") print(' website source:"' + str(self.website_source) + "'")
print(' path:"' + str(self.path) + "'") print(' path:"' + str(self.path) + "'")
self.print_list('depends',self.depends) self.print_list('depends',self.depends)
self.print_list('define',self.define)
return True return True