From 42b4748de326f0176121b08afa7b056bc3feb5b9 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 15 Jun 2017 14:30:25 +0300 Subject: [PATCH] Updated build.bat samples script for the new source locations. --- samples/csvparser/build.bat | 6 +++--- samples/win32/build.bat | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/csvparser/build.bat b/samples/csvparser/build.bat index f97370e945d..3388b8d7f2d 100644 --- a/samples/csvparser/build.bat +++ b/samples/csvparser/build.bat @@ -6,8 +6,8 @@ set DIR=. set "PATH=..\..\dist\bin;..\..\bin;%PATH%" if "%TARGET%" == "" set TARGET=mingw -call cinterop -def "%DIR%\stdio.def" -target "%TARGET%" -o stdio +call cinterop -def "%DIR%\src\main\c_interop\stdio.def" -target "%TARGET%" -o stdio if ERRORLEVEL 1 exit /b %ERRORLEVEL% -call konanc -target "%TARGET%" "%DIR%\CsvParser.kt" -library stdio -o CsvParser -exit /b %ERRORLEVEL% \ No newline at end of file +call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -library stdio -o CsvParser +exit /b %ERRORLEVEL% diff --git a/samples/win32/build.bat b/samples/win32/build.bat index 27e05030ac2..b31cfb5a7da 100644 --- a/samples/win32/build.bat +++ b/samples/win32/build.bat @@ -6,7 +6,7 @@ if "%TARGET%" == "" set TARGET=mingw set "LFLAGS=-Wl,--subsystem,windows" -call cinterop -def "%DIR%\win32.def" -target "%TARGET%" -o win32 || exit /b -call konanc -target "%TARGET%" "%DIR%\MessageBox.kt" -library win32 -linkerOpts "%LFLAGS%" -opt -o MessageBox || exit /b +call cinterop -def "%DIR%\src\main\c_interop\win32.def" -target "%TARGET%" -o win32 || exit /b +call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\MessageBox.kt" -library win32 -linkerOpts "%LFLAGS%" -opt -o MessageBox || exit /b copy MessageBox.kexe MessageBox.exe