[samples][cmd][build] fix for command line build (build.sh): csvparser, socket, nonBlockingEchoServer
This commit is contained in:
committed by
Vasily Levchenko
parent
1109163fd8
commit
a4d1be443d
@@ -6,8 +6,5 @@ set DIR=.
|
||||
set "PATH=..\..\dist\bin;..\..\bin;%PATH%"
|
||||
if "%TARGET%" == "" set TARGET=mingw
|
||||
|
||||
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%\src\main\kotlin\CsvParser.kt" -library stdio -o CsvParser
|
||||
call konanc -target "%TARGET%" "%DIR%\src\main\kotlin\CsvParser.kt" -o CsvParser
|
||||
exit /b %ERRORLEVEL%
|
||||
|
||||
@@ -22,9 +22,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build.
|
||||
mkdir -p $DIR/build/c_interop/
|
||||
mkdir -p $DIR/build/bin/
|
||||
|
||||
cinterop -def $DIR/src/main/c_interop/stdio.def -compilerOpts "$CFLAGS" -target $TARGET -o $DIR/build/c_interop/stdio || exit 1
|
||||
|
||||
konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/CsvParser.kt -library $DIR/build/c_interop/stdio \
|
||||
konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/CsvParser.kt \
|
||||
-o $DIR/build/bin/CsvParser || exit 1
|
||||
|
||||
echo "Artifact path is $DIR/build/bin/CsvParser.kexe"
|
||||
|
||||
@@ -21,10 +21,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build.
|
||||
mkdir -p $DIR/build/c_interop/
|
||||
mkdir -p $DIR/build/bin/
|
||||
|
||||
cinterop -def $DIR/src/main/c_interop/sockets.def -copt "$CFLAGS" -target $TARGET \
|
||||
-o $DIR/build/c_interop/sockets || exit 1
|
||||
|
||||
konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/EchoServer.kt \
|
||||
-library $DIR/build/c_interop/sockets -o $DIR/build/bin/EchoServer || exit 1
|
||||
-o $DIR/build/bin/EchoServer || exit 1
|
||||
|
||||
echo "Artifact path is $DIR/build/bin/EchoServer.kexe"
|
||||
|
||||
@@ -19,11 +19,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build.
|
||||
mkdir -p $DIR/build/c_interop/
|
||||
mkdir -p $DIR/build/bin/
|
||||
|
||||
cinterop -def $DIR/src/main/c_interop/sockets.def -copt "$CFLAGS" -target $TARGET \
|
||||
-o $DIR/build/c_interop/sockets || exit 1
|
||||
|
||||
konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/EchoServer.kt \
|
||||
-library $DIR/build/c_interop/sockets \
|
||||
-o $DIR/build/bin/EchoServer || exit 1
|
||||
|
||||
echo "Artifact path is $DIR/build/bin/EchoServer.kexe"
|
||||
|
||||
Reference in New Issue
Block a user