summaryrefslogtreecommitdiffstats
path: root/src/cmake/api.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake/api.cmake')
-rw-r--r--src/cmake/api.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmake/api.cmake b/src/cmake/api.cmake
index f3af68748d6..67472857fee 100644
--- a/src/cmake/api.cmake
+++ b/src/cmake/api.cmake
@@ -49,6 +49,7 @@ function(vpp_generate_api_c_header file)
add_custom_target(${t} ALL DEPENDS ${OUTPUT_HEADERS})
add_dependencies(api_headers ${t})
endif()
+
endfunction()
function(vpp_generate_api_json_header file dir component)
@@ -160,12 +161,15 @@ function(vpp_add_api_files name dir component)
get_filename_component(name ${file} NAME)
list(APPEND header_files
${file}.h
+ ${file}_enum.h
+ ${file}_types.h
${file}.json
${CMAKE_BINARY_DIR}/vpp-api/vapi/${name}.vapi.h
${CMAKE_BINARY_DIR}/vpp-api/vapi/${name}.vapi.hpp
)
endforeach()
add_custom_target(${target} DEPENDS ${header_files})
+ add_dependencies(api_headers ${target})
endfunction()
add_custom_target(api_headers