[samples][curl] split libcurl application on libcurl interop library and curl application
This commit is contained in:
committed by
Vasily Levchenko
parent
5185a17c24
commit
79945383c6
@@ -2,6 +2,9 @@ apply plugin: 'konan'
|
||||
|
||||
konan.targets = ['macbook', 'linux']
|
||||
|
||||
group 'org.jetbrains.kotlin.native'
|
||||
version '1.0'
|
||||
|
||||
konanArtifacts {
|
||||
interop('libcurl') {
|
||||
target('linux') {
|
||||
@@ -11,10 +14,15 @@ konanArtifacts {
|
||||
includeDirs.headerFilterOnly '/opt/local/include', '/usr/local/include'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
program('Curl') {
|
||||
libraries {
|
||||
artifact 'libcurl'
|
||||
apply plugin: 'maven-publish'
|
||||
def localMavenRepo="file://${new File(System.properties['user.home'] as String)}/.m2-kotlin-native"
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url = localMavenRepo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user