-
Notifications
You must be signed in to change notification settings - Fork 19
Setting Up MAPL Automatic Code Generator
Darian Boggs edited this page Dec 21, 2022
·
20 revisions
Setting up the MAPL Automatic Code Generator (ACG), consists of three steps:
- Create a specs file.
- Edit source code.
- Edit CMakeLists.txt.
To be done
For each Spec in the specs file, remove:
- the
MAPL_Add...Spec
call. - the corresponding pointer declaration.
- the
MAPL_GetPointer
call.
In addition to creating the Specs file, you need to modify CMakeLists.txt
at the GridComp and Repository levels.
For each GridComp, add the following block to CMakeLists.txt
in the directory that contains the GridComp source file:
mapl_acg (${this} SPECS_FILENAME
IMPORT_SPECS EXPORT_SPECS INTERNAL_SPECS
GET_POINTERS DECLARE_POINTERS)
replacing SPECS_FILENAME
with the name of the specs file you created. If the directory contains multiple GridComp source files, add a separate block for each GridComp source file. Each block runs the ACG and generates include files for the corresponding GridComp source file.
At the top level directory of the Repository, add the following line to CMakeLists.txt
:
include(mapl_acg)