samples: Add gradle build in workers sample

This commit is contained in:
Ilya Matveev
2017-11-15 18:28:58 +07:00
committed by ilmat192
parent 83323985bf
commit 9a545efa1b
5 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
apply plugin: 'konan'
konanArtifacts {
program('Workers')
}
+1 -1
View File
@@ -23,7 +23,7 @@ COMPILER_ARGS=${!var} # add -opt for an optimized build.
mkdir -p $DIR/build/bin/
konanc $COMPILER_ARGS -target $TARGET $DIR/Workers.kt \
konanc $COMPILER_ARGS -target $TARGET $DIR/src/main/kotlin/Workers.kt \
-o $DIR/build/bin/Workers || exit 1
echo "Artifact could be found at $DIR/build/bin/Workers.$SUFFIX"