# HG changeset patch
# User Edouard Tisserant
# Date 1339681857 -7200
# Node ID 131110501214a129982c62fb58c07b0fcdd684a5
# Parent 502939f9c477ea19e351ed2c16eff1a9c5e7d709
Fixed loading projects with no libraries at all
diff -r 502939f9c477 -r 131110501214 ProjectController.py
--- a/ProjectController.py Thu Jun 14 14:42:00 2012 +0200
+++ b/ProjectController.py Thu Jun 14 15:50:57 2012 +0200
@@ -61,15 +61,15 @@
"""+targets.GetTargetChoices()+"""
- """+(("""
-
+
+ """+(("""
"""+"\n".join([''
for libname,lib in features.libraries])+"""
-
- """) if len(features.libraries)>0 else '') + """
+ """) if len(features.libraries)>0 else '') + """
+
@@ -371,6 +371,8 @@
return "\n".join([ lib.GetSTCode() for lib in self.Libraries ])
def GetLibrariesCCode(self, buildpath):
+ if len(self.Libraries)==0:
+ return [],[],()
self.GetIECProgramsAndVariables()
LibIECCflags = '"-I%s"'%os.path.abspath(self.GetIECLibPath())
LocatedCCodeAndFlags=[]