-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (33 loc) · 955 Bytes
/
build.sbt
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
val scala3Version = "3.3.1"
enablePlugins(ScalaNativePlugin, BindgenPlugin)
import scala.scalanative.build._
nativeConfig ~= { c =>
c.withLTO(LTO.full)
.withMode(Mode.releaseFull)
.withGC(GC.immix)
// c.withLTO(LTO.none)
// .withMode(Mode.debug)
// .withGC(GC.none)
}
import bindgen.interface.Binding
bindgenBindings := Seq(
Binding
.builder(
file("/opt/homebrew/opt/portaudio/include/portaudio.h"),
"portaudio"
)
.withLinkName("portaudio")
.addCImport("portaudio.h")
.build
)
lazy val root = project
.in(file("."))
.settings(
name := "pedalboard",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
libraryDependencies += "org.typelevel" %%% "cats-effect" % "3.5.1",
libraryDependencies += "co.fs2" %%% "fs2-core" % "3.9.2",
libraryDependencies += "co.fs2" %%% "fs2-io" % "3.9.2",
Compile / scalacOptions -= "-Xfatal-warnings"
)