Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 976 Bytes

README.md

File metadata and controls

46 lines (38 loc) · 976 Bytes

clp-ffi-java is a library to encode log messages with CLP, and work with the encoded messages using a foreign function interface (FFI).

Requirements

  • A C++ compiler that supports C++-17
  • CMake 3.5.1 or higher

Setup

  • Initialize git submodules
    git submodule update --init --recursive
    • You should run this command any time you update this repo's submodules.

Common build commands

  • Build and test
    mvn package
  • Build without any extras
    mvn package -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip
  • Generate the JNI headers
    mvn generate-sources
  • Build the native library
    mvn generate-resources
  • Build and package the native library
    mvn generate-resources validate assembly:single@assemble-lib-dir
    • The validate phase is necessary to remove spaces from the OS name

Testing

mvn test