-
Notifications
You must be signed in to change notification settings - Fork 155
/
build.sbt
43 lines (35 loc) · 1.43 KB
/
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
40
41
42
43
name := "opencv-cookbook"
organization := "javacv.examples"
val javacppVersion = "1.5.10"
version := javacppVersion
scalaVersion := "2.13.14"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xlint")
// Platform classifier for native library dependencies
val platform = org.bytedeco.javacpp.Loader.Detector.getPlatform
// JavaCPP-Preset libraries with native dependencies
val presetLibs = Seq(
"opencv" -> "4.9.0",
"ffmpeg" -> "6.1.1",
"openblas" -> "0.3.26"
).flatMap { case (lib, ver) =>
Seq(
"org.bytedeco" % lib % s"$ver-$javacppVersion",
"org.bytedeco" % lib % s"$ver-$javacppVersion" classifier platform
)
}
libraryDependencies ++= Seq(
"org.bytedeco" % "javacpp" % javacppVersion,
"org.bytedeco" % "javacpp" % javacppVersion classifier platform,
"org.bytedeco" % "javacv" % javacppVersion,
"org.scala-lang.modules" %% "scala-swing" % "3.0.0",
"org.scalafx" %% "scalafx" % "22.0.0-R33",
"org.scalafx" %% "scalafx-extras" % "0.9.0",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
) ++ presetLibs
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
autoCompilerPlugins := true
// fork a new JVM for 'run' and 'test:run'
fork := true
// add a JVM option to use when forking a JVM for 'run'
javaOptions += "-Xmx1G"