Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +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 | # vat plugin shared library |
| 16 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 17 | add_vpp_library(vatplugin |
| 18 | SOURCES plugin_api.c |
| 19 | LINK_LIBRARIES vppinfra |
| 20 | ) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 21 | |
| 22 | ############################################################################## |
| 23 | # vpp_api_test |
| 24 | ############################################################################## |
Damjan Marion | b414d0d | 2018-09-10 10:11:17 +0200 | [diff] [blame] | 25 | add_vpp_executable(vpp_api_test ENABLE_EXPORTS |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 26 | SOURCES |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 27 | api_format.c |
| 28 | main.c |
| 29 | plugin.c |
| 30 | json_format.c |
Neale Ranns | 86327be | 2018-11-02 09:14:01 -0700 | [diff] [blame] | 31 | types.c |
Jakub Grajciar | 23a386b | 2020-02-26 11:01:43 +0100 | [diff] [blame] | 32 | ip_types_api.c |
Neale Ranns | 3ec09e9 | 2020-02-24 13:32:30 +0000 | [diff] [blame] | 33 | ip_types.c |
Jakub Grajciar | 23a386b | 2020-02-26 11:01:43 +0100 | [diff] [blame] | 34 | protocols.def |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 35 | |
juraj.linkes | a409f27 | 2018-12-04 13:03:15 +0100 | [diff] [blame] | 36 | DEPENDS api_headers |
| 37 | |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 38 | LINK_LIBRARIES |
| 39 | vlibmemoryclient |
| 40 | svm |
| 41 | vatplugin |
| 42 | vppinfra |
| 43 | Threads::Threads |
Damjan Marion | bea6993 | 2021-11-11 19:46:08 +0100 | [diff] [blame] | 44 | dl |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 45 | ) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 46 | |
| 47 | ############################################################################## |
| 48 | # vpp_json_test |
| 49 | ############################################################################## |
Damjan Marion | 833de8c | 2018-09-07 12:39:02 +0200 | [diff] [blame] | 50 | add_vpp_executable(vpp_json_test ENABLE_EXPORTS NO_INSTALL |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 51 | SOURCES json_format.c json_test.c |
| 52 | LINK_LIBRARIES vppinfra m |
| 53 | ) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 54 | |
| 55 | ############################################################################## |
| 56 | # vat headers |
| 57 | ############################################################################## |
Damjan Marion | 833de8c | 2018-09-07 12:39:02 +0200 | [diff] [blame] | 58 | install( |
| 59 | FILES vat.h json_format.h |
Nick Brown | e3cf4d0 | 2021-09-15 14:25:40 +0100 | [diff] [blame] | 60 | DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vat |
Damjan Marion | 833de8c | 2018-09-07 12:39:02 +0200 | [diff] [blame] | 61 | COMPONENT vpp-dev |
| 62 | ) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 63 | |
| 64 | ############################################################################## |
| 65 | # restart |
| 66 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 67 | add_vpp_executable(vpp_restart |
| 68 | SOURCES restart.c |
| 69 | LINK_LIBRARIES svm svmdb vppinfra Threads::Threads rt |
| 70 | ) |