Beispiel #1
0
import aceutils

pathname = 'glfw'

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"glfw_bin")
    aceutils.rmdir(r"glfw_bin_x64")

    aceutils.editCmakeForACE(pathname + r'/CMakeLists.txt')
    aceutils.mkdir(r"glfw_bin")
    aceutils.mkdir(r"glfw_bin_x64")

    with aceutils.CurrentDir('glfw_bin'):
        if aceutils.isWin():
            aceutils.call(aceutils.cmd_cmake +
                          r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../' +
                          pathname + '/')
            aceutils.call(aceutils.cmd_compile +
                          r'ALL_BUILD.vcxproj /p:configuration=Debug')
            aceutils.call(aceutils.cmd_compile +
                          r'ALL_BUILD.vcxproj /p:configuration=Release')
        elif aceutils.isMac():
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../'
                + pathname + '/')
            aceutils.call(r'make install')
        else:
            aceutils.call(
Beispiel #2
0
    if aceutils.isWin() or aceutils.isMac():
        aceutils.copytree(r"Box2D", "box2d_temp")
    else:
        aceutils.copytree(r"Box2D-Linux", "box2d_temp")

    aceutils.rmdir(r"box2d_temp/.git/")

    aceutils.rmdir(r"box2d_bin")
    aceutils.rmdir(r"box2d_bin_x64")

    if aceutils.isWin() or aceutils.isMac():
        aceutils.copy('../Script/CMake/CMakeLists.Box2D.txt',
                      'box2d_temp/Box2D/CMakeLists.txt')
    else:
        aceutils.editCmakeForACE(r'box2d_temp/Box2D/CMakeLists.txt', 'cp932')
        aceutils.editCmakeForACE(r'box2d_temp/Box2D/Box2D/CMakeLists.txt',
                                 'cp932')
    aceutils.mkdir(r"box2d_bin")
    aceutils.mkdir(r"box2d_bin_x64")

    pathname = r"box2d_temp/"

    if aceutils.isWin():
        with aceutils.CurrentDir("box2d_bin"):
            aceutils.call(
                aceutils.cmd_cmake +
                r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../Box2d_temp/Box2D/'
            )
            aceutils.call(aceutils.cmd_compile +
                          r'Box2D.sln /p:configuration=Debug')
import aceutils
import itertools

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"osm_bin")
    aceutils.rmdir(r"osm_bin_x64")

    aceutils.editCmakeForACE(r'OpenSoundMixer/CMakeLists.txt', 'cp932')
    aceutils.mkdir(r"osm_bin")
    aceutils.mkdir(r"osm_bin_x64")

    with aceutils.CurrentDir('osm_bin'):
        if aceutils.isWin():
            aceutils.call(
                aceutils.cmd_cmake +
                r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../OpenSoundMixer/'
            )
            aceutils.call(aceutils.cmd_compile +
                          r'OpenSoundMixer.sln /p:configuration=Debug')
            aceutils.call(aceutils.cmd_compile +
                          r'OpenSoundMixer.sln /p:configuration=Release')
        elif aceutils.isMac():
            aceutils.call(
                r'cmake -G "Unix Makefiles" "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../OpenSoundMixer/'
            )
            aceutils.call(r'make')
        else:
            aceutils.call(r'cmake -G "Unix Makefiles" ../OpenSoundMixer/')
Beispiel #4
0
import aceutils
import shutil

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'Box2D_V2.3.0.7z')
aceutils.rmdir(r'Box2D_V2.3.0')

aceutils.wget(r'https://box2d.googlecode.com/files/Box2D_v2.3.0.7z')

if aceutils.isWin():
    aceutils.call(r'7za x -y Box2D_v2.3.0.7z')
else:
    aceutils.call(r'7za x -y Box2D_v2.3.0.7z')

aceutils.editCmakeForACE(r'Box2D_v2.3.0/Box2D/CMakeLists.txt', 'cp932')
aceutils.editCmakeForACE(r'Box2D_v2.3.0/Box2D/Box2D/CMakeLists.txt', 'cp932')

aceutils.rmdir(r"box2d_bin")
aceutils.rmdir(r"box2d_bin_x64")

aceutils.mkdir(r"box2d_bin")
aceutils.mkdir(r"box2d_bin_x64")

