2020-09-20 12:36:48 +03:00
|
|
|
plugins {
|
2022-09-04 20:59:30 +03:00
|
|
|
id("space.kscience.gradle.mpp")
|
|
|
|
}
|
|
|
|
|
2024-03-27 09:11:12 +03:00
|
|
|
kscience {
|
2023-02-03 19:32:53 +03:00
|
|
|
jvm()
|
2024-07-07 11:02:49 +03:00
|
|
|
js{
|
|
|
|
nodejs {
|
|
|
|
testTask {
|
2024-12-21 14:02:54 +03:00
|
|
|
useMocha {
|
|
|
|
timeout = "0"
|
|
|
|
}
|
2024-07-07 11:02:49 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
browser {
|
|
|
|
useCommonJs()
|
|
|
|
testTask {
|
2024-12-21 14:02:54 +03:00
|
|
|
useMocha {
|
|
|
|
timeout = "0"
|
|
|
|
}
|
2024-07-07 11:02:49 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-09-04 20:59:30 +03:00
|
|
|
native()
|
2020-06-12 10:40:59 +03:00
|
|
|
|
2023-02-03 19:32:53 +03:00
|
|
|
dependencies {
|
|
|
|
api(projects.kmathCore)
|
|
|
|
api("com.github.h0tk3y.betterParse:better-parse:0.4.4")
|
2020-12-20 13:42:57 +03:00
|
|
|
}
|
|
|
|
|
2023-02-03 19:32:53 +03:00
|
|
|
testDependencies {
|
|
|
|
implementation(projects.kmathComplex)
|
2020-12-20 13:42:57 +03:00
|
|
|
}
|
|
|
|
|
2023-02-03 19:32:53 +03:00
|
|
|
dependencies(jsMain) {
|
|
|
|
implementation(npm("astring", "1.7.5"))
|
2024-07-07 11:02:49 +03:00
|
|
|
implementation(npm("binaryen", "117.0.0"))
|
2023-02-03 19:32:53 +03:00
|
|
|
implementation(npm("js-base64", "3.6.1"))
|
2020-06-12 10:40:59 +03:00
|
|
|
}
|
2020-06-13 20:24:10 +03:00
|
|
|
|
2024-03-27 09:11:12 +03:00
|
|
|
dependencies(jvmMain) {
|
2023-02-03 19:32:53 +03:00
|
|
|
implementation("org.ow2.asm:asm-commons:9.2")
|
2021-01-06 17:01:37 +03:00
|
|
|
}
|
|
|
|
|
2023-02-03 19:32:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2020-11-30 11:25:21 +03:00
|
|
|
|
2023-02-03 19:32:53 +03:00
|
|
|
sourceSets {
|
|
|
|
filter { it.name.contains("test", true) }
|
|
|
|
.map(org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet::languageSettings)
|
2023-04-22 09:13:06 +03:00
|
|
|
.forEach { it.optIn("space.kscience.kmath.UnstableKMathAPI") }
|
2023-02-03 19:32:53 +03:00
|
|
|
}
|
2021-02-26 17:50:06 +03:00
|
|
|
}
|
2021-02-21 16:13:40 +03:00
|
|
|
|
2023-02-03 19:32:53 +03:00
|
|
|
if (System.getProperty("space.kscience.kmath.ast.dump.generated.classes") == "1") {
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest> {
|
2022-06-12 15:16:40 +03:00
|
|
|
jvmArgs("-Dspace.kscience.kmath.ast.dump.generated.classes=1")
|
2021-11-17 15:03:20 +03:00
|
|
|
}
|
2023-02-03 19:32:53 +03:00
|
|
|
}
|
2021-11-16 10:03:12 +03:00
|
|
|
|
2020-12-22 13:49:32 +03:00
|
|
|
readme {
|
2022-07-29 15:58:02 +03:00
|
|
|
maturity = space.kscience.gradle.Maturity.EXPERIMENTAL
|
2020-12-22 14:02:02 +03:00
|
|
|
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "expression-language",
|
2021-04-20 15:14:59 +03:00
|
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/parser.kt"
|
2021-06-15 09:18:40 +03:00
|
|
|
) { "Expression language and its parser" }
|
2020-12-22 14:02:02 +03:00
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-jvm-codegen",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/jvmMain/kotlin/space/kscience/kmath/asm/asm.kt"
|
2021-06-15 09:18:40 +03:00
|
|
|
) { "Dynamic MST to JVM bytecode compiler" }
|
2020-12-22 14:02:02 +03:00
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-js-codegen",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/jsMain/kotlin/space/kscience/kmath/estree/estree.kt"
|
2021-06-15 09:18:40 +03:00
|
|
|
) { "Dynamic MST to JS compiler" }
|
2021-04-20 15:14:59 +03:00
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "rendering",
|
|
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/rendering/MathRenderer.kt"
|
2021-06-15 09:18:40 +03:00
|
|
|
) { "Extendable MST rendering" }
|
2020-12-22 13:49:32 +03:00
|
|
|
}
|