Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.1 KiB

  1. @echo off
  2. :: Use this batch file to integrate steam client binaries directly from
  3. :: //steam/rel/client. This only really affects the binaries that gameservers
  4. :: use. (The client should use the binaries from the steam client that is
  5. :: running.) We do this when we want some feature or bugfix in the steam
  6. :: binaries, but don't want to integarte a whole new SDK.
  7. ::
  8. :: Set source paths
  9. ::
  10. SET VRP4Path=%1
  11. SET IntegDate=%2
  12. set BINS_ONLY=0
  13. if !%IntegDate%!==!/bins! (
  14. SET IntegDate=
  15. SET BINS_ONLY=1
  16. )
  17. if !%VRP4Path%!==!! (
  18. echo Usage: %0 VRP4Path
  19. echo.
  20. echo VRP4Path should be the perforce server path to the branch you want to integrate from,
  21. echo e.g. "//vr/steamvr/sdk_release/"
  22. goto :end
  23. )
  24. :: Use this when copying from official distribution.
  25. SET DestRoot=..\..\..
  26. set P4Root=%VRP4Path%
  27. set SRCDIR_HEADERS=headers/...
  28. set SRCDIR_DLL=bin
  29. set SRCDIR_LIB=lib
  30. ::
  31. :: Copy files
  32. ::
  33. :: Client Win32 binaries
  34. call :CopyOneFile %SRCDIR_DLL%/win32 openvr_api.dll game\bin
  35. call :CopyOneFile %SRCDIR_LIB%/win32 openvr_api.lib src\lib\public
  36. :: Client Linux binaries
  37. call :CopyOneFile %SRCDIR_DLL%/linux32 libopenvr_api.so game\bin
  38. call :CopyOneFile %SRCDIR_LIB%/linux32 libopenvr_api.so src\lib\public\linux32
  39. :: Client Mac binaries. Note that there's no dedicated server on the Mac,
  40. :: so we can ship a smaller set
  41. call :CopyOneFile %SRCDIR_DLL%/osx32 libopenvr_api.dylib game\bin
  42. call :CopyOneFile %SRCDIR_LIB%/osx32 libopenvr_api.dylib src\lib\public\osx32
  43. if !%BINS_ONLY%!==!1! (
  44. goto :end
  45. )
  46. :: Headers
  47. ECHO ---------------------------------------------
  48. ECHO Integrating Steam Headers from %P4Root%/%SRCDIR_HEADERS%
  49. ECHO to %DestRoot%\src\public\steam\...
  50. p4 integrate -d -i %P4Root%/%SRCDIR_HEADERS%%IntegDate% %DestRoot%\src\public\openvr\...
  51. p4 resolve -at %DestRoot%\src\public\openvr\...
  52. goto :end
  53. :CopyOneFile
  54. ECHO ---------------------------------------------
  55. ECHO Integrating %P4Root%/%1/%2
  56. ECHO to %DestRoot%\%3\%2
  57. P4 integrate -d -i %P4Root%/%1/%2%IntegDate% %DestRoot%\%3\%2
  58. P4 resolve -at %DestRoot%\%3\%2
  59. echo.
  60. :end