aceutils.cd(r"box2d_bin")

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D BOX2D_BUILD_EXAMPLES:BOOL=OFF ../Box2D_v2.3.0/Box2D/'
    )
    aceutils.call(
Beispiel #5
0
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):

	if aceutils.isWin():
		aceutils.rm(r'glew-1.13.0.zip')
		aceutils.rmdir(pathname)

	aceutils.rmdir(r"glew_bin")
	aceutils.rmdir(r"glew_bin_x64")

	if aceutils.isWin():
		aceutils.wget(r'https://sourceforge.net/projects/glew/files/glew/1.13.0/glew-1.13.0.zip')
		aceutils.unzip(r'glew-1.13.0.zip')

	aceutils.editCmakeForACE(pathname + r'/build/cmake/CMakeLists.txt')
	aceutils.mkdir(r"glew_bin")
	aceutils.mkdir(r"glew_bin_x64")

	with aceutils.CurrentDir('glew_bin'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake+r'-UGLEW_USE_STATIC_LIBS ../' + pathname + '/build/cmake')
			aceutils.call('cmake --build . --config Debug')
			aceutils.call('cmake --build . --config Release')
		elif aceutils.isMac():
			aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -UGLEW_USE_STATIC_LIBS -D CMAKE_INSTALL_PREFIX:PATH=../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" ../' + pathname + '/build/cmake')
			aceutils.call(r'make install')
		else:
			aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -UGLEW_USE_STATIC_LIBS -D CMAKE_INSTALL_PREFIX=../Dev ../' + pathname + '/')
			aceutils.call(r'make install')
Beispiel #6
0
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r'OpenSoundMixer-master')

aceutils.wget(
    r'https://github.com/ac-engine/OpenSoundMixer/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'OpenSoundMixer-master/CMakeLists.txt')

if aceutils.isWin():
    aceutils.cd(r"OpenSoundMixer-master")
else:
    aceutils.mkdir(r"osm_bin")
    aceutils.cd(r"osm_bin")

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Effekseer-master/Dev/Cpp/'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" OpenSoundMixer.sln /p:configuration=Debug'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" OpenSoundMixer.sln /p:configuration=Release'
    )
else:
    aceutils.call(r'cmake -G "Unix Makefiles" ../OpenSoundMixer-master/')
