equal
deleted
inserted
replaced
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]) |