visionforge/visionforge-threejs/visionforge-threejs-server/build.gradle.kts

45 lines
955 B
Plaintext
Raw Normal View History

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 {
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"))
}
}
}
}