示例#1
0
def copy_all(msvc_version, configuration):
    print('copy_all')
    fs.create_directories(path['ResultCore'])
    fs.create_directories(path['ResultCore'] / 'modules')
    copy_boost_dll('system',     msvc_version, configuration)
    copy_boost_dll('filesystem', msvc_version, configuration)
    copy_lib_dll('Lua',          configuration)
    copy_lib_dll('StormLib',     configuration)
    fs.copy_file(path['OpenSource'] / 'luaffi' / 'bin' / configuration / 'ffi.dll', path['ResultCore'] / 'modules' / 'ffi.dll')
    copy_boost_preprocessor()
    copy_component()
示例#2
0
文件: pack_ui.py 项目: h82258652/YDWE
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)
示例#3
0
文件: copy_all.py 项目: hjhong/YDWE
def copy_all(msvc_version, configuration):
    print('copy_all')
    fs.create_directories(path['ResultCore'])
    fs.create_directories(path['ResultCore'] / 'modules')
    copy_boost_dll('system',     msvc_version, configuration)
    copy_boost_dll('filesystem', msvc_version, configuration)
    copy_lib_dll('Lua',          configuration)
    copy_lib_dll('StormLib',     configuration)
    fs.copy_file(path['OpenSource'] / 'luaffi' / 'bin' / configuration / 'ffi.dll', path['ResultCore'] / 'modules' / 'ffi.dll')
    copy_boost_preprocessor()
    copy_component()
示例#4
0
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)
示例#5
0
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)
示例#6
0
def copy_all(configuration):
    print('copy_all')
    fs.create_directories(path['ResultCore'])
    fs.create_directories(path['ResultCore'] / 'modules')
    copy_boost_dll('system',     configuration)
    copy_boost_dll('filesystem', configuration)
    copy_boost_dll('date_time',  configuration)
    copy_boost_dll('thread',     configuration)
    copy_boost_dll('chrono',     configuration)
    copy_boost_dll('log',        configuration)
    copy_lib_dll('Lua',          configuration)
    copy_lib_dll('StormLib',     configuration)
    fs.copy_file(path['OpenSource'] / 'luaffi' / 'bin' / configuration / 'ffi.dll', path['ResultCore'] / 'modules' / 'ffi.dll')
    copy_lua_script()
    copy_boost_preprocessor()
    copy_component()
示例#7
0
文件: copy_all.py 项目: myeang1/YDWE
def copy_log_script():
    fs.create_directories(path['Result'] / 'logs')
    fs.copy_file(path['BuildRoot'] / 'Editor' / 'Core' / 'Script' / 'YDLogger.cfg', path['Result'] / 'logs' / 'YDLogger.cfg')