visionforge/visionforge-threejs/visionforge-threejs-server/build.gradle.kts
2022-08-12 22:16:06 +03:00

45 lines
962 B
Plaintext

plugins {
id("space.kscience.gradle.mpp")
}
val ktorVersion: String by rootProject.extra
kotlin {
js(IR){
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"))
}
}
}
}