Пример #1
0
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)
Пример #2
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'])
Пример #3
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'])
Пример #4
0
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)
Пример #5
0
def build_move(configuration):
    print ('build_move')
    fs.copy_directory(
          path['ResultRoot'] / 'bin' / configuration
        , path['ResultRoot'] / 'publish' / configuration
        , ['.pdb', '.exp', '.ilk', '.aps', '.lib']
        , False)
Пример #6
0
def move_include():
    inc = path['ProjectRoot'] / 'Build' / 'include'
    if fs.exists(inc):
        fs.copy_directory(
              inc
            , path['ResultRoot'] / 'include'
            , ['.h']
            , True)
Пример #7
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)
Пример #8
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)
Пример #9
0
def copy_lua_script():
    fs.copy_directory(path['Development'] / 'Editor' / 'Core' / 'Script' / 'lua', path['Result'] / 'share' / 'script', ['.lua'])
Пример #10
0
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)
Пример #11
0
def copy_crt_dll():
    fs.copy_directory(path['ThirdParty'] / 'Microsoft' / 'CRT' / 'Win32' / 'Microsoft.VC100.CRT', path['ResultCore'], ['.dll'])
Пример #12
0
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)
Пример #13
0
def copy_lib_dll(name, configuration, version = 'Current'):
    fs.copy_directory(path['OpenSource'] / name / version / 'bin' / 'Win32' / configuration, path['ResultCore'], ['.dll'])
Пример #14
0
def update_move_xywe(configuration):
    print('update_move_xywe')
    fs.copy_directory(
        path['Development'] / 'Editor' / 'ComponentXYWE',
        path['ProjectRoot'] / 'Build' / 'publish' / configuration, [], False)
Пример #15
0
def move_include():
    inc = path['ProjectRoot'] / 'Build' / 'include'
    if fs.exists(inc):
        fs.copy_directory(inc, path['ResultRoot'] / 'include', ['.h'], True)
Пример #16
0
def copy_component():
    fs.copy_directory(path['Development'] / 'Editor' / 'Component', path['Result'])
Пример #17
0
def copy_lua_script():
    fs.copy_directory(path['Development'] / 'Editor' / 'Core' / 'Script' / 'lua', path['Result'] / 'share' / 'script', ['.lua'])
Пример #18
0
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')
Пример #19
0
def copy_component():
    fs.copy_directory(path['BuildRoot'] / 'Editor' / 'Component', path['Result'])
Пример #20
0
def copy_lib_dll(name, configuration, version = 'Current'):
    fs.copy_directory(path['OpenSource'] / name / version / 'bin' / 'Win32' / configuration, path['ResultCore'], ['.dll'])
Пример #21
0
def copy_component():
    fs.copy_directory(path['Development'] / 'Editor' / 'Component', path['Result'])
Пример #22
0
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')