equal
deleted
inserted
replaced
59 <xsd:complexType> |
59 <xsd:complexType> |
60 <xsd:choice minOccurs="0"> |
60 <xsd:choice minOccurs="0"> |
61 """+targets.GetTargetChoices()+""" |
61 """+targets.GetTargetChoices()+""" |
62 </xsd:choice> |
62 </xsd:choice> |
63 </xsd:complexType> |
63 </xsd:complexType> |
64 </xsd:element>"""+((""" |
64 </xsd:element> |
65 <xsd:element name="Libraries" minOccurs="0"> |
65 <xsd:element name="Libraries" minOccurs="0">"""+((""" |
66 <xsd:complexType> |
66 <xsd:complexType> |
67 """+"\n".join(['<xsd:attribute name='+ |
67 """+"\n".join(['<xsd:attribute name='+ |
68 '"Enable_'+ libname + '_Library" '+ |
68 '"Enable_'+ libname + '_Library" '+ |
69 'type="xsd:boolean" use="optional" default="true"/>' |
69 'type="xsd:boolean" use="optional" default="true"/>' |
70 for libname,lib in features.libraries])+""" |
70 for libname,lib in features.libraries])+""" |
71 </xsd:complexType> |
71 </xsd:complexType>""") if len(features.libraries)>0 else '<xsd:complexType/>') + """ |
72 </xsd:element>""") if len(features.libraries)>0 else '') + """ |
72 </xsd:element> |
73 </xsd:sequence> |
73 </xsd:sequence> |
74 <xsd:attribute name="URI_location" type="xsd:string" use="optional" default=""/> |
74 <xsd:attribute name="URI_location" type="xsd:string" use="optional" default=""/> |
75 <xsd:attribute name="Disable_Extensions" type="xsd:boolean" use="optional" default="false"/> |
75 <xsd:attribute name="Disable_Extensions" type="xsd:boolean" use="optional" default="false"/> |
76 </xsd:complexType> |
76 </xsd:complexType> |
77 </xsd:element> |
77 </xsd:element> |
369 |
369 |
370 def GetLibrariesSTCode(self): |
370 def GetLibrariesSTCode(self): |
371 return "\n".join([ lib.GetSTCode() for lib in self.Libraries ]) |
371 return "\n".join([ lib.GetSTCode() for lib in self.Libraries ]) |
372 |
372 |
373 def GetLibrariesCCode(self, buildpath): |
373 def GetLibrariesCCode(self, buildpath): |
|
374 if len(self.Libraries)==0: |
|
375 return [],[],() |
374 self.GetIECProgramsAndVariables() |
376 self.GetIECProgramsAndVariables() |
375 LibIECCflags = '"-I%s"'%os.path.abspath(self.GetIECLibPath()) |
377 LibIECCflags = '"-I%s"'%os.path.abspath(self.GetIECLibPath()) |
376 LocatedCCodeAndFlags=[] |
378 LocatedCCodeAndFlags=[] |
377 Extras=[] |
379 Extras=[] |
378 for lib in self.Libraries: |
380 for lib in self.Libraries: |