Create gradle projects for samples

This commit is contained in:
Ilya Matveev
2017-03-30 17:36:34 +07:00
committed by ilmat192
parent c6680f0735
commit 0b3d3cb138
44 changed files with 1875 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
buildscript {
ext.kotlin_version = '1.1.1'
repositories {
mavenCentral()
}
dependencies {
classpath files('../gradle-plugin.jar')
classpath "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
}
apply plugin: 'konan'
konanInterop {
libcurl {
defFile 'libcurl.def'
includeDirs '/usr/include', '/opt/local/include', '/usr/local/opt/curl/include'
}
}
konanArtifacts {
Curl {
inputFiles project.fileTree('src')
useInterop 'libcurl'
linkerOpts "-L/opt/local/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/opt/curl/lib -lcurl"
}
}
build {
doLast {
copy {
from compileKonanCurl.artifactPath
into projectDir.canonicalPath
}
}
}