Exemplo n.º 1
0
def init():
	aceutils.cdToScript()
	aceutils.cd(r'../')

	if aceutils.isWin():
		aceutils.call(r'python Dev/generate_swig.py')
		
	elif aceutils.isMac():
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')

	else:
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')
Exemplo n.º 2
0
def compile(type):
    if aceutils.isWin():
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Debug'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Release'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cs.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FontGeneratorWPF.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FilePackageGenerator.sln /p:configuration=Release'
        )

    elif aceutils.isMac():
        if type == "cpp":
            aceutils.rmdir(r"Dev/cmake")
            aceutils.mkdir(r"Dev/cmake")
            aceutils.cd(r"Dev/cmake")
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../'
            )
            aceutils.call(r"make install")
            aceutils.cd(r"../../")

        elif type == "cs":
            aceutils.cd(r"Dev")
            aceutils.call(r"xbuild /p:Configuration=Release unitTest_Engine_cs.sln")
            aceutils.cd(r"../")
Exemplo n.º 3
0
def init():
	aceutils.cdToScript()
	aceutils.cd(r'../')

	if aceutils.isWin():
		aceutils.call(r'python Dev/generate_swig.py')
		
	elif aceutils.isMac():
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')

	else:
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')
Exemplo n.º 4
0
def release_common():
	aceutils.cdToScript()
	aceutils.cd(r'../')

	# generate makefiles using cmake

	if aceutils.isMac():
		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_TOOL=ON -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../')
		aceutils.cd(r'../../')
Exemplo n.º 5
0
def release_common():
    aceutils.cdToScript()
    aceutils.cd(r'../')

    # generate makefiles using cmake

    if aceutils.isMac():
        aceutils.rmdir(r'Dev/cmake')
        aceutils.mkdir(r'Dev/cmake')
        aceutils.cd(r'Dev/cmake')
        aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_TOOL=ON -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64' +
                      (';i386' if aceutils.Isi386() else '') + '" ../')
        aceutils.cd(r'../../')
Exemplo n.º 6
0
def store_tools():
    aceutils.cdToScript()
    aceutils.cd(r'../')
    aceutils.call(sys.executable + r' Dev/generate_swig.py')

    compile('cs')
    compile_tool()

    toolDir = 'Altseed_Tool'
    aceutils.rmdir(toolDir)
    aceutils.mkdir(toolDir)

    aceutils.copy(r'Dev/bin/System.Reactive.dll', toolDir)
    # aceutils.copy(r'Dev/bin/System.Windows.Interactivity.dll', toolDir)
    aceutils.copy(r'Dev/bin/ReactiveProperty.dll', toolDir)
    aceutils.copy(r'Dev/bin/ReactiveProperty.NET46.dll', toolDir)

    aceutils.copy(r'Dev/bin/FontGenerator.exe', toolDir)
    aceutils.copy(r'Dev/bin/FontGenerator.exe.config', toolDir)
    aceutils.copy(r'Dev/bin/FontGenerator.Model.dll', toolDir)

    aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe', toolDir)
    aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe.config', toolDir)

    aceutils.copy(r'Dev/bin/FilePackageGenerator.exe', toolDir)
    # aceutils.copy(r'Dev/bin/FilePackageGenerator.exe.config', toolDir)
    aceutils.copy(r'Dev/bin/FilePackageGeneratorCore.dll', toolDir)

    aceutils.copy(r'Dev/bin/Altseed.dll', toolDir)

    if aceutils.isWin():
        aceutils.copy(r'Dev/bin/Altseed_core.dll', toolDir)
        aceutils.copy(r'Dev/bin/FontGeneratorCore.dll', toolDir)
        aceutils.copy(r'Dev/bin/PSDParser.dll', toolDir)
    elif aceutils.isMac():
        aceutils.copy(r'Dev/bin/libAltseed_core.dylib', toolDir)
        aceutils.copy(r'Dev/bin/libFontGeneratorCore.dylib', toolDir)
        aceutils.copy(
            r'Dev/cmake/ImagePackageGenerator/bin/libPSDParser.dylib', toolDir)
