Skip to content
Snippets Groups Projects
Commit 4a8134c0 authored by Dmitry Ivanov's avatar Dmitry Ivanov
Browse files

feat(build): dump all include directories for box

This stores all of the include directories of box into a file
called box-include-args. We use this to generate certain FFI
bindings using rust-bindgen.

NO_DOC=internal
NO_TEST=internal
NO_CHANGELOG=internal
parent 36195597
No related branches found
No related tags found
No related merge requests found
......@@ -335,3 +335,10 @@ target_link_libraries(box box_error tuple stat xrow xlog vclock crc32 raft
${common_libraries})
add_dependencies(box build_bundled_libs generate_sql_files)
# Dump all include directories of libbox for bindgen.
get_target_property(box_include_dirs box INCLUDE_DIRECTORIES)
list(APPEND box_include_dirs ${PROJECT_SOURCE_DIR}/src/box)
list(TRANSFORM box_include_dirs PREPEND "-I ")
list(JOIN box_include_dirs " " box_include_args)
file(WRITE ${PROJECT_BINARY_DIR}/box-include-args ${box_include_args})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment