summaryrefslogtreecommitdiff
path: root/plugins/datetime/meson.build
blob: a21d48f4e76d673c451cf6254a07ff5904dfea31 (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
desktop = 'org.gnome.SettingsDaemon.Datetime.desktop'

configure_file(
  input: desktop + '.in',
  output: desktop,
  configuration: plugins_conf,
  install: true,
  install_dir: gsd_xdg_autostart
)

install_data(
  'backward',
  install_dir: join_paths(gsd_pkgdatadir, 'datetime')
)

sources = files(
  'gsd-datetime-manager.c',
  'gsd-timezone-monitor.c',
  'main.c',
  'tz.c',
  'weather-tz.c'
)

sources += gnome.gdbus_codegen(
  'timedated',
  'timedated1-interface.xml',
  interface_prefix: 'org.freedesktop.'
)

deps = plugins_deps + [
  geocode_glib_dep,
  gweather_dep,
  libgeoclue_dep,
  libnotify_dep,
  m_dep,
  polkit_gobject_dep
]

cflags += ['-DGNOMECC_DATA_DIR="@0@"'.format(gsd_pkgdatadir)]

executable(
  'gsd-' + plugin_name,
  sources,
  include_directories: [top_inc, common_inc],
  dependencies: deps,
  c_args: cflags,
  install: true,
  install_dir: gsd_libexecdir
)