api: API trace improvements
[vpp.git] / src / vlibmemory / 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 add_vpp_library (vlibmemory
15   SOURCES
16   memory_api.c
17   memory_shared.c
18   memory_client.c
19   socket_client.c
20   socket_api.c
21   memclnt_api.c
22   vlib_api_cli.c
23   vlib_api.c
24   ../vlibapi/api_shared.c
25   ../vlibapi/node_serialize.c
26
27   INSTALL_HEADERS
28   vl_memory_msg_enum.h
29   memory_shared.h
30   vl_memory_api_h.h
31   socket_client.h
32   memory_api.h
33   api.h
34   memory_client.h
35   socket_api.h
36
37   API_FILES
38   memclnt.api
39   vlib.api
40
41   LINK_LIBRARIES vppinfra svm vlib
42 )
43 add_dependencies(vlibmemory vlibmemory_api_headers)
44
45 add_vpp_library (vlibmemoryclient
46   SOURCES
47   memory_shared.c
48   memory_client.c
49   socket_client.c
50   ../vlibapi/api_shared.c
51   ../vlibapi/node_serialize.c
52
53   LINK_LIBRARIES vppinfra svm
54 )
55 add_dependencies(vlibmemoryclient vlibmemory_api_headers)
56
57 add_vat_test_library(vlib
58   vlibapi_test.c
59 )
60 ##############################################################################
61 # VAT2 plugins
62 ##############################################################################
63 add_vpp_test_library(vlibmemoryclient
64   memclnt.api
65 )