Example #1
0
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath) :
    '''
    Glob all source files and check their last-modified time
    against the source/header path sources. 
    '''
    if util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty(absHeaderPath, Version) :
        return True

    srcTime = os.path.getmtime(absSourcePath)    
    hdrTime = os.path.getmtime(absHeaderPath)
    shdFiles = gatherShaderSources(xmlTree.getroot(), absXmlPath)
    for shdFile in shdFiles :
        shdTime = os.path.getmtime(shdFile)
        if shdTime > srcTime or shdTime > hdrTime :
            return True
    return False
Example #2
0
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath) :
    '''
    Glob all source files and check their last-modified time
    against the source/header path sources. 
    '''
    if util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty(absHeaderPath, Version) :
        return True

    srcTime = os.path.getmtime(absSourcePath)    
    hdrTime = os.path.getmtime(absHeaderPath)
    shdFiles = gatherShaderSources(xmlTree.getroot(), absXmlPath)
    for shdFile in shdFiles :
        shdTime = os.path.getmtime(shdFile)
        if shdTime > srcTime or shdTime > hdrTime :
            return True
    return False
Example #3
0
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath) :
    return util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty(absHeaderPath, Version)
Example #4
0
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath):
    return util.fileVersionDirty(absSourcePath,
                                 Version) or util.fileVersionDirty(
                                     absHeaderPath, Version)