Updated build.bat samples script for the new source locations.
This commit is contained in:
committed by
alexander-gorshenev
parent
93a589b9ba
commit
42b4748de3
@@ -6,8 +6,8 @@ set DIR=.
|
|||||||
set "PATH=..\..\dist\bin;..\..\bin;%PATH%"
|
set "PATH=..\..\dist\bin;..\..\bin;%PATH%"
|
||||||
if "%TARGET%" == "" set TARGET=mingw
|
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%
|
if ERRORLEVEL 1 exit /b %ERRORLEVEL%
|
||||||
|
|
||||||
call konanc -target "%TARGET%" "%DIR%\CsvParser.kt" -library stdio -o CsvParser
|
call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -library stdio -o CsvParser
|
||||||
exit /b %ERRORLEVEL%
|
exit /b %ERRORLEVEL%
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ if "%TARGET%" == "" set TARGET=mingw
|
|||||||
|
|
||||||
set "LFLAGS=-Wl,--subsystem,windows"
|
set "LFLAGS=-Wl,--subsystem,windows"
|
||||||
|
|
||||||
call cinterop -def "%DIR%\win32.def" -target "%TARGET%" -o win32 || exit /b
|
call cinterop -def "%DIR%\src\main\c_interop\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 konanc -target "%TARGET%" "%DIR%\src\main\kotlin\MessageBox.kt" -library win32 -linkerOpts "%LFLAGS%" -opt -o MessageBox || exit /b
|
||||||
|
|
||||||
copy MessageBox.kexe MessageBox.exe
|
copy MessageBox.kexe MessageBox.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user