Change location of directory containing IEC standard library in C format.
authormjsousa
Tue, 08 Jul 2014 18:00:52 +0100
changeset 1424 0f2ced10db48
parent 1423 4e33f644f7cf
child 1425 fa09aae984e9
child 1471 3eda8d8f622d
Change location of directory containing IEC standard library in C format.
ProjectController.py
--- a/ProjectController.py	Fri Jun 27 13:56:49 2014 +0200
+++ b/ProjectController.py	Tue Jul 08 18:00:52 2014 +0100
@@ -440,7 +440,7 @@
         if len(self.Libraries)==0:
             return [],[],()
         self.GetIECProgramsAndVariables()
-        LibIECCflags = '"-I%s" -Wno-unused-function'%os.path.abspath(self.GetIECLibPath())
+        LibIECCflags = '"-I%s/C" -Wno-unused-function'%os.path.abspath(self.GetIECLibPath())
         LocatedCCodeAndFlags=[]
         Extras=[]
         for lib in self.Libraries:
@@ -675,7 +675,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/C" -Wno-unused-function'%self.ieclib_path
         return True
 
     def GetBuilder(self):