summaryrefslogtreecommitdiffstats
path: root/plugins/spell/meson.build
blob: 8ce7634b7946e7e5b64fa4d4f7dbec7584f0c117 (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
libspell_sources = files(
  'gedit-spell-app-activatable.c',
  'gedit-spell-plugin.c',
)

libspell_deps = [
  libgedit_dep,
  gspell_dep,
]

subdir('resources')

libspell_sha = shared_module(
  'spell',
  sources: libspell_sources,
  include_directories: root_include_dir,
  dependencies: libspell_deps,
  install: true,
  install_dir: join_paths(
    pkglibdir,
    'plugins',
  ),
  name_suffix: module_suffix,
)

spell_gschema_file = files('org.gnome.gedit.plugins.spell.gschema.xml')
install_data(
  spell_gschema_file,
  install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0/schemas')
)

if xmllint.found()
  test(
    'validate-spell-gschema',
    xmllint,
    args: [
      '--noout',
      '--dtdvalid', gschema_dtd,
      spell_gschema_file,
    ]
  )
endif

custom_target(
  'spell.plugin',
  input: 'spell.plugin.desktop.in',
  output: 'spell.plugin',
  command: msgfmt_plugin_cmd,
  install: true,
  install_dir: join_paths(
    pkglibdir,
    'plugins',
  )
)