From 7f37a94bab6d4fac88454105e3a281d57487dbf6 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Wed, 24 Jul 2019 13:42:36 +0200 Subject: vapi: add python scripts to vpp-dev package As requested in https://lists.fd.io/g/vpp-api-dev/message/18 three vapi scrips are packaged, destination to share/vpp/. Also: + Add "vapi" as a separate component to maintainers file. + Add also vppapigen/generate_json.py to share/vpp/. + Improve CMakeLists.txt indentation. Type: feature Change-Id: Ia06715621aa344e8ee759410b293509a54f81fdd Signed-off-by: Vratko Polak --- MAINTAINERS | 7 ++++++- src/tools/vppapigen/CMakeLists.txt | 11 ++++++++++- src/vpp-api/vapi/CMakeLists.txt | 26 +++++++++++++++++++------- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index e42f07be398..9c9af5d9584 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -419,11 +419,16 @@ I: vmxnet3 M: Steven Luong F: src/plugins/vmxnet3/ -Binary API Compiler +Binary API Compiler for Python I: vppapigen M: Ole Troan F: src/tools/vppapigen/ +Binary API Compiler for C and C++ +I: vapi +M: Ole Troan +F: src/vpp-api/vapi + Plugin - RDMA (ibverb) driver I: rdma M: BenoƮt Ganne diff --git a/src/tools/vppapigen/CMakeLists.txt b/src/tools/vppapigen/CMakeLists.txt index ce25cb0c9e7..9fb00817ea9 100644 --- a/src/tools/vppapigen/CMakeLists.txt +++ b/src/tools/vppapigen/CMakeLists.txt @@ -21,4 +21,13 @@ install( COMPONENT vpp-dev ) -install(FILES vppapigen_c.py vppapigen_json.py DESTINATION share/vpp COMPONENT vpp-dev) +install( + FILES + vppapigen_c.py + vppapigen_json.py + generate_json.py + DESTINATION + share/vpp + COMPONENT + vpp-dev +) diff --git a/src/vpp-api/vapi/CMakeLists.txt b/src/vpp-api/vapi/CMakeLists.txt index 120bfd4d69f..06c9f85dbba 100644 --- a/src/vpp-api/vapi/CMakeLists.txt +++ b/src/vpp-api/vapi/CMakeLists.txt @@ -74,12 +74,24 @@ add_vpp_library(vapiclient install( FILES - vapi.h - vapi_common.h - vapi_dbg.h - vapi.hpp - vapi_internal.h + vapi.h + vapi_common.h + vapi_dbg.h + vapi.hpp + vapi_internal.h + DESTINATION + include/vapi + COMPONENT + vpp-dev +) - DESTINATION include/vapi - COMPONENT vpp-dev +install( + FILES + vapi_c_gen.py + vapi_json_parser.py + vapi_cpp_gen.py + DESTINATION + share/vpp + COMPONENT + vpp-dev ) -- cgit 1.2.3-korg