blob: 72c73f3c2d86099e10ea0f51334eedcce674fa00 [file] [log] [blame]
Damjan Marion612dd6a2018-07-30 12:45:07 +02001# 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##############################################################################
17set(PRE_DATA_SIZE 128 CACHE STRING "Buffer headroom size.")
18configure_file(
19 ${CMAKE_SOURCE_DIR}/vlib/config.h.in
20 ${CMAKE_BINARY_DIR}/vlib/config.h
21)
Damjan Marion833de8c2018-09-07 12:39:02 +020022install(
23 FILES ${CMAKE_BINARY_DIR}/vlib/config.h
24 DESTINATION include/vlib
25 COMPONENT vpp-dev
26)
Damjan Marion612dd6a2018-07-30 12:45:07 +020027
28##############################################################################
29# vlib shared library
30##############################################################################
Damjan Marion4553c952018-08-26 11:04:40 +020031add_vpp_library(vlib
32 SOURCES
Damjan Marion612dd6a2018-07-30 12:45:07 +020033 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
Damjan Marion612dd6a2018-07-30 12:45:07 +020046 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
Damjan Marion612dd6a2018-07-30 12:45:07 +020057 unix/plugin.c
58 unix/util.c
Damjan Marion612dd6a2018-07-30 12:45:07 +020059
Damjan Marion4553c952018-08-26 11:04:40 +020060 INSTALL_HEADERS
Damjan Marion612dd6a2018-07-30 12:45:07 +020061 buffer_funcs.h
62 buffer.h
63 buffer_node.h
64 cli_funcs.h
65 cli.h
66 counter.h
Ole Troan58492a82018-09-04 13:19:12 +020067 counter_types.h
Damjan Marion612dd6a2018-07-30 12:45:07 +020068 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
Damjan Marion612dd6a2018-07-30 12:45:07 +020078 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
Damjan Marion612dd6a2018-07-30 12:45:07 +020092
Damjan Marion4553c952018-08-26 11:04:40 +020093 LINK_LIBRARIES vppinfra svm ${CMAKE_DL_LIBS}
94)