mirror of
https://github.com/GNOME/gedit
synced 2024-06-30 23:15:01 +00:00
Meson: plugins: spell: refactorings
This commit is contained in:
parent
753766882b
commit
16a14da052
|
@ -1,32 +1,24 @@
|
|||
libspell_sources = files(
|
||||
plugin_spell_sources = files(
|
||||
'gedit-spell-app-activatable.c',
|
||||
'gedit-spell-plugin.c',
|
||||
)
|
||||
|
||||
libspell_deps = [
|
||||
libgedit_dep,
|
||||
gspell_dep,
|
||||
]
|
||||
|
||||
subdir('resources')
|
||||
|
||||
libspell_sha = shared_module(
|
||||
shared_module(
|
||||
'spell',
|
||||
sources: libspell_sources,
|
||||
sources: plugin_spell_sources,
|
||||
include_directories: root_include_dir,
|
||||
dependencies: libspell_deps,
|
||||
dependencies: [libgedit_dep, gspell_dep],
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
'plugins',
|
||||
),
|
||||
install_dir: get_option('libdir') / 'gedit/plugins',
|
||||
name_suffix: module_suffix,
|
||||
)
|
||||
|
||||
spell_gschema_file = files('org.gnome.gedit.plugins.spell.gschema.xml')
|
||||
plugin_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')
|
||||
plugin_spell_gschema_file,
|
||||
install_dir: get_option('datadir') / 'glib-2.0/schemas',
|
||||
)
|
||||
|
||||
if xmllint.found()
|
||||
|
@ -36,7 +28,7 @@ if xmllint.found()
|
|||
args: [
|
||||
'--noout',
|
||||
'--dtdvalid', gschema_dtd,
|
||||
spell_gschema_file,
|
||||
plugin_spell_gschema_file,
|
||||
]
|
||||
)
|
||||
endif
|
||||
|
@ -47,8 +39,5 @@ custom_target(
|
|||
output: 'spell.plugin',
|
||||
command: msgfmt_plugin_cmd,
|
||||
install: true,
|
||||
install_dir: join_paths(
|
||||
pkglibdir,
|
||||
'plugins',
|
||||
)
|
||||
install_dir: get_option('libdir') / 'gedit/plugins',
|
||||
)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
libspell_res = gnome.compile_resources(
|
||||
plugin_spell_gresources = gnome.compile_resources(
|
||||
'gedit-spell-resources',
|
||||
'gedit-spell.gresource.xml',
|
||||
)
|
||||
|
||||
libspell_sources += [
|
||||
libspell_res.get(0),
|
||||
]
|
||||
plugin_spell_sources += plugin_spell_gresources[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user