https://github.com/eskatos/jni-library-sample
Java JNI & C++ in a single Gradle build
https://github.com/eskatos/jni-library-sample
build cpp gradle java jni
Last synced: 10 months ago
JSON representation
Java JNI & C++ in a single Gradle build
- Host: GitHub
- URL: https://github.com/eskatos/jni-library-sample
- Owner: eskatos
- Created: 2019-11-27T09:43:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T19:33:41.000Z (almost 6 years ago)
- Last Synced: 2025-04-15T05:54:36.182Z (about 1 year ago)
- Topics: build, cpp, gradle, java, jni
- Language: Kotlin
- Homepage:
- Size: 84 KB
- Stars: 22
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Java JNI & {cpp} in a single Gradle build
This Java/{cpp} sample started as a hack day initiative at Gradle.
It provided an excellent starting point to the community in showing how Gradle can build Java Native Interface (JNI) libraries.
Since then, link:https://nokee.dev/[Nokee], lead by one of the original authors of the sample, took off. Nokee is a high-quality suite of Gradle plugins specifically geared toward native development with Gradle.
It includes plugins for building JNI libraries with link:https://nokee.dev/docs/current/samples/java-c-jni-library/[C], link:https://nokee.dev/docs/current/samples/java-cpp-jni-library/[{cpp}], link:https://nokee.dev/docs/current/samples/java-objective-c-jni-library/[Objective-C], and link:https://nokee.dev/docs/current/samples/java-objective-cpp-jni-library/[Objective-{cpp}].
Have a look at the link:https://nokee.dev/docs/current/samples/#sec:samples-jni[numerous samples already available] and the link:https://nokee.dev/docs/current/manual/building-jni-projects.html[documentation on building JNI projects].
Please link:https://github.com/nokeedev/gradle-native/issues[open an issue on the Nokee project] for any missing features you need for your build.