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:
Ilya Matveev
2017-06-20 13:23:25 +07:00
committed by ilmat192
parent 24489e8a36
commit 9747704c8b
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -397,6 +397,7 @@ task bundle(type: Tar) {
exclude '**/settings.gradle'
exclude '**/build'
exclude '**/.gradle'
exclude 'samples/**/*.kt.bc-build'
rename('(.*)\\.for_bundle', '$1')
into baseName
}
+3 -2
View File
@@ -14,10 +14,11 @@ konanArtifacts {
}
task compileCpp(type: Exec) {
dependsOn 'genMessageChannelInteropStubs'
workingDir project.getProjectDir()
commandLine './buildCpp.sh'
}
genMessageChannelInteropStubs {
dependsOn(compileCpp)
compileKonanMessageChannel {
dependsOn 'compileCpp'
}