forked from bytedeco/javacv-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (30 loc) · 1.48 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
// Name of the project
name := "flandmark-demo"
// Project version
version := "1.1"
// Version of Scala used by the project
scalaVersion := "2.11.7"
val javacppVersion = "1.1"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-optimize", "-Xlint")
// Some dependencies like `javacpp` are packaged with maven-plugin packaging
classpathTypes += "maven-plugin"
// Platform classifier for native library dependencies
lazy val platform = org.bytedeco.javacpp.Loader.getPlatform
libraryDependencies ++= Seq(
"org.bytedeco" % "javacpp" % javacppVersion,
"org.bytedeco" % "javacv" % javacppVersion,
"org.bytedeco.javacpp-presets" % "flandmark" % ("1.07-" + javacppVersion) classifier "",
"org.bytedeco.javacpp-presets" % "flandmark" % ("1.07-" + javacppVersion) classifier platform,
"org.bytedeco.javacpp-presets" % "opencv" % ("3.0.0-" + javacppVersion) classifier "",
"org.bytedeco.javacpp-presets" % "opencv" % ("3.0.0-" + javacppVersion) classifier platform
)
// Used for testing local builds and snapshots of JavaCPP/JavaCV
//resolvers ++= Seq(
// Resolver.sonatypeRepo("snapshots"),
// // Use local maven repo for local javacv builds
// "Local Maven Repository" at "file:///" + Path.userHome.absolutePath + "/.m2/repository"
//)
// Fork a new JVM for 'run' and 'test:run', to avoid JavaFX double initialization problems
fork := true
// Set the prompt (for this build) to include the project id.
shellPrompt in ThisBuild := { state => "sbt:" + Project.extract(state).currentRef.project + "> " }