Use packages specified in .def files for platform libs
This commit is contained in:
committed by
SvyatoslavScherbina
parent
3523a71058
commit
c7588d7928
@@ -1,4 +1,4 @@
|
|||||||
import posix.*
|
import platform.posix.*
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
// Just check the typealias is in scope.
|
// Just check the typealias is in scope.
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ List<String> libraries = gradle.startParameter.projectProperties.libraries.split
|
|||||||
konanInterop {
|
konanInterop {
|
||||||
"$taskName" {
|
"$taskName" {
|
||||||
defFile gradle.startParameter.projectProperties.defFile
|
defFile gradle.startParameter.projectProperties.defFile
|
||||||
pkg gradle.startParameter.projectProperties.name
|
|
||||||
target gradle.startParameter.projectProperties.target
|
target gradle.startParameter.projectProperties.target
|
||||||
noDefaultLibs true
|
noDefaultLibs true
|
||||||
extraOpts libraries.collectMany { ["-library", "$konanHome/klib/$it"] }
|
extraOpts libraries.collectMany { ["-library", "$konanHome/klib/$it"] }
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import kotlinx.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import posix.*
|
import platform.posix.*
|
||||||
|
|
||||||
fun parseLine(line: String, separator: Char) : List<String> {
|
fun parseLine(line: String, separator: Char) : List<String> {
|
||||||
val result = mutableListOf<String>()
|
val result = mutableListOf<String>()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import kotlinx.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import posix.*
|
import platform.posix.*
|
||||||
import kotlin.coroutines.experimental.*
|
import kotlin.coroutines.experimental.*
|
||||||
import kotlin.coroutines.experimental.intrinsics.*
|
import kotlin.coroutines.experimental.intrinsics.*
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import kotlinx.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import posix.*
|
import platform.posix.*
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
if (args.size < 1) {
|
if (args.size < 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user