plugins/c_ext/c_ext.py
changeset 418 01f6bfc01251
parent 402 984e238e63d0
child 420 c093ec48f2fd
equal deleted inserted replaced
416:3b3f7f5a8e40 418:01f6bfc01251
   339         Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c"%location_str)
   339         Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c"%location_str)
   340         cfile = open(Gen_Cfile_path,'w')
   340         cfile = open(Gen_Cfile_path,'w')
   341         cfile.write(text)
   341         cfile.write(text)
   342         cfile.close()
   342         cfile.close()
   343         
   343         
   344         if wx.Platform == '__WXMSW__':
   344         matiec_flags = '"-I%s"'%os.path.abspath(self.GetPlugRoot().GetIECLibPath())
   345             matiec_flags = " -I../../matiec/lib"
       
   346         else:
       
   347             matiec_flags = " -I../matiec/lib"
       
   348         
   345         
   349         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
   346         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
   350         
   347         
   351 #-------------------------------------------------------------------------------
   348 #-------------------------------------------------------------------------------
   352 #                      Current Buffering Management Functions
   349 #                      Current Buffering Management Functions