aboutsummaryrefslogtreecommitdiff
path: root/jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala
diff options
context:
space:
mode:
Diffstat (limited to 'jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala')
-rw-r--r--jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala23
1 files changed, 23 insertions, 0 deletions
diff --git a/jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala b/jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala
new file mode 100644
index 0000000..47d9a90
--- /dev/null
+++ b/jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala
@@ -0,0 +1,23 @@
+package ch.jodersky.sbt.jni
+package build
+
+import java.io.File
+import sbt.Logger
+
+
+trait BuildToolApi {
+
+ /** Invokes the native build tool's clean task */
+ def clean(baseDirectory: File, log: Logger): Unit
+
+ /**
+ * Invokes the native build tool's main task, resulting in a single shared
+ * library file.
+ */
+ def library(
+ baseDirectory: File,
+ targetDirectory: File,
+ log: Logger
+ ): File
+
+}