Beispiel #7
0
import aceutils

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
	aceutils.rmdir(r"bullet_bin")
	aceutils.rmdir(r"bullet_bin_x64")

	aceutils.editCmakeForACE(r'bullet3/CMakeLists.txt','cp932')
	aceutils.mkdir(r"bullet_bin")
	aceutils.mkdir(r"bullet_bin_x64")

	options = []
	options += ['-D', 'BUILD_PYBULLET=OFF']
	options += ['-D', 'BUILD_EXTRAS=OFF']
	options += ['-D', 'BUILD_UNIT_TESTS=OFF']
	options += ['-D', 'BUILD_CPU_DEMOS=OFF']
	options += ['-D', 'BUILD_BULLET2_DEMOS=OFF']
	options += ['-D', 'BUILD_OPENGL3_DEMOS=OFF']
	options += ['-D', 'USE_GRAPHICAL_BENCHMARK=OFF']
	options_cmd = ' '.join(options)

	with aceutils.CurrentDir('bullet_bin'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ' + options_cmd + r' ../bullet3/')
			aceutils.call('cmake --build . --config Debug')
			aceutils.call('cmake --build . --config Release')
		elif aceutils.isMac():
			aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ' + options_cmd + r'  "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" ../bullet3/')
Beispiel #8
0
import aceutils

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"bullet_bin")
    aceutils.rmdir(r"bullet_bin_x64")

    aceutils.editCmakeForACE(r'bullet3/CMakeLists.txt', 'cp932')
    aceutils.mkdir(r"bullet_bin")
    aceutils.mkdir(r"bullet_bin_x64")

    with aceutils.CurrentDir('bullet_bin'):
        if aceutils.isWin():
            aceutils.call(
                aceutils.cmd_cmake +
                r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D BUILD_DEMOS:BOOL=OFF ../bullet3/'
            )
            aceutils.call(aceutils.cmd_compile +
                          r'BULLET_PHYSICS.sln /p:configuration=Debug')
            aceutils.call(aceutils.cmd_compile +
                          r'BULLET_PHYSICS.sln /p:configuration=Release')
        elif aceutils.isMac():
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_PYBULLET=OFF "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../bullet3/'
            )
            aceutils.call(r'make')
        else:
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../bullet3/'
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r'glfw-master')
aceutils.wget(r'https://github.com/ac-engine/GLFW/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'glfw-master/CMakeLists.txt')

if aceutils.isWin():
	aceutils.cd(r"glfw-master")
else:
	aceutils.mkdir(r"glfw_bin")
	aceutils.cd(r"glfw_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../glfw-master/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" ALL_BUILD.vcxproj /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" ALL_BUILD.vcxproj /p:configuration=Release')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX=../Dev ../glfw-master/')
	aceutils.call(r'make install')

aceutils.cd(r"../")

aceutils.mkdir(r"Dev/include/GLFW/")

if aceutils.isWin():
	aceutils.copy(r'glfw-master/include/GLFW/glfw3.h', r'Dev/include/GLFW/')
Beispiel #10
0
import aceutils

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"effekseer_bin")
    aceutils.rmdir(r"effekseer_bin_x64")

    if aceutils.isWin():
        aceutils.editCmakeForACE(r'Effekseer/Dev/Cpp/CMakeLists.txt', 'cp932')
    elif aceutils.isMac():
        aceutils.editCmakeForACE(r'Effekseer/Dev/Cpp/CMakeLists.txt', 'cp932')
    # in Linux, using 'cp932' twice on the same file can cause an error "UnicodeDecodeError: 'cp932' codec can't decode byte 0x9a in position 23: illegal multibyte sequence".
    else:
        try:
            aceutils.editCmakeForACE(r'Effekseer/Dev/Cpp/CMakeLists.txt',
                                     'cp932')
        except:
            aceutils.editCmakeForACE(r'Effekseer/Dev/Cpp/CMakeLists.txt')

    aceutils.mkdir(r"effekseer_bin")
    aceutils.mkdir(r"effekseer_bin_x64")

    with aceutils.CurrentDir('effekseer_bin'):
        if aceutils.isWin():
            aceutils.call(
                aceutils.cmd_cmake +
                r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Effekseer/Dev/Cpp/'
            )
            aceutils.call(aceutils.cmd_compile +
Beispiel #11
0
import aceutils

aceutils.cdToScript()

aceutils.cd(r'../')
aceutils.rm(r'bullet-2.82-r2704.zip')
aceutils.rmdir(r'bullet-2.82-r2704')

aceutils.wget(r'https://bullet.googlecode.com/files/bullet-2.82-r2704.zip')
aceutils.unzip(r'bullet-2.82-r2704.zip')

aceutils.editCmakeForACE(r'bullet-2.82-r2704/CMakeLists.txt', 'cp932')

aceutils.rmdir(r"bullet_bin")
aceutils.rmdir(r"bullet_bin_x64")

aceutils.mkdir(r"bullet_bin")
aceutils.mkdir(r"bullet_bin_x64")

aceutils.cd(r"bullet_bin")

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D BUILD_DEMOS:BOOL=OFF ../bullet-2.82-r2704/'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" BULLET_PHYSICS.sln /p:configuration=Debug'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" BULLET_PHYSICS.sln /p:configuration=Release'
    )
Beispiel #12
0
import aceutils

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"freetype_bin")
    aceutils.rmdir(r"freetype_bin_x64")

    aceutils.wget(
        r'https://sourceforge.net/projects/freetype/files/freetype2/2.6/ft26.zip'
    )
    aceutils.mkdir(r"freetype_bin")
    aceutils.mkdir(r"freetype_bin_x64")
    aceutils.editCmakeForACE(r'freetype/CMakeLists.txt', 'cp932')

    with aceutils.CurrentDir('freetype_bin'):
        if aceutils.isWin():
            aceutils.call(aceutils.cmd_cmake + r'../freetype/')
            aceutils.call(aceutils.cmd_compile +
                          r'freetype.sln /p:configuration=Debug')
            aceutils.call(aceutils.cmd_compile +
                          r'freetype.sln /p:configuration=Release')
        elif aceutils.isMac():
            aceutils.call(
                r'cmake -G "Unix Makefiles" "-DWITH_BZip2=OFF" "-DWITH_HarfBuzz=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" -D CMAKE_BUILD_TYPE=Release ../freetype/'
            )
            aceutils.call(r'make')
        else:
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ../freetype/'
Beispiel #13
0
aceutils.cdToScript()
aceutils.cd(r'../')

