summaryrefslogtreecommitdiffstats
path: root/plugins/media-keys/meson.build
blob: 92d471a11ffae8a47bb4bbbfe508696cbef25aa4 (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
sources = files(
  'bus-watch-namespace.c',
  'gsd-media-keys-manager.c',
  'main.c',
  'mpris-controller.c'
)

marshal = 'gsd-marshal'

sources += gnome.genmarshal(
  marshal,
  sources: marshal + '.list',
  prefix: marshal.underscorify(),
  internal: true
)

sources += gnome.gdbus_codegen(
  'shell-key-grabber',
  'org.gnome.ShellKeyGrabber.xml',
  interface_prefix: 'org.gnome.',
  namespace: 'Shell'
)

deps = plugins_deps + [
  gio_unix_dep,
  gsettings_desktop_dep,
  libcanberra_gtk_dep,
  libcommon_dep,
  gnome_desktop_dep,
  libgvc_dep,
  libpulse_mainloop_glib_dep,
  m_dep,
  upower_glib_dep
]

if enable_gudev
  deps += gudev_dep
endif

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

program = 'audio-selection-test'

executable(
  program,
  program + '.c',
  include_directories: top_inc,
  dependencies: deps
)