Drop build qemu driver
parent
b2dbd5fa67
commit
66004b2c8e
|
@ -4,7 +4,6 @@ project(vitastor)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
set(QEMU_PLUGINDIR qemu CACHE STRING "QEMU plugin directory suffix (qemu-kvm on RHEL)")
|
|
||||||
set(WITH_ASAN false CACHE BOOL "Build with AddressSanitizer")
|
set(WITH_ASAN false CACHE BOOL "Build with AddressSanitizer")
|
||||||
if("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/local/?$")
|
if("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/local/?$")
|
||||||
if(EXISTS "/etc/debian_version")
|
if(EXISTS "/etc/debian_version")
|
||||||
|
@ -36,7 +35,6 @@ string(REGEX REPLACE "([\\/\\-]D) *NDEBUG" "" CMAKE_C_FLAGS_RELWITHDEBINFO "${CM
|
||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
pkg_check_modules(LIBURING REQUIRED liburing)
|
pkg_check_modules(LIBURING REQUIRED liburing)
|
||||||
pkg_check_modules(GLIB REQUIRED glib-2.0)
|
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
../
|
../
|
||||||
|
@ -123,28 +121,6 @@ add_executable(vitastor-dump-journal
|
||||||
dump_journal.cpp crc32c.c
|
dump_journal.cpp crc32c.c
|
||||||
)
|
)
|
||||||
|
|
||||||
# qemu_driver.so
|
|
||||||
add_library(qemu_proxy STATIC qemu_proxy.cpp)
|
|
||||||
target_compile_options(qemu_proxy PUBLIC -fPIC)
|
|
||||||
target_include_directories(qemu_proxy PUBLIC
|
|
||||||
../qemu/b/qemu
|
|
||||||
../qemu/include
|
|
||||||
${GLIB_INCLUDE_DIRS}
|
|
||||||
)
|
|
||||||
target_link_libraries(qemu_proxy
|
|
||||||
vitastor_client
|
|
||||||
)
|
|
||||||
add_library(qemu_vitastor SHARED
|
|
||||||
qemu_driver.c
|
|
||||||
)
|
|
||||||
target_link_libraries(qemu_vitastor
|
|
||||||
qemu_proxy
|
|
||||||
)
|
|
||||||
set_target_properties(qemu_vitastor PROPERTIES
|
|
||||||
PREFIX ""
|
|
||||||
OUTPUT_NAME "block-vitastor"
|
|
||||||
)
|
|
||||||
|
|
||||||
### Test stubs
|
### Test stubs
|
||||||
|
|
||||||
# stub_osd, stub_bench, osd_test
|
# stub_osd, stub_bench, osd_test
|
||||||
|
@ -185,4 +161,3 @@ add_executable(test_allocator test_allocator.cpp allocator.cpp)
|
||||||
|
|
||||||
install(TARGETS vitastor-osd vitastor-dump-journal vitastor-nbd vitastor-rm RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
install(TARGETS vitastor-osd vitastor-dump-journal vitastor-nbd vitastor-rm RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
install(TARGETS fio_vitastor fio_vitastor_blk fio_vitastor_sec vitastor_blk vitastor_client LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(TARGETS fio_vitastor fio_vitastor_blk fio_vitastor_sec vitastor_blk vitastor_client LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
install(TARGETS qemu_vitastor LIBRARY DESTINATION /usr/${CMAKE_INSTALL_LIBDIR}/${QEMU_PLUGINDIR})
|
|
||||||
|
|
Loading…
Reference in New Issue