build: install generated api enum and type headers 73/23173/3
authorDave Barach <dave@barachs.net>
Fri, 1 Nov 2019 20:24:41 +0000 (16:24 -0400)
committerOle Trøan <otroan@employees.org>
Mon, 4 Nov 2019 09:38:10 +0000 (09:38 +0000)
Otherwise, <api-name>.api_enum.h and <api-name>.api_types.h files are
unavailable. If plugin B needs to send an API message to plugin A,
it's out of luck.

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I25fdb904b5cf57727d6196fa2c0c71be68f207ed
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/cmake/plugin.cmake
src/vpp/CMakeLists.txt

index b18f337..a0c3de7 100644 (file)
@@ -39,6 +39,8 @@ macro(add_vpp_plugin name)
     set_property(GLOBAL APPEND PROPERTY VPP_API_FILES ${rpath}/${f})
     install(
       FILES ${CMAKE_CURRENT_BINARY_DIR}/${f}.h
+      ${CMAKE_CURRENT_BINARY_DIR}/${f}_enum.h
+      ${CMAKE_CURRENT_BINARY_DIR}/${f}_types.h
       DESTINATION include/vpp_plugins/${name}/${dir}
       COMPONENT ${PLUGIN_DEV_COMPONENT}
     )
index da43b0f..5aaaab7 100644 (file)
@@ -44,6 +44,8 @@ foreach(file ${VPP_API_FILES})
   get_filename_component(dir ${file} DIRECTORY)
   install(
     FILES ${CMAKE_CURRENT_BINARY_DIR}/${file}.h
+    ${CMAKE_CURRENT_BINARY_DIR}/${file}_enum.h
+    ${CMAKE_CURRENT_BINARY_DIR}/${file}_types.h
     DESTINATION include/vpp/${dir}
     COMPONENT vpp-dev
   )