meson.build 468 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
nfs_dep = dependency('libnfs', version: '>= 1.11', required: get_option('nfs'))
conf.set('ENABLE_NFS', nfs_dep.found())
if not nfs_dep.found()
  subdir_done()
endif

nfs = static_library(
  'nfs',
  'Connection.cxx',
  'Error.cxx',
  'Manager.cxx',
  'Glue.cxx',
  'Base.cxx',
  'FileReader.cxx',
  'Blocking.cxx',
  include_directories: inc,
  dependencies: [
    nfs_dep,
  ],
)

nfs_dep = declare_dependency(
  link_with: nfs,
  dependencies: [
    nfs_dep,
  ],
)