helper scripts

This commit is contained in:
qm210
2024-10-22 01:07:58 +02:00
parent 9678108fd1
commit 40ae9c98fe
3 changed files with 33 additions and 1 deletions

14
build_vst_plugin.ps1 Normal file
View 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."
}

View File

@ -1 +0,0 @@
go build -buildmode=c-shared -tags="plugin","native" -o sointu-vsti.dll .\cmd\sointu-vsti\

View File

@ -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."
}
}