mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00

This gives a big cleanup in the meson.build files of the plug-ins. It's also quite a bit more maintainable, since anything that changes in libgimp's dependencies, linkage, ... doesn't have to be copy-pasted into each plug-in.
47 lines
987 B
Meson
47 lines
987 B
Meson
plugin_name = 'help'
|
|
|
|
plugin_sources = [
|
|
# 'gimp-help-lookup.c',
|
|
'gimphelp.c',
|
|
'gimphelpdomain.c',
|
|
'gimphelpitem.c',
|
|
'gimphelplocale.c',
|
|
'gimphelpprogress.c',
|
|
]
|
|
|
|
if platform_windows
|
|
plugin_sources += windows.compile_resources(
|
|
gimp_plugins_rc,
|
|
args: [
|
|
'--define', 'ORIGINALFILENAME_STR="@0@"'.format(plugin_name+'.exe'),
|
|
'--define', 'INTERNALNAME_STR="@0@"' .format(plugin_name),
|
|
'--define', 'TOP_SRCDIR="@0@"' .format(meson.source_root()),
|
|
],
|
|
include_directories: [
|
|
rootInclude, appInclude,
|
|
],
|
|
)
|
|
endif
|
|
|
|
help_plugin_lib = static_library('help_plugin',
|
|
plugin_sources,
|
|
include_directories: [ rootInclude, ],
|
|
dependencies: [
|
|
gtk3, gegl, cairo, gio, gdk_pixbuf,
|
|
],
|
|
install: false,
|
|
)
|
|
|
|
executable(plugin_name,
|
|
'help.c',
|
|
dependencies: [
|
|
libgimpui_dep,
|
|
gio,
|
|
gdk_pixbuf,
|
|
],
|
|
link_with: [
|
|
help_plugin_lib,
|
|
],
|
|
install: true,
|
|
install_dir: gimpplugindir / 'plug-ins' / plugin_name,
|
|
)
|