api: provide api definition over api
[vpp.git] / src / tools / vppapigen / generate_json.py
index 610f84f..dc5cf9c 100755 (executable)
@@ -110,6 +110,15 @@ def main():
                         ],
                         f.name,
                     ),
+                    "outputdir": "%s/%s/"
+                    % (
+                        output_path,
+                        output_dir_map[
+                            f.as_posix().split("/")[
+                                src_dir_depth + BASE_DIR.count("/") - 1
+                            ]
+                        ],
+                    ),
                     "input_file": f.as_posix(),
                     "includedir": [src_dir.as_posix()],
                     "output_module": "JSON",