build_editor_win_x64.py 898 B

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