diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-09-24 13:28:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-09-24 13:28:37 +0000 |
commit | 7452ef6cb7be56a054f4bed2d1846ba874ab717c (patch) | |
tree | 2fe4f9f0a7f41909095caaf8c22b9b9b058b8a93 /hicn-plugin | |
parent | 70a51ce9c175019f8394f523100a3c7066d3a4bc (diff) | |
parent | a0da41b243661a039481d2c254d7db8f55f18d2b (diff) |
Merge "[HICN-279] Added libmemif packaging."
Diffstat (limited to 'hicn-plugin')
-rw-r--r-- | hicn-plugin/CMakeLists.txt | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/hicn-plugin/CMakeLists.txt b/hicn-plugin/CMakeLists.txt index 15df64952..4a6d5e47d 100644 --- a/hicn-plugin/CMakeLists.txt +++ b/hicn-plugin/CMakeLists.txt @@ -207,12 +207,29 @@ elseif (CMAKE_BUILD_TYPE STREQUAL "Debug") 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/1908 -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/1908 -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/1908 -o ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py - ) + COMMAND + bash -c + "if [ ! -e ${CMAKE_BINARY_DIR}/vapi_json_parser.py ]; then + curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_json_parser.py?h=stable/1908 -o ${CMAKE_BINARY_DIR}/vapi_json_parser.py; + fi;" +) +execute_process( + COMMAND + bash -c + "if [ ! -e ${CMAKE_BINARY_DIR}/vapi_c_gen.py ]; then + curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_c_gen.py?h=stable/1908 -o ${CMAKE_BINARY_DIR}/vapi_c_gen.py; + fi;" +) +execute_process( + COMMAND + bash -c + "if [ ! -e ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py ]; then + curl https://git.fd.io/vpp/plain/src/vpp-api/vapi/vapi_cpp_gen.py?h=stable/1908 -o ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py; + fi;" +) add_custom_command( COMMAND chmod +x ${CMAKE_BINARY_DIR}/vapi_json_parser.py ${CMAKE_BINARY_DIR}/vapi_c_gen.py ${CMAKE_BINARY_DIR}/vapi_cpp_gen.py |