c_ext/c_ext.py
changeset 1740 b789b695b5c6
parent 1736 7e61baa047f0
child 1853 47a3f39bead0
equal deleted inserted replaced
1739:ec153828ded2 1740:b789b695b5c6
   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