From 6fb67bc94e1d53acc1e1b339f22bb7d4f2f7dea3 Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 22 Apr 2009 10:57:34 +0000 Subject: [PATCH] Return the project relevant file for codelite git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2621 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 4 +++- wizard/plugins/codelite.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 5d08f54d..5bf0b430 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -95,9 +95,11 @@ def createBertosProject(project_info): main = open("srctemplates/main.c", "r").read() open(prjdir + "/main.c", "w").write(main) # Files for selected plugins + relevants_files = {} for plugin in project_info.info("OUTPUT"): module = getattr(__import__("plugins", {}, {}, [plugin]), plugin) - module.createProject(project_info) + relevants_files[plugin] = module.createProject(project_info) + project_info.setInfo("RELEVANTS_FILES", relevants_files) def mkGenerator(project_info, makefile): """ diff --git a/wizard/plugins/codelite.py b/wizard/plugins/codelite.py index 76724599..6e14f51e 100644 --- a/wizard/plugins/codelite.py +++ b/wizard/plugins/codelite.py @@ -71,7 +71,7 @@ def codeliteWorkspaceGenerator(project_info): def createProject(project_info): """ - Function that creates codelite projects. + Function that creates codelite projects and return the project relevant file. """ directory = project_info.info("PROJECT_PATH") prjdir = directory + "/" + os.path.basename(directory) @@ -79,3 +79,4 @@ def createProject(project_info): open(directory + "/" + os.path.basename(prjdir) + ".workspace", "w").write(workspace) project = codeliteProjectGenerator(project_info) open(directory + "/" + os.path.basename(prjdir) + ".project", "w").write(project) + return directory + "/" + os.path.basename(prjdir) + ".workspace" -- 2.25.1