gimp/plug-ins/help-browser/meson.build

45 lines
1.1 KiB
Meson
Raw Permalink Normal View History

configure, meson, plug-ins: unmaintain WebkitGTK-depending plug-ins. This is an official way to declare these plug-ins as now unmaintained/deprecated. Relevant plug-ins are: 1) help-browser (Displaying the docs): nowadays every desktop machine has a browser. Let's just use whatever is the person's default browser. 2) web-page (Web screenshot): it looks to me like every browser has this feature by default now (I use it all the time in Firefox to get a full-page screenshot, never in GIMP), even on mobile, I am told. It's nice to have it in GIMP too, but not like absolutely necessary. On the other hand: 1. It's a hell to build, with a lot of issues. We have regular issues on our Flatpak-s. We don't manage to build it on our CI (only locally apparently). Also it takes a crazy amount of time (like 90% of CI build-time would be webkit). 2. From what I gather, new versions don't work on Windows anymore. Even MSYS2 seems to have dropped the ball and don't try anymore. Basically we would have a feature disparity from GIMP 3.0 (most platform but Windows). We don't know when it will be resolved (if ever) as it's been like this for years. Now why we are keeping the code around instead of just removing everything is that the topic tree in the help browser is useful and comfortable to use. Ideally we should get some equivalent to help browsing the help efficiently in the web docs as well (so basically menus, web search and alike?). So I am told to keep the code around at least for now to see if we can figure something out or improve the situation. Except for this point, we can consider the WebkitGTK plug-ins as deprecated from GIMP 3.0 on.
2021-12-23 01:47:30 +08:00
if get_option('webkit-unmaintained')
2017-11-01 21:27:13 +08:00
plugin_name = 'help-browser'
plugin_sources = [
'dialog.c',
'help-browser.c',
'uri.c',
]
2023-08-10 05:43:55 +08:00
plugin_sources += gnome.compile_resources(
'help-menus',
'help-menus.gresource.xml',
)
2017-11-01 21:27:13 +08:00
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()),
2017-11-01 21:27:13 +08:00
],
include_directories: [
rootInclude, appInclude,
],
)
endif
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: [
libgimpui_dep,
gio,
webkit,
],
link_with: [
help_plugin_lib,
],
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]
2017-11-01 21:27:13 +08:00
endif