Files
gimp/plug-ins/help-browser/meson.build
Jehan 02199755ab Issue #12277: GIMP 3.0 RC1 opens Windows Console.
This is a followup of previous commit. We must set the win_subsystem
option on executable() so that the result binary is compiled as a GUI
application (and doesn't output a console every time).

The previous commit is still needed and is what allows us to control
when to actually display a console.
2024-11-21 04:23:10 +00:00

46 lines
1.2 KiB
Meson

if get_option('webkit-unmaintained')
plugin_name = 'help-browser'
plugin_sources = [
'dialog.c',
'help-browser.c',
'uri.c',
]
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