forked from bytedeco/javacv-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
36 lines (29 loc) · 1.12 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
// @formatter:off
name := "Spinnaker-demo"
organization := "javacv.examples"
val javacppVersion = "1.5.7"
version := javacppVersion
scalaVersion := "3.1.3"
scalacOptions ++= Seq("-unchecked", "-deprecation")
// Platform classifier for native library dependencies
val platform = org.bytedeco.javacpp.Loader.Detector.getPlatform
// Libraries with native dependencies
val bytedecoPresetLibs = Seq(
"spinnaker" -> s"2.4.0.143-$javacppVersion").flatMap {
case (lib, ver) => Seq(
// Add both: dependency and its native binaries for the current `platform`
"org.bytedeco" % lib % ver withSources() withJavadoc(),
"org.bytedeco" % lib % ver classifier platform
)
}
libraryDependencies ++= Seq(
"org.bytedeco" % "javacpp" % javacppVersion withSources() withJavadoc(),
"org.bytedeco" % "javacv" % javacppVersion withSources() withJavadoc()
) ++ bytedecoPresetLibs
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
resolvers += Resolver.mavenLocal
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"