summaryrefslogtreecommitdiffstats
path: root/hicn-plugin
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-08-14 10:44:44 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-08-14 11:21:19 +0200
commit1d896a7f11998346b7ceb0385b1c94ecb5c90c2e (patch)
treef6f9ff3359ea8f42a11ef9ed9f7abfad6ba86ddf /hicn-plugin
parentaf6944a35b97a971139d93da49e09e023005f633 (diff)
[HICN-259] Moving header files to the package hicn-plugin-dev
Change-Id: I4859025964862dbb0bd2113edb24e716ccb7c5cc Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin')
-rw-r--r--hicn-plugin/CMakeLists.txt18
-rw-r--r--hicn-plugin/README.md1
2 files changed, 10 insertions, 9 deletions
diff --git a/hicn-plugin/CMakeLists.txt b/hicn-plugin/CMakeLists.txt
index 8c859cdd9..04ca6df9b 100644
--- a/hicn-plugin/CMakeLists.txt
+++ b/hicn-plugin/CMakeLists.txt
@@ -176,7 +176,7 @@ set(HICN_API_TEST_SOURCE_FILES
src/hicn_api_test.c
src/error.c)
-set(HICN_API_TEST_HEADER_FILES
+set(HICN_API_HEADER_FILES
src/hicn_msg_enum.h
src/hicn_all_api_h.h
src/hicn_api.h
@@ -209,9 +209,11 @@ endif()
execute_process(COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/hicn)
# These files are missing from vpp binary distribution
execute_process(
- COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_json_parser.py?h=stable/1901 -o ${CMAKE_BINARY_DIR}/vapi_json_parser.py
- COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_c_gen.py?h=stable/1901 -o ${CMAKE_BINARY_DIR}/vapi_c_gen.py
- COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_cpp_gen.py?h=stable/1901 -o ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py
+ COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_json_parser.py?h=stable/1904 -o ${CMAKE_BINARY_DIR}/vapi_json_parser.py
+ COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_c_gen.py?h=stable/1904 -o ${CMAKE_BINARY_DIR}/vapi_c_gen.py
+ COMMAND curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_cpp_gen.py?h=stable/1904 -o ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py
+ COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/vnet/adj
+ COMMAND curl https://git.fd.io/vpp/plain/src/vnet/adj/adj_midchain.h?h=stable/1904 -o ${CMAKE_CURRENT_BINARY_DIR}/vnet/adj/adj_midchain.h
)
add_custom_command(
@@ -237,7 +239,7 @@ add_library(hicn_plugin SHARED
${HICN_API_GENERATED_FILES}
${HICN_VAPI_GENERATED_FILES})
-file(COPY ${HICN_API_TEST_HEADER_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/vpp_plugins/hicn)
+file(COPY ${HICN_API_HEADER_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/vpp_plugins/hicn)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/vpp_plugins)
file(COPY ${LIBHICN_HEADER_FILES_SRC} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/hicn)
@@ -275,10 +277,10 @@ install(TARGETS hicn_api_test_plugin
DESTINATION ${VPP_INSTALL_API_TEST_PLUGIN}
COMPONENT ${HICN_PLUGIN})
-install(FILES ${HICN_API_TEST_HEADER_FILES} ${HICN_API_GENERATED_FILES}
+install(FILES ${HICN_API_HEADER_FILES} ${HICN_API_GENERATED_FILES}
DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/vpp_plugins/hicn
- COMPONENT ${HICN_PLUGIN})
+ COMPONENT ${HICN_PLUGIN}-dev)
install(FILES ${HICN_VAPI_GENERATED_FILES}
DESTINATION ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/vapi
- COMPONENT ${HICN_PLUGIN})
+ COMPONENT ${HICN_PLUGIN}-dev)
diff --git a/hicn-plugin/README.md b/hicn-plugin/README.md
index 2208f5ada..d6a4dbc2d 100644
--- a/hicn-plugin/README.md
+++ b/hicn-plugin/README.md
@@ -45,7 +45,6 @@ $ sudo make install
CMAKE variables:
- CMAKE_INSTALL_PREFIX -- set the install directory for the hicn-plugin. This is the common path to the lib folder containing vpp_plugins and vpp_api_test_plugins folders. Default is /usr/local.
- VPP_HOME -- set the directory containing the include and lib directories of vpp.
-- HICN_API_TEST_HEADER_FILES -- set the install directory for the header files. Default is <vpp install dir>/include/vpp_plugins/hicn
```
## Using hICN plugin ##