c_ext/c_ext.py
changeset 1503 3a238c0c5993
parent 1474 28e9d479aa65
child 1511 91538d0c242c
equal deleted inserted replaced
1502:62eb21aab1fb 1503:3a238c0c5993
    97         Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c"%location_str)
    97         Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c"%location_str)
    98         cfile = open(Gen_Cfile_path,'w')
    98         cfile = open(Gen_Cfile_path,'w')
    99         cfile.write(text)
    99         cfile.write(text)
   100         cfile.close()
   100         cfile.close()
   101         
   101         
   102         matiec_flags = '"-l -p -I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
   102         matiec_CFLAGS = '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
   103         
   103         
   104         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
   104         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_CFLAGS))],str(self.CExtension.getLDFLAGS()),True
   105 
   105