makepanda.bat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @echo off
  2. REM
  3. REM Verify that we can find the 'makepanda' python script
  4. REM and the python interpreter. If we can find both, then
  5. REM run 'makepanda'.
  6. REM
  7. set thirdparty=thirdparty
  8. if defined MAKEPANDA_THIRDPARTY set thirdparty=%MAKEPANDA_THIRDPARTY%
  9. if not exist makepanda\makepanda.py goto :missing1
  10. if %PROCESSOR_ARCHITECTURE% == AMD64 goto :AMD64
  11. if not exist %thirdparty%\win-python\python.exe goto :missing2
  12. %thirdparty%\win-python\python.exe makepanda\makepanda.py %*
  13. if errorlevel 1 if x%1 == x--slavebuild exit 1
  14. goto done
  15. :AMD64
  16. if not exist %thirdparty%\win-python-x64\python.exe goto :missing2
  17. %thirdparty%\win-python-x64\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 You seem to be missing the 'thirdparty' directory. You probably checked
  27. echo the source code out from sourceforge. The sourceforge repository is
  28. echo missing the 'thirdparty' directory. You will need to supplement the
  29. echo code by downloading the 'thirdparty' directory from www.panda3d.org
  30. goto done
  31. :done