samples: Minor fixes for bundle
1. Rearrange tasks for C++ and Kotlin compilation in concurrent sample. It allows the build to download all dependencies before the compilation. 2. Don't copy *.kt.bc-build directories in the distribution archive.
This commit is contained in:
@@ -397,6 +397,7 @@ task bundle(type: Tar) {
|
|||||||
exclude '**/settings.gradle'
|
exclude '**/settings.gradle'
|
||||||
exclude '**/build'
|
exclude '**/build'
|
||||||
exclude '**/.gradle'
|
exclude '**/.gradle'
|
||||||
|
exclude 'samples/**/*.kt.bc-build'
|
||||||
rename('(.*)\\.for_bundle', '$1')
|
rename('(.*)\\.for_bundle', '$1')
|
||||||
into baseName
|
into baseName
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,10 +14,11 @@ konanArtifacts {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task compileCpp(type: Exec) {
|
task compileCpp(type: Exec) {
|
||||||
|
dependsOn 'genMessageChannelInteropStubs'
|
||||||
workingDir project.getProjectDir()
|
workingDir project.getProjectDir()
|
||||||
commandLine './buildCpp.sh'
|
commandLine './buildCpp.sh'
|
||||||
}
|
}
|
||||||
|
|
||||||
genMessageChannelInteropStubs {
|
compileKonanMessageChannel {
|
||||||
dependsOn(compileCpp)
|
dependsOn 'compileCpp'
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user