Generate C wrapper from Pseudo-Java
- Common
- Mac OS X 10.10.5
- Xcode 7.2 (7C68)
- flex 2.5.35 Apple(flex-31)
- bison (GNU Bison) 3.0.4
- HomeBrew
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- brew install git
- brew install flex
- brew install bison
git clone https://github.com/Bilibili/jni4android.git jni4android
cd jni4android
./configure
make
Usage:
j4a -h
j4a -c [-o <output_file>] <input_file>
Startup:
-c, --compile compile file.
-h, --help print this help.
-o, --output output file.