This repo is kept for reference only, there is no further development planned.
The package provides components to build command-line generators based on the CommonAPI framework.
The command line tool is called commonAPICodeGen
. The basic usage is:
./commonAPICodeGen -f <filename>.fdepl -o <outputdir> dbus
In this example, the actual generator used is the dbus generator. Run the tool without arguments to get a more detailed usage guide.
This repository depends on a number of other repositories, the build instructions include them.
Start by checking out the following repositories:
- https://github.com/Pelagicore/common-api-cmdline
- https://github.com/Pelagicore/common-api-tools
- https://github.com/Pelagicore/common-api-dbus-tools
- https://github.com/Pelagicore/common-api-dbus-integration
In order to build these repositories, start by defining and installation path. I choose to export it as follows:
export INSTPATH=$HOME/GENIVI/inst
If you want to install everything in the default location (for system wide installs), simply ignore the cmake -D
arguments and the INSTPATH
definition.
Then continue to build common-api-cmdline.
cd common-api-cmdline
mkdir b
cd b
cmake -DCMAKE_INSTALL_PREFIX=$INSTPATH ..
make
make install
Followed by common-api-tools.
cd common-api-tools
mkdir b
cd b
cmake -DCMAKE_MODULE_PATH=$INSTPATH/lib/cmake -DCMAKE_INSTALL_PREFIX=$INSTPATH ..
make
make install
Next comes common-api-dbus-integration.
cd common-api-dbus-integration
mkdir b
cd b
cmake -DCMAKE_MODULE_PATH=$INSTPATH/lib/cmake -DCMAKE_INSTALL_PREFIX=$INSTPATH ..
make
make install
And finally common-api-dbus-tools.
cd common-api-dbus-tools
mkdir b
cd b
cmake -DCMAKE_MODULE_PATH=$INSTPATH/lib/cmake -DCMAKE_INSTALL_PREFIX=$INSTPATH ..
make
make install
The end result should be a toolchain installed in INSTPATH
.
Copyright (C) 2015 Pelagicore AB
Please see LICENSE.txt
for licensing information. This software is licensed under the MPL 2.0 license.