equal
deleted
inserted
replaced
88 obns = [] |
88 obns = [] |
89 objs = [] |
89 objs = [] |
90 relink = False |
90 relink = False |
91 for Location, CFilesAndCFLAGS, DoCalls in self.PluginsRootInstance.LocationCFilesAndCFLAGS: |
91 for Location, CFilesAndCFLAGS, DoCalls in self.PluginsRootInstance.LocationCFilesAndCFLAGS: |
92 if Location: |
92 if Location: |
93 self.logger.write("Plugin : " + self.PluginsRootInstance.GetChildByIECLocation(Location).GetCurrentName() + " " + str(Location)+"\n") |
93 self.logger.write(_("Plugin : ") + self.PluginsRootInstance.GetChildByIECLocation(Location).GetCurrentName() + " " + str(Location)+"\n") |
94 else: |
94 else: |
95 self.logger.write("PLC :\n") |
95 self.logger.write(_("PLC :\n")) |
96 |
96 |
97 for CFile, CFLAGS in CFilesAndCFLAGS: |
97 for CFile, CFLAGS in CFilesAndCFLAGS: |
98 bn = os.path.basename(CFile) |
98 bn = os.path.basename(CFile) |
99 obn = os.path.splitext(bn)[0]+".o" |
99 obn = os.path.splitext(bn)[0]+".o" |
100 objectfilename = os.path.splitext(CFile)[0]+".o" |
100 objectfilename = os.path.splitext(CFile)[0]+".o" |
114 (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS) |
114 (self.compiler, CFile, objectfilename, Builder_CFLAGS, CFLAGS) |
115 ).spin() |
115 ).spin() |
116 |
116 |
117 if status : |
117 if status : |
118 self.srcmd5.pop(bn) |
118 self.srcmd5.pop(bn) |
119 self.logger.write_error("C compilation of "+ bn +" failed.\n") |
119 self.logger.write_error(_("C compilation of %s failed.\n")%bn) |
120 return False |
120 return False |
121 |
121 |
122 obns.append(obn) |
122 obns.append(obn) |
123 objs.append(objectfilename) |
123 objs.append(objectfilename) |
124 |
124 |
125 ######### GENERATE library FILE ######################################## |
125 ######### GENERATE library FILE ######################################## |
126 # Link all the object files into one binary file |
126 # Link all the object files into one binary file |
127 self.logger.write("Linking :\n") |
127 self.logger.write(_("Linking :\n")) |
128 if relink: |
128 if relink: |
129 objstring = [] |
129 objstring = [] |
130 |
130 |
131 # Generate list .o files |
131 # Generate list .o files |
132 listobjstring = '"' + '" "'.join(objs) + '"' |
132 listobjstring = '"' + '" "'.join(objs) + '"' |