| 12345678910111213141516171819202122232425262728 |
- #!/usr/bin/python
- # Builds and packages the editor. Make sure you have MSBuild
- # installed and the path is valid.
- # Usage: "build_editor_win_x64 $Configuration"
- # Where: $Configuration - e.g. OptimizedDebug, Release
- import os
- msbuildPath = "C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\amd64"
- configuration = 'OptimizedDebug' #sys.argv[1]
- buildPath = "..\\Build\\VS2015\\"
- solutionPath = buildPath + "Banshee.sln"
- if not os.path.exists(msbuildPath):
- print("MSBuild path is not valid. Used path {0}: ".format(msbuildPath))
- exit;
- os.environ["PATH"] += os.pathsep + msbuildPath
- # Build the engine
- os.system("msbuild {0} /p:Configuration=OptimizedDebug;Platform=x64 /m".format(solutionPath))
- # Build Win32 game executable
- os.system("msbuild {0} /p:Configuration=Release;Platform=x64 /m".format(solutionPath))
- os.system("package_editor.py " + configuration)
|