plug-ins: Do not call in-build-gimp.py before building plugins

We were already considering the plugins under /common but
not the plug-ins that have their own subdirectories. So,
plugin_executables did not match custom_plugin_targets and
the build started to fail on macOS where install_name_tool
neeeds to process the plugins setting the right LC_RPATH.
This commit is contained in:
Bruno Lopes 2026-01-04 09:18:07 -03:00
parent c9ce259e9c
commit 778d40f06c
34 changed files with 289 additions and 9 deletions

View file

@ -36,4 +36,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -35,4 +35,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -31,6 +31,14 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endif

View file

@ -25,4 +25,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -29,5 +29,13 @@ if cfitsio_dep.found()
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endif

View file

@ -25,4 +25,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -30,4 +30,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -30,4 +30,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -34,4 +34,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -36,4 +36,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -39,6 +39,14 @@ foreach plugin_name : file_raw_exes
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endforeach

View file

@ -25,4 +25,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -31,4 +31,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -33,6 +33,14 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endif

View file

@ -26,4 +26,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -30,4 +30,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -30,4 +30,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -50,4 +50,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -54,4 +54,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -29,4 +29,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -40,6 +40,14 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endif

View file

@ -45,4 +45,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -34,4 +34,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -153,4 +153,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -35,4 +35,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -35,4 +35,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -36,6 +36,14 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
###############################################################################
@ -85,4 +93,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -60,4 +60,12 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -33,6 +33,14 @@ plugin_exe = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endif

View file

@ -39,7 +39,7 @@ if platform_windows
plugin_sources += windows.compile_resources('screenshot-win32.rc')
endif
screenshot = executable('screenshot',
plugin_exe = executable('screenshot',
plugin_sources,
dependencies: [
libgimpui_dep,
@ -48,4 +48,12 @@ screenshot = executable('screenshot',
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
plugin_executables += [screenshot.full_path()]
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -41,5 +41,13 @@ if not meson.is_cross_build()
link_with : libscriptfu,
win_subsystem: 'windows',
install: true)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endif

View file

@ -86,5 +86,13 @@ if not meson.is_cross_build()
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]
endif

View file

@ -30,10 +30,18 @@ plugin_selection_to_path_deps = [
math,
]
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()]
plugin_exe = executable(plugin_name,
plugin_sources,
dependencies: plugin_selection_to_path_deps,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [plugin_exe.full_path()]

View file

@ -33,4 +33,12 @@ twain = executable(plugin_name,
win_subsystem: 'windows',
install: true,
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
# Ugly trick to add executables to plugin_custom_targets list (see root meson.build)
plugin_custom_targets += custom_target('dummy-' + plugin_name,
input: plugin_exe,
output: 'dummy-' + plugin_name + '.dummy',
command: [python, '-c',
'open("@OUTPUT@", "w").write("Nice. I was built before calling in-build-gimp.py\\n")'],
build_by_default: true)
plugin_executables += [twain.full_path()]