Split vat/api_format.c also for VNET features. Use auto-generated VAT test code and support dynamic message ID allocation as for plugins. The arp and geneve features as Guinea pigs. Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I461591496766bdf10c5f950fd30f1a0ae05909da Signed-off-by: Ole Troan <ot@cisco.com>
73 lines
2.2 KiB
CMake
73 lines
2.2 KiB
CMake
# Copyright (c) 2018 Cisco and/or its affiliates.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at:
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
##############################################################################
|
|
# vat plugin shared library
|
|
##############################################################################
|
|
add_vpp_library(vatplugin
|
|
SOURCES plugin_api.c
|
|
LINK_LIBRARIES vppinfra
|
|
)
|
|
|
|
##############################################################################
|
|
# vpp_api_test
|
|
##############################################################################
|
|
add_vpp_executable(vpp_api_test ENABLE_EXPORTS
|
|
SOURCES
|
|
api_format.c
|
|
main.c
|
|
plugin.c
|
|
json_format.c
|
|
types.c
|
|
ip_types_api.c
|
|
ip_types.c
|
|
protocols.def
|
|
../vnet/arp/arp_test.c
|
|
../vnet/geneve/geneve_test.c
|
|
|
|
DEPENDS api_headers
|
|
|
|
LINK_LIBRARIES
|
|
vlibmemoryclient
|
|
svm
|
|
vatplugin
|
|
vppinfra
|
|
Threads::Threads
|
|
rt m dl crypto
|
|
)
|
|
|
|
##############################################################################
|
|
# vpp_json_test
|
|
##############################################################################
|
|
add_vpp_executable(vpp_json_test ENABLE_EXPORTS NO_INSTALL
|
|
SOURCES json_format.c json_test.c
|
|
LINK_LIBRARIES vppinfra m
|
|
)
|
|
|
|
##############################################################################
|
|
# vat headers
|
|
##############################################################################
|
|
install(
|
|
FILES vat.h json_format.h
|
|
DESTINATION include/vat
|
|
COMPONENT vpp-dev
|
|
)
|
|
|
|
##############################################################################
|
|
# restart
|
|
##############################################################################
|
|
add_vpp_executable(vpp_restart
|
|
SOURCES restart.c
|
|
LINK_LIBRARIES svm svmdb vppinfra Threads::Threads rt
|
|
)
|