aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-08-20 07:41:52 -0700
committerDamjan Marion <dmarion@me.com>2018-08-20 15:05:07 +0000
commit5ff0e0b1864fa646accea1ee344cbd8db07605fe (patch)
tree7f6155f5b1641c4e23c8d27fecfbc6a6e649fb82 /src/vnet
parent23722e6bfa9e67e87de9b09d14fafe84d2a8f029 (diff)
CMake: generate .json from .api files
Change-Id: Ic18aa0fb42a72b5e0ebbfbebdefc7582cb46b5ea Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/vnet/CMakeLists.txt b/src/vnet/CMakeLists.txt
index 1ae56183116..ec9fc2dcb67 100644
--- a/src/vnet/CMakeLists.txt
+++ b/src/vnet/CMakeLists.txt
@@ -424,7 +424,7 @@ set(VNET_SRCS
vxlan/vxlan.c
)
-set (VNET_API_FILES
+vpp_add_api_files(vnet_api_headers
vxlan-gpe/vxlan_gpe.api
ip/ip.api
ip/rd_cp.api
@@ -475,13 +475,6 @@ set (VNET_API_FILES
bfd/bfd.api
)
-set(VNET_API_HDRS)
-foreach (file ${VNET_API_FILES})
- vpp_generate_api_header(${file})
- list(APPEND VNET_API_HDRS ${file}.h)
-endforeach()
-add_custom_target(vnet_api_headers DEPENDS ${VNET_API_HDRS})
-
add_library(vnet SHARED ${VNET_SRCS})
vpp_library_set_multiarch_sources(vnet