-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
60 lines (51 loc) · 1.31 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.kotlin.js)
}
group = "org.example"
version = "1.0-SNAPSHOT"
/* Which additional multiplatform (ORX) libraries should be added to this project. */
val orxFeatures = setOf<String>(
// "orx-camera",
// "orx-color",
// "orx-compositor",
// "orx-easing",
"orx-fx",
// "orx-gradient-descent",
"orx-image-fit",
"orx-noise",
// "orx-parameters",
// "orx-shade-styles",
// "orx-shader-phrases",
// "orx-shapes",
// "orx-quadtree",
)
fun orx(module: String) = "org.openrndr.extra:$module:${libs.versions.orx.get()}"
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation(libs.kotlin.reflect)
implementation(libs.openrndr.application)
implementation(libs.openrndr.dds)
implementation(libs.openrndr.draw)
implementation(libs.openrndr.webgl)
for (feature in orxFeatures) {
implementation(orx(feature))
}
}
kotlin {
js(IR) {
browser {
commonWebpackConfig {
outputFileName = "openrndr-program.js"
cssSupport {
enabled.set(true)
}
}
}
binaries.executable()
}
}
tasks.getByName("browserDevelopmentRun").dependsOn("developmentExecutableCompileSync")