Exemplo n.º 7
0
def store_tools():
	aceutils.cdToScript()
	aceutils.cd(r'../')
	aceutils.call(sys.executable + r' Dev/generate_swig.py')

	compile('cs')
	compile_tool()

	toolDir = 'Altseed_Tool'
	aceutils.rmdir(toolDir)
	aceutils.mkdir(toolDir)

	aceutils.copy(r'Dev/bin/System.Reactive.dll', toolDir)
	#aceutils.copy(r'Dev/bin/System.Windows.Interactivity.dll', toolDir)
	aceutils.copy(r'Dev/bin/ReactiveProperty.dll', toolDir)
	aceutils.copy(r'Dev/bin/ReactiveProperty.NET46.dll', toolDir)

	aceutils.copy(r'Dev/bin/FontGenerator.exe', toolDir)
	aceutils.copy(r'Dev/bin/FontGenerator.exe.config', toolDir)
	aceutils.copy(r'Dev/bin/FontGenerator.Model.dll', toolDir)
		
	aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe', toolDir)
	aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe.config', toolDir)

	aceutils.copy(r'Dev/bin/FilePackageGenerator.exe', toolDir)
	#aceutils.copy(r'Dev/bin/FilePackageGenerator.exe.config', toolDir)
	aceutils.copy(r'Dev/bin/FilePackageGeneratorCore.dll', toolDir)

	aceutils.copy(r'Dev/bin/Altseed.dll', toolDir)

	if aceutils.isWin():
		aceutils.copy(r'Dev/bin/Altseed_core.dll', toolDir)
		aceutils.copy(r'Dev/bin/FontGeneratorCore.dll', toolDir)
		aceutils.copy(r'Dev/bin/PSDParser.dll', toolDir)
	elif aceutils.isMac():
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', toolDir)
		aceutils.copy(r'Dev/bin/libFontGeneratorCore.dylib', toolDir)
		aceutils.copy(r'Dev/cmake/ImagePackageGenerator/bin/libPSDParser.dylib', toolDir)
Exemplo n.º 8
0
def compile(type):
    if aceutils.isWin():
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Debug'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Release'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cs.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FontGeneratorWPF.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FilePackageGenerator.sln /p:configuration=Release'
        )

    elif aceutils.isMac():
        if type == 'cpp':
            aceutils.rmdir(r'Dev/cmake')
            aceutils.mkdir(r'Dev/cmake')
            aceutils.cd(r'Dev/cmake')
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../'
            )
            aceutils.call(r'make install')
            aceutils.cd(r'../../')

        elif type == 'cs':
            aceutils.cd(r'Dev')
            aceutils.call(
                r'xbuild /p:Configuration=Release unitTest_Engine_cs.sln')
            aceutils.cd(r'../')
Exemplo n.º 9
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')
Exemplo n.º 10
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():
Exemplo n.º 11
0
aceutils.cdToScript()
aceutils.cd(r'../')

if aceutils.isWin():
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Debug'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Release'
    )
    aceutils.call(
        r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cs.sln /p:configuration=Release'
    )

#remove files
aceutils.rmdir(targetDir)
aceutils.rmdir(r'Sample/sample_cs/obj')

aceutils.mkdir(targetDir + r'/')

# Sample
sampleDir = targetDir + r'/Sample/'

aceutils.copytreeWithExt(r'Sample/', targetDir + r'/Sample/', [
    r'.h', r'.cpp', r'.filters', r'.vcxproj', r'.cs', r'.csproj', r'.sln',
    r'.wav', r'.ogg', r'.png'
])

aceutils.mkdir(sampleDir + r'cpp/')
aceutils.mkdir(sampleDir + r'cpp/include/')
aceutils.mkdir(sampleDir + r'cpp/lib/')
Exemplo n.º 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.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')
Exemplo n.º 13
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')
Exemplo n.º 14
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/'
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/')
Exemplo n.º 16
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'../')
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')
Exemplo n.º 18
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/'
Exemplo n.º 19
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'
    )
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/')
	aceutils.call(r'make')

aceutils.cd(r"../")

if aceutils.isWin():
	aceutils.copy(r'OpenSoundMixer-master/src/OpenSoundMixer.h', r'Dev/include/')
