opc_ua/client.py
changeset 3820 46f3ca3f0157
parent 3750 f62625418bff
equal deleted inserted replaced
3819:4582f0fcf4c4 3820:46f3ca3f0157
   140         c_path = os.path.join(buildpath, "opcua_client__%s.c" % locstr)
   140         c_path = os.path.join(buildpath, "opcua_client__%s.c" % locstr)
   141 
   141 
   142         c_code = '#include "beremiz.h"\n'
   142         c_code = '#include "beremiz.h"\n'
   143         c_code += self.modeldata.GenerateC(c_path, locstr, self.GetConfig())
   143         c_code += self.modeldata.GenerateC(c_path, locstr, self.GetConfig())
   144 
   144 
   145         with open(c_path, 'wb') as c_file:
   145         with open(c_path, 'w') as c_file:
   146             c_file.write(c_code)
   146             c_file.write(c_code)
   147 
   147 
   148         LDFLAGS = ['"' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"', '-lcrypto']
   148         LDFLAGS = ['"' + os.path.join(Open62541LibraryPath, "libopen62541.a") + '"', '-lcrypto']
   149 
   149 
   150         CFLAGS = ' '.join(['-I"' + path + '"' for path in Open62541IncludePaths])
   150         CFLAGS = ' '.join(['-I"' + path + '"' for path in Open62541IncludePaths])