aceutils.rmdir(r'zlib_bin')
aceutils.rmdir(r'libpng_bin')

aceutils.wget(
    r'http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.6/libpng-1.6.6.tar.gz'
)
aceutils.wget(r'http://zlib.net/zlib-1.2.8.tar.gz')

aceutils.call(r'tar zxvf libpng-1.6.6.tar.gz')
aceutils.call(r'tar zxvf zlib-1.2.8.tar.gz')

aceutils.editCmakeForACE(r'zlib-1.2.8/CMakeLists.txt')
aceutils.editCmakeForACE(r'libpng-1.6.6/CMakeLists.txt')

aceutils.mkdir(r'zlib_bin')
aceutils.mkdir(r'libpng_bin')

if aceutils.isWin():
    print('already installed.')
else:
    aceutils.cd(r'zlib_bin')
    aceutils.call(
        r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX=../Dev ../zlib-1.2.8/'
    )
    aceutils.call(r'make install')
    aceutils.cd(r'../')
Beispiel #14
0
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r'Culling2D-master')

aceutils.wget(r'https://github.com/altseed/Culling2D/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'Culling2D-master/CMakeLists.txt','cp932')

aceutils.rmdir(r"culling2d_bin")
aceutils.rmdir(r"culling2d_bin_x64")

aceutils.mkdir(r"culling2d_bin")
aceutils.mkdir(r"culling2d_bin_x64")

aceutils.cd(r"culling2d_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Culling2D-master/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Culling2D.sln /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Culling2D.sln /p:configuration=Release')
elif aceutils.isMac():
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../Culling2D-master/')
	aceutils.call(r'make')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Culling2D-master/')
	aceutils.call(r'make')
Beispiel #15
0
aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'gd-2.1.1.zip')
aceutils.rmdir(r'libgd-gd-2.1.1')

aceutils.wget(r'https://github.com/libgd/libgd/archive/gd-2.1.1.zip')
aceutils.unzip(r'gd-2.1.1.zip')

aceutils.rmdir(r"gd_bin")
aceutils.rmdir(r"gd_bin_x64")

aceutils.mkdir(r"gd_bin")
aceutils.mkdir(r"gd_bin_x64")

aceutils.editCmakeForACE(r'libgd-gd-2.1.1/CMakeLists.txt','cp932')
aceutils.editCmakeForACE(r'libgd-gd-2.1.1/src/CMakeLists.txt','cp932')

aceutils.cd(r"gd_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" ../libgd-gd-2.1.1/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" src/libgd_static.vcxproj /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" src/libgd_static.vcxproj /p:configuration=Release')
elif aceutils.isMac():
	aceutils.call(r'cmake -G "Unix Makefiles" "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../libgd-gd-2.1.1/')
	aceutils.call(r'make')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" ../libgd-gd-2.1.1/')
	aceutils.call(r'make')
Beispiel #16
0
import aceutils
import shutil

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"box2d_bin")
    aceutils.rmdir(r"box2d_bin_x64")

    aceutils.editCmakeForACE(r'Box2D/Box2D/CMakeLists.txt', 'cp932')
    aceutils.editCmakeForACE(r'Box2D-Linux/Box2D/CMakeLists.txt', 'cp932')
    aceutils.editCmakeForACE(r'Box2D/Box2D/Box2D/CMakeLists.txt', 'cp932')
    aceutils.editCmakeForACE(r'Box2D-Linux/Box2D/Box2D/CMakeLists.txt',
                             'cp932')
    aceutils.mkdir(r"box2d_bin")
    aceutils.mkdir(r"box2d_bin_x64")

    if aceutils.isWin():
        pathname = r"Box2D"
    elif aceutils.isMac():
        pathname = r"Box2D"
    else:
        pathname = r"Box2D-Linux"

    with aceutils.CurrentDir("box2d_bin"):
        if aceutils.isWin():
            aceutils.call(
                aceutils.cmd_cmake +
                r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D BOX2D_BUILD_EXAMPLES:BOOL=OFF ../'
                + pathname + r'/Box2D/')
Beispiel #17
0
import aceutils

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"culling3d_bin")
    aceutils.rmdir(r"culling3d_bin_x64")

    if aceutils.isWin():
        aceutils.editCmakeForACE(r'Culling3D/CMakeLists.txt', 'cp932')
    elif aceutils.isMac():
        aceutils.editCmakeForACE(r'Culling3D/CMakeLists.txt', 'cp932')
    # in Linux, using 'cp932' twice on the same file can cause an error "UnicodeDecodeError: 'cp932' codec can't decode byte 0x9a in position 23: illegal multibyte sequence".
    else:
        try:
            aceutils.editCmakeForACE(r'Culling3D/CMakeLists.txt', 'cp932')
        except:
            aceutils.editCmakeForACE(r'Culling3D/CMakeLists.txt')

    aceutils.mkdir(r"culling3d_bin")
    aceutils.mkdir(r"culling3d_bin_x64")

    with aceutils.CurrentDir('culling3d_bin'):
        if aceutils.isWin():
            aceutils.call(
                aceutils.cmd_cmake +
                r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Culling3D/'
            )
            aceutils.call(aceutils.cmd_compile +
                          r'Culling3D.sln /p:configuration=Debug')
