From: duplo Date: Wed, 22 Apr 2009 10:57:34 +0000 (+0000) Subject: Return the project relevant file for codelite X-Git-Tag: 2.1.0~61 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6fb67bc94e1d53acc1e1b339f22bb7d4f2f7dea3;p=bertos.git Return the project relevant file for codelite git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2621 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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"