equal
deleted
inserted
replaced
117 text += "void __publish_%s(void)\n{\n" % location_str |
117 text += "void __publish_%s(void)\n{\n" % location_str |
118 text += self.CodeFile.publishFunction.getanyText().strip() |
118 text += self.CodeFile.publishFunction.getanyText().strip() |
119 text += "\n}\n\n" |
119 text += "\n}\n\n" |
120 |
120 |
121 Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c" % location_str) |
121 Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c" % location_str) |
122 cfile = open(Gen_Cfile_path,'w') |
122 cfile = open(Gen_Cfile_path, 'w') |
123 cfile.write(text) |
123 cfile.write(text) |
124 cfile.close() |
124 cfile.close() |
125 |
125 |
126 matiec_CFLAGS = '"-I%s"' % os.path.abspath(self.GetCTRoot().GetIECLibPath()) |
126 matiec_CFLAGS = '"-I%s"' % os.path.abspath(self.GetCTRoot().GetIECLibPath()) |
127 |
127 |
128 return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_CFLAGS))],str(self.CExtension.getLDFLAGS()),True |
128 return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_CFLAGS))], str(self.CExtension.getLDFLAGS()), True |