コード例 #1
0
ファイル: build.py プロジェクト: 9tong/YDWE
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))
コード例 #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
ファイル: pack_ui.py プロジェクト: BattleNWar/YDWE
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)
コード例 #4
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)
コード例 #5
0
ファイル: build.py プロジェクト: benny5609/YDWE
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')
コード例 #6
0
ファイル: build.py プロジェクト: BattleNWar/YDWE
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)
コード例 #7
0
ファイル: build.py プロジェクト: yatyricky/XYWE
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)
コード例 #8
0
ファイル: build.py プロジェクト: Geshishouhu/YDWE
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')
コード例 #9
0
ファイル: build.py プロジェクト: myeang1/YDWE
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')