Commit 96e116f3 authored by Pierre Rossi's avatar Pierre Rossi
Browse files

Ensure we only generate one moc action per file

Showing with 4 additions and 1 deletion
......@@ -2,7 +2,10 @@
import re, sys, os
mocables = set()
for f in filter(os.path.isfile, sys.argv[1:]):
for line in open(f).readlines():
if re.match(".*Q_OBJECT", line):
print f
mocables.add(f)
for mocable in mocables:
print mocable
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment