nat: refactor of port/address allocation functions
[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(NAT_SRCS
15   lib/alloc.c
16 )
17
18 set(NAT_HEADERS
19   lib/alloc.h
20 )
21
22 add_vpp_library(nat
23   SOURCES ${NAT_SRCS}
24   LINK_LIBRARIES m
25   INSTALL_HEADERS ${NAT_HEADERS}
26   COMPONENT libnat
27 )
28
29 add_vpp_plugin(nat
30   SOURCES
31   nat.c
32   nat_api.c
33   in2out.c
34   in2out_ed.c
35   out2in.c
36   out2in_ed.c
37   nat_ipfix_logging.c
38   nat_det.c
39   nat_det_in2out.c
40   nat_det_out2in.c
41   nat_dpo.c
42   nat44_cli.c
43   nat44_handoff.c
44   nat44_hairpinning.c
45   nat44_classify.c
46   nat64.c
47   nat64_cli.c
48   nat64_in2out.c
49   nat64_out2in.c
50   nat64_db.c
51   dslite_dpo.c
52   dslite.c
53   dslite_in2out.c
54   dslite_out2in.c
55   dslite_cli.c
56   dslite_ce_encap.c
57   dslite_ce_decap.c
58   nat66.c
59   nat66_cli.c
60   nat66_in2out.c
61   nat66_out2in.c
62   nat_affinity.c
63   nat_format.c
64   nat_syslog.c
65   nat_ha.c
66
67   MULTIARCH_SOURCES
68   dslite_ce_decap.c
69   dslite_ce_encap.c
70   dslite_in2out.c
71   dslite_out2in.c
72   in2out.c
73   in2out_ed.c
74   nat44_classify.c
75   nat44_hairpinning.c
76   nat44_handoff.c
77   nat64_in2out.c
78   nat64_out2in.c
79   nat66_in2out.c
80   nat66_out2in.c
81   nat_det_in2out.c
82   nat_det_out2in.c
83   out2in.c
84   out2in_ed.c
85
86   API_FILES
87   nat.api
88
89   API_TEST_SOURCES
90   nat_test.c
91
92   INSTALL_HEADERS
93   nat_all_api_h.h
94   nat_msg_enum.h
95 )