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.

85 lines
2.3 KiB

  1. @echo off
  2. :: Use this batch file to integrate panorama and associated libs from //Steam/main/
  3. ::
  4. :: Set source paths
  5. ::
  6. SET SteamP4Path=%1
  7. if !%SteamP4Path%!==!! (
  8. echo Usage: %0 SteamP4Path
  9. echo.
  10. echo SteamP4Path should be the perforce server path to the branch you want to integrate from,
  11. echo e.g. "//Steam/rel/client" or "//Steam/main"
  12. goto :end
  13. )
  14. set ThirdPartyPath=//thirdpartycode/nonredist
  15. set V8Path=%ThirdPartyPath%/v8
  16. set V8Bin=%V8Path%/out/ia32.release
  17. set V8Headers=%V8Path%/include
  18. set DestRoot=../../..
  19. set DestLibs=%DestRoot%/src/lib/common/linux32/release
  20. set DestHeaders=%DestRoot%/src/public/panorama
  21. set DestSrc=%DestRoot%/src/panorama/...
  22. set DestV8Headers=%DestRoot%/src/external/v8/include
  23. set SrcHeaders=src/public/panorama
  24. set SrcMain=src/panorama/...
  25. ::
  26. :: Copy files
  27. ::
  28. :: Client Linux binaries
  29. call :CopyOneFile %V8Bin% libicudata.a %DestLibs%
  30. call :CopyOneFile %V8Bin% libv8_libplatform.a %DestLibs%
  31. call :CopyOneFile %V8Bin%/lib.target libicui18n.so %DestLibs%
  32. call :CopyOneFile %V8Bin%/lib.target libv8.so %DestLibs%
  33. call :CopyOneFile %V8Bin%/lib.target libicuuc.so %DestLibs%
  34. :: Client Win32 binaries
  35. :: TODO
  36. :: Client Mac binaries. Note that there's no dedicated server on the Mac,
  37. :: so we can ship a smaller set
  38. :: TODO
  39. :: V8 Headers
  40. ECHO ---------------------------------------------
  41. ECHO Integrating V8 Headers from %V8Headers%/...
  42. ECHO to %DestV8Headers%/...
  43. p4 integrate -d -i %V8Headers%/... %DestV8Headers%/...
  44. p4 resolve -at %DestV8Headers%/...
  45. :: Headers
  46. ECHO ---------------------------------------------
  47. ECHO Integrating Panorama Headers from %SteamP4Path%/%SrcHeaders%/...
  48. ECHO to %DestHeaders%/...
  49. p4 integrate -d -i %SteamP4Path%/%SrcHeaders%/... %DestHeaders%/...
  50. p4 resolve -at %DestHeaders%/...
  51. :: Src
  52. ECHO ---------------------------------------------
  53. ECHO Integrating Panorama Sources from %SteamP4Path%/%SrcMain%/...
  54. ECHO to %DestSrc%/...
  55. p4 integrate -d -i %SteamP4Path%/%SrcMain%/... %DestSrc%/...
  56. p4 resolve -at %DestSrc%/...
  57. goto :end
  58. :CopyOneFile
  59. ECHO ---------------------------------------------
  60. ECHO Integrating %1/%2
  61. ECHO to %3
  62. P4 integrate -d -i %1/%2 %3/%2
  63. P4 resolve -at %3/%2
  64. echo.
  65. :end