API / CLI event-log tracing
[vpp.git] / src / vlib / 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 ##############################################################################
15 # Generate vlib/config.h
16 ##############################################################################
17 set(PRE_DATA_SIZE 128 CACHE STRING "Buffer headroom size.")
18 configure_file(
19   ${CMAKE_SOURCE_DIR}/vlib/config.h.in
20   ${CMAKE_BINARY_DIR}/vlib/config.h
21 )
22 install(
23   FILES ${CMAKE_BINARY_DIR}/vlib/config.h
24   DESTINATION include/vlib
25   COMPONENT vpp-dev
26 )
27
28 ##############################################################################
29 # vlib shared library
30 ##############################################################################
31 add_vpp_library(vlib
32   SOURCES
33   buffer.c
34   buffer_serialize.c
35   cli.c
36   counter.c
37   error.c
38   format.c
39   i2c.c
40   init.c
41   linux/pci.c
42   linux/physmem.c
43   linux/vfio.c
44   log.c
45   main.c
46   node.c
47   node_cli.c
48   node_format.c
49   pci/pci.c
50   threads.c
51   threads_cli.c
52   trace.c
53   unix/cj.c
54   unix/cli.c
55   unix/input.c
56   unix/main.c
57   unix/plugin.c
58   unix/util.c
59
60   INSTALL_HEADERS
61   buffer_funcs.h
62   buffer.h
63   buffer_node.h
64   cli_funcs.h
65   cli.h
66   counter.h
67   counter_types.h
68   defs.h
69   error_funcs.h
70   error.h
71   format_funcs.h
72   global_funcs.h
73   i2c.h
74   init.h
75   linux/vfio.h
76   log.h
77   main.h
78   node_funcs.h
79   node.h
80   pci/pci_config.h
81   pci/pci.h
82   physmem_funcs.h
83   physmem.h
84   threads.h
85   trace_funcs.h
86   trace.h
87   unix/cj.h
88   unix/mc_socket.h
89   unix/plugin.h
90   unix/unix.h
91   vlib.h
92
93   LINK_LIBRARIES vppinfra svm ${CMAKE_DL_LIBS}
94 )