Updated build.bat samples script for the new source locations.

This commit is contained in:
Alexander Gorshenev
2017-06-15 14:30:25 +03:00
committed by alexander-gorshenev
parent 93a589b9ba
commit 42b4748de3
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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%
call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -library stdio -o CsvParser
exit /b %ERRORLEVEL%
+2 -2
View File
@@ -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