Files
kotlin-fork/experiments/translator-bc/build.gradle
T
Svyatoslav Scherbina 1a83fce002 Interop: do not use hardcoded paths to LLVM
also use the defined LLVM toolchain to build JNI interop stub libs
2016-09-26 14:13:58 +03:00

50 lines
1.2 KiB
Groovy

group 'translator-bc'
version '1.0'
buildscript {
ext.kotlin_version = '1.0.3'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: org.jetbrains.kotlin.NativeInteropPlugin
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:1.0.1"
compile group: 'org.jetbrains.kotlin', name: 'kotlin-compiler', version: '1.0.3'
compile 'com.github.jshmrsn:karg:a636b3e'
testCompile group: 'junit', name: 'junit', version: '4.11'
compile "org.jetbrains.kotlin:kotlin-stdlib:1.0.3"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
jar {
manifest {
attributes 'Main-Class': 'MainKt'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
genInteropStubs {
environment 'CPATH' : "$llvmInstallPath/include"
environment 'LIBRARY_PATH' : "$llvmInstallPath/lib"
}