aboutsummaryrefslogtreecommitdiff
path: root/plugin/src/sbt-test/sbt-jni/simple/build.sbt
blob: a361b6f680366e15bd7188aeecc6ae78546b81db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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-RC4" % "test").
  settings(target in javah := (sourceDirectory in nativeCompile in native).value / "include").
  dependsOn(native % Runtime)

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