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')
예제 #2
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/')
예제 #3
0
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/')
예제 #4
0
aceutils.cdToScript()
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 + '/')
예제 #5
0
import aceutils

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')
예제 #6
0
import aceutils

pathname = 'glew-1.13.0'

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

with aceutils.CurrentDir('../Downloads'):
	aceutils.rm(r'glew-1.13.0.zip')
	aceutils.rmdir(pathname)
	aceutils.rmdir(r"glew_bin")
	aceutils.rmdir(r"glew_bin_x64")

	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(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" -UGLEW_USE_STATIC_LIBS -D CMAKE_INSTALL_PREFIX:PATH=../dev "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../' + pathname + '/build/cmake')
			aceutils.call(r'make install')
		else:
			aceutils.call(r'cmake -G "Unix Makefiles" -UGLEW_USE_STATIC_LIBS -D CMAKE_INSTALL_PREFIX=../dev ../' + pathname + '/build/cmake')
			aceutils.call(r'make install')
예제 #7
0
import aceutils

zipname = 'master.zip'
pathname = 'glfw-master'

zipname = 'ed451ea6823380af9ea1ced320182fbcfb176c64.zip'
pathname = 'glfw-ed451ea6823380af9ea1ced320182fbcfb176c64'

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(zipname)
aceutils.rmdir(pathname)

aceutils.wget(r'https://github.com/altseed/glfw/archive/' + zipname)
aceutils.unzip(zipname)

aceutils.editCmakeForACE(pathname + r'/CMakeLists.txt')

aceutils.rmdir(r"glfw_bin")
aceutils.rmdir(r"glfw_bin_x64")

aceutils.mkdir(r"glfw_bin")
aceutils.mkdir(r"glfw_bin_x64")

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 ../'
        + pathname + '/')
    aceutils.call(
import aceutils

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

aceutils.rmdir(r"gtest_bin")
aceutils.rmdir(r"gtest-1.7.0")

aceutils.wget(r"http://googletest.googlecode.com/files/gtest-1.7.0.zip")

aceutils.unzip(r"gtest-1.7.0.zip")

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

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

if aceutils.isWin():
	aceutils.copy(r'Debug/gtest.lib', r'../Dev/lib/gtestd.lib')
	aceutils.copy(r'Debug/gtest_main.lib', r'../Dev/lib/gtest_maind.lib')
	aceutils.copy(r'Release/gtest.lib', r'../Dev/lib/gtest.lib')
	aceutils.copy(r'Release/gtest_main.lib', r'../Dev/lib/gtest_main.lib')
else:
	aceutils.copy(r'libgtest.a', r'../Dev/lib/libgtest.a')
예제 #9
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'
    )
예제 #10
0
import aceutils

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/')
예제 #11
0
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')
aceutils.rm(r'ft26.zip')
aceutils.rmdir(r'freetype-2.6')

aceutils.wget(r'http://sourceforge.net/projects/freetype/files/freetype2/2.6/ft26.zip')
aceutils.unzip(r'ft26.zip')

aceutils.rmdir(r"freetype_bin")
aceutils.rmdir(r"freetype_bin_x64")

aceutils.mkdir(r"freetype_bin")
aceutils.mkdir(r"freetype_bin_x64")

aceutils.editCmakeForACE(r'freetype-2.6/CMakeLists.txt','cp932')

aceutils.cd(r"freetype_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" ../freetype-2.6/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" freetype.sln /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" freetype.sln /p:configuration=Release')
elif aceutils.isMac():
	aceutils.call(r'cmake -G "Unix Makefiles" "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../freetype-2.6/')
	aceutils.call(r'make')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" ../freetype-2.6/')
	aceutils.call(r'make')