def copySampleFiles(from_, to_): sampleDir = to_ sampleBinDir = sampleDir + r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt' ]) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.copy(r'Sample/sample_cs.sln', sampleDir) aceutils.mkdir(sampleDir + r'sample_cs/') aceutils.copytreeWithExt( from_ + r'sample_cs/', sampleDir + r'sample_cs/', [ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt' ]) editCSFiles(sampleDir + r'sample_cs/') aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir + r'sample_cs/') aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir + r'sample_cs/')
def copySampleFiles(from_, to_): sampleDir = to_ sampleBinDir = sampleDir+r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.mkdir(sampleDir+r'sample_cs/') aceutils.copytreeWithExt(from_ + r'sample_cs/', sampleDir+r'sample_cs/', [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) editCSFiles(sampleDir+r'sample_cs/') aceutils.copy(from_+r'sample_cs.sln', to_) aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/') aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/')
def genCPP(): targetDir = r'NuGetPackage/Cpp/' aceutils.cdToScript() aceutils.cd(r'../') aceutils.call(aceutils.cmd_compile + r'Dev/asd_cpp.sln /p:configuration=Debug') aceutils.call(aceutils.cmd_compile + r'Dev/asd_cpp.sln /p:configuration=Release') if not os.path.exists(targetDir): aceutils.mkdir(targetDir) aceutils.mkdir(targetDir+'build/native/bin/') aceutils.mkdir(targetDir+'build/native/include/') aceutils.mkdir(targetDir+'build/native/lib/') aceutils.mkdir(targetDir+'build/native/lib/Debug') aceutils.mkdir(targetDir+'build/native/lib/Release') aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir+'build/native/bin/') aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', targetDir+'build/native/bin/') aceutils.copy(r'Dev/include/Altseed.h', targetDir+'build/native/include/') aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', targetDir+'build/native/lib/Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', targetDir+'build/native/lib/Release/') aceutils.cd(targetDir) aceutils.call(r'nuget pack AltseedCpp.nuspec -Version ' + version)
def make_webpage(): exclude_ext = [".txt", ".psd", ".BAK", ".pptx"] aceutils.cdToScript() aceutils.cd('../') aceutils.copytree('./Document', './Doc/', True) aceutils.cd('./Doc') img_dir = 'img/' ss_dir = 'img/ss/' files = aceutils.get_files('.') for file in files: if os.path.splitext(file)[1] in exclude_ext: aceutils.rm(file) continue if os.path.splitext(file)[1] != ".md": continue ls = [] # 読み込み with open(file, mode='r', encoding='utf-8-sig') as f: ls = f.readlines() #includeの実装 relPath = '' ls = makeMarkdownUtils.include_basic_sample_web(ls,relPath,ss_dir,'all') ls = makeMarkdownUtils.include_application_sample_web(ls,relPath,ss_dir,'all') # リンクを修正 ls = [s.replace('.md', '.html') for s in ls] ls = [s.replace('\r\n', '\n') for s in ls] # 出力 with open(file, mode='wb') as f: for l in ls: f.write(l.encode('utf-8')) aceutils.mkdir(img_dir) aceutils.mkdir(ss_dir) # SSのコピー for ssfile in makeMarkdownUtils.included_ss_paths: aceutils.copy(ssfile,ss_dir) aceutils.cd('../')
def make_webpage(): exclude_ext = [".txt", ".psd", ".BAK", ".pptx"] aceutils.cdToScript() aceutils.cd("../") aceutils.copytree("./Document", "./Doc/", True) aceutils.cd("./Doc") img_dir = "img/" ss_dir = "img/ss/" files = aceutils.get_files(".") for file in files: if os.path.splitext(file)[1] in exclude_ext: aceutils.rm(file) continue if os.path.splitext(file)[1] != ".md": continue ls = [] # 読み込み with open(file, mode="r", encoding="utf-8-sig") as f: ls = f.readlines() # includeの実装 relPath = "" ls = makeMarkdownUtils.include_basic_sample_web(ls, relPath, ss_dir, "all") ls = makeMarkdownUtils.include_application_sample_web(ls, relPath, ss_dir, "all") # リンクを修正 ls = [s.replace(".md", ".html") for s in ls] ls = [s.replace("\r\n", "\n") for s in ls] # 出力 with open(file, mode="wb") as f: for l in ls: f.write(l.encode("utf-8")) aceutils.mkdir(img_dir) aceutils.mkdir(ss_dir) # SSのコピー for ssfile in makeMarkdownUtils.included_ss_paths: aceutils.copy(ssfile, ss_dir) aceutils.cd("../")
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': aceutils.call(aceutils.cmd_cmake + r' ' + ' '.join(cmake_args)) else: aceutils.call(aceutils.cmd_cmake_x64 + r' ' + ' '.join(cmake_args)) aceutils.call(r'cmake --build . --config Debug --target install') aceutils.call(r'cmake --build . --config Release --target install') aceutils.cd(r'../../') aceutils.cd(r'libpng_bin/{}/'.format(xn)) cmake_args = [] cmake_args += [r'-D PNG_STATIC=ON'] cmake_args += [r'-D PNG_SHARED=OFF'] cmake_args += [r'-D CMAKE_INSTALL_PREFIX:PATH=.'] cmake_args += [r'-D ZLIB_INCLUDE_DIR=../../zlib_bin/{}/include'.format(xn)] cmake_args += [r'-D ZLIB_LIBRARY_DEBUG=../../zlib_bin/{}/lib/zlibstaticd.lib'.format(xn)] cmake_args += [r'-D ZLIB_LIBRARY_RELEASE=../../zlib_bin/{}/lib/zlibstatic.lib'.format(xn)] cmake_args += [r'../../libpng/'] if xn == 'x86': aceutils.call(aceutils.cmd_cmake + r' ' + ' '.join(cmake_args)) else: aceutils.call(aceutils.cmd_cmake_x64 + r' ' + ' '.join(cmake_args)) aceutils.call(r'cmake --build . --config Debug --target install') aceutils.call(r'cmake --build . --config Release --target install') aceutils.cd(r'../../') aceutils.mkdir(r'../Dev/lib/{}/'.format(xn)) aceutils.mkdir(r'../Dev/lib/{}/Debug'.format(xn)) aceutils.mkdir(r'../Dev/lib/{}/Release'.format(xn)) aceutils.copy(r'zlib_bin/{}/lib/zlibstaticd.lib'.format(xn), r'../Dev/lib/{}/Debug/'.format(xn)) aceutils.copy(r'zlib_bin/{}/lib/zlibstatic.lib'.format(xn), r'../Dev/lib/{}/Release/'.format(xn)) aceutils.copy(r'libpng_bin/{}/lib/libpng16_staticd.lib'.format(xn), r'../Dev/lib/{}/Debug/'.format(xn)) aceutils.copy(r'libpng_bin/{}/lib/libpng16_static.lib'.format(xn), r'../Dev/lib/{}/Release/'.format(xn))
def genCS(): targetDir = r'NuGetPackage/CSharp/' aceutils.cdToScript() aceutils.cd(r'../') # GenerateHeader aceutils.call(r'python Dev/generate_swig.py') aceutils.call(aceutils.cmd_compile + r'Dev/asd_cs.sln /p:configuration=Release') if not os.path.exists(targetDir): aceutils.mkdir(targetDir) aceutils.copy(r'Dev/bin/Altseed.dll', targetDir) aceutils.copy(r'Dev/bin/Altseed.xml', targetDir) aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir) aceutils.cd(targetDir) aceutils.call(r'nuget pack AltseedDotNet.nuspec -Version ' + version)
def copySampleFiles(from_,to_): sampleDir = to_ sampleBinDir = sampleDir+r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + r'bin/',sampleBinDir,[ r'.jar', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.mkdir(sampleDir+r'sample_java/') aceutils.copytreeWithExt(from_ + r'sample_java/',sampleDir+r'sample_java/',[ r'.java', r'.xml']) aceutils.copy(r'Dev/bin/Altseed.jar', sampleBinDir)
def copySampleFiles(from_, to_): sampleDir = to_ sampleBinDir = sampleDir+r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [ r'.jar', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.mkdir(sampleDir+r'sample_java/') aceutils.copytreeWithExt( from_ + r'sample_java/', sampleDir+r'sample_java/', [r'.java', r'.xml']) aceutils.copy(r'Dev/bin/Altseed.jar', sampleBinDir)
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") 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')
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/') aceutils.copy(r'glfw-master/include/GLFW/glfw3native.h', r'Dev/include/GLFW') aceutils.copy(r'glfw-master/src/Debug/glfw3.lib', r'Dev/lib/Debug/') aceutils.copy(r'glfw-master/src/Release/glfw3.lib', r'Dev/lib/Release/') else: aceutils.copy(r'glfw-master/include/GLFW/glfw3.h', r'Dev/include/GLFW/') aceutils.copy(r'glfw-master/include/GLFW/glfw3native.h', r'Dev/include/GLFW')
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/')
# 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/') aceutils.mkdir(sampleDir + r'cpp/lib/Debug/') aceutils.mkdir(sampleDir + r'cpp/lib/Release/') aceutils.copy(r'Dev/bin/ace_cs.dll', sampleDir + r'bin/') aceutils.copy(r'Dev/bin/ace_core.Debug.dll', sampleDir + r'bin/') aceutils.copy(r'Dev/bin/ace_core.dll', sampleDir + r'bin/') aceutils.copy(r'Dev/include/ace.h', sampleDir + r'cpp/include/') aceutils.copy(r'Dev/lib/Debug/ace_engine.lib', sampleDir + r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/Release/ace_engine.lib', sampleDir + r'cpp/lib/Release/') aceutils.copy(r'Dev/bin/ace_cs.dll', sampleDir + r'sample_cs/') aceutils.copy(r'Dev/bin/ace_cs.XML', sampleDir + r'sample_cs/') # Cpp cpptargetDir = targetDir + r'/cpp/' aceutils.mkdir(cpptargetDir) aceutils.mkdir(cpptargetDir + r'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/') aceutils.copy( r'Effekseer-master/Dev/Cpp/EffekseerRendererGL/EffekseerRendererGL.h', r'Dev/include/') aceutils.copy(r'effekseer_bin/Debug/Effekseer.lib', r'Dev/lib/Debug/') aceutils.copy(r'effekseer_bin/Debug/EffekseerRendererDX11.lib', r'Dev/lib/Debug/') aceutils.copy(r'effekseer_bin/Debug/EffekseerRendererGL.lib', r'Dev/lib/Debug/') aceutils.copy(r'effekseer_bin/Release/Effekseer.lib', r'Dev/lib/Release/') aceutils.copy(r'effekseer_bin/Release/EffekseerRendererDX11.lib', r'Dev/lib/Release/') aceutils.copy(r'effekseer_bin/Release/EffekseerRendererGL.lib',
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/' ) aceutils.call(r'make install') aceutils.cd(r'../') aceutils.cd(r'libpng_bin') if aceutils.isMac(): aceutils.copy(r'../libpng/scripts/pnglibconf.h.prebuilt', r'../libpng/pnglibconf.h') aceutils.call( r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D PNG_STATIC:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=../../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../libpng/' ) 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 ../libpng/' ) aceutils.call(r'make install') aceutils.cd(r'../../') aceutils.rm(r'Dev/lib/libz.so') aceutils.rm(r'Dev/lib/libz.so.1') aceutils.rm(r'Dev/lib/libz.so.1.2.8') aceutils.rm(r'Dev/lib/libpng.so')
r'https://github.com/altseed/ImagePackageGenerator/archive/master.zip') aceutils.unzip(r'master.zip') aceutils.cd(r"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" ./' ) aceutils.call('make') aceutils.call(r'xbuild /p:Configuration=Release ImagePackageGenerator.sln') aceutils.cd(r"../") 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/')
aceutils.call( r'cmake -G "Visual Studio 12 Win64" -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' ) aceutils.cd(r"../") if aceutils.isWin(): aceutils.mkdir(r'Dev/lib/Debug') aceutils.mkdir(r'Dev/lib/Release') aceutils.copytree(r'Box2D_v2.3.0/Box2D/Box2D', r'Dev/include/Box2D/', ignoreList=shutil.ignore_patterns( r'*.txt', r'*.cpp', r'*.cmake')) aceutils.copy(r'box2d_bin/Box2D/Debug/Box2D.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'box2d_bin/Box2D/Release/Box2D.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'box2d_bin_x64/Box2D/Debug/Box2D.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'box2d_bin_x64/Box2D/Release/Box2D.lib', r'Dev/lib/x64/Release/') else: aceutils.copytree(r'Box2D_v2.3.0/Box2D/Box2D', r'Dev/include/Box2D/') aceutils.copy(r'box2d_bin/Box2D/libBox2D.a', r'Dev/lib/')
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/') aceutils.copy(r'glfw-master/include/GLFW/glfw3native.h', r'Dev/include/GLFW') aceutils.copy(r'glfw-master/src/Debug/glfw3.lib', r'Dev/lib/Debug/') aceutils.copy(r'glfw-master/src/Release/glfw3.lib', r'Dev/lib/Release/') else: aceutils.copy(r'glfw-master/include/GLFW/glfw3.h', r'Dev/include/GLFW/') aceutils.copy(r'glfw-master/include/GLFW/glfw3native.h', r'Dev/include/GLFW')
if aceutils.isWin(): aceutils.call(aceutils.cmd_cmake_x64 + r'../freetype/') aceutils.call(aceutils.cmd_compile + r'freetype.sln /p:configuration=Debug') aceutils.call(aceutils.cmd_compile + r'freetype.sln /p:configuration=Release') if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copytree(r'freetype/include/', r'../Dev/include/freetype') aceutils.copy(r'freetype_bin/Debug/freetyped.lib', r'../Dev/lib/x86/Debug/freetype.lib') aceutils.copy(r'freetype_bin/Release/freetype.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'freetype_bin_x64/Debug/freetyped.lib', r'../Dev/lib/x64/Debug/freetype.lib') aceutils.copy(r'freetype_bin_x64/Release/freetype.lib', r'../Dev/lib/x64/Release/') else: aceutils.copytree(r'freetype/include/', r'../Dev/include/freetype') aceutils.copy(r'freetype_bin/libfreetype.a', r'../Dev/lib/')
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') aceutils.mkdir(targetDir+r'/') # Sample sampleDir = targetDir+r'/' aceutils.mkdir(sampleDir+r'cpp/') aceutils.mkdir(sampleDir+r'cpp/include/') aceutils.mkdir(sampleDir+r'cpp/lib/') aceutils.mkdir(sampleDir+r'cpp/lib/Debug/') aceutils.mkdir(sampleDir+r'cpp/lib/Release/') aceutils.copy(r'Dev/bin/ace_cs.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/ace_core.Debug.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/ace_core.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/include/ace.h', sampleDir+r'cpp/include/') aceutils.copy(r'Dev/lib/Debug/ace_engine.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/Release/ace_engine.lib', sampleDir+r'cpp/lib/Release/') aceutils.copy(r'Dev/bin/ace_cs.dll', sampleDir+r'sample_cs/') aceutils.copy(r'Dev/bin/ace_cs.XML', sampleDir+r'sample_cs/')
r'BULLET_PHYSICS.sln /p:configuration=Debug') aceutils.call(aceutils.cmd_compile + r'BULLET_PHYSICS.sln /p:configuration=Release') aceutils.copytreeWithExt(r'bullet3/src/', r'../Dev/include/', ['.h']) if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copy(r'bullet_bin/lib/Debug/BulletCollision_Debug.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'bullet_bin/lib/Debug/LinearMath_Debug.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'bullet_bin/lib/Release/BulletCollision.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'bullet_bin/lib/Release/LinearMath.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'bullet_bin_x64/lib/Debug/BulletCollision_Debug.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'bullet_bin_x64/lib/Debug/LinearMath_Debug.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'bullet_bin_x64/lib/Release/BulletCollision.lib', r'../Dev/lib/x64/Release/')
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') aceutils.copy(r'libgtest_main.a', r'../Dev/lib/libgtest_main.a') aceutils.copytree(r'../gtest-1.7.0/include/gtest', r'../Dev/include/gtest', True)
aceutils.call(aceutils.cmd_compile + r'ALL_BUILD.vcxproj /p:configuration=Release') aceutils.mkdir(r"../Dev/Cpp/include/") aceutils.mkdir(r"../Dev/Cpp/lib/") aceutils.mkdir(r'../Dev/Cpp/include/GL') if aceutils.isWin(): aceutils.mkdir(r'../Dev/Cpp/lib/') aceutils.mkdir(r'../Dev/Cpp/lib/x86/') aceutils.mkdir(r'../Dev/Cpp/lib/x86/Debug') aceutils.mkdir(r'../Dev/Cpp/lib/x86/Release') aceutils.mkdir(r'../Dev/Cpp/lib/x64/') aceutils.mkdir(r'../Dev/Cpp/lib/x64/Debug') aceutils.mkdir(r'../Dev/Cpp/lib/x64/Release') aceutils.copy(pathname + r'/include/GL/glew.h', r'../Dev/Cpp/include/GL/') aceutils.copy(pathname + r'/include/GL/glxew.h', r'../Dev/Cpp/include/GL/') aceutils.copy(pathname + r'/include/GL/wglew.h', r'../Dev/Cpp/include/GL/') aceutils.copy(r'glew_bin/lib/Debug/libglew32d.lib', r'../Dev/Cpp/lib/x86/Debug/') aceutils.copy(r'glew_bin/lib/Release/libglew32.lib', r'../Dev/Cpp/lib/x86/Release/') aceutils.copy(r'glew_bin_x64/lib/Debug/libglew32d.lib', r'../Dev/Cpp/lib/x64/Debug/') aceutils.copy(r'glew_bin_x64/lib/Release/libglew32.lib', r'../Dev/Cpp/lib/x64/Release/') else: aceutils.copy(pathname + r'/include/GL/glew.h', r'../Dev/Cpp/include/GL/') aceutils.copy(pathname + r'/include/GL/glxew.h', r'../Dev/Cpp/include/GL/') aceutils.copy(pathname + r'/include/GL/wglew.h', r'../Dev/Cpp/include/GL/') aceutils.copy(r'glew_bin/lib/libGLEW.a', r'../Dev/Cpp/lib/')
with aceutils.CurrentDir('culling2d_bin_x64'): if aceutils.isWin(): aceutils.call(aceutils.cmd_cmake_x64+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../Culling2D/') aceutils.call('cmake --build . --config Debug') aceutils.call('cmake --build . --config Release') if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copy(r'Culling2D/culling2d_common/src/Culling2DCommon.h', r'../Dev/include/') aceutils.copy(r'Culling2D/Culling2D/Culling2D.h', r'../Dev/include/') aceutils.copy(r'Culling2D/Culling2D_AABB/src/Culling2D_AABB.h', r'../Dev/include/') aceutils.copy(r'culling2d_bin/Debug/Culling2D_debug.lib', r'../Dev/lib/x86/Debug/Culling2D.lib') aceutils.copy(r'culling2d_bin/Release/Culling2D.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'culling2d_bin_x64/Debug/Culling2D_debug.lib', r'../Dev/lib/x64/Debug/Culling2D.lib') aceutils.copy(r'culling2d_bin_x64/Release/Culling2D.lib', r'../Dev/lib/x64/Release/') aceutils.copy(r'culling2d_bin/Debug/Culling2D_AABB_debug.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'culling2d_bin/Release/Culling2D_AABB.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'culling2d_bin_x64/Debug/Culling2D_AABB_debug.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'culling2d_bin_x64/Release/Culling2D_AABB.lib', r'../Dev/lib/x64/Release/') else: aceutils.copy(r'Culling2D/culling2d_common/src/Culling2DCommon.h', r'../Dev/include/')
) aceutils.call( r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Culling2D.sln /p:configuration=Release' ) aceutils.cd(r"../") if aceutils.isWin(): aceutils.mkdir(r'Dev/lib/x86/') aceutils.mkdir(r'Dev/lib/x86/Debug') aceutils.mkdir(r'Dev/lib/x86/Release') aceutils.mkdir(r'Dev/lib/x64/') aceutils.mkdir(r'Dev/lib/x64/Debug') aceutils.mkdir(r'Dev/lib/x64/Release') aceutils.copy(r'Culling2D-master/Culling2D/Culling2D.h', r'Dev/include/') aceutils.copy(r'culling2d_bin/Debug/Culling2D_debug.lib', r'Dev/lib/x86/Debug/Culling2D.lib') aceutils.copy(r'culling2d_bin/Release/Culling2D.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'culling2d_bin_x64/Debug/Culling2D_debug.lib', r'Dev/lib/x64/Debug/Culling2D.lib') aceutils.copy(r'culling2d_bin_x64/Release/Culling2D.lib', r'Dev/lib/x64/Release/') else: aceutils.copy(r'Culling2D-master/Culling2D/Culling2D.h', r'Dev/include/') aceutils.copy(r'culling2d_bin/bin/libCulling2D.a', r'Dev/lib/')
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') if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copy(r'Culling3D/Culling3D/Culling3D.h', r'../Dev/include/') aceutils.copy(r'culling3d_bin/Debug/Culling3D.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'culling3d_bin/Release/Culling3D.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'culling3d_bin_x64/Debug/Culling3D.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'culling3d_bin_x64/Release/Culling3D.lib', r'../Dev/lib/x64/Release/') else: aceutils.copy(r'Culling3D/Culling3D/Culling3D.h', r'../Dev/include/') aceutils.copy(r'culling3d_bin/libCulling3D.a', r'../Dev/lib/')
aceutils.call(r'cmake -G "Unix Makefiles" "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../Box2D_v2.3.0/Box2D/') aceutils.call(r'make') else: aceutils.call(r'cmake -G "Unix Makefiles" ../Box2D_v2.3.0/Box2D/') aceutils.call(r'make') aceutils.cd(r"../") aceutils.cd(r"box2d_bin_x64") if aceutils.isWin(): aceutils.call(r'cmake -G "Visual Studio 12 Win64" -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') aceutils.cd(r"../") if aceutils.isWin(): aceutils.mkdir(r'Dev/lib/Debug') aceutils.mkdir(r'Dev/lib/Release') aceutils.copytree(r'Box2D_v2.3.0/Box2D/Box2D', r'Dev/include/Box2D/',ignoreList=shutil.ignore_patterns(r'*.txt',r'*.cpp',r'*.cmake')) aceutils.copy(r'box2d_bin/Box2D/Debug/Box2D.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'box2d_bin/Box2D/Release/Box2D.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'box2d_bin_x64/Box2D/Debug/Box2D.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'box2d_bin_x64/Box2D/Release/Box2D.lib', r'Dev/lib/x64/Release/') else: aceutils.copytree(r'Box2D_v2.3.0/Box2D/Box2D', r'Dev/include/Box2D/') aceutils.copy(r'box2d_bin/Box2D/libBox2D.a', r'Dev/lib/')
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)
aceutils.call(aceutils.cmd_cmake_x64+r'-D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../' + pathname + '/') aceutils.call('cmake --build . --config Debug') aceutils.call('cmake --build . --config Release') aceutils.mkdir(r"../Dev/include/GLFW/") if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copy(pathname + r'/include/GLFW/glfw3.h', r'../Dev/include/GLFW/') aceutils.copy(pathname + r'/include/GLFW/glfw3native.h', r'../Dev/include/GLFW') aceutils.copy(r'glfw_bin/src/Debug/glfw3.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'glfw_bin/src/Release/glfw3.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'glfw_bin_x64/src/Debug/glfw3.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'glfw_bin_x64/src/Release/glfw3.lib', r'../Dev/lib/x64/Release/') else: aceutils.copy(pathname + r'/include/GLFW/glfw3.h', r'../Dev/include/GLFW/') aceutils.copy(pathname + r'/include/GLFW/glfw3native.h', r'../Dev/include/GLFW') aceutils.copy(r'glfw_bin/src/libglfw3.a', r'../Dev/lib')
def release_cpp(): type = 'cpp' targetDir = getTargetDir(type) init(type, targetDir) compile(type) aceutils.mkdir(targetDir+r'/') copy_tools(type, targetDir) makeDocument(type, targetDir, 'cpp') # Sample aceutils.mkdir(targetDir+r'/Sample/') def copySampleFiles(from_, to_): sampleDir = to_ sampleBinDir = sampleDir+r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + 'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) aceutils.mkdir(sampleDir+r'cpp/') aceutils.mkdir(sampleDir+r'cpp/include/') aceutils.mkdir(sampleDir+r'cpp/lib/') aceutils.mkdir(sampleDir+r'cpp/lib/Debug/') aceutils.mkdir(sampleDir+r'cpp/lib/Release/') if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleBinDir) aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/') if aceutils.isWin(): if aceutils.Isi386(): aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/') else: aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/') elif aceutils.isMac(): aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/') aceutils.copy(from_+r'sample_cpp.sln', to_) aceutils.mkdir(sampleDir+r'sample_cpp/') aceutils.copytreeWithExt(from_ + r'sample_cpp/', sampleDir+r'sample_cpp/', [ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) copySampleFiles(r'Sample/BasicSample/', targetDir+r'/Sample/BasicSample/') copySampleFiles(r'Sample/ApplicationSample/', targetDir+r'/Sample/ApplicationSample/') # Runtime runtimeDir = targetDir+r'/Runtime/' aceutils.mkdir(runtimeDir) aceutils.mkdir(runtimeDir+r'Debug/') aceutils.mkdir(runtimeDir+r'Release/') if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', runtimeDir) aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir) aceutils.copy(r'Dev/include/Altseed.h', runtimeDir) if aceutils.isWin(): if aceutils.Isi386(): aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', runtimeDir+r'Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', runtimeDir+r'Release/') else: aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib', runtimeDir+r'Debug/') aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib', runtimeDir+r'Release/') elif aceutils.isMac(): aceutils.copy(r'Dev/lib/libAltseed.a', runtimeDir+r'/') # Doxygen aceutils.call(r'doxygen Script/Doxyfile_cpp') aceutils.copytree(r'Doxygen_CPP/html/', targetDir+r'/Reference_CPP') # Readme aceutils.copy(r'readme_cpp.txt', targetDir+r'/readme.txt') # Template if aceutils.isWin(): aceutils.copytreeWithExt(r'Template/cpp_win/', targetDir+r'/Template/', [ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.sln']) aceutils.mkdir(targetDir+r'/Template/bin/') aceutils.mkdir(targetDir+r'/Template/cpp/') aceutils.mkdir(targetDir+r'/Template/cpp/include/') aceutils.mkdir(targetDir+r'/Template/cpp/lib/') aceutils.mkdir(targetDir+r'/Template/cpp/lib/Debug/') aceutils.mkdir(targetDir+r'/Template/cpp/lib/Release/') aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', targetDir+r'/Template/bin/') aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir+r'/Template/bin/') aceutils.copy(r'Dev/include/Altseed.h', targetDir+r'/Template/cpp/include/') if aceutils.Isi386(): aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', targetDir+r'/Template/cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', targetDir+r'/Template/cpp/lib/Release/') else: aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib', targetDir+r'/Template/cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib', targetDir+r'/Template/cpp/lib/Release/') elif aceutils.isMac(): aceutils.copytreeWithExt(r'Template/cpp_mac/', targetDir+r'/Template/', [ r'.h', r'.cpp', r'.plist', r'.pbxproj', r'.xcworkspacedata']) aceutils.mkdir(targetDir+r'/Template/bin/') aceutils.mkdir(targetDir+r'/Template/include/') aceutils.mkdir(targetDir+r'/Template/lib/') aceutils.copy(r'Dev/bin/libAltseed_core.dylib', targetDir+r'/Template/bin/') aceutils.copy(r'Dev/include/Altseed.h', targetDir+r'/Template/include/') aceutils.copy(r'Dev/lib/libAltseed.a', targetDir+r'/Template/lib/')
else: if aceutils.Isi386(): 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' if aceutils.Isi386() else '') + r'" ../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/') aceutils.call(r'make install') aceutils.cd(r'../') aceutils.cd(r'libpng_bin') if aceutils.isMac(): aceutils.copy(r'../libpng/scripts/pnglibconf.h.prebuilt',r'../libpng/pnglibconf.h') aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D PNG_STATIC:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=../../Dev "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" ../libpng/') 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 ../libpng/') aceutils.call(r'make install') aceutils.cd(r'../../') aceutils.rm(r'Dev/lib/libz.so') aceutils.rm(r'Dev/lib/libz.so.1') aceutils.rm(r'Dev/lib/libz.so.1.2.8') aceutils.rm(r'Dev/lib/libpng.so') aceutils.rm(r'Dev/lib/libpng16.so') aceutils.rm(r'Dev/lib/libpng16.so.16') aceutils.rm(r'Dev/lib/libpng16.so.16.6.0')
def copySampleFiles(from_, to_): sampleDir = to_ sampleBinDir = sampleDir+r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + 'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) aceutils.mkdir(sampleDir+r'cpp/') aceutils.mkdir(sampleDir+r'cpp/include/') aceutils.mkdir(sampleDir+r'cpp/lib/') aceutils.mkdir(sampleDir+r'cpp/lib/Debug/') aceutils.mkdir(sampleDir+r'cpp/lib/Release/') if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleBinDir) aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/') if aceutils.isWin(): if aceutils.Isi386(): aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/') else: aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/') elif aceutils.isMac(): aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/') aceutils.copy(from_+r'sample_cpp.sln', to_) aceutils.mkdir(sampleDir+r'sample_cpp/') aceutils.copytreeWithExt(from_ + r'sample_cpp/', sampleDir+r'sample_cpp/', [ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])
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') if aceutils.isWin(): aceutils.copy(r'OpenSoundMixer/src/OpenSoundMixer.h', r'../Dev/include/') aceutils.copy(r'osm_bin/Debug/OpenSoundMixer.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'osm_bin/Release/OpenSoundMixer.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'osm_bin_x64/Debug/OpenSoundMixer.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'osm_bin_x64/Release/OpenSoundMixer.lib', r'../Dev/lib/x64/Release/') else: aceutils.copy(r'OpenSoundMixer/src/OpenSoundMixer.h', r'../Dev/include/') aceutils.copy(r'osm_bin/lib/libOpenSoundMixer.a', r'../Dev/lib/')
def release_cs(): type = 'cs' targetDir = getTargetDir(type) init(type, targetDir) # GenerateHeader aceutils.call(sys.executable + r' Dev/generate_swig.py') compile(type) aceutils.mkdir(targetDir+r'/') copy_tools(type, targetDir) makeDocument(type, targetDir, 'cs') # Sample aceutils.mkdir(targetDir+r'/Sample/') def copySampleFiles(from_, to_): sampleDir = to_ sampleBinDir = sampleDir+r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.mkdir(sampleDir+r'sample_cs/') aceutils.copytreeWithExt(from_ + r'sample_cs/', sampleDir+r'sample_cs/', [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) editCSFiles(sampleDir+r'sample_cs/') aceutils.copy(from_+r'sample_cs.sln', to_) aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/') aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/') copySampleFiles(r'Sample/BasicSample/', targetDir+r'/Sample/BasicSample/') copySampleFiles(r'Sample/ApplicationSample/', targetDir+r'/Sample/ApplicationSample/') # Runtime runtimeDir = targetDir+r'/Runtime/' aceutils.mkdir(runtimeDir) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir) aceutils.copy(r'Dev/bin/Altseed.dll', runtimeDir) aceutils.copy(r'Dev/bin/Altseed.XML', runtimeDir) # Readme aceutils.copy(r'readme_cs.txt', targetDir+r'/readme.txt') # Template if aceutils.isWin(): aceutils.copytreeWithExt(r'Template/cs_win/', targetDir+r'/Template/', [r'.cs', r'.filters', r'.config', r'.vcxproj', r'.sln', r'.csproj']) aceutils.mkdir(targetDir+r'/Template/bin/') aceutils.copy(r'Dev/bin/Altseed.dll', targetDir+r'/Template/Game/') aceutils.copy(r'Dev/bin/Altseed.XML', targetDir+r'/Template/Game/') aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir+r'/Template/bin/') elif aceutils.isMac(): aceutils.copytreeWithExt(r'Template/cs_mac/', targetDir + r'/Template/', [r'.cs', r'.plist', r'.sln', r'.csproj']) aceutils.mkdir(targetDir+r'/Template/bin/') aceutils.copy(r'Dev/bin/Altseed.dll', targetDir+r'/Template/Game/') aceutils.copy(r'Dev/bin/Altseed.XML', targetDir+r'/Template/Game/') aceutils.copy(r'Dev/bin/libAltseed_core.dylib', targetDir+r'/Template/bin/')
def copyDev(targetDir): aceutils.mkdir(targetDir+r'/') # Sample sampleDir = targetDir+r'/' aceutils.mkdir(sampleDir+r'cpp/') aceutils.mkdir(sampleDir+r'cpp/include/') aceutils.mkdir(sampleDir+r'cpp/lib/') aceutils.mkdir(sampleDir+r'cpp/lib/Debug/') aceutils.mkdir(sampleDir+r'cpp/lib/Release/') aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'bin/') if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.Debug.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/') elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/') else: aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/') aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/') if aceutils.isWin(): aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/') else: aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/') aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/') aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/')
aceutils.mkdir(r'../include/') aceutils.mkdir(r'../lib/') aceutils.copytreeWithExt(r'AltseedPlatform/include/', r'../include/', ['.h']) aceutils.copytreeWithExt(r'AltseedPlatform/lib/', r'../lib/', ['.lib', '.a']) if aceutils.isWin(): aceutils.mkdir(r'../lib/x86/') aceutils.mkdir(r'../lib/x86/Debug') aceutils.mkdir(r'../lib/x86/Release') aceutils.mkdir(r'../lib/x64/') aceutils.mkdir(r'../lib/x64/Debug') aceutils.mkdir(r'../lib/x64/Release') aceutils.copy(r'AltseedPlatform_bin/src/Debug/AltseedPlatform.lib', r'../lib/x86/Debug/') aceutils.copy(r'AltseedPlatform_bin/src/Release/AltseedPlatform.lib', r'../lib/x86/Release/') aceutils.copy(r'AltseedPlatform_bin_x64/src/Debug/AltseedPlatform.lib', r'../lib/x64/Debug/') aceutils.copy( r'AltseedPlatform_bin_x64/src/Release/AltseedPlatform.lib', r'../lib/x64/Release/') else: aceutils.copy(r'AltseedPlatform_bin/src/libAltseedPlatform.a', r'../lib/')
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(): aceutils.call(aceutils.cmd_cmake_x64+r'../freetype/') aceutils.call('cmake --build . --config Debug') aceutils.call('cmake --build . --config Release') if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copytree(r'freetype/include/', r'../Dev/include/freetype') aceutils.copy(r'freetype_bin/Debug/freetype.lib', r'../Dev/lib/x86/Debug/freetype.lib') aceutils.copy(r'freetype_bin/Release/freetype.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'freetype_bin_x64/Debug/freetype.lib', r'../Dev/lib/x64/Debug/freetype.lib') aceutils.copy(r'freetype_bin_x64/Release/freetype.lib', r'../Dev/lib/x64/Release/') else: aceutils.copytree(r'freetype/include/', r'../Dev/include/freetype') aceutils.copy(r'freetype_bin/libfreetype.a', r'../Dev/lib/')
def release_java(): type = 'java' targetDir = getTargetDir(type) init(type, targetDir) # GenerateHeader aceutils.call(sys.executable + r' Dev/generate_swig.py java') aceutils.call(sys.executable + r' Script/generateTranslatedCode.py --java') # Sample aceutils.call(sys.executable + r' Script/generate_sample.py --java') aceutils.cd(r'Sample/BasicSample/sample_java/') aceutils.call(r'ant') aceutils.cd(r'../../../') aceutils.cd(r'Sample/ApplicationSample/sample_java/') aceutils.call(r'ant') aceutils.cd(r'../../../') compile(type) aceutils.mkdir(targetDir+r'/') copy_tools(type, targetDir) makeDocument(type, targetDir, 'java') # Sample aceutils.mkdir(targetDir+r'/Sample/') def copySampleFiles(from_, to_): sampleDir = to_ sampleBinDir = sampleDir+r'bin/' aceutils.mkdir(sampleDir) aceutils.mkdir(sampleBinDir) aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [ r'.jar', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt']) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir) aceutils.mkdir(sampleDir+r'sample_java/') aceutils.copytreeWithExt( from_ + r'sample_java/', sampleDir+r'sample_java/', [r'.java', r'.xml']) aceutils.copy(r'Dev/bin/Altseed.jar', sampleBinDir) def editFiles(targetDir): files = [] for f in aceutils.get_files(targetDir): basename = os.path.basename(f) ext = os.path.splitext(basename)[1] if ext == '.java': if r'Sample' in basename or 'Program' in basename: aceutils.rm(f) else: files.append(f) for file in files: ls = [] with open(file, mode='r', encoding='utf-8-sig') as f: for l in f.readlines(): l = l.replace(r'public void Run()', 'public static void main(String args[])') l = l.replace(r'implements ISample', '') ls.append(l) with open(file, mode='w', encoding='utf-8-sig') as f: f.writelines(ls) copySampleFiles(r'Sample/BasicSample/', targetDir+r'/Sample/BasicSample/') copySampleFiles(r'Sample/ApplicationSample/', targetDir+r'/Sample/ApplicationSample/') editFiles(targetDir+r'/Sample/BasicSample/') editFiles(targetDir+r'/Sample/ApplicationSample/') # Runtime runtimeDir = targetDir+r'/Runtime/' aceutils.mkdir(runtimeDir) if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir) elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir) aceutils.copy(r'Dev/bin/Altseed.jar', runtimeDir) # Readme aceutils.copy(r'readme_java.txt', targetDir+r'/readme.txt')
) aceutils.call(aceutils.cmd_compile + r'Culling3D.sln /p:configuration=Debug') aceutils.call(aceutils.cmd_compile + r'Culling3D.sln /p:configuration=Release') if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copy(r'Culling3D/Culling3D/Culling3D.h', r'../Dev/include/') aceutils.copy(r'culling3d_bin/Debug/Culling3D.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'culling3d_bin/Release/Culling3D.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'culling3d_bin_x64/Debug/Culling3D.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'culling3d_bin_x64/Release/Culling3D.lib', r'../Dev/lib/x64/Release/') else: aceutils.copy(r'Culling3D/Culling3D/Culling3D.h', r'../Dev/include/') aceutils.copy(r'culling3d_bin/libCulling3D.a', r'../Dev/lib/')
aceutils.mkdir(dstIncPath) aceutils.mkdir(dstLibPath) aceutils.copytreeWithExt(r'AltseedRHI/include/', dstIncPath, ['.h']) if not aceutils.isMac(): aceutils.copytreeWithExt(r'AltseedRHI/lib/', dstLibPath, ['.lib', '.a']) if aceutils.isWin(): aceutils.mkdir(dstLibPath + r'x86/') aceutils.mkdir(dstLibPath + r'x86/Debug') aceutils.mkdir(dstLibPath + r'x86/Release') aceutils.mkdir(dstLibPath + r'x64/') aceutils.mkdir(dstLibPath + r'x64/Debug') aceutils.mkdir(dstLibPath + r'x64/Release') aceutils.copy(r'AltseedRHI_bin/src/Debug/AltseedRHI.lib', dstLibPath + r'x86/Debug/') aceutils.copy(r'AltseedRHI_bin/src/Release/AltseedRHI.lib', dstLibPath + r'x86/Release/') aceutils.copy(r'AltseedRHI_bin_x64/src/Debug/AltseedRHI.lib', dstLibPath + r'x64/Debug/') aceutils.copy(r'AltseedRHI_bin_x64/src/Release/AltseedRHI.lib', dstLibPath + r'x64/Release/') else: aceutils.copy(r'AltseedRHI_bin/src/libAltseedRHI.a', dstLibPath) aceutils.copy(r'AltseedRHI/Downloads/libpng_bin/libpng16.a', dstLibPath) aceutils.copy(r'AltseedRHI/Downloads/zlib_bin/libz.a', dstLibPath)
def copyDev(targetDir): aceutils.mkdir(targetDir+r'/') # Sample sampleDir = targetDir+r'/' aceutils.mkdir(sampleDir+r'cpp/') aceutils.mkdir(sampleDir+r'cpp/include/') aceutils.mkdir(sampleDir+r'cpp/lib/') aceutils.mkdir(sampleDir+r'cpp/lib/Debug/') aceutils.mkdir(sampleDir+r'cpp/lib/Release/') aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/Altseed_core.Debug.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/') aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/') aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/') aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/')
aceutils.call(aceutils.cmd_compile + r'src/libgd_static.vcxproj /p:configuration=Release') if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.mkdir(r'../Dev/include/gd') aceutils.copytreeWithExt(pathname + r'/src/', r'../Dev/include/gd/', ['.h']) aceutils.copy(r'gd_bin/Bin/Debug/libgd_static.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'gd_bin/Bin/Release/libgd_static.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'gd_bin_x64/Bin/Debug/libgd_static.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'gd_bin_x64/Bin/Release/libgd_static.lib', r'../Dev/lib/x64/Release/') else: aceutils.copytreeWithExt(pathname + r'/src/', r'../Dev/include/gd/', ['.h']) aceutils.copy(r'gd_bin/Bin/libgd.a', r'../Dev/lib/')
aceutils.call(r'make') aceutils.cd(r"../") aceutils.cd(r"osm_bin_x64") if aceutils.isWin(): aceutils.call(r'cmake -G "Visual Studio 12 Win64" -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') aceutils.cd(r"../") if aceutils.isWin(): aceutils.copy(r'OpenSoundMixer-master/src/OpenSoundMixer.h', r'Dev/include/') aceutils.copy(r'osm_bin/Debug/OpenSoundMixer.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'osm_bin/Release/OpenSoundMixer.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'OpenSoundMixer-master/lib/x86/Debug/libogg_static.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'OpenSoundMixer-master/lib/x86/Debug/libvorbis_static.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'OpenSoundMixer-master/lib/x86/Debug/libvorbisfile_static.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'OpenSoundMixer-master/lib/x86/Release/libogg_static.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'OpenSoundMixer-master/lib/x86/Release/libvorbis_static.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'OpenSoundMixer-master/lib/x86/Release/libvorbisfile_static.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'osm_bin_x64/Debug/OpenSoundMixer.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'osm_bin_x64/Release/OpenSoundMixer.lib', r'Dev/lib/x64/Release/')
aceutils.call(aceutils.cmd_compile + r'ALL_BUILD.vcxproj /p:configuration=Release') aceutils.mkdir(r"../Dev/include/GLFW/") if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.copy(pathname + r'/include/GLFW/glfw3.h', r'../Dev/include/GLFW/') aceutils.copy(pathname + r'/include/GLFW/glfw3native.h', r'../Dev/include/GLFW') aceutils.copy(r'glfw_bin/src/Debug/glfw3.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'glfw_bin/src/Release/glfw3.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'glfw_bin_x64/src/Debug/glfw3.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'glfw_bin_x64/src/Release/glfw3.lib', r'../Dev/lib/x64/Release/') else: aceutils.copy(pathname + r'/include/GLFW/glfw3.h',
with aceutils.CurrentDir('glew_bin_x64'): if aceutils.isWin(): aceutils.call(aceutils.cmd_cmake_x64+r'-UGLEW_USE_STATIC_LIBS ../' + pathname + '/build/cmake') aceutils.call('cmake --build . --config Debug') aceutils.call('cmake --build . --config Release') aceutils.mkdir(r"../Dev/include/GLFW/") if aceutils.isWin(): aceutils.mkdir(r'../Dev/lib/x86/') aceutils.mkdir(r'../Dev/lib/x86/Debug') aceutils.mkdir(r'../Dev/lib/x86/Release') aceutils.mkdir(r'../Dev/lib/x64/') aceutils.mkdir(r'../Dev/lib/x64/Debug') aceutils.mkdir(r'../Dev/lib/x64/Release') aceutils.mkdir(r'../Dev/include') aceutils.mkdir(r'../Dev/include/GL') aceutils.copy(pathname + r'/include/GL/glew.h', r'../Dev/include/GL/') aceutils.copy(pathname + r'/include/GL/glxew.h', r'../Dev/include/GL/') aceutils.copy(pathname + r'/include/GL/wglew.h', r'../Dev/include/GL/') aceutils.copy(r'glew_bin/lib/Debug/libglew32d.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'glew_bin/lib/Release/libglew32.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'glew_bin_x64/lib/Debug/libglew32d.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'glew_bin_x64/lib/Release/libglew32.lib', r'../Dev/lib/x64/Release/')
aceutils.cd(r"culling2d_bin_x64") if aceutils.isWin(): aceutils.call(r'cmake -G "Visual Studio 12 Win64" -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') aceutils.cd(r"../") if aceutils.isWin(): aceutils.mkdir(r'Dev/lib/x86/') aceutils.mkdir(r'Dev/lib/x86/Debug') aceutils.mkdir(r'Dev/lib/x86/Release') aceutils.mkdir(r'Dev/lib/x64/') aceutils.mkdir(r'Dev/lib/x64/Debug') aceutils.mkdir(r'Dev/lib/x64/Release') aceutils.copy(r'Culling2D-master/Culling2D/Culling2D.h', r'Dev/include/') aceutils.copy(r'culling2d_bin/Debug/Culling2D_debug.lib', r'Dev/lib/x86/Debug/Culling2D.lib') aceutils.copy(r'culling2d_bin/Release/Culling2D.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'culling2d_bin_x64/Debug/Culling2D_debug.lib', r'Dev/lib/x64/Debug/Culling2D.lib') aceutils.copy(r'culling2d_bin_x64/Release/Culling2D.lib', r'Dev/lib/x64/Release/') else: aceutils.copy(r'Culling2D-master/Culling2D/Culling2D.h', r'Dev/include/') aceutils.copy(r'culling2d_bin/bin/libCulling2D.a', r'Dev/lib/')
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") 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(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') aceutils.cd(r"../") if aceutils.isWin(): aceutils.mkdir(r'Dev/lib/x86/') aceutils.mkdir(r'Dev/lib/x86/Debug') aceutils.mkdir(r'Dev/lib/x86/Release') aceutils.mkdir(r'Dev/lib/x64/') aceutils.mkdir(r'Dev/lib/x64/Debug') aceutils.mkdir(r'Dev/lib/x64/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/') aceutils.copy(r'Effekseer-master/Dev/Cpp/EffekseerRendererGL/EffekseerRendererGL.h', r'Dev/include/') aceutils.copy(r'effekseer_bin/Debug/Effekseer.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'effekseer_bin/Debug/EffekseerRendererDX11.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'effekseer_bin/Debug/EffekseerRendererGL.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'effekseer_bin/Release/Effekseer.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'effekseer_bin/Release/EffekseerRendererDX11.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'effekseer_bin/Release/EffekseerRendererGL.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'effekseer_bin_x64/Debug/Effekseer.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'effekseer_bin_x64/Debug/EffekseerRendererDX11.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'effekseer_bin_x64/Debug/EffekseerRendererGL.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'effekseer_bin_x64/Release/Effekseer.lib', r'Dev/lib/x64/Release/') aceutils.copy(r'effekseer_bin_x64/Release/EffekseerRendererDX11.lib', r'Dev/lib/x64/Release/')
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') if aceutils.isWin(): aceutils.copy(r'gtest_bin/Debug/gtest.lib', r'../Dev/lib/x86/Debug/gtest.lib') aceutils.copy(r'gtest_bin/Debug/gtest_main.lib', r'../Dev/lib/x86/Debug/gtest_main.lib') aceutils.copy(r'gtest_bin/Release/gtest.lib', r'../Dev/lib/x86/Release/gtest.lib') aceutils.copy(r'gtest_bin/Release/gtest_main.lib', r'../Dev/lib/x86/Release/gtest_main.lib') aceutils.copy(r'gtest_bin_x64/Debug/gtest.lib', r'../Dev/lib/x64/Debug/gtest.lib') aceutils.copy(r'gtest_bin_x64/Debug/gtest_main.lib', r'../Dev/lib/x64/Debug/gtest_main.lib') aceutils.copy(r'gtest_bin_x64/Release/gtest.lib', r'../Dev/lib/x64/Release/gtest.lib') aceutils.copy(r'gtest_bin_x64/Release/gtest_main.lib', r'../Dev/lib/x64/Release/gtest_main.lib') else: aceutils.copy(r'gtest_bin/libgtest.a', r'../Dev/lib/libgtest.a') aceutils.copy(r'gtest_bin/libgtest_main.a', r'../Dev/lib/libgtest_main.a') aceutils.copytree(r'googletest/include/gtest', r'../Dev/include/gtest', True)
aceutils.call(aceutils.cmd_compile + r'gtest.sln /p:configuration=Release') else: aceutils.call( aceutils.cmd_compile + r'googletest-distribution.sln /p:configuration=Debug') aceutils.call( aceutils.cmd_compile + r'googletest-distribution.sln /p:configuration=Release') if aceutils.isWin(): src_path = 'gtest_bin/googlemock/gtest/' if os.path.exists('gtest_bin/gtest.sln'): src_path = 'gtest_bin/' aceutils.copy(src_path + r'Debug/gtest.lib', r'../Dev/lib/x86/Debug/gtest.lib') aceutils.copy(src_path + r'Debug/gtest_main.lib', r'../Dev/lib/x86/Debug/gtest_main.lib') aceutils.copy(src_path + r'Release/gtest.lib', r'../Dev/lib/x86/Release/gtest.lib') aceutils.copy(src_path + r'Release/gtest_main.lib', r'../Dev/lib/x86/Release/gtest_main.lib') src_path = 'gtest_bin_x64/googlemock/gtest/' if os.path.exists('gtest_bin_x64/gtest.sln'): src_path = 'gtest_bin_x64/' aceutils.copy(src_path + r'Debug/gtest.lib', r'../Dev/lib/x64/Debug/gtest.lib') aceutils.copy(src_path + r'Debug/gtest_main.lib', r'../Dev/lib/x64/Debug/gtest_main.lib')
aceutils.call(r'cmake -G "Unix Makefiles" ../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 -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') if aceutils.isWin(): aceutils.copy(r'OpenSoundMixer/src/OpenSoundMixer.h', r'../Dev/include/') aceutils.copy(r'osm_bin/Debug/OpenSoundMixer.lib', r'../Dev/lib/x86/Debug/') aceutils.copy(r'osm_bin/Release/OpenSoundMixer.lib', r'../Dev/lib/x86/Release/') aceutils.copy(r'osm_bin_x64/Debug/OpenSoundMixer.lib', r'../Dev/lib/x64/Debug/') aceutils.copy(r'osm_bin_x64/Release/OpenSoundMixer.lib', r'../Dev/lib/x64/Release/') # 3つのlibを8通りのターゲットに対してコピー architectures = ('x86', 'x64') configurations = ('Debug', 'Release') ides = ('VS2013', 'VS2015')
aceutils.call(aceutils.cmd_cmake_x64 + 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') aceutils.mkdir(r"../Dev/Cpp/include/") aceutils.mkdir(r"../Dev/Cpp/lib/") if aceutils.isWin(): aceutils.mkdir(r'../Dev/Cpp/lib/x86/') aceutils.mkdir(r'../Dev/Cpp/lib/x86/Debug') aceutils.mkdir(r'../Dev/Cpp/lib/x86/Release') aceutils.mkdir(r'../Dev/Cpp/lib/x64/') aceutils.mkdir(r'../Dev/Cpp/lib/x64/Debug') aceutils.mkdir(r'../Dev/Cpp/lib/x64/Release') aceutils.mkdir(r'../Dev/Cpp/include/gd') aceutils.copytreeWithExt(pathname + r'/src/', r'../Dev/Cpp/include/gd/',['.h']) aceutils.copy(r'gd_bin/Bin/Debug/libgd_static.lib', r'../Dev/Cpp/lib/x86/Debug/') aceutils.copy(r'gd_bin/Bin/Release/libgd_static.lib', r'../Dev/Cpp/lib/x86/Release/') aceutils.copy(r'gd_bin_x64/Bin/Debug/libgd_static.lib', r'../Dev/Cpp/lib/x64/Debug/') aceutils.copy(r'gd_bin_x64/Bin/Release/libgd_static.lib', r'../Dev/Cpp/lib/x64/Release/') else: aceutils.copytreeWithExt(pathname + r'/src/', r'../Dev/Cpp/include/gd/',['.h']) aceutils.copy(r'gd_bin/Bin/libgd.a', r'../Dev/Cpp/lib/')
def copyDev(targetDir): aceutils.mkdir(targetDir+r'/') # Sample sampleDir = targetDir+r'/' if type == 'cpp': aceutils.mkdir(sampleDir+r'cpp/') aceutils.mkdir(sampleDir+r'cpp/include/') aceutils.mkdir(sampleDir+r'cpp/lib/') aceutils.mkdir(sampleDir+r'cpp/lib/Debug/') aceutils.mkdir(sampleDir+r'cpp/lib/Release/') aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/') if aceutils.isWin(): aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/') aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/') else: aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/') if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/') elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/') else: aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/') if type == 'cs': aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/') aceutils.copy(r'Dev/bin/Altseed.xml', sampleDir+r'sample_cs/') if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/') elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/') else: aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/') if type == 'java': aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'bin/') aceutils.copy(r'Dev/bin/Altseed.jar', sampleDir+r'bin/') if aceutils.isWin(): aceutils.call('.\Script\CSharpTranslator\LanguageTranslator.exe '+sampleDir+r'sample_cs/ '+sampleDir+r'sample_java/ java '+sampleDir+r'bin/Altseed.dll') else: aceutils.call('mono ./Script/CSharpTranslator/LanguageTranslator.exe '+sampleDir+r'sample_cs/ '+sampleDir+r'sample_java/ java '+sampleDir+r'bin/Altseed.dll') editFiles(sampleDir+r'sample_java/') if aceutils.isWin(): aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/') elif aceutils.isMac(): aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/') else: aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/')
if aceutils.isWin(): aceutils.call(aceutils.cmd_cmake_x64+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') dstIncPath = r'../Dev/include/' dstLibPath = r'../Dev/lib/' aceutils.mkdir(dstIncPath) aceutils.mkdir(dstLibPath) aceutils.copytreeWithExt(r'AltseedPlatform/include/', dstIncPath,['.h']) aceutils.copytreeWithExt(r'AltseedPlatform/lib/', dstLibPath,['.lib','.a']) if aceutils.isWin(): aceutils.mkdir(dstLibPath + r'x86/') aceutils.mkdir(dstLibPath + r'x86/Debug') aceutils.mkdir(dstLibPath + r'x86/Release') aceutils.mkdir(dstLibPath + r'x64/') aceutils.mkdir(dstLibPath + r'x64/Debug') aceutils.mkdir(dstLibPath + r'x64/Release') aceutils.copy(r'AltseedPlatform_bin/src/Debug/AltseedPlatform.lib', dstLibPath + r'x86/Debug/') aceutils.copy(r'AltseedPlatform_bin/src/Release/AltseedPlatform.lib', dstLibPath + r'x86/Release/') aceutils.copy(r'AltseedPlatform_bin_x64/src/Debug/AltseedPlatform.lib', dstLibPath + r'x64/Debug/') aceutils.copy(r'AltseedPlatform_bin_x64/src/Release/AltseedPlatform.lib', dstLibPath + r'x64/Release/') else: aceutils.copy(r'AltseedPlatform_bin/src/libAltseedPlatform.a', dstLibPath)
aceutils.cd(r"../") aceutils.copytreeWithExt(r'bullet-2.82-r2704/src/',r'Dev/include/',['.h']) if aceutils.isWin(): aceutils.mkdir(r'Dev/lib/x86/') aceutils.mkdir(r'Dev/lib/x86/Debug') aceutils.mkdir(r'Dev/lib/x86/Release') aceutils.mkdir(r'Dev/lib/x64/') aceutils.mkdir(r'Dev/lib/x64/Debug') aceutils.mkdir(r'Dev/lib/x64/Release') aceutils.copy(r'bullet_bin/lib/Debug/BulletCollision_Debug.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'bullet_bin/lib/Debug/LinearMath_Debug.lib', r'Dev/lib/x86/Debug/') aceutils.copy(r'bullet_bin/lib/Release/BulletCollision.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'bullet_bin/lib/Release/LinearMath.lib', r'Dev/lib/x86/Release/') aceutils.copy(r'bullet_bin_x64/lib/Debug/BulletCollision_Debug.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'bullet_bin_x64/lib/Debug/LinearMath_Debug.lib', r'Dev/lib/x64/Debug/') aceutils.copy(r'bullet_bin_x64/lib/Release/BulletCollision.lib', r'Dev/lib/x64/Release/') aceutils.copy(r'bullet_bin_x64/lib/Release/LinearMath.lib', r'Dev/lib/x64/Release/') else: aceutils.copy(r'bullet_bin/src/BulletCollision/libBulletCollision.a', r'Dev/lib/') aceutils.copy(r'bullet_bin/src/LinearMath/libLinearMath.a', r'Dev/lib/')
aceutils.call(cmdenv+"make install") ogg_build_dir=os.getcwd()+"/build" aceutils.cd("../") vorbis_dir="libvorbis-1.3.5" aceutils.cd(vorbis_dir) cmdenv="" if aceutils.isMac(): cmdenv+="CFLAGS='-arch i386 -arch x86_64 -fPIC '$CFLAGS " else: cmdenv+="CFLAGS='-fPIC '$CFLAGS " cmdenv+="PKG_CONFIG_PATH="+ogg_build_dir+"/lib/pkgconfig:$PKG_CONFIG_PATH " aceutils.call(cmdenv+"./configure --prefix=`pwd`/build -disable-shared --with-ogg="+ogg_build_dir) aceutils.call(cmdenv+"make") aceutils.call(cmdenv+"make install") aceutils.cd("../") aceutils.mkdir(r'Dev/include/ogg') aceutils.mkdir(r'Dev/include/vorbis') aceutils.copy(ogg_dir+r'/build/include/ogg/ogg.h',r'Dev/include/ogg') aceutils.copy(ogg_dir+r'/build/include/ogg/os_types.h',r'Dev/include/ogg') aceutils.copy(ogg_dir+r'/build/include/ogg/config_types.h',r'Dev/include/ogg') aceutils.copy(vorbis_dir+r'/build/include/vorbis/codec.h',r'Dev/include/vorbis') aceutils.copy(vorbis_dir+r'/build/include/vorbis/vorbisfile.h',r'Dev/include/vorbis') aceutils.copy(vorbis_dir+r'/build/include/vorbis/vorbisenc.h',r'Dev/include/vorbis') aceutils.copy(ogg_dir+r'/build/lib/libogg.a',r'Dev/lib') aceutils.copy(vorbis_dir+r'/build/lib/libvorbis.a',r'Dev/lib') aceutils.copy(vorbis_dir+r'/build/lib/libvorbisfile.a',r'Dev/lib')