build.bat 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @REM Copyright (C) 2019 Intel Corporation. All rights reserved.
  2. @REM SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. @echo off
  4. set DIR_ROOT=%cd%\..
  5. echo "=== Verify the vscode status ==="
  6. call code --version
  7. IF %ERRORLEVEL%==0 (
  8. echo "vscode is ready."
  9. ) ELSE (
  10. echo "VSCode is not installed, please install firstly."
  11. exit /b 1
  12. )
  13. echo "=== Verify the docker status ==="
  14. call docker --version
  15. IF %ERRORLEVEL%==0 (
  16. echo "docker is ready."
  17. ) ELSE (
  18. echo "Docker is not installed, please install firstly."
  19. exit /b 1
  20. )
  21. cd %DIR_ROOT%\WASM-Debug-Server\Docker
  22. call docker build -t wasm-debug-server:1.0 .
  23. IF %ERRORLEVEL%==0 (
  24. echo "wasm-debug-server image is ready."
  25. ) ELSE (
  26. echo "build wasm-debug-server image failed."
  27. exit /b 1
  28. )
  29. cd %DIR_ROOT%\WASM-Toolchain\Docker
  30. call docker build -t wasm-toolchain:1.0 .
  31. IF %ERRORLEVEL%==0 (
  32. echo "wasm-toolchain image is ready."
  33. ) ELSE (
  34. echo "build wasm-toolchain image failed."
  35. exit /b 1
  36. )