aboutsummaryrefslogtreecommitdiff
path: root/samples/basic/build.sbt
blob: cceeb16b60f90a349a4b111ab9832843b2a60100 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
val commonSettings = Seq(
  scalaVersion := "2.11.7",
  organization := "ch.jodersky"
)

lazy val main = Project(
  id = "sample-basic-main",
  base = file("basic-main"),
  settings = commonSettings ++ Seq(
    target in (Compile, javah) :=
      (sourceDirectory in native).value / "include"
  ),
  dependencies = Seq(
    native % Runtime
  )
).enablePlugins(JniJvm)

lazy val native = Project(
  id = "sample-basic-native",
  base = file("basic-native"),
  settings = commonSettings ++ Seq(
    jniLibraryPath in (Compile, jni) := "/ch/jodersky/jni/basic"
  )
).enablePlugins(JniNative)