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 /plugin/src/sbt-test/sbt-jni/simple/core/src/main/scala/simple/Main.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 'plugin/src/sbt-test/sbt-jni/simple/core/src/main/scala/simple/Main.scala')
-rw-r--r-- | plugin/src/sbt-test/sbt-jni/simple/core/src/main/scala/simple/Main.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/src/sbt-test/sbt-jni/simple/core/src/main/scala/simple/Main.scala b/plugin/src/sbt-test/sbt-jni/simple/core/src/main/scala/simple/Main.scala new file mode 100644 index 0000000..c54d6e0 --- /dev/null +++ b/plugin/src/sbt-test/sbt-jni/simple/core/src/main/scala/simple/Main.scala @@ -0,0 +1,10 @@ +package simple + +object Main { + + def main(args: Array[String]): Unit = { + val result = Library.say("hello world") + assert(result == 42) + } + +} |