makepanda.bat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @echo off
  2. REM
  3. REM Check the Windows architecture and determine with Python
  4. REM to use; 64-bit or 32-bit. Verify that we can find the
  5. REM 'makepanda' python script and the python interpreter.
  6. REM If we can find both, then run 'makepanda'.
  7. REM
  8. if %PROCESSOR_ARCHITECTURE% == AMD64 (
  9. set pythondir=win-python-x64
  10. ) else (
  11. set pythondir=win-python
  12. )
  13. set thirdparty=thirdparty
  14. if defined MAKEPANDA_THIRDPARTY set thirdparty=%MAKEPANDA_THIRDPARTY%
  15. if not exist makepanda\makepanda.py goto :missing1
  16. if not exist %thirdparty%\%pythondir%\python.exe goto :missing2
  17. %thirdparty%\%pythondir%\python.exe makepanda\makepanda.py %*
  18. if errorlevel 1 if x%1 == x--slavebuild exit 1
  19. goto done
  20. :missing1
  21. echo You need to change directory to the root of the panda source tree
  22. echo before invoking makepanda. For further install instructions, read
  23. echo the installation instructions in the file doc/INSTALL-MK.
  24. goto done
  25. :missing2
  26. echo %thirdparty%
  27. echo You seem to be missing the 'thirdparty' directory. You probably checked
  28. echo the source code out from GitHub. The GitHub repository is
  29. echo missing the 'thirdparty' directory. You will need to supplement the
  30. echo code by downloading the 'thirdparty' directory from www.panda3d.org
  31. goto done
  32. :done