diff options
author | Jakob Odersky <jakob@odersky.com> | 2016-05-02 05:19:07 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2016-05-11 11:17:09 -0700 |
commit | 791cb363b77332e3abdf4039102dfcdb863ce6c3 (patch) | |
tree | 09ff5d807a1407abedade57b692204ceac3f3280 /jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala | |
parent | 49563ee13599b0cb1add27b24446677a13b1f563 (diff) | |
download | sbt-jni-791cb363b77332e3abdf4039102dfcdb863ce6c3.tar.gz sbt-jni-791cb363b77332e3abdf4039102dfcdb863ce6c3.tar.bz2 sbt-jni-791cb363b77332e3abdf4039102dfcdb863ce6c3.zip |
Use macro annotation to load native library
This also removes the need for third projects to depend on a "loader library".
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.scala | 27 |
1 files changed, 0 insertions, 27 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 deleted file mode 100644 index 43dd17a..0000000 --- a/jni-plugin/src/main/scala/ch/jodersky/sbt/jni/build/BuildToolApi.scala +++ /dev/null @@ -1,27 +0,0 @@ -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. - * @param baseDirectory the directory where the native project is located - * @param buildDirectory a directory from where the build is called, it may be used to store temporary files - * @param targetDirectory the directory into which the native library is copied - * @return the native library file - */ - def library( - baseDirectory: File, - targetDirectory: File, - buildDirectory: File, - log: Logger - ): File - -} |