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

This is way easier to maintain and creates a bigger list of associations by following the libraries that GIMP links (but does not work with more complex code like file-gegl). Also helps with https://gitlab.gnome.org/Infrastructure/gimp-macos-build/-/issues/3
46 lines
1.2 KiB
Meson
46 lines
1.2 KiB
Meson
if get_option('webkit-unmaintained')
|
|
|
|
plugin_name = 'help-browser'
|
|
|
|
plugin_sourcecode = [
|
|
'dialog.c',
|
|
'help-browser.c',
|
|
'uri.c',
|
|
]
|
|
plugin_sources = plugin_sourcecode
|
|
|
|
plugin_sources += gnome.compile_resources(
|
|
'help-menus',
|
|
'help-menus.gresource.xml',
|
|
)
|
|
|
|
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.project_source_root()),
|
|
],
|
|
include_directories: [
|
|
rootInclude, appInclude,
|
|
],
|
|
)
|
|
endif
|
|
|
|
plugin_exe = executable(plugin_name,
|
|
plugin_sources,
|
|
dependencies: [
|
|
libgimpui_dep,
|
|
gio,
|
|
webkit,
|
|
],
|
|
link_with: [
|
|
help_plugin_lib,
|
|
],
|
|
win_subsystem: 'windows',
|
|
install: true,
|
|
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
|
|
plugin_executables += [plugin_exe.full_path()]
|
|
|
|
endif
|