Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joprice committed Jul 13, 2014
1 parent 4f6efb5 commit b1be139
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
sbt-jni
=======

Sbt plugin for projects with jni sources
Sbt plugin for projects with jni sources.

```scala
import com.github.joprice.Jni
import Jni.Keys._

Jni.settings

// this will be the name that you call `System.loadLibrary` with, prefixed with "lib"
libraryName := "libMyApp"

gccFlags ++= Seq("-lpthread")

// defaults to gcc
nativeCompiler := "g++"

jniClasses := Seq(
"com.myapp.ClassWithJniCode"
)
```

0 comments on commit b1be139

Please sign in to comment.