Initial commit
This commit is contained in:
48
audio-worklet/build.gradle.kts
Normal file
48
audio-worklet/build.gradle.kts
Normal file
@@ -0,0 +1,48 @@
|
||||
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/"))
|
||||
}
|
||||
}
|
||||
}
|
||||
jvm()
|
||||
|
||||
sourceSets {
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation(project(":common"))
|
||||
}
|
||||
}
|
||||
val jsMain by getting {
|
||||
dependencies {
|
||||
implementation(project(":common"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user