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.
45 lines
1.4 KiB
Meson
45 lines
1.4 KiB
Meson
plugin_name = 'file-jpeg'
|
|
|
|
plugin_sourcecode = [
|
|
'jpeg-icc.c',
|
|
'jpeg-load.c',
|
|
'jpeg-quality.c',
|
|
'jpeg-export.c',
|
|
'jpeg-settings.c',
|
|
'jpeg.c',
|
|
]
|
|
plugin_sources = plugin_sourcecode
|
|
|
|
if platform_windows
|
|
plugin_sources += windows.compile_resources(
|
|
gimp_plugins_rc,
|
|
args: [
|
|
rc_define_flag, rc_define_fmt.format('ORIGINALFILENAME_STR', plugin_name+'.exe'),
|
|
rc_define_flag, rc_define_fmt.format('INTERNALNAME_STR', plugin_name),
|
|
],
|
|
include_directories: [
|
|
rootInclude, appInclude,
|
|
],
|
|
)
|
|
endif
|
|
|
|
plugin_exe = executable(plugin_name,
|
|
plugin_sources,
|
|
dependencies: [
|
|
libgimpui_dep,
|
|
libjpeg,
|
|
lcms,
|
|
gexiv2,
|
|
],
|
|
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()]
|