Exemplo n.º 21
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('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 -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" ../' + pathname + '/')
			aceutils.call(r'make install')
		else:
			aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX=../../Dev ../' + pathname + '/')
			aceutils.call(r'make install')

	with aceutils.CurrentDir('glfw_bin_x64'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake_x64+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../' + pathname + '/')
			aceutils.call('cmake --build . --config Debug')
Exemplo n.º 22
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():
Exemplo n.º 23
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/')
Exemplo n.º 24
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/')
Exemplo n.º 25
0
import aceutils

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

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

	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 ../Culling3D/')
			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 -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" ../Culling3D/')
			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 ../Culling3D/')
			aceutils.call(r'make')

	with aceutils.CurrentDir('culling3d_bin_x64'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake_x64+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../Culling3D/')
			aceutils.call('cmake --build . --config Debug')
			aceutils.call('cmake --build . --config Release')
Exemplo n.º 26
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(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Box2D.sln /p:configuration=Debug')
Exemplo n.º 27
0
def makeDocument(type, targetDir, mode):
    makeDocumentHtml.make_document_html(mode)
    aceutils.copytree('DocumentHtml', targetDir + '/Document', True)
    aceutils.rmdir('DocumentHtml')
Exemplo n.º 28
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/')
Exemplo n.º 29
0
def makeDocument(type, targetDir, mode):
    makeDocumentHtml.make_document_html(mode)
    aceutils.copytree("DocumentHtml", targetDir + "/Document", True)
    aceutils.rmdir("DocumentHtml")
Exemplo n.º 30
0

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.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 ../OpenSoundMixer/')
			aceutils.call('cmake --build . --config Debug')
			aceutils.call('cmake --build . --config Release')
		elif aceutils.isMac():
			aceutils.call(r'cmake -G "Unix Makefiles" "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" -D CMAKE_BUILD_TYPE=Release ../OpenSoundMixer/')
			aceutils.call(r'make')
		else:
			aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ../OpenSoundMixer/')
			aceutils.call(r'make')

	with aceutils.CurrentDir('osm_bin_x64'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake_x64+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../OpenSoundMixer/')
			aceutils.call('cmake --build . --config Debug')
			aceutils.call('cmake --build . --config Release')
Exemplo n.º 31
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('cmake --build . --config Debug')
			aceutils.call('cmake --build . --config Release')
		elif aceutils.isMac():
			aceutils.call(r'cmake -G "Unix Makefiles" -DBUILD_STATIC_LIBS=ON "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" -D CMAKE_BUILD_TYPE=Release ../' + pathname + '/')
			aceutils.call(r'make')
		else:
			aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release ../' + pathname + '/')
			aceutils.call(r'make')

	with aceutils.CurrentDir('gd_bin_x64'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake_x64 + r'-DBUILD_STATIC_LIBS=ON ../' + pathname + '/')
			aceutils.call('cmake --build . --config Debug')
Exemplo n.º 32
0

import aceutils
import shutil
import os

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

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

    aceutils.rmdir(r"box2d_temp")

    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")
Exemplo n.º 33
0
def init(type, targetDir):
    aceutils.cdToScript()
    aceutils.cd(r'../')
    aceutils.rmdir(targetDir)
    aceutils.rmdir(r'Sample/BasicSample/sample_cs/obj')
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/'
    )
Exemplo n.º 35
0
pathname = 'glfw'

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

aceutils.mkdir(r"../include/")
aceutils.mkdir(r"../lib/")

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

    # Copy from submodule
    aceutils.copytree('../Downloads/glfw/', './glfw/', True)
    aceutils.rm('./glfw/.git')
    aceutils.rmdir('./glfw/.github/')

    # Compile
    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 -D GLFW_BUILD_EXAMPLES:BOOL=OFF -D GLFW_BUILD_TESTS:BOOL=OFF ../'
                + pathname + '/')
Exemplo n.º 36
0
import aceutils

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

with aceutils.CurrentDir('../Downloads'):
	aceutils.rmdir(r"culling2d_bin")
	aceutils.rmdir(r"culling2d_bin_x64")

	if aceutils.isWin():
		aceutils.editCmakeForACE(r'Culling2D/CMakeLists.txt','cp932')
	elif aceutils.isMac():
		aceutils.editCmakeForACE(r'Culling2D/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'Culling2D/CMakeLists.txt','cp932')
		except:
			aceutils.editCmakeForACE(r'Culling2D/CMakeLists.txt')
	
	aceutils.mkdir(r"culling2d_bin")
	aceutils.mkdir(r"culling2d_bin_x64")

	with aceutils.CurrentDir('culling2d_bin'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF ../Culling2D/')
			aceutils.call(aceutils.cmd_compile + r'Culling2D.sln /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'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/')
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')
Exemplo n.º 38
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/')
Exemplo n.º 39
0
aceutils.cdToScript()
aceutils.mkdir('../Downloads')

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

    # Build dependencies
    glfw_args = ' '.join('"{0}"'.format(w) for w in sys.argv[1:])

    if not aceutils.isMac():
        aceutils.call(sys.executable + ' AltseedRHI/Script/build_glew.py ' +
                      glfw_args)
    aceutils.call(sys.executable + ' AltseedRHI/Script/build_libpng.py ' +
                  glfw_args)

    # Comple
    aceutils.rmdir(r"AltseedRHI_bin")
    aceutils.rmdir(r"AltseedRHI_bin_x64")

    aceutils.mkdir(r"AltseedRHI_bin")
    aceutils.mkdir(r"AltseedRHI_bin_x64")

    with aceutils.CurrentDir('AltseedRHI_bin'):
        if aceutils.isWin():
            aceutils.call(
                aceutils.cmd_cmake +
                r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../AltseedRHI/')
            aceutils.call(aceutils.cmd_compile +
                          r'AltseedRHI.sln /p:configuration=Debug')
            aceutils.call(aceutils.cmd_compile +
                          r'AltseedRHI.sln /p:configuration=Release')
        elif aceutils.isMac():
Exemplo n.º 40
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/')
Exemplo n.º 41
0
import aceutils
import sys

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

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

	# Build dependencies
	glfw_args = ' '.join('"{0}"'.format(w) for w in sys.argv[1:])
	aceutils.call(sys.executable + ' AltseedPlatform/Script/build_glfw.py ' + glfw_args)

	# Comple
	aceutils.rmdir(r"AltseedPlatform_bin")
	aceutils.rmdir(r"AltseedPlatform_bin_x64")
	
	aceutils.mkdir(r"AltseedPlatform_bin")
	aceutils.mkdir(r"AltseedPlatform_bin_x64")

	with aceutils.CurrentDir('AltseedPlatform_bin'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../AltseedPlatform/')
			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 -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF "-DCMAKE_OSX_ARCHITECTURES=x86_64;' + (';i386' if aceutils.Isi386() else '') + r'" ../AltseedPlatform/')
			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 ../AltseedPlatform/')
			aceutils.call(r'make')
Exemplo n.º 42
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(
Exemplo n.º 43
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(
Exemplo n.º 44
0
import aceutils

pathname = 'glew'

if aceutils.isWin():
	pathname = 'glew-1.13.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')
Exemplo n.º 45
0
import os.path
import aceutils

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

aceutils.rmdir(r'Dev/cmake')
aceutils.mkdir(r'Dev/cmake')

aceutils.cd(r'Dev/cmake')

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D BUILD_SHARED_LIBS:BOOL=OFF -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF ../')
	aceutils.call(r'make install')
	aceutils.cd(r'../../')
	aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')

Exemplo n.º 46
0
import aceutils
import shutil
import os

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

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

    aceutils.rmdir(r"box2d_temp")

    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")
import aceutils

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

with aceutils.CurrentDir('../Downloads'):
	aceutils.rm(r'master.zip')
	aceutils.rmdir(r'ImagePackageGenerator-master')

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

	with aceutils.CurrentDir('ImagePackageGenerator-master'):
		if aceutils.isWin():
			aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" ImagePackageGenerator.sln /p:configuration=Release')
		elif aceutils.isMac():
			aceutils.call('cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_OSX_ARCHITECTURES="x86_64' + (';i386' if aceutils.Isi386() else '') + ' ./')
			aceutils.call('make')
			aceutils.call(r'xbuild /p:Configuration=Release ImagePackageGenerator.sln')

	aceutils.mkdir(r'../Dev/bin/')
	aceutils.copy(r'ImagePackageGenerator-master/bin/ImagePackageGenerator.exe', r'../Dev/bin/')
	aceutils.copy(r'ImagePackageGenerator-master/bin/ImagePackageGenerator.exe.config', r'../Dev/bin/')
	if aceutils.isWin():
		aceutils.copy(r'ImagePackageGenerator-master/bin/PSDParser.dll', r'../Dev/bin/')
	elif aceutils.isMac():
		aceutils.copy(r'ImagePackageGenerator-master/libPSDParser.dylib', r'../Dev/bin/')
Exemplo n.º 48
0
import aceutils

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

with aceutils.CurrentDir('../Downloads'):
	aceutils.rmdir(r"gtest_bin")
	aceutils.rmdir(r"gtest_bin_x64")

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

	with aceutils.CurrentDir('gtest_bin'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake+r'-D BUILD_SHARED_LIBS:BOOL=OFF ../googletest/')
			aceutils.call(aceutils.cmd_compile + r'gtest.sln /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'gtest.sln /p:configuration=Release')
		elif aceutils.isMac():
			aceutils.call(r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX=../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../googletest/')
			aceutils.call(r'make')
		else:
			aceutils.call(r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX=../Dev ../googletest/')
			aceutils.call(r'make')

	with aceutils.CurrentDir('gtest_bin_x64'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake_x64+r'-D BUILD_SHARED_LIBS:BOOL=OFF ../googletest/')
			aceutils.call(aceutils.cmd_compile + r'gtest.sln /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'gtest.sln /p:configuration=Release')
Exemplo n.º 49
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')
Exemplo n.º 50
0
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/')
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')

aceutils.cd(r"../")

if aceutils.isWin():
	aceutils.mkdir(r'Dev/lib/Debug')
	aceutils.mkdir(r'Dev/lib/Release')
	aceutils.copy(r'Effekseer-master/Dev/Cpp/Effekseer/Effekseer.h', r'Dev/include/')
	aceutils.copy(r'Effekseer-master/Dev/Cpp/EffekseerRendererDX11/EffekseerRendererDX11.h', r'Dev/include/')
Exemplo n.º 52
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 + '/')
Exemplo n.º 53
0
import aceutils
import sys

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

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

	# Build dependencies
	glfw_args = ' '.join('"{0}"'.format(w) for w in sys.argv[1:])
	aceutils.call(sys.executable + ' AltseedPlatform/Script/build_glfw.py ' + glfw_args)

	# Comple
	aceutils.rmdir(r"AltseedPlatform_bin")
	aceutils.rmdir(r"AltseedPlatform_bin_x64")
	
	aceutils.mkdir(r"AltseedPlatform_bin")
	aceutils.mkdir(r"AltseedPlatform_bin_x64")

	with aceutils.CurrentDir('AltseedPlatform_bin'):
		if aceutils.isWin():
			aceutils.call(aceutils.cmd_cmake+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../AltseedPlatform/')
			aceutils.call(aceutils.cmd_compile + r'AltseedPlatform.sln /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'AltseedPlatform.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 "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../AltseedPlatform/')
			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 ../AltseedPlatform/')
			aceutils.call(r'make')
Exemplo n.º 54
0
import os.path
import aceutils

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

aceutils.rmdir(r'Dev/cmake')
aceutils.mkdir(r'Dev/cmake')

aceutils.cd(r'Dev/cmake')

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D BUILD_SHARED_LIBS:BOOL=OFF -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../'
    )
else:
    aceutils.call(
        r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF ../')
    aceutils.call(r'make install')
    aceutils.cd(r'../../')
    aceutils.copytree(r'Dev/bin/Data', r'Dev/cmake/bin/Data')
Exemplo n.º 55
0
import os
import os.path
import aceutils

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

aceutils.rmdir(r'libogg-1.3.2')
aceutils.rmdir(r'libvorbis-1.3.5')

aceutils.wget(r'http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz')
aceutils.wget(r'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz')

aceutils.call(r'tar zxvf libogg-1.3.2.tar.gz')
aceutils.call(r'tar zxvf libvorbis-1.3.5.tar.gz')

if aceutils.isWin():
	pass
else:
	ogg_dir="libogg-1.3.2"
	aceutils.cd(ogg_dir)
	cmdenv=""
	if aceutils.isMac():
		cmdenv+="CFLAGS='-arch i386 -arch x86_64 -fPIC '$CFLAGS "
	else:
		cmdenv+="CFLAGS='-fPIC '$CFLAGS "
	aceutils.call(cmdenv+"./configure --prefix=`pwd`/build --disable-shared")
	aceutils.call(cmdenv+"make")
	aceutils.call(cmdenv+"make install")
	ogg_build_dir=os.getcwd()+"/build"
	aceutils.cd("../")
Exemplo n.º 56
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/')
Exemplo n.º 57
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/')