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.
This commit is contained in:
Jehan 2024-11-18 14:52:47 +09:00
parent fcf524fbc3
commit 02199755ab
37 changed files with 40 additions and 0 deletions

View File

@ -212,6 +212,7 @@ if enable_console_bin
rootInclude,
rootAppInclude,
],
win_subsystem: 'console',
link_args: link_args,
install: true,
)
@ -226,6 +227,7 @@ gimpmain_exe = executable(gimpmain_exe_name,
app_libgimps,
gui_libapps,
],
win_subsystem: 'windows',
install: true,
)

View File

@ -29,6 +29,7 @@ exe = executable(plug_in_name + '-c',
],
install: true,
install_dir: gimpplugindir / 'extensions' / extension_name,
win_subsystem: 'windows',
)
# XXX This is so ugly!
@ -54,6 +55,7 @@ if have_vala and have_gobject_introspection
],
install: true,
install_dir: gimpplugindir / 'extensions' / extension_name,
win_subsystem: 'windows',
)
plug_ins = plug_ins + ':' + exe.full_path().split('/')[-1].split('\\')[-1]

View File

@ -232,6 +232,7 @@ foreach plugin : common_plugins_list
],
dependencies: [ plugin_deps, math ],
c_args: plugin_cflags,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)

View File

@ -23,6 +23,7 @@ endif
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: libgimpui_dep,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -31,6 +31,7 @@ plugin_exe = executable(plugin_name,
math,
openmp,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -28,6 +28,7 @@ plugin_exe = executable(plugin_name,
openexr,
lcms,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -22,6 +22,7 @@ endif
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: libgimpui_dep,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -26,6 +26,7 @@ if cfitsio_dep.found()
cfitsio_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -22,6 +22,7 @@ endif
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: libgimpui_dep,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -27,6 +27,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
libpng,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -27,6 +27,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
libpng,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -31,6 +31,7 @@ plugin_exe = executable(plugin_name,
lcms,
gexiv2,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -33,6 +33,7 @@ plugin_exe = executable(plugin_name,
math,
zlib,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -35,6 +35,7 @@ foreach plugin_name : file_raw_exes
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: libgimpui_dep,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -22,6 +22,7 @@ endif
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: libgimpui_dep,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -28,6 +28,7 @@ plugin_exe = executable(plugin_name,
gexiv2,
libtiff,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -30,6 +30,7 @@ plugin_exe = executable(plugin_name,
gexiv2,
webp_libs,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -27,6 +27,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -27,6 +27,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -48,6 +48,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -51,6 +51,7 @@ plugin_exe = executable(plugin_name,
prefix / gimpdatadir / 'gimpressionist'
),
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -26,6 +26,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -37,6 +37,7 @@ plugin_exe = executable(plugin_name,
link_with: [
help_plugin_lib,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -42,6 +42,7 @@ plugin_exe = executable(plugin_name,
link_with: [
help_plugin_lib,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -31,6 +31,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -151,6 +151,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -33,6 +33,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -33,6 +33,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -33,6 +33,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
gexiv2,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]
@ -80,6 +81,7 @@ plugin_exe = executable(plugin_name,
libgimpui,
libgimpwidgets,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -57,6 +57,7 @@ plugin_exe = executable(plugin_name,
libgimpui_dep,
math,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -30,6 +30,7 @@ endif
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: libgimpui_dep,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -44,6 +44,7 @@ screenshot = executable('screenshot',
libgimpui_dep,
x11, xmu, xext, xfixes,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [screenshot.full_path()]

View File

@ -39,6 +39,7 @@ if not meson.is_cross_build()
scriptfuInclude,
],
link_with : libscriptfu,
win_subsystem: 'windows',
install: true)
plugin_executables += [plugin_exe.full_path()]
endif

View File

@ -75,6 +75,7 @@ if not meson.is_cross_build()
libscriptfuInclude,
],
link_with : [libscriptfuconsole, libscriptfu ],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / executable_name)
plugin_executables += [plugin_exe.full_path()]

View File

@ -43,6 +43,7 @@ if not meson.is_cross_build()
scriptfuInclude,
],
link_with : libscriptfu,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / executable_name)
endif

View File

@ -33,6 +33,7 @@ plugin_selection_to_path_deps = [
selection_to_path = executable(plugin_name,
plugin_sources,
dependencies: plugin_selection_to_path_deps,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [selection_to_path.full_path()]

View File

@ -30,6 +30,7 @@ twain = executable(plugin_name,
glib,
gtk3,
],
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [twain.full_path()]