Clarify the supported gen_json workflow for exporting macros after the docs migration
Author: Sab1e-devCreated Sep 26, 2026Updated Sep 29, 2026
LVGL version
v9.6.0
Platform
Platform-independent.
What happened?
Hi LVGL maintainers,
I am using scripts/gen_json/gen_json.py for a downstream language binding and need the generated JSON to include macros such as LV_SIZE_CONTENT.
Currently:
gen_json.py --no-docstringsworks, but"macros"is empty by design (#7471).- Running without
--no-docstringsstill importsdoxygen_xml. docs/doxygen_xml.pywas removed in #9993 during the documentation migration.
So on a clean checkout, there currently seems to be no supported way to generate API JSON with macros.
This matters for bindings that need macro initializers, for example:
#define LV_SIZE_CONTENT LV_COORD_SET_SPEC(LV_COORD_MAX)Could you confirm whether this is an unintended regression, and what the intended way to generate macros with gen_json is now?
If this path is still intended to be supported, I would be happy to help with a fix.
Observed on release/v9.6 at 60b614c23; the same code path is also present on current master.
How to reproduce?
No response
Source: lvgl/lvgl