cmake: Fix VAPI .hpp generation

Change-Id: I2bec3b2511f00d017f9b3a727809631695222c1a
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:
Mohsin Kazmi
2018-08-27 13:17:09 +02:00
parent 2ba9dcf408
commit b3abec7c1f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ foreach(f ${VPP_API_FILES})
OUTPUT ${output}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/vapi_cpp_gen.py
ARGS --remove-path ${input}
ARGS --gen-h-prefix=vapi --remove-path ${input}
DEPENDS ${input} vapi_cpp_gen.py vapi_json_parser.py
COMMENT "Generating VAPI C++ header ${output}"
)
+1 -1
View File
@@ -136,7 +136,7 @@ def gen_json_header(parser, logger, j, io, gen_h_prefix, add_debug_comments):
print("#define %s" % include_guard)
print("")
print("#include <vapi/vapi.hpp>")
print("#include <%s%s>" % (gen_h_prefix, json_to_c_header_name(j)))
print("#include <%s%s>" % (gen_h_prefix, json_to_c_header_name(f)))
print("")
print("namespace vapi {")
print("")