From 4f929a0fdfae24b1ca5acf0b732219119090ee43 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 12 Sep 2017 17:42:36 -0300 Subject: Changed the doc class generation to individual files per class. It is also possible to save module files in module directories and the build system will recognize them. --- SConstruct | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 9a3ee03ed5..70e77cb47a 100644 --- a/SConstruct +++ b/SConstruct @@ -352,6 +352,7 @@ if selected_platform in platform_list: sys.modules.pop('detect') env.module_list = [] + env.doc_class_path={} for x in module_list: if env['module_' + x + '_enabled'] != "yes": @@ -363,6 +364,15 @@ if selected_platform in platform_list: if (config.can_build(selected_platform)): config.configure(env) env.module_list.append(x) + try: + doc_classes = config.get_doc_classes() + doc_path = config.get_doc_path() + for c in doc_classes: + env.doc_class_path[c]="modules/"+x+"/"+doc_path + except: + pass + + sys.path.remove(tmppath) sys.modules.pop('config') -- cgit v1.2.3