Preserve proto order

pull/321/head
Craig Tiller 10 years ago
parent 7448d3d69e
commit 2d7e73f2fa
  1. 4
      tools/buildgen/build-cleaner.py

@ -33,9 +33,9 @@ def clean_elem(indict):
for name in ['public_headers', 'headers', 'src']:
if name not in indict: continue
inlist = indict[name]
protos = set(x for x in inlist if os.path.splitext(x)[1] == '.proto')
protos = list(x for x in inlist if os.path.splitext(x)[1] == '.proto')
others = set(x for x in inlist if x not in protos)
indict[name] = sorted(protos) + sorted(others)
indict[name] = protos + sorted(others)
return rebuild_as_ordered_dict(indict, _ELEM_KEYS)
for filename in sys.argv[1:]:

Loading…
Cancel
Save