Created
July 26, 2017 09:47
-
-
Save babedev/a9db1e3c9f3e9ccc42488567bc2fe6d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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