8.2.9. How to Build A Library and Link it in a foxBMS 2 Project
Sometimes source code can not be shared between parties. For these cases the
foxBMS 2 project provides a mechanism to ship a minimal development project to
the other party. This allows the partner to build a static library. This
library and the accompanying headers can then be shared with the partner and be
included in the application.
The following example describes the workflow. In this scenario partner A
develops on foxBMS 2 while Part B should only provide a library to A.
A bootstraps a minimal development project. This minimal project is named
Listing 8.48 Bootstrapping the minimal library project
A shares the archive
library-project.tar.bz2 with B.
B installs a Code Composer Studio as described in Installing Code Composer Studio.
B installs a Python environment as described in
Installing Miniconda and Configuration.
B builds a library by adding sources etc. to the minimal project as
needed and builds the library.
Listing 8.49 Building the Library
B shares the library and accompanying headers with A.
A saves the library and accompanying headers and adds the path to the
library to the search path, the library name the list of used libraries and
the path to the headers to the include path (in