2018-08-22 10:54:42 +02:00
|
|
|
# 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
|
|
|
|
|
##############################################################################
|
2018-08-26 11:04:40 +02:00
|
|
|
add_vpp_library(vatplugin
|
|
|
|
|
SOURCES plugin_api.c
|
|
|
|
|
LINK_LIBRARIES vppinfra
|
|
|
|
|
)
|
2018-08-22 10:54:42 +02:00
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
# vpp_api_test
|
|
|
|
|
##############################################################################
|
2018-09-10 10:11:17 +02:00
|
|
|
add_vpp_executable(vpp_api_test ENABLE_EXPORTS
|
2018-08-26 11:04:40 +02:00
|
|
|
SOURCES
|
2018-08-22 10:54:42 +02:00
|
|
|
api_format.c
|
|
|
|
|
main.c
|
|
|
|
|
plugin.c
|
|
|
|
|
json_format.c
|
2018-11-02 09:14:01 -07:00
|
|
|
types.c
|
2020-02-26 11:01:43 +01:00
|
|
|
ip_types_api.c
|
2020-02-24 13:32:30 +00:00
|
|
|
ip_types.c
|
2020-02-26 11:01:43 +01:00
|
|
|
protocols.def
|
2020-09-15 10:53:34 +02:00
|
|
|
../vnet/arp/arp_test.c
|
|
|
|
|
../vnet/geneve/geneve_test.c
|
2018-08-26 11:04:40 +02:00
|
|
|
|
2018-12-04 13:03:15 +01:00
|
|
|
DEPENDS api_headers
|
|
|
|
|
|
2018-08-26 11:04:40 +02:00
|
|
|
LINK_LIBRARIES
|
|
|
|
|
vlibmemoryclient
|
|
|
|
|
svm
|
|
|
|
|
vatplugin
|
|
|
|
|
vppinfra
|
|
|
|
|
Threads::Threads
|
|
|
|
|
rt m dl crypto
|
2018-08-22 10:54:42 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
# vpp_json_test
|
|
|
|
|
##############################################################################
|
2018-09-07 12:39:02 +02:00
|
|
|
add_vpp_executable(vpp_json_test ENABLE_EXPORTS NO_INSTALL
|
2018-08-26 11:04:40 +02:00
|
|
|
SOURCES json_format.c json_test.c
|
|
|
|
|
LINK_LIBRARIES vppinfra m
|
|
|
|
|
)
|
2018-08-22 10:54:42 +02:00
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
# vat headers
|
|
|
|
|
##############################################################################
|
2018-09-07 12:39:02 +02:00
|
|
|
install(
|
|
|
|
|
FILES vat.h json_format.h
|
|
|
|
|
DESTINATION include/vat
|
|
|
|
|
COMPONENT vpp-dev
|
|
|
|
|
)
|
2018-08-22 10:54:42 +02:00
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
|
# restart
|
|
|
|
|
##############################################################################
|
2018-08-26 11:04:40 +02:00
|
|
|
add_vpp_executable(vpp_restart
|
|
|
|
|
SOURCES restart.c
|
|
|
|
|
LINK_LIBRARIES svm svmdb vppinfra Threads::Threads rt
|
|
|
|
|
)
|