-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.sbt
62 lines (52 loc) · 1.68 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import scala.collection.immutable.Seq
name := "zio3d"
version := "0.1"
scalaVersion := "2.13.0"
lazy val zioVersion = "1.0.4"
lazy val lwjglVersion = "3.2.1"
lazy val os = Option(System.getProperty("os.name", ""))
.map(_.substring(0, 3).toLowerCase) match {
case Some("win") => "windows"
case Some("mac") => "macos"
case _ => "linux"
}
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies ++= Seq(
"dev.zio" %% "zio" % zioVersion,
"dev.zio" %% "zio-streams" % zioVersion,
"org.lwjgl" % "lwjgl" % lwjglVersion,
"org.lwjgl" % "lwjgl-opengl" % lwjglVersion,
"org.lwjgl" % "lwjgl-glfw" % lwjglVersion,
"org.lwjgl" % "lwjgl-stb" % lwjglVersion,
"org.lwjgl" % "lwjgl-assimp" % lwjglVersion,
"org.lwjgl" % "lwjgl-nanovg" % lwjglVersion,
"org.lwjgl" % "lwjgl" % lwjglVersion classifier s"natives-$os",
"org.lwjgl" % "lwjgl-opengl" % lwjglVersion classifier s"natives-$os",
"org.lwjgl" % "lwjgl-glfw" % lwjglVersion classifier s"natives-$os",
"org.lwjgl" % "lwjgl-stb" % lwjglVersion classifier s"natives-$os",
"org.lwjgl" % "lwjgl-assimp" % lwjglVersion classifier s"natives-$os",
"org.lwjgl" % "lwjgl-nanovg" % lwjglVersion classifier s"natives-$os"
)
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint:_,-missing-interpolator",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Yrangepos",
"-target:jvm-1.8"
)
javaOptions ++= {
if (os == "macos")
Seq("-XstartOnFirstThread")
else
Nil
}
fork in run := true