@echo off
cd /D D:\BlueTooth\stage3\nRF_BLE\SPIS\build || (set FAIL_LINE=2& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo adafruit_2_8_tft_touch_v2 || (set FAIL_LINE=3& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo adafruit_2_8_tft_touch_v2_nano || (set FAIL_LINE=4& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo adafruit_winc1500 || (set FAIL_LINE=5& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo amg88xx_eval_kit || (set FAIL_LINE=6& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo arceli_eth_w5500 || (set FAIL_LINE=7& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo atmel_rf2xx || (set FAIL_LINE=8& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo atmel_rf2xx_arduino || (set FAIL_LINE=9& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo atmel_rf2xx_legacy || (set FAIL_LINE=10& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo atmel_rf2xx_mikrobus || (set FAIL_LINE=11& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo atmel_rf2xx_xplained || (set FAIL_LINE=12& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo atmel_rf2xx_xpro || (set FAIL_LINE=13& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo boostxl_ulpsense || (set FAIL_LINE=14& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo buydisplay_2_8_tft_touch_arduino || (set FAIL_LINE=15& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo buydisplay_3_5_tft_touch_arduino || (set FAIL_LINE=16& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo dac80508_evm || (set FAIL_LINE=17& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo dfrobot_can_bus_v2_0 || (set FAIL_LINE=18& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo esp_8266 || (set FAIL_LINE=19& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo esp_8266_arduino || (set FAIL_LINE=20& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo esp_8266_mikrobus || (set FAIL_LINE=21& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo frdm_cr20a || (set FAIL_LINE=22& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo frdm_kw41z || (set FAIL_LINE=23& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo frdm_stbc_agm01 || (set FAIL_LINE=24& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ftdi_vm800c || (set FAIL_LINE=25& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo inventek_eswifi || (set FAIL_LINE=26& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo inventek_eswifi_arduino_spi || (set FAIL_LINE=27& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo inventek_eswifi_arduino_uart || (set FAIL_LINE=28& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo keyestudio_can_bus_ks0411 || (set FAIL_LINE=29& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo link_board_eth || (set FAIL_LINE=30& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo lmp90100_evb || (set FAIL_LINE=31& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ls013b7dh03 || (set FAIL_LINE=32& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo max7219_8x8 || (set FAIL_LINE=33& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo mikroe_adc_click || (set FAIL_LINE=34& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo mikroe_eth_click || (set FAIL_LINE=35& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo mikroe_wifi_bt_click || (set FAIL_LINE=36& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo mikroe_wifi_bt_click_arduino || (set FAIL_LINE=37& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo mikroe_wifi_bt_click_mikrobus || (set FAIL_LINE=38& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo npm6001_ek || (set FAIL_LINE=39& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo semtech_sx1262mb2das || (set FAIL_LINE=40& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo semtech_sx1272mb2das || (set FAIL_LINE=41& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo sh1106_128x64 || (set FAIL_LINE=42& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo sparkfun_sara_r4 || (set FAIL_LINE=43& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ssd1306_128x32 || (set FAIL_LINE=44& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ssd1306_128x64 || (set FAIL_LINE=45& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo ssd1306_128x64_spi || (set FAIL_LINE=46& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo st7735r_ada_160x128 || (set FAIL_LINE=47& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo st7789v_tl019fqv01 || (set FAIL_LINE=48& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo st7789v_waveshare_240x240 || (set FAIL_LINE=49& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo v2c_daplink || (set FAIL_LINE=50& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo v2c_daplink_cfg || (set FAIL_LINE=51& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo waveshare_epaper_gdeh0154a07 || (set FAIL_LINE=52& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo waveshare_epaper_gdeh0213b1 || (set FAIL_LINE=53& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo waveshare_epaper_gdeh0213b72 || (set FAIL_LINE=54& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo waveshare_epaper_gdeh029a1 || (set FAIL_LINE=55& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo waveshare_epaper_gdew042t2 || (set FAIL_LINE=56& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo waveshare_epaper_gdew042t2-p || (set FAIL_LINE=57& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo waveshare_epaper_gdew075t7 || (set FAIL_LINE=58& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo wnc_m14a2a || (set FAIL_LINE=59& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_53l0a1 || (set FAIL_LINE=60& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_eeprma2 || (set FAIL_LINE=61& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_idb05a1 || (set FAIL_LINE=62& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks01a1 || (set FAIL_LINE=63& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks01a2 || (set FAIL_LINE=64& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks01a2_shub || (set FAIL_LINE=65& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks01a3 || (set FAIL_LINE=66& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks01a3_shub || (set FAIL_LINE=67& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks02a1 || (set FAIL_LINE=68& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks02a1_mic || (set FAIL_LINE=69& goto :ABORT)
D:\ncs\toolchains\v2.3.0\opt\bin\cmake.exe -E echo x_nucleo_iks02a1_shub || (set FAIL_LINE=70& goto :ABORT)
goto :EOF

:ABORT
set ERROR_CODE=%ERRORLEVEL%
echo Batch file failed at line %FAIL_LINE% with errorcode %ERRORLEVEL%
exit /b %ERROR_CODE%