[klib] Use DescriptorRenderer instead of PrettyPrinter

This commit is contained in:
Ilya Matveev
2018-02-14 16:39:29 +07:00
committed by ilmat192
parent 132c873927
commit ad9babfec6
10 changed files with 553 additions and 543 deletions
+27
View File
@@ -16,11 +16,38 @@
buildscript {
apply from: "$rootDir/gradle/kotlinGradlePlugin.gradle"
dependencies {
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin"
}
if (!hasProperty("konan.home")) {
ext.setProperty("konan.home", distDir.absolutePath)
}
}
apply plugin: 'kotlin'
apply plugin: 'konan'
konanArtifacts {
def testFiles = fileTree('src/test/testData') {
include "*.kt"
}
testFiles.files.each { file ->
def name = file.name
library(name.take(name.lastIndexOf('.'))) { srcFiles file.absolutePath }
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$buildKotlinVersion"
compile project(path: ':backend.native', configuration: 'cli_bc')
testCompile "junit:junit:4.12"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$buildKotlinVersion"
testCompile "org.jetbrains.kotlin:kotlin-test:$buildKotlinVersion"
}
test {
dependsOn 'cleanTest'
systemProperty('konan.home', getProperty("konan.home"))
dependsOn konanArtifacts.collect { it.getByTarget('host') }
}