93 lines
2.2 KiB
Plaintext
93 lines
2.2 KiB
Plaintext
plugins {
|
|
kotlin("multiplatform")
|
|
id("ru.mipt.npm.gradle.common")
|
|
}
|
|
|
|
kotlin.js {
|
|
nodejs {
|
|
testTask {
|
|
useMocha().timeout = "0"
|
|
}
|
|
}
|
|
|
|
browser {
|
|
testTask {
|
|
useMocha().timeout = "0"
|
|
}
|
|
}
|
|
}
|
|
|
|
kotlin.sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
api(project(":kmath-core"))
|
|
}
|
|
}
|
|
|
|
commonTest {
|
|
dependencies {
|
|
implementation(project(":kmath-complex"))
|
|
}
|
|
}
|
|
|
|
jsMain {
|
|
dependencies {
|
|
implementation(npm("astring", "1.7.0"))
|
|
}
|
|
}
|
|
|
|
jvmMain {
|
|
dependencies {
|
|
api("com.github.h0tk3y.betterParse:better-parse:0.4.1")
|
|
implementation("org.ow2.asm:asm:9.1")
|
|
implementation("org.ow2.asm:asm-commons:9.1")
|
|
}
|
|
}
|
|
}
|
|
|
|
//Workaround for https://github.com/Kotlin/dokka/issues/1455
|
|
tasks.dokkaHtml {
|
|
dependsOn(tasks.build)
|
|
}
|
|
|
|
readme {
|
|
maturity = ru.mipt.npm.gradle.Maturity.PROTOTYPE
|
|
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
|
|
|
|
feature(
|
|
id = "expression-language",
|
|
description = "Expression language and its parser",
|
|
ref = "src/jvmMain/kotlin/space/kscience/kmath/ast/parser.kt"
|
|
)
|
|
|
|
feature(
|
|
id = "mst",
|
|
description = "MST (Mathematical Syntax Tree) as expression language's syntax intermediate representation",
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/MST.kt"
|
|
)
|
|
|
|
feature(
|
|
id = "mst-building",
|
|
description = "MST building algebraic structure",
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/MstAlgebra.kt"
|
|
)
|
|
|
|
feature(
|
|
id = "mst-interpreter",
|
|
description = "MST interpreter",
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/MST.kt"
|
|
)
|
|
|
|
feature(
|
|
id = "mst-jvm-codegen",
|
|
description = "Dynamic MST to JVM bytecode compiler",
|
|
ref = "src/jvmMain/kotlin/space/kscience/kmath/asm/asm.kt"
|
|
)
|
|
|
|
feature(
|
|
id = "mst-js-codegen",
|
|
description = "Dynamic MST to JS compiler",
|
|
ref = "src/jsMain/kotlin/space/kscience/kmath/estree/estree.kt"
|
|
)
|
|
}
|