Git Product home page Git Product logo

roc-java's Introduction

JNI bindings for Roc Toolkit

Build Status Android release

Work in progress!

Dependencies

You will need to have libroc and libroc-devel (headers) installed. Refer to official build instructions on how to install libroc. There is no official distribution for any OS as of now, you will need to install from source.

Quickstart

At the moment we release only android library

Add jcenter repository in build.gradle file:

repositories {
    jcenter()
}

Add dependency to project (last version):

implementation 'org.rocstreaming.roctoolkit:roc-android:0.0.1'

Development

Generate JNI headers:

./gradlew generateHeaders

Build (native code and Java code):

./gradlew build

Build only native code:

./gradlew roc_jni:build

Run tests:

./gradlew test

Generate docs:

./gradlew javadoc

Configuration (building native code)

If libroc is not in default path you can specify ROC_INCLUDE_PATH (path to roc headers) and ROC_LIBRARY_PATH (path to roc library) variables with:

  • environment variables
  • gradle system variables

Additional compilation and linking flags can be specified respectively with CFLAGS and LDFLAGS gradle system variables

Android Release

Release workflow:

  • make github release with tag version, e.g. v0.0.1
  • travis will run release stage and publish artifacts to bintray

Followed env variables should be set in travis:

  • BINTRAY_USER - bintray user
  • BINTRAY_KEY - bintray user api key
  • BINTRAY_REPO - bintray repository name
  • BINTRAY_REPO_ORG - bintray organization name

License

MIT

roc-java's People

Contributors

matteoarella avatar ortex avatar gavv avatar

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.