build_visual_studio_vr_pybullet_double.bat 965 B

12345678910111213141516171819202122232425
  1. IF NOT EXIST bin mkdir bin
  2. IF NOT EXIST bin\openvr_api.dll copy examples\ThirdPartyLibs\openvr\bin\win32\openvr_api.dll bin
  3. IF NOT EXIST bin\openvr64pi.dll copy examples\ThirdPartyLibs\openvr\bin\win64\openvr_api.dll bin\openvr64pi.dll
  4. #aargh, see https://github.com/ValveSoftware/openvr/issues/412
  5. #find a python version (hopefully just 1) and use this
  6. dir c:\python* /b /ad > tmp1234.txt
  7. set /p myvar1= < tmp1234.txt
  8. set myvar=c:/%myvar1%
  9. del tmp1234.txt
  10. #you can also override and hardcode the Python path like this (just remove the # hashmark in next line)
  11. #SET myvar=c:\python-3.5.2
  12. cd build3
  13. premake4 --double --midi --enable_openvr --enable_pybullet --python_include_dir="%myvar%/include" --python_lib_dir="%myvar%/libs" --targetdir="../bin" vs2010
  14. #premake4 --serial --audio --double --midi --enable_openvr --enable_pybullet --python_include_dir="%myvar%/include" --python_lib_dir="%myvar%/libs" --targetdir="../bin" vs2010
  15. start vs2010