Some experiments around Franca IDL code generation implemented in python.
Based on :
- pyfranca project (Franca parser - does the heavy lifting)
- jinja2 (Template/generation framework)
The above projects are brought in as submodules for convenience
Plus a new addition:
- pyfranca_cpp (jinja templates + logic to generate C++ headerfiles and classes from Franca IDL)
pyfranca_cpp is not yet separated into its own project and brought in as submodule, but might be. It's supposed to be reusable.
- Install clang-format or the code generation will fail
- Also read the pyfranca_cpp/README.md
First ensure submodules are brought in:
$ git submodule update --init
$ cd lbs
$ ./generate_lbs.py
Check results in src_gen/
Optionally, generate some Docs: (make sure Doxygen is installed)
$ cd src_gen
$ doxygen
$ firefox index.html
** DOCS EXAMPLE CAN BE SEEN HERE ON THE GITHUB PAGES
- Boilerplate is generated twice, (only on some file types)
- A lot more -- read the pyfranca_cpp/README.md