commit 6c52ff9fd21fa8ec4b47e424a0c8a42b0a1b0107 Author: Andrew Golovashevich Date: Thu Sep 4 21:49:31 2025 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca2a97d --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +build/ +/.idea/ +.gradle/ +gradle/ +/gradlew* +.kotlin/ +/kotlin-js-store/ \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..d1691e4 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,56 @@ +plugins { + kotlin("multiplatform") version "2.1.10" +} + +group = "ru.landgrafhomyak.utilities" +version = "1.0-SNAPSHOT" + +repositories { + mavenCentral() + maven("https://maven.landgrafhomyak.ru/") +} + +kotlin { + mingwX64() + + linuxX64() + linuxArm64() + + macosX64() + macosArm64() + + + sourceSets { + commonMain { + dependencies { + implementation("ru.landgrafhomyak.utility:closeable-state-1:1.1") + } + } + + // hierarchy + val commonMain by getting + val commonTest by getting + + val windowsMain by creating { dependsOn(commonMain) } + val windowsTest by creating { dependsOn(commonTest) } + mingwX64Main { dependsOn(windowsMain) } + mingwX64Test { dependsOn(windowsTest) } + + val posixMain by creating { dependsOn(commonMain) } + val posixTest by creating { dependsOn(commonTest) } + + val linuxMain by creating { dependsOn(posixMain) } + val linuxTest by creating { dependsOn(posixTest) } + linuxX64Main { dependsOn(linuxMain) } + linuxX64Test { dependsOn(linuxTest) } + linuxArm64Main { dependsOn(linuxMain) } + linuxArm64Test { dependsOn(linuxTest) } + + val macosMain by creating { dependsOn(posixMain) } + val macosTest by creating { dependsOn(posixTest) } + macosX64Main { dependsOn(macosMain) } + macosX64Test { dependsOn(macosTest) } + macosArm64Main { dependsOn(macosMain) } + macosArm64Test { dependsOn(macosTest) } + } +} \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..32de920 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,2 @@ +rootProject.name = "kotlin-native-stdlib-1" +