diff options
author | Ole Troan <ot@cisco.com> | 2020-12-02 14:19:49 +0100 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2021-02-08 11:41:12 +0000 |
commit | 7d527a2292bdabc84ff070f5b27f35c0e858cddd (patch) | |
tree | 4aee489caedb05eaf24ccb03d05f0fe5c383eb64 /src/cmake/api.cmake | |
parent | e5b7ca4bcea8c404d95e00f5db4c40d47b6e185b (diff) |
misc: support api generated dependency for multiarch source
Fix dependency issues where multi-arch file is using API generated file.
Type: improvement
Change-Id: I5d4af7a630529bc138c35841723e38938f36d963
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/cmake/api.cmake')
-rw-r--r-- | src/cmake/api.cmake | 4 |
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 |