samples: Add gradle build in workers sample
This commit is contained in:
@@ -27,4 +27,5 @@ task buildSamplesWithPlatfromLibs() {
|
||||
dependsOn ':tensorflow:build'
|
||||
dependsOn ':uikit:build'
|
||||
dependsOn ':win32:build'
|
||||
dependsOn ':workers:build'
|
||||
}
|
||||
@@ -15,4 +15,5 @@ include ':objc'
|
||||
include ':uikit'
|
||||
include ':win32'
|
||||
include ':videoplayer'
|
||||
include ':workers'
|
||||
includeBuild '../'
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
apply plugin: 'konan'
|
||||
|
||||
konanArtifacts {
|
||||
program('Workers')
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user