[Gradle] Mark dependencies coming from nativeDistribution
KT-55189
This commit is contained in:
committed by
Space Team
parent
45ebbede2f
commit
e002bbe906
+1
@@ -21,6 +21,7 @@ data class KlibExtra(
|
||||
val shortName: String?,
|
||||
val packageFqName: String?,
|
||||
val nativeTargets: List<String>?,
|
||||
val commonizerNativeTargets: List<String>?,
|
||||
val commonizerTarget: String?,
|
||||
val isInterop: Boolean?
|
||||
) : Serializable {
|
||||
|
||||
+18
-1
@@ -10,10 +10,27 @@ import org.jetbrains.kotlin.tooling.core.extrasKeyOf
|
||||
import org.jetbrains.kotlin.tooling.core.getValue
|
||||
import org.jetbrains.kotlin.tooling.core.setValue
|
||||
|
||||
val isIdeaProjectLevelKey = extrasKeyOf<Boolean>("IdeaKotlinBinaryDependency.isIdeaProjectLevel")
|
||||
val isIdeaProjectLevelKey = extrasKeyOf<Boolean>("isIdeaProjectLevel")
|
||||
|
||||
/**
|
||||
* Marks any binary dependency as Global in the sense of "this library is considered
|
||||
* the same, no matter in which Gradle project / IntelliJ module it will be used
|
||||
*/
|
||||
var IdeaKotlinBinaryDependency.isIdeaProjectLevel by isIdeaProjectLevelKey
|
||||
|
||||
|
||||
val isNativeDistributionKey = extrasKeyOf<Boolean>("isNativeDistribution")
|
||||
|
||||
|
||||
/**
|
||||
* Marks this dependency as 'coming from the native distribution'
|
||||
*/
|
||||
var IdeaKotlinBinaryDependency.isNativeDistribution by isNativeDistributionKey
|
||||
|
||||
|
||||
val isNativeStdlibKey = extrasKeyOf<Boolean>("isNativeStdlib")
|
||||
|
||||
/**
|
||||
* Marks the dependency as the native stdlib (which is special in the native distribution)
|
||||
*/
|
||||
var IdeaKotlinBinaryDependency.isNativeStdlib by isNativeStdlibKey
|
||||
Reference in New Issue
Block a user