test_plugin_win.cmd 679 B

123456789101112131415161718192021222324
  1. @echo off
  2. set LIBWEBRTC_DOWNLOAD_URL=https://github.com/Unity-Technologies/com.unity.webrtc/releases/download/M92/webrtc-win.zip
  3. set SOLUTION_DIR=%cd%\Plugin~
  4. echo -------------------
  5. echo Download LibWebRTC
  6. curl -L %LIBWEBRTC_DOWNLOAD_URL% > webrtc.zip
  7. 7z x -aoa webrtc.zip -o%SOLUTION_DIR%\webrtc
  8. echo -------------------
  9. echo Build com.unity.webrtc Plugin
  10. cd %SOLUTION_DIR%
  11. cmake . -G "Visual Studio 16 2019" -A x64 -B "build64"
  12. cmake --build build64 --config Debug --target WebRTCLibTest
  13. echo -------------------
  14. echo Test com.unity.webrtc Plugin
  15. %SOLUTION_DIR%\build64\WebRTCPluginTest\Debug\WebRTCLibTest.exe
  16. if not %errorlevel% == 0 exit 1
  17. echo -------------------