Skip to content

kwhat/ant-jni-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ant-jni-tasks - Ant Tasks for Compiling Native C/C++ Code for JNI Projects

About

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.

Supported Toolchains

  • GNU C Compiler
  • GNU C++ Compiler
  • LLVM CLANG Compiler
  • LLVM CLANG++ Compiler

Supported Build Systems

  • CMake
  • GNU Autotools
  • GNU Make

Need support for additional features, toolchains or build systems? Please file a feature request bug.

Usage

Simply add the following to your ant project:

<typedef resource="org/jnitasks/antlib.xml" classpath="path/to/JNITasks.jar" />

Available Tasks

The following are projects that currently use JNITasks that you may use as an example.

JNativeHook