ant-jni-tasks - Ant Tasks for Compiling Native C/C++ Code for JNI Projects
Simple Ant tasks to reliably build C/C++ code for Java Native Interface (JNI) projects as well as any native library dependencies that maybe required. The goal of the project is to provide a simplified, working alternative to the legacy ant-contrib cpptasks allowing C/C++ code to be configured and built directly from Ant as part of the Java build process. No external shell, bat or ps1 shell scripts to bootstrap the process and no repetitive exec commands all over your build.xml file.
- GNU C Compiler
- GNU C++ Compiler
- LLVM CLANG Compiler
- LLVM CLANG++ Compiler
- CMake
- GNU Autotools
- GNU Make
Need support for additional features, toolchains or build systems? Please file a feature request bug.
Simply add the following to your ant project:
<typedef resource="org/jnitasks/antlib.xml" classpath="path/to/JNITasks.jar" />
The following are projects that currently use JNITasks that you may use as an example.