Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract classpath from
KotlinSharedNativeCompilation
as well (#2664)
* Extract classpath from `KotlinSharedNativeCompilation` as well * Enhance mpp integration test * Enable HMPP for old Kotlin in integration test * Add comments
- Loading branch information
Showing
5 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
integration-tests/gradle/projects/it-multiplatform-0/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
dokka_it_kotlin_version=1.7.10 | ||
#these flags are enabled by default since 1.6.20. | ||
#remove when this test is executed with Kotlin >= 1.6.20 | ||
kotlin.mpp.enableGranularSourceSetsMetadata=true | ||
kotlin.native.enableDependencyPropagation=false |
11 changes: 11 additions & 0 deletions
11
...ts/gradle/projects/it-multiplatform-0/src/desktopMain/kotlin/it/mpp0/CPointerExtension.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package it.mpp0 | ||
|
||
import kotlinx.cinterop.CPointed | ||
import kotlinx.cinterop.CPointer | ||
|
||
/** | ||
* Will print the raw value | ||
*/ | ||
fun CPointer<CPointed>.customExtension() { | ||
println(this.rawValue) | ||
} |
5 changes: 5 additions & 0 deletions
5
...-tests/gradle/projects/it-multiplatform-0/src/desktopMain/kotlin/it/mpp0/ExpectedClass.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package it.mpp0 | ||
|
||
actual class ExpectedClass { | ||
actual val platform: String = "linux" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters