2021-03-23 18:13:35 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2018-2021 KMath contributors.
|
|
|
|
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
|
|
|
*/
|
|
|
|
|
2020-12-22 13:49:32 +03:00
|
|
|
import ru.mipt.npm.gradle.Maturity
|
|
|
|
|
2020-09-20 12:36:48 +03:00
|
|
|
plugins {
|
2021-04-14 12:40:26 +03:00
|
|
|
kotlin("multiplatform")
|
|
|
|
id("ru.mipt.npm.gradle.common")
|
2020-09-20 12:36:48 +03:00
|
|
|
}
|
2020-06-12 10:40:59 +03:00
|
|
|
|
2020-12-20 13:42:57 +03:00
|
|
|
kotlin.js {
|
|
|
|
nodejs {
|
|
|
|
testTask {
|
|
|
|
useMocha().timeout = "0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
browser {
|
|
|
|
testTask {
|
|
|
|
useMocha().timeout = "0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-12 10:40:59 +03:00
|
|
|
kotlin.sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
|
|
|
api(project(":kmath-core"))
|
|
|
|
}
|
|
|
|
}
|
2020-06-13 20:24:10 +03:00
|
|
|
|
2021-01-06 17:01:37 +03:00
|
|
|
commonTest {
|
|
|
|
dependencies {
|
|
|
|
implementation(project(":kmath-complex"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-19 20:40:18 +03:00
|
|
|
jsMain {
|
|
|
|
dependencies {
|
2021-02-26 17:50:06 +03:00
|
|
|
implementation(npm("astring", "1.7.0"))
|
2020-12-19 20:40:18 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-13 20:24:10 +03:00
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
2021-02-26 17:50:06 +03:00
|
|
|
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")
|
2020-06-12 16:56:58 +03:00
|
|
|
}
|
|
|
|
}
|
2020-09-08 12:40:47 +03:00
|
|
|
}
|
2020-11-30 11:25:21 +03:00
|
|
|
|
2021-02-21 16:13:40 +03:00
|
|
|
//Workaround for https://github.com/Kotlin/dokka/issues/1455
|
2021-02-26 17:50:06 +03:00
|
|
|
tasks.dokkaHtml {
|
|
|
|
dependsOn(tasks.build)
|
|
|
|
}
|
2021-02-21 16:13:40 +03:00
|
|
|
|
2020-12-22 13:49:32 +03:00
|
|
|
readme {
|
|
|
|
maturity = Maturity.PROTOTYPE
|
2020-12-22 14:02:02 +03:00
|
|
|
propertyByTemplate("artifact", rootProject.file("docs/templates/ARTIFACT-TEMPLATE.md"))
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "expression-language",
|
|
|
|
description = "Expression language and its parser",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/jvmMain/kotlin/space/kscience/kmath/ast/parser.kt"
|
2020-12-22 14:02:02 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst",
|
|
|
|
description = "MST (Mathematical Syntax Tree) as expression language's syntax intermediate representation",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/MST.kt"
|
2020-12-22 14:02:02 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-building",
|
|
|
|
description = "MST building algebraic structure",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/MstAlgebra.kt"
|
2020-12-22 14:02:02 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-interpreter",
|
|
|
|
description = "MST interpreter",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/commonMain/kotlin/space/kscience/kmath/ast/MST.kt"
|
2020-12-22 14:02:02 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-jvm-codegen",
|
|
|
|
description = "Dynamic MST to JVM bytecode compiler",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/jvmMain/kotlin/space/kscience/kmath/asm/asm.kt"
|
2020-12-22 14:02:02 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
feature(
|
|
|
|
id = "mst-js-codegen",
|
|
|
|
description = "Dynamic MST to JS compiler",
|
2021-03-16 22:46:22 +03:00
|
|
|
ref = "src/jsMain/kotlin/space/kscience/kmath/estree/estree.kt"
|
2020-12-22 14:02:02 +03:00
|
|
|
)
|
2020-12-22 13:49:32 +03:00
|
|
|
}
|