shithub: openh264

Download patch

ref: 8f88f60637de1ce74746abc432e970da62c19049
parent: bb915978db2cb925aa7cdfe7ac1ecf43a40dcb45
author: Martin Storsjö <[email protected]>
date: Fri Mar 7 20:45:22 EST 2014

Explicitly sort the files in mktargets.py

This avoids spurious changes to the targets.mk files when mktargets
is rerun on different platforms and different file systems.

In particular, OS X seems to mostly return files sorted
alphabetically, case insensitively, while they are returned in
a file system specific order on linux.

--- a/build/mktargets.py
+++ b/build/mktargets.py
@@ -104,6 +104,11 @@
 
 (cpp, asm, cfiles, sfiles) = find_sources()
 
+cpp = sorted(cpp, key=lambda s: s.lower())
+asm = sorted(asm, key=lambda s: s.lower())
+cfiles = sorted(cfiles, key=lambda s: s.lower())
+sfiles = sorted(sfiles, key=lambda s: s.lower())
+
 
 
 f = open(OUTFILE, "w")