summaryrefslogtreecommitdiff
path: root/monitor/gdu/meson.build
blob: ba86563199d0f501fd91b8d8ae06fa7c83c1e52e (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
gdu_monitor = files('gdu.monitor')

install_data(
  gdu_monitor,
  install_dir: gvfs_remote_volume_monitors_dir
)

service = gvfs_namespace + '.GduVolumeMonitor.service'

gdu_service = configure_file(
  input: service + '.in',
  output: service,
  install: true,
  install_dir: dbus_service_dir,
  configuration: service_conf
)

if install_systemd_user_unit_dir
  service = 'gvfs-gdu-volume-monitor.service'

  configure_file(
    input: service + '.in',
    output: service,
    install: true,
    install_dir: systemd_user_unit_dir,
    configuration: service_conf
  )
endif

sources = files(
  'gdu-volume-monitor-daemon.c',
  'ggdudrive.c',
  'ggdumount.c',
  'ggduvolume.c',
  'ggduvolumemonitor.c'
)

deps = glib_deps + [
  gdu_dep,
  gudev_dep,
  libgvfscommon_dep,
  libgvfscommon_monitor_dep,
  libgvfsproxyvolumemonitordaemon_noin_dep
]

cflags = [
  '-DG_LOG_DOMAIN="GVFS-Gdu"',
  '-DGDU_API_IS_SUBJECT_TO_CHANGE',
  '-DGIO_MODULE_DIR="@0@"'.format(gio_modules_dir),
  '-DGVFS_LOCALEDIR="@0@"'.format(gvfs_localedir)
]

executable(
  'gvfs-gdu-volume-monitor',
  sources,
  include_directories: top_inc,
  dependencies: deps,
  c_args: cflags,
  install: true,
  install_rpath: gvfs_rpath,
  install_dir: gvfs_libexecdir
)