2022-06-26 15:00:03 +03:00
|
|
|
@echo off
|
2022-07-26 00:31:34 +03:00
|
|
|
call "%~dp0scripts\toolchain\fbtenv.cmd" env
|
2022-06-30 19:06:12 +03:00
|
|
|
|
2022-10-26 01:15:02 +03:00
|
|
|
set SCONS_EP=python -m SCons
|
2022-06-30 19:06:12 +03:00
|
|
|
|
2022-07-04 20:38:18 +03:00
|
|
|
if [%FBT_NO_SYNC%] == [] (
|
2022-07-14 19:24:26 +03:00
|
|
|
if exist ".git" (
|
2023-05-09 00:30:33 +03:00
|
|
|
git submodule update --init --depth 1 --jobs %NUMBER_OF_PROCESSORS%
|
2022-07-14 19:24:26 +03:00
|
|
|
) else (
|
2023-03-15 18:24:56 +03:00
|
|
|
echo Not in a git repo, please clone with "git clone"
|
2022-07-14 19:24:26 +03:00
|
|
|
exit /b 1
|
|
|
|
)
|
2022-06-26 15:00:03 +03:00
|
|
|
)
|
|
|
|
|
2023-02-17 15:22:08 +03:00
|
|
|
set "SCONS_DEFAULT_FLAGS=--warn=target-not-built"
|
|
|
|
|
|
|
|
if not defined FBT_VERBOSE (
|
|
|
|
set "SCONS_DEFAULT_FLAGS=%SCONS_DEFAULT_FLAGS% -Q"
|
|
|
|
)
|
|
|
|
|
2022-10-26 01:15:02 +03:00
|
|
|
%SCONS_EP% %SCONS_DEFAULT_FLAGS% %*
|