def pack_units(): print('pack_units') stormlib_path = path[ 'OpenSource'] / 'StormLib' / 'Current' / 'bin' / 'Win32' / 'Release' / 'StormLib.dll' from_path = path['Development'] / 'Editor' / 'UI' / 'src' / 'Units' to_path = path['Result'] / 'share' / 'mpq' / 'units' fs.copy_directory(from_path, to_path)
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 update_move_ydwe(configuration): from copy_all import copy_component print('update_move_ydwe') fs.copy_directory( path['Development'] / 'Editor' / 'Component', path['ProjectRoot'] / 'Build' / 'publish' / configuration / 'core' / 'ydwe', [], False)
def build_move(configuration): print ('build_move') fs.copy_directory( path['ResultRoot'] / 'bin' / configuration , path['ResultRoot'] / 'publish' / configuration , ['.pdb', '.exp', '.ilk', '.aps', '.lib'] , False)
def move_include(): inc = path['ProjectRoot'] / 'Build' / 'include' if fs.exists(inc): fs.copy_directory( inc , path['ResultRoot'] / 'include' , ['.h'] , True)
def pack_ui(name): print('pack_ui ' + name) stormlib_path = path['OpenSource'] / 'StormLib' / 'Current' / 'bin' / 'Win32' / 'Release' / 'StormLib.dll' from_path = path['Development'] / 'Editor' / 'UI' / 'txt' / name to_path = path['Result'] / 'share' / 'mpq' / name fs.remove_all(from_path) fs.create_directories(from_path / 'ui') convert_file(path['UIObj'] / name, from_path / 'ui', 'TriggerData.i') convert_file(path['UIObj'] / name, from_path / 'ui', 'TriggerStrings.i') convert_file(path['UIObj'] / name, from_path / 'ui', 'WorldEditStrings.i') fs.copy_directory(from_path, to_path)
def pack_ui(name): print('pack_ui ' + name) stormlib_path = path[ 'OpenSource'] / 'StormLib' / 'Current' / 'bin' / 'Win32' / 'Release' / 'StormLib.dll' from_path = path['Development'] / 'Editor' / 'UI' / 'txt' / name to_path = path['Result'] / 'share' / 'mpq' / name fs.remove_all(from_path) fs.create_directories(from_path / 'ui') convert_file(path['UIObj'] / name, from_path / 'ui', 'TriggerData.i') convert_file(path['UIObj'] / name, from_path / 'ui', 'TriggerStrings.i') convert_file(path['UIObj'] / name, from_path / 'ui', 'WorldEditStrings.i') fs.copy_directory(from_path, to_path)
def copy_lua_script(): fs.copy_directory(path['Development'] / 'Editor' / 'Core' / 'Script' / 'lua', path['Result'] / 'share' / 'script', ['.lua'])
def pack_units(): print('pack_units') stormlib_path = path['OpenSource'] / 'StormLib' / 'Current' / 'bin' / 'Win32' / 'Release' / 'StormLib.dll' from_path = path['BuildRoot'] / 'Editor' / 'UI' / 'src' / 'Units' to_path = path['Result'] / 'share' / 'mpq' / 'units' fs.copy_directory(from_path, to_path)
def copy_crt_dll(): fs.copy_directory(path['ThirdParty'] / 'Microsoft' / 'CRT' / 'Win32' / 'Microsoft.VC100.CRT', path['ResultCore'], ['.dll'])
def build_move(configuration): print('build_move') fs.copy_directory( path['ResultRoot'] / 'bin' / configuration, path['ProjectRoot'] / 'Build' / 'publish' / configuration / 'core' / 'ydwe', ['.pdb', '.exp', '.ilk', '.aps', '.lib'], False)
def copy_lib_dll(name, configuration, version = 'Current'): fs.copy_directory(path['OpenSource'] / name / version / 'bin' / 'Win32' / configuration, path['ResultCore'], ['.dll'])
def update_move_xywe(configuration): print('update_move_xywe') fs.copy_directory( path['Development'] / 'Editor' / 'ComponentXYWE', path['ProjectRoot'] / 'Build' / 'publish' / configuration, [], False)
def move_include(): inc = path['ProjectRoot'] / 'Build' / 'include' if fs.exists(inc): fs.copy_directory(inc, path['ResultRoot'] / 'include', ['.h'], True)
def copy_component(): fs.copy_directory(path['Development'] / 'Editor' / 'Component', path['Result'])
def copy_boost_preprocessor(): fs.copy_directory(path['OpenSource'] / 'Boost' / 'boost' / 'preprocessor', path['ResultPlugin'] / 'wave' / 'include' / 'boost' / 'preprocessor') fs.copy_file(path['OpenSource'] / 'Boost' / 'boost' / 'preprocessor.hpp', path['ResultPlugin'] / 'wave' / 'include' / 'boost' / 'preprocessor.hpp')
def copy_component(): fs.copy_directory(path['BuildRoot'] / 'Editor' / 'Component', path['Result'])