mirror of
https://github.com/vsariola/sointu.git
synced 2026-03-31 19:23:04 -04:00
helper scripts
This commit is contained in:
14
build_vst_plugin.ps1
Normal file
14
build_vst_plugin.ps1
Normal file
@ -0,0 +1,14 @@
|
||||
if ($args -contains "native") {
|
||||
|
||||
Write-Host "Build VST with ASM synth"
|
||||
go build -buildmode=c-shared -tags="plugin","native" -o sointu-vsti.dll .\cmd\sointu-vsti\
|
||||
|
||||
} elseif ($args -contains "go") {
|
||||
|
||||
Write-Host "Build VST with GO synth"
|
||||
go build -buildmode=c-shared -tags="plugin" -o sointu-vsti.dll .\cmd\sointu-vsti\
|
||||
|
||||
} else {
|
||||
Write-Host "specify either ""native"" or ""go"" argument."
|
||||
}
|
||||
|
||||
@ -1 +0,0 @@
|
||||
go build -buildmode=c-shared -tags="plugin","native" -o sointu-vsti.dll .\cmd\sointu-vsti\
|
||||
@ -0,0 +1,19 @@
|
||||
cd build
|
||||
ninja sointu
|
||||
cd ..
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
if ($args -contains "native") {
|
||||
|
||||
Write-Host "Render with ASM synth"
|
||||
go run -tags=native .\cmd\sointu-play\main.go -w .\examples\envelopexp_dev.yml
|
||||
|
||||
} elseif ($args -contains "go") {
|
||||
|
||||
Write-Host "Render with GO synth"
|
||||
go run .\cmd\sointu-play\main.go -w .\examples\envelopexp_dev.yml
|
||||
|
||||
} else {
|
||||
Write-Host "specify either ""native"" or ""go"" argument."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user