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'])
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'])
def move_include(): inc = path['ProjectRoot'] / 'Build' / 'include' if fs.exists(inc): fs.copy_directory( inc , path['ResultRoot'] / 'include' , ['.h'] , True)
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
def move_include(): inc = path['ProjectRoot'] / 'Build' / 'include' if fs.exists(inc): fs.copy_directory(inc, path['ResultRoot'] / 'include', ['.h'], True)