fbt.cmd 487 B

123456789101112131415161718192021
  1. @echo off
  2. call "%~dp0scripts\toolchain\fbtenv.cmd" env
  3. set SCONS_EP=python -m SCons
  4. if [%FBT_NO_SYNC%] == [] (
  5. if exist ".git" (
  6. git submodule update --init --depth 1 --jobs %NUMBER_OF_PROCESSORS%
  7. ) else (
  8. echo Not in a git repo, please clone with "git clone"
  9. exit /b 1
  10. )
  11. )
  12. set "SCONS_DEFAULT_FLAGS=--warn=target-not-built"
  13. if not defined FBT_VERBOSE (
  14. set "SCONS_DEFAULT_FLAGS=%SCONS_DEFAULT_FLAGS% -Q"
  15. )
  16. %SCONS_EP% %SCONS_DEFAULT_FLAGS% %*