Beispiel #18
0
import aceutils

originalpathname = r'libgd'
pathname = r'libgd_cp'

aceutils.cdToScript()

aceutils.rmdir(r"../Downloads/" + pathname)
aceutils.copytree(r"../Downloads/" + originalpathname, r"../Downloads/" + pathname)

with aceutils.CurrentDir('../Downloads'):
	aceutils.rmdir(r"gd_bin")
	aceutils.rmdir(r"gd_bin_x64")

	aceutils.editCmakeForACE(pathname + r'/CMakeLists.txt','cp932')
	aceutils.editCmakeForACE(pathname + r'/src/CMakeLists.txt','cp932')
	aceutils.mkdir(r"gd_bin")
	aceutils.mkdir(r"gd_bin_x64")

	with aceutils.CurrentDir('gd_bin'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake + r'-DBUILD_STATIC_LIBS=ON ../' + pathname + '/')
			aceutils.call(aceutils.cmd_compile + r'src/libgd_static.vcxproj /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'src/libgd_static.vcxproj /p:configuration=Release')
		elif aceutils.isMac():
			aceutils.call(r'cmake -G "Unix Makefiles" -DBUILD_STATIC_LIBS=ON "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.10" -D CMAKE_BUILD_TYPE=Release ../' + pathname + '/')
			aceutils.call(r'make')
		else:
			aceutils.call(r'cmake -G "Unix Makefiles" -DBUILD_STATIC_LIBS=ON ../' + pathname + '/')
			aceutils.call(r'make')
Beispiel #19
0
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r'Culling2D-master')

aceutils.wget(r'https://github.com/altseed/Culling2D/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'Culling2D-master/CMakeLists.txt', 'cp932')

aceutils.rmdir(r"culling2d_bin")
aceutils.rmdir(r"culling2d_bin_x64")

aceutils.mkdir(r"culling2d_bin")
aceutils.mkdir(r"culling2d_bin_x64")

aceutils.cd(r"culling2d_bin")

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Culling2D-master/'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Culling2D.sln /p:configuration=Debug'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Culling2D.sln /p:configuration=Release'
    )
elif aceutils.isMac():
Beispiel #20
0
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r'Effekseer-master')

