Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Libraries for message parsing, message routing, logging, and others , will need to be packaged for easier inclusion into build/run environments for xAPPs. This page contains notes on various methods for generating packages in Debian (.deb) and RedHat Package Manager (.rpm) formats.

Using CMake

CMake is a build tool generally used for describing and building complex C applications, but is also makes the generation of packages (e.g. .deb or .rpm) very simple. The CPACK extension to CMake is used to generate the necessary rules in a project's Makefile such that the command make package will create all packages.    At a high level, package creation via CMake is accomplished by defining a set of CPACK related variables, and then including the Cpack module.  The following code sample illustrates this:

...