Template for a Frama-C plug-in following good practices.
This template can be used for external plug-ins (not distributed with Frama-C), but it also allows the plug-in to be internalized and distributed with custom versions of Frama-C.
- Clone this repository and rename it to your plug-in's name;
- Replace all occurrences of SKELETON/Skeleton/skeleton with your plug-in's name
(do NOT rename
PLUGIN_*
variables; they must remain asPLUGIN_*
), in all files; - Rename
Skeleton.mli
andtests/skeleton
; - Add test dirs and tests inside
tests/
; - Open
configure.ac
and update it according to its instructions; - Open
Makefile.in
and update it according to its instructions; - Update the
opam
file.- Ideally, test with all Frama-C versions it should be compatible with and add constraints to blacklist incompatible versions if needed;
- Don't forget to notify the Frama-C developers about your plug-in!
- Run
autoconf -f
to regenerateconfigure
; - Run
./configure
to generate the Makefile; - Run
make
and thenmake install
to install the plug-in; - Run
make Skeleton_TESTS
(replacingSkeleton
with your plug-in name) to runptests
on all test directories. For more information about theptests
tool, see the Frama-C Plug-in Development guide.