All Projects → rarnu → ndkmapping

rarnu / ndkmapping

Licence: GPL-3.0 License
No description, website, or topics provided.

Programming Languages

pascal
1382 projects
kotlin
9241 projects

NDK Mapping

A tool for make class mapping between JVM (use kotlin) and JNI.

It makes the development of JNI much convenient.


Usage:

Generate JNI Code:

ndkmapping <options> <Kotlin Class File Path>

    options:
        -l language (cpp, pas)
        -b build option (mk, mksh)
        -m max array size (must >= 0)
        -o output path

Sample:

ndkmapping -l cpp -b mksh -m 100 -a kotlin -o ./out/ ./classes/

Generate Test Code:

ndktester <options> <Kotlin Class File Path>

  options:
    -l language (java, kotlin)
    -x exported JNI code language (cpp, pas)
    -b build option (mk, mkshcp)
    -p base package name
    -c copy path
    -o output path

Sample:

ndktester -l kotlin -x cpp -b mkshcp -p com.sample.ndk -c ./jniLibs/ -o ./out/ ./classes/

You may use the generated code directly in real project or try the sample project(Click Download).


Build:

To build the NDKMapping and NDKTester, download CodeTyphon and install it on your Linux or Mac.

You may open the lpr or lpi with CodeTyphon and compile it.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].