Streamlined MIDI message handling by introducing `MidiMessageHandler` and removed redundant code. Added better handler support for specific message types and parameters. Also upgraded Kotlin to version 2.1.0 and adjusted build configurations.
49 lines
1.2 KiB
Kotlin
49 lines
1.2 KiB
Kotlin
@file:OptIn(ExperimentalKotlinGradlePluginApi::class, ExperimentalDistributionDsl::class)
|
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalDistributionDsl
|
|
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackOutput
|
|
|
|
buildscript {
|
|
apply(from = "../common.gradle.kts")
|
|
}
|
|
|
|
plugins {
|
|
kotlin("multiplatform")
|
|
}
|
|
|
|
kotlin {
|
|
js {
|
|
compilerOptions {
|
|
target.set("es2015")
|
|
}
|
|
binaries.executable()
|
|
|
|
browser {
|
|
commonWebpackConfig {
|
|
outputFileName = "vst-chip-worklet.js"
|
|
sourceMaps = true
|
|
}
|
|
|
|
webpackTask {
|
|
output.libraryTarget = KotlinWebpackOutput.Target.VAR
|
|
output.library = "vstChipWorklet"
|
|
}
|
|
|
|
distribution {
|
|
outputDirectory.set(File("$projectDir/../web/"))
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation("nl.astraeus:vst-worklet-base:1.0.1")
|
|
implementation("nl.astraeus:midi-arrays:0.3.2")
|
|
}
|
|
}
|
|
val jsMain by getting
|
|
}
|
|
}
|