summaryrefslogtreecommitdiff
path: root/src/backend/plugins/config-gnome/meson.build
blob: 08acc1c13967c24fc070955e5c838a70860823bd (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
plugin_name = 'config-gnome'

if get_option(plugin_name)

plugin_src = [
  '@0@.c'.format(plugin_name),
]

plugin_data = [
  '@0@.plugin'.format(plugin_name),
]

plugin_lib = shared_module(
  plugin_name,
  plugin_src,
  include_directories: px_backend_inc,
  c_args: px_backend_c_args,
  dependencies: [peas_dep, px_backend_dep],
  install_dir: join_paths(px_plugins_dir, plugin_name),
  install: true,
  name_suffix: module_suffix,
)

# Starting with Meson 0.64 this can be replaced with fs.copyfile
custom_target(
  '@0@-data'.format(plugin_name),
  input: plugin_data,
  output: plugin_data,
  command: ['cp', '@INPUT@', '@OUTDIR@'],
  install_dir: join_paths(px_plugins_dir, plugin_name),
  install: true,
)

endif