2020-12-12 21:19:41 +03:00
|
|
|
plugins {
|
2021-02-23 21:47:18 +03:00
|
|
|
id("ru.mipt.npm.gradle.mpp")
|
2020-12-12 21:19:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
val ktorVersion: String by rootProject.extra
|
|
|
|
|
|
|
|
kotlin {
|
2022-04-13 15:02:35 +03:00
|
|
|
js(IR){
|
2020-12-12 21:19:41 +03:00
|
|
|
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"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|