nat: move deterministic nat to det44 sub feature
[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/alloc.c
19
20   INSTALL_HEADERS
21   lib/alloc.h
22 )
23
24 add_vpp_plugin(nat
25   SOURCES
26   nat.c
27   nat_api.c
28   in2out.c
29   in2out_ed.c
30   out2in.c
31   out2in_ed.c
32   nat_ipfix_logging.c
33   nat_dpo.c
34   nat44_cli.c
35   nat44_handoff.c
36   nat44_hairpinning.c
37   nat44_classify.c
38   nat64.c
39   nat64_cli.c
40   nat64_in2out.c
41   nat64_out2in.c
42   nat64_db.c
43   nat_affinity.c
44   nat_format.c
45   nat_syslog.c
46   nat_ha.c
47
48   MULTIARCH_SOURCES
49   in2out.c
50   in2out_ed.c
51   nat44_classify.c
52   nat44_hairpinning.c
53   nat44_handoff.c
54   nat64_in2out.c
55   nat64_out2in.c
56   out2in.c
57   out2in_ed.c
58
59   API_FILES
60   nat.api
61   nat_types.api
62
63   API_TEST_SOURCES
64   nat_test.c
65
66   INSTALL_HEADERS
67   nat_all_api_h.h
68   nat_msg_enum.h
69 )
70
71 add_vpp_plugin(dslite
72   SOURCES
73   nat_syslog.c
74   dslite/dslite_api.c
75   dslite/dslite_dpo.c
76   dslite/dslite.c
77   dslite/dslite_in2out.c
78   dslite/dslite_out2in.c
79   dslite/dslite_cli.c
80   dslite/dslite_ce_encap.c
81   dslite/dslite_ce_decap.c
82
83   MULTIARCH_SOURCES
84   dslite/dslite_ce_decap.c
85   dslite/dslite_ce_encap.c
86   dslite/dslite_in2out.c
87   dslite/dslite_out2in.c
88
89   API_FILES
90   dslite/dslite.api
91
92   LINK_LIBRARIES nat
93 )
94
95 add_vpp_plugin(nat66
96   SOURCES
97   nat_syslog.c
98   nat66/nat66.c
99   nat66/nat66_cli.c
100   nat66/nat66_api.c
101   nat66/nat66_in2out.c
102   nat66/nat66_out2in.c
103
104   MULTIARCH_SOURCES
105   nat66/nat66_in2out.c
106   nat66/nat66_out2in.c
107
108   API_FILES
109   nat66/nat66.api
110   nat_types.api
111
112   LINK_LIBRARIES nat
113 )
114
115 add_vpp_plugin(det44
116   SOURCES
117   det44/det44.c
118   det44/det44_cli.c
119   det44/det44_api.c
120   det44/det44_in2out.c
121   det44/det44_out2in.c
122
123   MULTIARCH_SOURCES
124   det44/det44_in2out.c
125   det44/det44_out2in.c
126
127   API_FILES
128   det44/det44.api
129   nat_types.api
130
131   LINK_LIBRARIES nat
132 )