Rev 37 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
setlocal enableextensions enabledelayedexpansion
rem echo Setting up the toolchain...
if "
%BINARIES%"==""
set BINARIES=ifstool
call :
build_for aarch64-unknown-nto-qnx8.0.0 "
%BINARIES%"
|| exit /b 1
call :
build_for x86_64-pc-nto-qnx8.0.0 "
%BINARIES%"
|| exit /b 1
:build_for
set CPPFLAGS=-D_QNX_SOURCE -Ilibucl/include -Ilibucl/src -Ilibucl -Iliblzo
if not "
%BINARIES:ifstool=%"=="
%BINARIES%"
del /f /q
%1-ifstool
> nul 2
>&1
del /f /s /q .build
> nul 2
>&1
if not "
%BINARIES:ifstool=%"=="
%BINARIES%"
(
for /f usebackq
^ tokens
^=2
^ delims
^=^" %%f in (`findstr /c:"ClCompile Include" ifstool.vcxproj`
) do set SRCLIST=
!SRCLIST! %%f
set SRCLIST=
!SRCLIST:\=/!
"
%CC%"
%CPPFLAGS% !SRCLIST! %LDFLAGS% -o
%1-ifstool
|| goto :
eof
if "
%1"=="aarch64-unknown-nto-qnx8.0.0"
(
echo Deploying ifstool to QNX8 native aarch64le toolchain...
copy /b
%1-ifstool ..\qnx800\target\qnx\aarch64le\usr\bin\ifstool
|| goto :
eof
) else if "
%1"=="x86_64-pc-nto-qnx8.0.0"
(
echo Deploying ifstool to QNX8 native x86_64 toolchain...
copy /b
%1-ifstool ..\qnx800\target\qnx\x86_64\usr\bin\ifstool
|| goto :
eof
)
)
:end