[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
@@ -0,0 +1,29 @@
|
|||||||
|
apply plugin: 'konan'
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:+"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
konan.targets = ['macbook', 'linux']
|
||||||
|
|
||||||
|
def localMavenRepo="file://${new File(System.properties['user.home'] as String)}/.m2-kotlin-native"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = localMavenRepo
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
konanArtifacts {
|
||||||
|
program('Curl') {
|
||||||
|
dependencies {
|
||||||
|
artifactCurl 'org.jetbrains.kotlin.native:libcurl:1.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
runArgs=https://www.jetbrains.com
|
||||||
@@ -2,6 +2,9 @@ apply plugin: 'konan'
|
|||||||
|
|
||||||
konan.targets = ['macbook', 'linux']
|
konan.targets = ['macbook', 'linux']
|
||||||
|
|
||||||
|
group 'org.jetbrains.kotlin.native'
|
||||||
|
version '1.0'
|
||||||
|
|
||||||
konanArtifacts {
|
konanArtifacts {
|
||||||
interop('libcurl') {
|
interop('libcurl') {
|
||||||
target('linux') {
|
target('linux') {
|
||||||
@@ -11,10 +14,15 @@ konanArtifacts {
|
|||||||
includeDirs.headerFilterOnly '/opt/local/include', '/usr/local/include'
|
includeDirs.headerFilterOnly '/opt/local/include', '/usr/local/include'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
program('Curl') {
|
apply plugin: 'maven-publish'
|
||||||
libraries {
|
def localMavenRepo="file://${new File(System.properties['user.home'] as String)}/.m2-kotlin-native"
|
||||||
artifact 'libcurl'
|
publishing {
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = localMavenRepo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ include ':uikit'
|
|||||||
include ':win32'
|
include ':win32'
|
||||||
include ':videoplayer'
|
include ':videoplayer'
|
||||||
include ':workers'
|
include ':workers'
|
||||||
|
include ':curl'
|
||||||
|
|
||||||
includeBuild '../shared'
|
includeBuild '../shared'
|
||||||
includeBuild '../tools/kotlin-native-gradle-plugin'
|
includeBuild '../tools/kotlin-native-gradle-plugin'
|
||||||
|
|||||||
Reference in New Issue
Block a user