aboutsummaryrefslogtreecommitdiff
path: root/plugin/src/sbt-test/sbt-jni/simple/build.sbt
blob: b3d441a193496a75b9a8ba151b595a7339f1222d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ivyLoggingLevel := UpdateLogging.Quiet

lazy val root = (project in file(".")).
  aggregate(core, native)

lazy val core = (project in file("core")).
  settings(libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % "test").
  settings(target in javah := (sourceDirectory in nativeCompile in native).value / "include").
  dependsOn(native % Runtime).
  dependsOnRun(native)

lazy val native = (project in file("native")).
  settings(sourceDirectory in nativeCompile := sourceDirectory.value).
  enablePlugins(JniNative)