summaryrefslogtreecommitdiff
path: root/src/plugins/skipto/meson.build
blob: c5056a839b0d55d4d77be8970ca32e5bf5ebc3cb (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
plugin_name = 'skipto'

plugin_dir = join_paths(totem_pluginsdir, plugin_name)

plugin_files = files(
  'totem-' + plugin_name + '-plugin.c',
  'totem-time-entry.c',
  'totem-' + plugin_name + '.c'
)

plugin_files += gnome.compile_resources(
  'skiptoresources',
  'skipto.gresource.xml',
  export: true,
  source_dir: '.',
  c_name: 'skipto'
)

shared_module(
  plugin_name,
  sources: plugin_files,
  include_directories: plugins_incs,
  dependencies: plugins_deps,
  c_args: plugins_cflags,
  install: true,
  install_dir: plugin_dir
)

plugin_data = plugin_name + '.plugin'

custom_target(
  plugin_data,
  input: plugin_data + '.desktop.in',
  output: plugin_data,
  command: msgfmt_plugin_cmd,
  install: true,
  install_dir: plugin_dir
)