build_editor_win_x64.py 770 B

12345678910111213141516171819202122
  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. DebugRelease, Release
  6. import os
  7. msbuildPath = "C:\\Program Files (x86)\\MSBuild\\12.0\\Bin\\amd64"
  8. configuration = 'DebugRelease' #sys.argv[1]
  9. solutionPath = "..\\BansheeEngine.sln"
  10. if not os.path.exists(msbuildPath):
  11. print("MSBuild path is not valid. Used path {0}: ".format(msbuildPath))
  12. exit;
  13. os.environ["PATH"] += os.pathsep + msbuildPath
  14. os.system("msbuild {0} /p:Configuration=DebugRelease;Platform=x64".format(solutionPath))
  15. os.system("msbuild {0} /p:Configuration=Release;Platform=x64".format(solutionPath))
  16. os.system("package_editor.py " + configuration)