Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azblk handler version 1 #540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ option(with-qcow "build qcow handler" true)
option(with-rbd "build Ceph rbd handler" true)
option(with-zbc "build zbc handler" true)
option(with-fbo "build fbo handler" true)
option(with-azblk "build Azblk handler" true)

find_library(LIBNL_LIB nl-3)
find_library(LIBNL_GENL_LIB nl-genl-3)
Expand Down Expand Up @@ -271,6 +272,31 @@ if (with-qcow)
install(TARGETS handler_qcow DESTINATION ${CMAKE_INSTALL_LIBDIR}/tcmu-runner)
endif (with-qcow)

if (with-azblk)
find_library(LIBCURL curl)
find_library(LIBUV uv)
find_library(LIBCONFIG config)

add_library(handler_azblk
SHARED
azblk.c
)
set_target_properties(handler_azblk
PROPERTIES
PREFIX ""
)
target_include_directories(handler_azblk
PUBLIC ${GLIB_INCLUDE_DIRS}
PUBLIC ${PROJECT_SOURCE_DIR}/ccan
)
target_link_libraries(handler_azblk
${LIBCURL}
${LIBUV}
${LIBCONFIG}
)
install(TARGETS handler_azblk DESTINATION ${CMAKE_INSTALL_LIBDIR}/tcmu-runner)
endif (with-azblk)

# stamp out a header file to pass some of the CMake settings
# to the source code
configure_file (
Expand Down
Loading