コード例 #1
0
ファイル: ShaderLibrary.py プロジェクト: anyexxx/oryol
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
コード例 #2
0
ファイル: ShaderLibrary.py プロジェクト: Mocker/oryol
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
コード例 #3
0
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath) :
    return util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty(absHeaderPath, Version)
コード例 #4
0
ファイル: MessageProtocol.py プロジェクト: anyexxx/oryol
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath):
    return util.fileVersionDirty(absSourcePath,
                                 Version) or util.fileVersionDirty(
                                     absHeaderPath, Version)