def build(configuration): Log() print('build') t = datetime.datetime.now() print ('build {0}'.format(t)) build_clear(configuration) build_all(configuration) build_move(configuration) fs.remove_all(path['Result'] / 'plugin' / 'YDColorizer') print ('time {0}'.format(datetime.datetime.now() - t))
def pack_ui(name): stormlib_path = path['OpenSource'] / 'StormLib' / 'Current' / 'bin' / 'Win32' / 'Release' / 'StormLib.dll' from_path = path['BuildRoot'] / 'Editor' / 'UI' / 'txt' / name to_path = path['Result'] / 'share' / 'mpq' / (name + '.mpq') 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') util.mpqutil.create(stormlib_path, 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 pack_ui(name): print('pack_ui ' + name) stormlib_path = path[ 'OpenSource'] / 'StormLib' / 'Current' / 'bin' / 'Win32' / 'Release' / 'StormLib.dll' from_path = path['BuildRoot'] / 'Editor' / 'UI' / 'txt' / name to_path = path['Result'] / 'share' / 'mpq' / (name + '.mpq') 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') util.mpqutil.create(stormlib_path, from_path, to_path)
def build_clear(configuration): print ('build_clear') fs.remove_all(path['ResultRoot'] / 'bin' / configuration) fs.remove_all(path['ResultRoot'] / 'obj' / configuration) fs.remove_all(path['ResultRoot'] / 'lib' / configuration) fs.remove_all(path['ResultRoot'] / 'publish' / configuration) fs.remove_all(path['BuildRoot'] / 'UI' / 'bin') fs.remove_all(path['BuildRoot'] / 'UI' / 'out') fs.remove_all(path['BuildRoot'] / 'UI' / 'txt')
def build_clear(configuration): print ('build_clear') fs.remove_all(path['ResultRoot'] / 'bin' / configuration) fs.remove_all(path['ResultRoot'] / 'obj' / configuration) fs.remove_all(path['ResultRoot'] / 'lib' / configuration) fs.remove_all(path['ProjectRoot'] / 'Build' / 'publish' / configuration)
def build_clear(configuration): print('build_clear') fs.remove_all(path['ResultRoot'] / 'bin' / configuration) fs.remove_all(path['ResultRoot'] / 'obj' / configuration) fs.remove_all(path['ResultRoot'] / 'lib' / configuration) fs.remove_all(path['ProjectRoot'] / 'Build' / 'publish' / configuration)
def build_clear(configuration): print ('build_clear') fs.remove_all(path['ResultRoot'] / 'bin' / configuration) fs.remove_all(path['ResultRoot'] / 'obj' / configuration) fs.remove_all(path['ResultRoot'] / 'lib' / configuration) fs.remove_all(path['ProjectRoot'] / 'Build' / 'publish' / configuration) fs.remove_all(path['Development'] / 'Editor' / 'UI' / 'bin') fs.remove_all(path['Development'] / 'Editor' / 'UI' / 'out') fs.remove_all(path['Development'] / 'Editor' / 'UI' / 'txt')
def build_clear(configuration): print('build_clear') fs.remove_all(path['ResultRoot'] / 'bin' / configuration) fs.remove_all(path['ResultRoot'] / 'obj' / configuration) fs.remove_all(path['ResultRoot'] / 'lib' / configuration) fs.remove_all(path['ResultRoot'] / 'publish' / configuration) fs.remove_all(path['BuildRoot'] / 'UI' / 'bin') fs.remove_all(path['BuildRoot'] / 'UI' / 'out') fs.remove_all(path['BuildRoot'] / 'UI' / 'txt')