merged forgotten changes
authorEdouard Tisserant
Fri, 16 Jan 2015 22:09:28 +0100
changeset 1429 7e00c406d346
parent 1428 e14003eb4d42 (current diff)
parent 1427 e01b52d948c3 (diff)
child 1430 754fa90c8b27
merged forgotten changes
--- a/ProjectController.py	Fri Dec 12 14:41:53 2014 +0100
+++ b/ProjectController.py	Fri Jan 16 22:09:28 2015 +0100
@@ -118,6 +118,7 @@
 
         self.iec2c_path = os.path.join(base_folder, "matiec", "iec2c"+(".exe" if wx.Platform == '__WXMSW__' else ""))
         self.ieclib_path = os.path.join(base_folder, "matiec", "lib")
+        self.ieclib_c_path = os.path.join(base_folder, "matiec", "lib", "C")
 
         # Setup debug information
         self.IECdebug_datas = {}
@@ -204,7 +205,7 @@
         return self
 
     def GetIECLibPath(self):
-        return self.ieclib_path
+        return self.ieclib_c_path
 
     def GetIEC2cPath(self):
         return self.iec2c_path
@@ -613,7 +614,7 @@
         # files are listed to stdout, and errors to stderr.
         status, result, err_result = ProcessLogger(
                self.logger,
-               "\"%s\" -f -I \"%s\" -T \"%s\" \"%s\""%(
+               "\"%s\" -f -l -p -I \"%s\" -T \"%s\" \"%s\""%(
                          self.iec2c_path,
                          self.ieclib_path,
                          buildpath,
@@ -675,7 +676,7 @@
         # Keep track of generated C files for later use by self.CTNGenerate_C
         self.PLCGeneratedCFiles = C_files
         # compute CFLAGS for plc
-        self.plcCFLAGS = '"-I%s" -Wno-unused-function'%self.ieclib_path
+        self.plcCFLAGS = '"-I%s" -Wno-unused-function'%self.ieclib_c_path
         return True
 
     def GetBuilder(self):