Пример #1
0
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
def move_include():
    inc = path['ProjectRoot'] / 'Build' / 'include'
    if fs.exists(inc):
        fs.copy_directory(
              inc
            , path['ResultRoot'] / 'include'
            , ['.h']
            , True)
Пример #4
0
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
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
def move_include():
    inc = path['ProjectRoot'] / 'Build' / 'include'
    if fs.exists(inc):
        fs.copy_directory(inc, path['ResultRoot'] / 'include', ['.h'], True)