mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
22 lines
499 B
Batchfile
22 lines
499 B
Batchfile
@echo off
|
|
call "%~dp0scripts\toolchain\fbtenv.cmd" env
|
|
|
|
set SCONS_EP=python -m SCons
|
|
|
|
if [%FBT_NO_SYNC%] == [] (
|
|
if exist ".git" (
|
|
git submodule update --init --recursive --depth 1 --jobs %NUMBER_OF_PROCESSORS%
|
|
) else (
|
|
echo Not in a git repo, please clone with "git clone"
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
set "SCONS_DEFAULT_FLAGS=--warn=target-not-built"
|
|
|
|
if not defined FBT_VERBOSE (
|
|
set "SCONS_DEFAULT_FLAGS=%SCONS_DEFAULT_FLAGS% -Q"
|
|
)
|
|
|
|
%SCONS_EP% %SCONS_DEFAULT_FLAGS% %*
|