Skip to content

Instantly share code, notes, and snippets.

@babedev
Created July 26, 2017 09:47
Show Gist options
  • Save babedev/a9db1e3c9f3e9ccc42488567bc2fe6d1 to your computer and use it in GitHub Desktop.
Save babedev/a9db1e3c9f3e9ccc42488567bc2fe6d1 to your computer and use it in GitHub Desktop.
group 'com.babedev'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.1.3-2'
repositories {
mavenCentral()
maven {
url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:0.3"
}
}
apply plugin: 'konan'
repositories {
mavenCentral()
}
konanInterop {
hello {
defFile 'src/main/c_interop/hello.def'
}
}
konanArtifacts {
HelloNative {
useInterop 'hello'
linkerOpts '-L/usr/local/lib -lhello'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment