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