https://github.com/mtojo/j2n
Generates C++/JNI wrapper from Java archive file (.jar)
https://github.com/mtojo/j2n
android c-plus-plus go jar java jni-wrapper
Last synced: 3 months ago
JSON representation
Generates C++/JNI wrapper from Java archive file (.jar)
- Host: GitHub
- URL: https://github.com/mtojo/j2n
- Owner: mtojo
- Created: 2015-01-27T15:13:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-10T09:43:28.000Z (over 10 years ago)
- Last Synced: 2023-03-22T10:56:59.833Z (over 2 years ago)
- Topics: android, c-plus-plus, go, jar, java, jni-wrapper
- Language: Go
- Size: 352 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# j2n
## Description
Generates C++/JNI wrapper from Java archive file (.jar).
## Installation
go get github.com/mtojo/j2n
## Usage
j2n -i file
Options:
-i input jar file
-o output directory; same as input if not specify
-f overwrite output directory if already exists
-x header file extension (default: .hpp)
-c source file extension (default: .cpp)
-p macro prefix
-s macro suffix
-n namespace prefix
-t header template file
-u source template file
-l .clang-format file## Example
Generates from Android SDK:
$ j2n -i $ANDROID_SDK_ROOT/platforms/android-21/android.jar -o android-sdk