From db6aae6b57caca6414287e737885f4c39d314afd Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 26 Sep 2022 10:23:04 +0200 Subject: chore(hicn-plugin): install hicn.api.json The hicn.api.json is currently used by govpp/vapi_c_gen/vapi_cpp_gen etc. to generate the APIs to configure the hicn plugin. It should be installed in the system as external component may require it to generate the api, as in the govpp case (cf https://github.com/FDio/govpp/tree/master/binapi). The hicn.api.son file will be installed with the rest of the plugins API (share/vpp/api/plugins) Ticket: HICN-797 Signed-off-by: Mauro Sardara Change-Id: Ief7f0010a718efd272e260552f2f2d1428fac486 --- hicn-plugin/src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hicn-plugin') diff --git a/hicn-plugin/src/CMakeLists.txt b/hicn-plugin/src/CMakeLists.txt index e05ba1fec..0ba683b11 100644 --- a/hicn-plugin/src/CMakeLists.txt +++ b/hicn-plugin/src/CMakeLists.txt @@ -199,6 +199,11 @@ execute_process( COMMAND ${VPP_HOME}/bin/vapi_c_gen.py ${PROJECT_BINARY_DIR}/vapi/hicn.api.json COMMAND ${VPP_HOME}/bin/vapi_cpp_gen.py ${PROJECT_BINARY_DIR}/vapi/hicn.api.json ) +install( + FILES ${PROJECT_BINARY_DIR}/vapi/hicn.api.json + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/vpp/api/plugins + COMPONENT ${HICN_PLUGIN} +) ############################################################## -- cgit 1.2.3-korg