meson.build 1.19 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
db_api = static_library(
  'db_api',
  'DatabaseLock.cxx',
  'Selection.cxx',
  include_directories: inc,
)

db_api_dep = declare_dependency(
  link_with: db_api,
)

12 13 14 15 16
if not enable_database
  db_glue_dep = db_api_dep
  subdir_done()
endif

17 18 19 20 21 22 23 24 25 26 27 28 29
subdir('plugins')

db_glue_sources = [
  'Count.cxx',
  'update/UpdateDomain.cxx',
  'update/Config.cxx',
  'update/Service.cxx',
  'update/Queue.cxx',
  'update/UpdateIO.cxx',
  'update/Editor.cxx',
  'update/Walk.cxx',
  'update/UpdateSong.cxx',
  'update/Container.cxx',
30
  'update/Playlist.cxx',
31 32
  'update/Remove.cxx',
  'update/ExcludeList.cxx',
33
  'update/VirtualDirectory.cxx',
34
  'update/SpecialDirectory.cxx',
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
  'DatabaseGlue.cxx',
  'Configured.cxx',
  'DatabaseSong.cxx',
  'DatabasePrint.cxx',
  'DatabaseQueue.cxx',
  'DatabasePlaylist.cxx',
]

if enable_inotify
  db_glue_sources += [
    'update/InotifyDomain.cxx',
    'update/InotifySource.cxx',
    'update/InotifyQueue.cxx',
    'update/InotifyUpdate.cxx',
  ]
endif

db_glue = static_library(
  'db_glue',
  db_glue_sources,
  include_directories: inc,
56 57
  dependencies: [
    boost_dep,
58
    log_dep,
59
  ],
60 61 62 63 64 65 66 67
)

db_glue_dep = declare_dependency(
  link_with: db_glue,
  dependencies: [
    db_plugins_dep,
  ],
)