Rewrite samples using new API (#3021)
This commit is contained in:
committed by
Ilya Matveev
parent
c1a4272e7a
commit
16a8fdcf4e
@@ -38,6 +38,6 @@ computation results. Afterwards, worker execution termination is requested with
|
||||
|
||||
To build use `../gradlew assemble`.
|
||||
|
||||
To run use `../gradlew runProgram` or execute the program directly:
|
||||
To run use `../gradlew runReleaseExecutableWorkers` or execute the program directly:
|
||||
|
||||
./build/bin/workers/main/release/executable/workers.kexe
|
||||
|
||||
@@ -6,12 +6,11 @@ plugins {
|
||||
def hostPreset = MPPTools.defaultHostPreset(project)
|
||||
|
||||
kotlin {
|
||||
targets {
|
||||
fromPreset(hostPreset, 'workers') {
|
||||
compilations.main.outputKinds 'EXECUTABLE'
|
||||
compilations.main.entryPoint 'sample.workers.main'
|
||||
targetFromPreset(hostPreset, 'workers') {
|
||||
binaries {
|
||||
executable() {
|
||||
entryPoint = 'sample.workers.main'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MPPTools.createRunTask(project, 'runProgram', kotlin.targets.workers)
|
||||
}
|
||||
Reference in New Issue
Block a user