2022-06-26 12:00:03 +00:00
|
|
|
@echo off
|
2022-07-01 23:31:16 +00:00
|
|
|
set "toolchainRoot=%~dp0toolchain\i686-windows"
|
2022-06-26 12:00:03 +00:00
|
|
|
set "SCONS_DEFAULT_FLAGS=-Q --warn=target-not-built"
|
2022-07-01 23:31:16 +00:00
|
|
|
if not exist "%~dp0.git" (
|
|
|
|
echo ".git" directory not found, please clone repo via "git clone --recursive"
|
|
|
|
exit /B 1
|
|
|
|
)
|
|
|
|
git submodule update --init
|
|
|
|
if not exist "%toolchainRoot%" (
|
|
|
|
powershell -ExecutionPolicy Bypass -File %~dp0scripts\toolchain\windows-toolchain-download.ps1
|
|
|
|
)
|
|
|
|
cmd /V /C "set "PATH=%toolchainRoot%\python;%toolchainRoot%\bin;%toolchainRoot%\protoc\bin;%toolchainRoot%\openocd\bin;%PATH%" && python lib\scons\scripts\scons.py %SCONS_DEFAULT_FLAGS% %*"
|