52 lines
1006 B
Plaintext
52 lines
1006 B
Plaintext
plugins {
|
|
id("ru.mipt.npm.mpp")
|
|
}
|
|
|
|
|
|
kscience{
|
|
useSerialization{
|
|
json()
|
|
}
|
|
}
|
|
|
|
val ktorVersion: String by rootProject.extra
|
|
|
|
kotlin {
|
|
js{
|
|
browser {
|
|
webpackTask {
|
|
this.outputFileName = "js/visionforge-three.js"
|
|
}
|
|
}
|
|
binaries.executable()
|
|
}
|
|
|
|
afterEvaluate {
|
|
val jsBrowserDistribution by tasks.getting
|
|
|
|
tasks.getByName<ProcessResources>("jvmProcessResources") {
|
|
dependsOn(jsBrowserDistribution)
|
|
afterEvaluate {
|
|
from(jsBrowserDistribution)
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain {
|
|
dependencies {
|
|
api(project(":visionforge-solid"))
|
|
}
|
|
}
|
|
jvmMain {
|
|
dependencies {
|
|
api(project(":visionforge-server"))
|
|
}
|
|
}
|
|
jsMain {
|
|
dependencies {
|
|
api(project(":visionforge-threejs"))
|
|
}
|
|
}
|
|
}
|
|
} |