makepanda.bat 1.2 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 not exist %thirdparty%\win-python\python.exe goto :missing2
  11. if exist %thirdparty%\win-python-x64\python.exe goto :build64
  12. %thirdparty%\win-python\python.exe makepanda\makepanda.py %*
  13. if errorlevel 1 if x%1 == x--slavebuild exit 1
  14. goto done
  15. :build64
  16. %thirdparty%\win-python-x64\python.exe makepanda\makepanda.py %*
  17. if errorlevel 1 if x%1 == x--slavebuild exit 1
  18. goto done
  19. :missing1
  20. echo You need to change directory to the root of the panda source tree
  21. echo before invoking makepanda. For further install instructions, read
  22. echo the installation instructions in the file doc/INSTALL-MK.
  23. goto done
  24. :missing2
  25. echo You seem to be missing the 'thirdparty' directory. You probably checked
  26. echo the source code out from sourceforge. The sourceforge repository is
  27. echo missing the 'thirdparty' directory. You will need to supplement the
  28. echo code by downloading the 'thirdparty' directory from www.panda3d.org
  29. goto done
  30. :done