2024-02-12 20:04:10 +03:00
|
|
|
|
2020-12-12 21:19:41 +03:00
|
|
|
plugins {
|
2022-08-12 22:16:06 +03:00
|
|
|
id("space.kscience.gradle.mpp")
|
2024-06-04 22:47:56 +03:00
|
|
|
alias(spclibs.plugins.compose.compiler)
|
|
|
|
alias(spclibs.plugins.compose.jb)
|
2022-08-14 17:22:10 +03:00
|
|
|
}
|
2020-12-12 21:19:41 +03:00
|
|
|
|
|
|
|
val ktorVersion: String by rootProject.extra
|
|
|
|
|
2023-05-14 18:33:30 +03:00
|
|
|
kscience {
|
2023-12-31 18:09:36 +03:00
|
|
|
fullStack(
|
|
|
|
bundleName = "js/visionforge-three.js",
|
|
|
|
browserConfig = {
|
|
|
|
webpackTask {
|
|
|
|
cssSupport {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
scssSupport {
|
|
|
|
enabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
2020-12-12 21:19:41 +03:00
|
|
|
|
2023-12-18 09:41:05 +03:00
|
|
|
commonMain {
|
2023-05-14 18:33:30 +03:00
|
|
|
api(projects.visionforgeSolid)
|
2024-02-16 18:21:09 +03:00
|
|
|
api(projects.visionforgeComposeHtml)
|
2020-12-12 21:19:41 +03:00
|
|
|
}
|
2022-08-14 17:22:10 +03:00
|
|
|
|
2023-12-31 18:09:36 +03:00
|
|
|
jvmMain {
|
2023-05-14 18:33:30 +03:00
|
|
|
api(projects.visionforgeServer)
|
|
|
|
}
|
2022-08-14 17:22:10 +03:00
|
|
|
|
2023-12-31 18:09:36 +03:00
|
|
|
jsMain {
|
2023-05-14 18:33:30 +03:00
|
|
|
api(projects.visionforgeThreejs)
|
2024-03-14 09:04:54 +03:00
|
|
|
api(npm("file-saver", "2.0.5"))
|
|
|
|
api(npm("@types/file-saver", "2.0.7"))
|
2023-12-31 18:09:36 +03:00
|
|
|
compileOnly(npm("webpack-bundle-analyzer", "4.5.0"))
|
2022-08-14 17:22:10 +03:00
|
|
|
}
|
2023-05-14 18:33:30 +03:00
|
|
|
}
|