Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 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 | ) |
Damjan Marion | 833de8c | 2018-09-07 12:39:02 +0200 | [diff] [blame] | 22 | install( |
| 23 | FILES ${CMAKE_BINARY_DIR}/vlib/config.h |
| 24 | DESTINATION include/vlib |
| 25 | COMPONENT vpp-dev |
| 26 | ) |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 27 | |
| 28 | ############################################################################## |
| 29 | # vlib shared library |
| 30 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 31 | add_vpp_library(vlib |
| 32 | SOURCES |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 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 |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 42 | linux/vfio.c |
| 43 | log.c |
| 44 | main.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 45 | node.c |
| 46 | node_cli.c |
| 47 | node_format.c |
| 48 | pci/pci.c |
Damjan Marion | 68b4da6 | 2018-09-30 18:26:20 +0200 | [diff] [blame^] | 49 | physmem.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 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 Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 57 | unix/plugin.c |
| 58 | unix/util.c |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 59 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 60 | INSTALL_HEADERS |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 61 | buffer_funcs.h |
| 62 | buffer.h |
| 63 | buffer_node.h |
| 64 | cli_funcs.h |
| 65 | cli.h |
| 66 | counter.h |
Ole Troan | 58492a8 | 2018-09-04 13:19:12 +0200 | [diff] [blame] | 67 | counter_types.h |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 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 |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 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 |
Damjan Marion | 612dd6a | 2018-07-30 12:45:07 +0200 | [diff] [blame] | 92 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 93 | LINK_LIBRARIES vppinfra svm ${CMAKE_DL_LIBS} |
| 94 | ) |