2020-06-17 23:09:25 +00:00
|
|
|
lock_protocol = 'lock_protocol.x'
|
|
|
|
|
2020-06-17 23:00:56 +00:00
|
|
|
lock_driver_sources = [
|
|
|
|
'lock_manager.c',
|
|
|
|
'lock_driver_nop.c',
|
|
|
|
'domain_lock.c',
|
|
|
|
]
|
|
|
|
|
2020-06-17 23:09:25 +00:00
|
|
|
lock_driver_lockd_sources = [
|
|
|
|
'lock_driver_lockd.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
lock_protocol_generated = []
|
|
|
|
|
|
|
|
lock_protocol_generated += custom_target(
|
|
|
|
'lock_protocol.h',
|
|
|
|
input: lock_protocol,
|
|
|
|
output: 'lock_protocol.h',
|
|
|
|
command: [
|
|
|
|
genprotocol_prog, rpcgen_prog, '-h', '@INPUT@', '@OUTPUT@',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
lock_protocol_generated += custom_target(
|
|
|
|
'lock_protocol.c',
|
|
|
|
input: lock_protocol,
|
|
|
|
output: 'lock_protocol.c',
|
|
|
|
command: [
|
|
|
|
genprotocol_prog, rpcgen_prog, '-c', '@INPUT@', '@OUTPUT@',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-06-17 23:00:56 +00:00
|
|
|
lock_driver_lib = static_library(
|
|
|
|
'virt_lock_driver',
|
|
|
|
[
|
|
|
|
lock_driver_sources,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
],
|
|
|
|
)
|
2020-07-27 06:39:38 +00:00
|
|
|
|
|
|
|
libvirt_libs += lock_driver_lib
|
2020-06-17 23:09:25 +00:00
|
|
|
|
|
|
|
if conf.has('WITH_LIBVIRTD')
|
|
|
|
lockd_lib_impl = static_library(
|
|
|
|
'lockd_impl',
|
|
|
|
[
|
|
|
|
files(lock_driver_lockd_sources),
|
|
|
|
lock_protocol_generated,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
rpc_dep,
|
|
|
|
sasl_dep,
|
|
|
|
src_dep,
|
|
|
|
xdr_dep,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
endif
|