wireguard: add handoff node
[vpp.git] / src / plugins / wireguard / CMakeLists.txt
1
2 # Copyright (c) 2020 Doc.ai and/or its affiliates.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at:
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 if (OPENSSL_VERSION VERSION_LESS 1.1.0)
16   return()
17 endif()
18
19 list(APPEND WG_BLAKE_SOURCES
20   blake/blake2s.h
21   blake/blake2s.c
22 )
23
24 add_vpp_plugin(wireguard
25   SOURCES
26   ${WG_BLAKE_SOURCES}
27   wireguard.c
28   wireguard.h
29   wireguard_if.c
30   wireguard_if.h
31   wireguard_input.c
32   wireguard_output_tun.c
33   wireguard_handoff.c
34   wireguard_key.c
35   wireguard_key.h
36   wireguard_cli.c
37   wireguard_messages.h
38   wireguard_noise.c
39   wireguard_noise.h
40   wireguard_send.c
41   wireguard_send.h
42   wireguard_cookie.c
43   wireguard_cookie.h
44   wireguard_peer.c
45   wireguard_peer.h
46   wireguard_timer.c
47   wireguard_timer.h
48   wireguard_index_table.c
49   wireguard_index_table.h
50   wireguard_api.c
51
52   API_FILES
53   wireguard.api
54
55 )