[Commonizer] Move KonanDistribution to :native:kotlin-klib-commonizer-api

This commit is contained in:
sebastian.sellmair
2021-03-23 15:34:39 +01:00
committed by Space
parent 6e3b1fd919
commit 2b7866402d
@@ -0,0 +1,20 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.commonizer
import org.jetbrains.kotlin.konan.library.*
import java.io.File
public data class KonanDistribution(val root: File)
public val KonanDistribution.stdlib: File
get() = root.resolve(konanCommonLibraryPath(KONAN_STDLIB_NAME))
public val KonanDistribution.klibDir: File
get() = root.resolve(KONAN_DISTRIBUTION_KLIB_DIR)
public val KonanDistribution.platformLibsDir: File
get() = klibDir.resolve(KONAN_DISTRIBUTION_PLATFORM_LIBS_DIR)