예제 #1
0
파일: complie.py 프로젝트: Geshishouhu/YDWE
def copy_crt_dll(configuration):
    if configuration == 'Release':
        crt_dll_dir = fs.path(util.msvc.vc_install_dir) / 'redist' / 'x86' / 'Microsoft.VC100.CRT'
    else:
        return
    if fs.exists(crt_dll_dir):
        fs.copy_directory(crt_dll_dir, path['ResultCore'], ['.dll'])
예제 #2
0
def copy_crt_dll(msvc_version, configuration):
    if configuration == 'Release':
        crt_dll_dir = fs.path(util.msvc.vc_install_dir) / 'redist' / 'x86' / ('Microsoft.VC' + str(msvc_version) + '.CRT')
    else:
        return
    if fs.exists(crt_dll_dir):
        fs.copy_directory(crt_dll_dir, path['ResultCore'], ['.dll'])
예제 #3
0
파일: build.py 프로젝트: BattleNWar/YDWE
def move_include():
    inc = path['ProjectRoot'] / 'Build' / 'include'
    if fs.exists(inc):
        fs.copy_directory(
              inc
            , path['ResultRoot'] / 'include'
            , ['.h']
            , True)
예제 #4
0
파일: path.py 프로젝트: BattleNWar/YDWE
def GetDirectoryNameOfFileAbove(p, f):
    p = fs.path(p)
    while True:
        if fs.exists(p / f):
            return p
        p.remove_filename()
        if p.filename() == '':
            break
    return None
예제 #5
0
파일: path.py 프로젝트: yatyricky/XYWE
def GetDirectoryNameOfFileAbove(p, f):
    p = fs.path(p)
    while True:
        if fs.exists(p / f):
            return p
        p.remove_filename()
        if p.filename() == '':
            break
    return None
예제 #6
0
파일: build.py 프로젝트: yatyricky/XYWE
def move_include():
    inc = path['ProjectRoot'] / 'Build' / 'include'
    if fs.exists(inc):
        fs.copy_directory(inc, path['ResultRoot'] / 'include', ['.h'], True)