aceutils.wget(r'https://github.com/effekseer/Effekseer/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'Effekseer-master/Dev/Cpp/CMakeLists.txt','cp932')

aceutils.rmdir(r"effekseer_bin")
aceutils.rmdir(r"effekseer_bin_x64")

aceutils.mkdir(r"effekseer_bin")
aceutils.mkdir(r"effekseer_bin_x64")


aceutils.cd(r"effekseer_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Effekseer-master/Dev/Cpp/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Effekseer.sln /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Effekseer.sln /p:configuration=Release')
elif aceutils.isMac():
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF -D USE_GLEW_STATIC:BOOL=OFF -D USE_GLEW_DLL:BOOL=OFF -D USE_OPENGL3:BOOL=ON -D USE_OPENAL:BOOL=OFF "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../Effekseer-master/Dev/Cpp/')
	aceutils.call(r'make')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF -D USE_OPENAL:BOOL=OFF ../Effekseer-master/Dev/Cpp/')
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r"OpenSoundMixer-master")

aceutils.wget(r'https://github.com/altseed/OpenSoundMixer/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'OpenSoundMixer-master/CMakeLists.txt','cp932')


aceutils.rmdir(r"osm_bin")
aceutils.rmdir(r"osm_bin_x64")

aceutils.mkdir(r"osm_bin")
aceutils.mkdir(r"osm_bin_x64")

aceutils.cd(r"osm_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../OpenSoundMixer-master/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" OpenSoundMixer.sln /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" OpenSoundMixer.sln /p:configuration=Release')
elif aceutils.isMac():
	aceutils.call(r'cmake -G "Unix Makefiles" "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../OpenSoundMixer-master/')
	aceutils.call(r'make')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" ../OpenSoundMixer-master/')
Beispiel #22
0
import os.path
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')

aceutils.cd(r'Downloads')

aceutils.rmdir(r'zlib_bin')
aceutils.rmdir(r'libpng_bin')

aceutils.editCmakeForACE(r'zlib/CMakeLists.txt')
aceutils.editCmakeForACE(r'libpng/CMakeLists.txt')

aceutils.mkdir(r'zlib_bin')
aceutils.mkdir(r'libpng_bin')

if aceutils.isWin():
    print('already installed.')
else:
    aceutils.mkdir(r'zlib_bin/i386')
    aceutils.mkdir(r'libpng_bin/i386')

    aceutils.cd(r'zlib_bin')
    if aceutils.isMac():
        aceutils.call(
            r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../zlib/'
        )
    else:
        aceutils.call(
            r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../../Dev ../zlib/'
Beispiel #23
0
import os.path
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')

aceutils.rmdir(r'zlib_bin')
aceutils.rmdir(r'libpng_bin')

aceutils.wget(r'http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.6/libpng-1.6.6.tar.gz')
aceutils.wget(r'http://zlib.net/zlib-1.2.8.tar.gz')

aceutils.call(r'tar zxvf libpng-1.6.6.tar.gz')
aceutils.call(r'tar zxvf zlib-1.2.8.tar.gz')

aceutils.editCmakeForACE(r'zlib-1.2.8/CMakeLists.txt')
aceutils.editCmakeForACE(r'libpng-1.6.6/CMakeLists.txt')

aceutils.mkdir(r'zlib_bin')
aceutils.mkdir(r'libpng_bin')

if aceutils.isWin():
	print('already installed.')
else:
	aceutils.cd(r'zlib_bin')
	if aceutils.isMac():
		aceutils.call(r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../zlib-1.2.8/')
	else:
		aceutils.call(r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../Dev ../zlib-1.2.8/')
	aceutils.call(r'make install')
	aceutils.cd(r'../')
Beispiel #24
0
import os.path
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')

aceutils.cd(r'Downloads')

aceutils.rmdir(r'zlib_bin')
aceutils.rmdir(r'libpng_bin')

aceutils.editCmakeForACE(r'zlib/CMakeLists.txt')
aceutils.editCmakeForACE(r'libpng/CMakeLists.txt')

aceutils.mkdir(r'zlib_bin')
aceutils.mkdir(r'libpng_bin')


if aceutils.isWin():
	
	def compile(xn):
		aceutils.mkdir(r'zlib_bin/{}/'.format(xn))
		aceutils.mkdir(r'libpng_bin/{}/'.format(xn))
	
		aceutils.cd(r'zlib_bin/{}/'.format(xn))
	
		cmake_args = []
		cmake_args += [r'-D CMAKE_INSTALL_PREFIX:PATH=.']
		cmake_args += [r'../../zlib/']
	
		if xn == 'x86':
Beispiel #25
0
import shutil

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'Box2D_V2.3.0.7z')
aceutils.rmdir(r'Box2D_V2.3.0')

aceutils.wget(r'https://box2d.googlecode.com/files/Box2D_v2.3.0.7z')

if aceutils.isWin():
	aceutils.call(r'7za x -y Box2D_v2.3.0.7z')
else:
	aceutils.call(r'7za x -y Box2D_v2.3.0.7z')


aceutils.editCmakeForACE(r'Box2D_v2.3.0/Box2D/CMakeLists.txt','cp932')
aceutils.editCmakeForACE(r'Box2D_v2.3.0/Box2D/Box2D/CMakeLists.txt','cp932')

aceutils.rmdir(r"box2d_bin")
aceutils.rmdir(r"box2d_bin_x64")

aceutils.mkdir(r"box2d_bin")
aceutils.mkdir(r"box2d_bin_x64")

aceutils.cd(r"box2d_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D BOX2D_BUILD_EXAMPLES:BOOL=OFF ../Box2D_v2.3.0/Box2D/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Box2D.sln /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Box2D.sln /p:configuration=Release')
elif aceutils.isMac():
Beispiel #26
0
    if aceutils.isWin() or aceutils.isMac():
        aceutils.copytree(r"Box2D", "box2d_temp")
    else:
        aceutils.copytree(r"Box2D-Linux", "box2d_temp")

    aceutils.rm(r"box2d_temp/.git")

    aceutils.rmdir(r"box2d_bin")
    aceutils.rmdir(r"box2d_bin_x64")

    if aceutils.isWin() or aceutils.isMac():
        aceutils.copy('../Script/CMake/CMakeLists.Box2D.txt',
                      'box2d_temp/Box2D/CMakeLists.txt')
    else:
        aceutils.editCmakeForACE(r'box2d_temp/Box2D/CMakeLists.txt', 'cp932')
        aceutils.editCmakeForACE(
            r'box2d_temp/Box2D/Box2D/CMakeLists.txt', 'cp932')
    aceutils.mkdir(r"box2d_bin")
    aceutils.mkdir(r"box2d_bin_x64")

    pathname = r"box2d_temp/"

    if aceutils.isWin():
        with aceutils.CurrentDir("box2d_bin"):
            aceutils.call(
                aceutils.cmd_cmake+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../Box2d_temp/Box2D/')
            aceutils.call('cmake --build . --config Debug')
            aceutils.call('cmake --build . --config Release')
        with aceutils.CurrentDir("box2d_bin_x64"):
            aceutils.call(aceutils.cmd_cmake_x64 +
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r'Effekseer-master')

aceutils.wget(r'https://github.com/effekseer/Effekseer/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'Effekseer-master/Dev/Cpp/CMakeLists.txt')

aceutils.mkdir(r"effekseer_bin")
aceutils.cd(r"effekseer_bin")

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Effekseer-master/Dev/Cpp/'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Effekseer.sln /p:configuration=Debug'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Effekseer.sln /p:configuration=Release'
    )
else:
    aceutils.call(
        r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Effekseer-master/Dev/Cpp/'
    )
    aceutils.call(r'make')
Beispiel #28
0
aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"freetype_bin")
    aceutils.rmdir(r"freetype_bin_x64")
    aceutils.rmdir(r"freetype")
    aceutils.rmdir(r'freetype-2.6')

    aceutils.wget(
        r'https://sourceforge.net/projects/freetype/files/freetype2/2.6/ft26.zip')
    aceutils.unzip(r'ft26.zip')
    aceutils.mkdir(r"freetype_bin")
    aceutils.mkdir(r"freetype_bin_x64")
    aceutils.copytree(r'freetype-2.6', r'freetype')
    aceutils.editCmakeForACE(r'freetype/CMakeLists.txt', 'cp932')

    with aceutils.CurrentDir('freetype_bin'):
        if aceutils.isWin():
            aceutils.call(aceutils.cmd_cmake+r'../freetype/')
            aceutils.call('cmake --build . --config Debug')
            aceutils.call('cmake --build . --config Release')
        elif aceutils.isMac():
            aceutils.call(r'cmake -G "Unix Makefiles" "-DWITH_BZip2=OFF" "-DWITH_HarfBuzz=OFF" "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" -D CMAKE_BUILD_TYPE=Release ../freetype/')
            aceutils.call(r'make')
        else:
            aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ../freetype/')
            aceutils.call(r'make')

    with aceutils.CurrentDir('freetype_bin_x64'):
        if aceutils.isWin():
Beispiel #29
0
import aceutils

pathname = r'libgd'
aceutils.cdToScript()

with aceutils.CurrentDir('../Downloads'):
    aceutils.rmdir(r"gd_bin")
    aceutils.rmdir(r"gd_bin_x64")

    aceutils.editCmakeForACE(pathname + r'/CMakeLists.txt', 'cp932')
    aceutils.editCmakeForACE(pathname + r'/src/CMakeLists.txt', 'cp932')
    aceutils.mkdir(r"gd_bin")
    aceutils.mkdir(r"gd_bin_x64")

    with aceutils.CurrentDir('gd_bin'):
        if aceutils.isWin():
            aceutils.call(aceutils.cmd_cmake + r'-DBUILD_STATIC_LIBS=ON ../' +
                          pathname + '/')
            aceutils.call(aceutils.cmd_compile +
                          r'src/libgd_static.vcxproj /p:configuration=Debug')
            aceutils.call(aceutils.cmd_compile +
                          r'src/libgd_static.vcxproj /p:configuration=Release')
        elif aceutils.isMac():
            aceutils.call(
                r'cmake -G "Unix Makefiles" -DBUILD_STATIC_LIBS=ON "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" -D CMAKE_BUILD_TYPE=Release ../'
                + pathname + '/')
            aceutils.call(r'make')
        else:
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ../' +
                pathname + '/')
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'master.zip')
aceutils.rmdir(r'glfw-master')
aceutils.wget(r'https://github.com/ac-engine/GLFW/archive/master.zip')
aceutils.unzip(r'master.zip')

aceutils.editCmakeForACE(r'glfw-master/CMakeLists.txt')

if aceutils.isWin():
    aceutils.cd(r"glfw-master")
else:
    aceutils.mkdir(r"glfw_bin")
    aceutils.cd(r"glfw_bin")

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../glfw-master/'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" ALL_BUILD.vcxproj /p:configuration=Debug'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" ALL_BUILD.vcxproj /p:configuration=Release'
    )
else:
    aceutils.call(
        r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX=../Dev ../glfw-master/'
    )
Beispiel #31
0
import aceutils

aceutils.cdToScript()

aceutils.cd(r'../')
aceutils.rm(r'bullet-2.82-r2704.zip')
aceutils.rmdir(r'bullet-2.82-r2704')

aceutils.wget(r'https://bullet.googlecode.com/files/bullet-2.82-r2704.zip')
aceutils.unzip(r'bullet-2.82-r2704.zip')

aceutils.editCmakeForACE(r'bullet-2.82-r2704/CMakeLists.txt','cp932')

aceutils.rmdir(r"bullet_bin")
aceutils.rmdir(r"bullet_bin_x64")

aceutils.mkdir(r"bullet_bin")
aceutils.mkdir(r"bullet_bin_x64")

aceutils.cd(r"bullet_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D BUILD_DEMOS:BOOL=OFF ../bullet-2.82-r2704/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" BULLET_PHYSICS.sln /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" BULLET_PHYSICS.sln /p:configuration=Release')
elif aceutils.isMac():
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../bullet-2.82-r2704/')
	aceutils.call(r'make')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../bullet-2.82-r2704/')
Beispiel #32
0
import aceutils

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):

    aceutils.editCmakeForACE(r'Chipmunk2D/CMakeLists.txt', 'cp932')

    if aceutils.isWin():
        aceutils.call(
            aceutils.cmd_compile +
            r'./Chipmunk2D/msvc/vc14/demo/chipmunk.sln /p:configuration=Debug /p:platform=Win32'
        )
        aceutils.call(
            aceutils.cmd_compile +
            r'./Chipmunk2D/msvc/vc14/demo/chipmunk.sln /p:configuration=Release /p:platform=Win32'
        )
        aceutils.call(
            aceutils.cmd_compile +
            r'./Chipmunk2D/msvc/vc14/demo/chipmunk.sln /p:configuration=Debug /p:platform=x64'
        )
        aceutils.call(
            aceutils.cmd_compile +
            r'./Chipmunk2D/msvc/vc14/demo/chipmunk.sln /p:configuration=Release /p:platform=x64'
        )
    elif aceutils.isMac():
        aceutils.call(
            r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ./Chipmunk2D/'
        )
        aceutils.call(r'make')