Rev 29 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
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%"
(
"%CC%" %CPPFLAGS% ^
liblzo/minilzo.c ^
libucl/src/alloc.c ^
libucl/src/n2b_99.c ^
libucl/src/n2b_d.c ^
libucl/src/n2b_ds.c ^
libucl/src/n2b_to.c ^
libucl/src/n2d_99.c ^
libucl/src/n2d_d.c ^
libucl/src/n2d_ds.c ^
libucl/src/n2d_to.c ^
libucl/src/n2e_99.c ^
libucl/src/n2e_d.c ^
libucl/src/n2e_ds.c ^
libucl/src/n2e_to.c ^
libucl/src/ucl_crc.c ^
libucl/src/ucl_init.c ^
libucl/src/ucl_ptr.c ^
libucl/src/ucl_str.c ^
libucl/src/ucl_util.c ^
buffer.c ^
dump.c ^
ifstool.c ^
sha512.c ^
%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