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 | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 25 | add_vpp_executable(vpp_api_test ENABLE_EXPORTS |
| 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 |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 31 | |
| 32 | LINK_LIBRARIES |
| 33 | vlibmemoryclient |
| 34 | svm |
| 35 | vatplugin |
| 36 | vppinfra |
| 37 | Threads::Threads |
| 38 | rt m dl crypto |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 39 | ) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 40 | |
| 41 | ############################################################################## |
| 42 | # vpp_json_test |
| 43 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 44 | add_vpp_executable(vpp_json_test ENABLE_EXPORTS |
| 45 | SOURCES json_format.c json_test.c |
| 46 | LINK_LIBRARIES vppinfra m |
| 47 | ) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 48 | |
| 49 | ############################################################################## |
| 50 | # vat headers |
| 51 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 52 | install(FILES vat.h json_format.h DESTINATION include/vat) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 53 | |
| 54 | ############################################################################## |
| 55 | # restart |
| 56 | ############################################################################## |
Damjan Marion | 4553c95 | 2018-08-26 11:04:40 +0200 | [diff] [blame] | 57 | add_vpp_executable(vpp_restart |
| 58 | SOURCES restart.c |
| 59 | LINK_LIBRARIES svm svmdb vppinfra Threads::Threads rt |
| 60 | ) |
Mohsin Kazmi | 99ddcc3 | 2018-08-22 10:54:42 +0200 | [diff] [blame] | 61 | |