equal
deleted
inserted
replaced
1 import os, re |
1 import os, re |
2 from wxPopen import ProcessLogger |
2 from wxPopen import ProcessLogger |
3 import hashlib |
3 import hashlib |
|
4 |
|
5 import time |
4 |
6 |
5 includes_re = re.compile('\s*#include\s*["<]([^">]*)[">].*') |
7 includes_re = re.compile('\s*#include\s*["<]([^">]*)[">].*') |
6 |
8 |
7 class toolchain_makefile(): |
9 class toolchain_makefile(): |
8 def __init__(self, PluginsRootInstance): |
10 def __init__(self, PluginsRootInstance): |
46 srcfiles.append(CFileName) |
48 srcfiles.append(CFileName) |
47 if CFLAGS not in cflags: |
49 if CFLAGS not in cflags: |
48 cflags.append(CFLAGS) |
50 cflags.append(CFLAGS) |
49 |
51 |
50 self.md5key = hashlib.md5(wholesrcdata).hexdigest() |
52 self.md5key = hashlib.md5(wholesrcdata).hexdigest() |
|
53 props = self.PluginsRootInstance.GetProjectProperties() |
|
54 self.md5key += '|'.join([props[key] for key in ['companyName', |
|
55 'projectName', |
|
56 'productName']]) |
|
57 self.md5key += '|'+','.join(map(str,time.localtime())) |
51 # Store new PLC filename based on md5 key |
58 # Store new PLC filename based on md5 key |
52 f = open(self._GetMD5FileName(), "w") |
59 f = open(self._GetMD5FileName(), "w") |
53 f.write(self.md5key) |
60 f.write(self.md5key) |
54 f.close() |
61 f.close() |
55 beremizcommand = {"src": ' '.join(srcfiles), |
62 beremizcommand = {"src": ' '.join(srcfiles), |