aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lisp/CMakeLists.txt
blob: 743a17e69c8294e0ea1636a7b547a7ae3231c196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Copyright (c) 2020 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.

if(NOT OPENSSL_FOUND)
  message(WARNING "OpenSSL not found - lisp plugin disabled")
  return()
endif()

##############################################################################
# LISP control plane: lisp-cp
##############################################################################

##############################################################################
# Tunnel protocol: lisp-gpe
##############################################################################

add_vpp_plugin(lisp
  SOURCES
  lisp-cp/lisp_types.c
  lisp-cp/lisp_cp_dpo.c
  lisp-cp/control.c
  lisp-cp/control_main.c
  lisp-cp/gid_dictionary.c
  lisp-cp/lisp_msg_serdes.c
  lisp-cp/packets.c
  lisp-cp/one_cli.c
  lisp-cp/lisp_cli.c
  lisp-cp/one_api.c
  lisp-cp/lisp_api.c
  lisp-cp/lisp_types_api.c
  lisp-gpe/lisp_gpe.c
  lisp-gpe/lisp_gpe_sub_interface.c
  lisp-gpe/lisp_gpe_adjacency.c
  lisp-gpe/lisp_gpe_tunnel.c
  lisp-gpe/lisp_gpe_fwd_entry.c
  lisp-gpe/lisp_gpe_tenant.c
  lisp-gpe/interface.c
  lisp-gpe/decap.c
  lisp-gpe/lisp_gpe_api.c

  API_FILES
  lisp-cp/lisp_types.api
  lisp-cp/lisp.api
  lisp-cp/one.api
  lisp-gpe/lisp_gpe.api

  INSTALL_HEADERS
  lisp-cp/lisp_types.h
  lisp-cp/packets.h
  lisp-cp/gid_dictionary.h
  lisp-cp/lisp_cp_messages.h
  lisp-cp/lisp_msg_serdes.h
  lisp-cp/control.h
  lisp-cp/lisp_types_api.h
  lisp-gpe/lisp_gpe.h
  lisp-gpe/lisp_gpe_fwd_entry.h
  lisp-gpe/lisp_gpe_tenant.h
  lisp-gpe/lisp_gpe_packet.h
  lisp-gpe/lisp_gpe_error.def

  API_TEST_SOURCES
  lisp-cp/lisp_test.c
  lisp-cp/lisp_cp_test.c
  lisp-cp/one_test.c
  lisp-gpe/lisp_gpe_test.c
)

add_vpp_plugin(lisp_unittest
  SOURCES
  lisp-cp/lisp_msg_serdes.c
  lisp-cp/control_main.c
  lisp-cp/lisp_types.c
  test/lisp_cp_test.c
)