File: meson.build

package info (click to toggle)
eog 47.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,872 kB
  • sloc: ansic: 27,038; python: 347; xml: 28; makefile: 13; javascript: 9
file content (34 lines) | stat: -rw-r--r-- 886 bytes parent folder | download | duplicates (3)
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
plugins = [
  'fullscreen',
  'reload',
]

if enable_libexif
  plugins += 'statusbar-date'
endif

foreach plugin: plugins
  shared_module(
    plugin,
    sources: f'@plugin@/eog-@plugin@-plugin.c',
    include_directories: top_inc,
    dependencies: libeog_dep,
    install: true,
    install_dir: eog_pluginsdir,
  )


  # FIXME: Remove `args` parameter when gettext acquires plugin support.
  #        http://lists.gnu.org/archive/html/bug-gettext/2017-06/msg00001.html
  # NOTE:  We need to keep the .desktop suffix on the source file to be able
  #        to extract translatable strings. .plugin is not recognized.
  i18n.merge_file(
    input: f'@plugin@/@plugin@.plugin.desktop.in',
    output: f'@plugin@.plugin',
    po_dir: po_dir,
    type: 'desktop',
    args: ['--keyword=Name', '--keyword=Description'],
    install: true,
    install_dir: eog_pluginsdir,
  )
endforeach