Bug 967297 - consider ipdl modules as inputs to the ipdl build process; r=glandium

This commit is contained in:
Nathan Froyd 2014-02-06 00:21:46 -05:00
parent ca918623ab
commit 8d6641d961

View File

@ -4,6 +4,9 @@
import optparse, os, re, sys
from cStringIO import StringIO
from mozbuild.pythonutil import iter_modules_in_path
import mozpack.path as mozpath
import itertools
import ipdl
@ -46,7 +49,9 @@ ipcmessagestartpath = os.path.join(headersdir, 'IPCMessageStart.h')
# Compiling the IPDL files can take a long time, even on a fast machine.
# Check to see whether we need to do any work.
latestipdlmod = max(os.stat(f).st_mtime for f in files)
latestipdlmod = max(os.stat(f).st_mtime
for f in itertools.chain(files,
iter_modules_in_path(mozpath.dirname(__file__))))
def outputModTime(f):
# A non-existant file is newer than everything.