-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
30 lines (28 loc) · 1004 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
val Scala2_11 = "2.11.12"
val Scala2_12 = "2.12.4"
lazy val cspice = crossProject(JVMPlatform, NativePlatform)
.withoutSuffixFor(JVMPlatform)
.in(file("."))
.settings(
organization := "com.github.nadavwr",
scalaVersion := Scala2_11,
libraryDependencies += "com.lihaoyi" %%% "utest" % "0.6.3" % "test",
testFrameworks += new TestFramework("utest.runner.Framework"),
nativeLinkStubs := true,
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
scalacOptions ++= Seq("-feature", "-deprecation"),
)
.configurePlatform(JVMPlatform) { project =>
project.enablePlugins(JniNative)
}
.jvmSettings(
crossScalaVersions := Seq(Scala2_11, Scala2_12),
javah := (javah triggeredBy (compile in Compile)).value,
crossPaths := true,
(packageBin in Compile) := ((packageBin in Compile) dependsOn javah).value
)
.nativeSettings(
crossScalaVersions := Seq(Scala2_11)
)
lazy val cspiceJVM = cspice.jvm
lazy val cspiceNative = cspice.native