Coder Social home page Coder Social logo

ant-jni-tasks's Introduction

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

ant-jni-tasks's People

Contributors

dependabot[bot] avatar kwhat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ant-jni-tasks's Issues

"mvn package" fails

mvn package fails with [ERROR]

[...]
ant-jni-tasks/src/test/java/org/jnitasks/test/AutoreconfTest.java:[21,28] cannot find symbol
symbol: class BuildFileTest
location: package org.apache.tools.ant
[...]

Do i need a specific version of mvn/ant !?

i was able to create the jars with
mvn -Dmaven.test.skip=true package

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.