Esempio n. 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
Esempio n. 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
Esempio n. 3
0
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath) :
    return util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty(absHeaderPath, Version)
Esempio n. 4
0
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath):
    return util.fileVersionDirty(absSourcePath,
                                 Version) or util.fileVersionDirty(
                                     absHeaderPath, Version)