nat: api,cli and test update & cleanup
[vpp.git] / src / plugins / nat / CMakeLists.txt
1 # Copyright (c) 2018 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 set(CMAKE_VERBOSE_MAKEFILE ON)
15
16 add_vpp_library(nat
17   SOURCES
18   lib/ipfix_logging.c
19   lib/alloc.c
20
21   INSTALL_HEADERS
22   lib/ipfix_logging.h
23   lib/alloc.h
24 )
25
26 add_vpp_plugin(nat
27   SOURCES
28   nat.c
29   nat44_api.c
30   in2out.c
31   in2out_ed.c
32   out2in.c
33   out2in_ed.c
34   nat_dpo.c
35   nat44_cli.c
36   nat44_handoff.c
37   nat44_hairpinning.c
38   nat44_classify.c
39   nat_affinity.c
40   nat_format.c
41   nat_syslog.c
42   nat_ha.c
43
44   MULTIARCH_SOURCES
45   in2out.c
46   in2out_ed.c
47   nat44_classify.c
48   nat44_hairpinning.c
49   nat44_handoff.c
50   out2in.c
51   out2in_ed.c
52
53   API_FILES
54   nat44.api
55   nat_types.api
56
57   LINK_LIBRARIES nat
58 )
59
60 add_vpp_plugin(dslite
61   SOURCES
62   nat_syslog.c
63   dslite/dslite_api.c
64   dslite/dslite_dpo.c
65   dslite/dslite.c
66   dslite/dslite_in2out.c
67   dslite/dslite_out2in.c
68   dslite/dslite_cli.c
69   dslite/dslite_ce_encap.c
70   dslite/dslite_ce_decap.c
71
72   MULTIARCH_SOURCES
73   dslite/dslite_ce_decap.c
74   dslite/dslite_ce_encap.c
75   dslite/dslite_in2out.c
76   dslite/dslite_out2in.c
77
78   API_FILES
79   dslite/dslite.api
80
81   LINK_LIBRARIES nat
82 )
83
84 add_vpp_plugin(nat66
85   SOURCES
86   nat_syslog.c
87   nat66/nat66.c
88   nat66/nat66_cli.c
89   nat66/nat66_api.c
90   nat66/nat66_in2out.c
91   nat66/nat66_out2in.c
92
93   MULTIARCH_SOURCES
94   nat66/nat66_in2out.c
95   nat66/nat66_out2in.c
96
97   API_FILES
98   nat66/nat66.api
99   nat_types.api
100
101   LINK_LIBRARIES nat
102 )
103
104 add_vpp_plugin(det44
105   SOURCES
106   det44/det44.c
107   det44/det44_cli.c
108   det44/det44_api.c
109   det44/det44_in2out.c
110   det44/det44_out2in.c
111
112   MULTIARCH_SOURCES
113   det44/det44_in2out.c
114   det44/det44_out2in.c
115
116   API_FILES
117   det44/det44.api
118   nat_types.api
119
120   LINK_LIBRARIES nat
121 )
122
123 add_vpp_plugin(nat64
124   SOURCES
125   nat_syslog.c
126   nat64/nat64.c
127   nat64/nat64_db.c
128   nat64/nat64_cli.c
129   nat64/nat64_api.c
130   nat64/nat64_in2out.c
131   nat64/nat64_out2in.c
132
133   MULTIARCH_SOURCES
134   nat64/nat64_in2out.c
135   nat64/nat64_out2in.c
136
137   API_FILES
138   nat64/nat64.api
139   nat_types.api
140
141   LINK_LIBRARIES nat
142 )