Gimp/plug-ins/script-fu/server/meson.build
Jehan a78c41d2a3 meson: on macOS temporarily update rpath to find libraries of non-installed GIMP.
The DYLD_LIBRARY_PATH trick was working fine on CI, but not on local builds for
Lukas. Apparently there are security measures disabling the environment
variable. Instead let's temporarily add then remove libgimp libraries folders
from rpath.

See: https://gitlab.gnome.org/Infrastructure/gimp-macos-build/-/merge_requests/292#note_2075291
2024-04-16 17:43:15 +00:00

48 lines
1.5 KiB
Meson

scriptfuInclude = include_directories('..')
executable_name = 'script-fu-server'
plugin_sources = [
'script-fu-server.c',
'script-fu-server-plugin.c',
]
if not meson.is_cross_build()
if platform_windows
plugin_sources += windows.compile_resources(
plugin_rc,
args: [
'--define', 'ORIGINALFILENAME_STR="@0@"'.format(executable_name+'.exe'),
'--define', 'INTERNALNAME_STR="@0@"' .format(executable_name),
'--define', 'TOP_SRCDIR="@0@"' .format(meson.project_source_root()),
],
include_directories: [
rootInclude, appInclude,
],
)
endif
# The differences from the script-fu executable:
# name and sources
# also links with winsock
# Note the server rolls its own log, no need for a different G_LOG_DOMAIN
plugin_exe = executable(executable_name,
plugin_sources,
dependencies: [
libgimpui_dep,
math,
winsock,
],
c_args: [
'-DG_LOG_DOMAIN="scriptfu"',
],
include_directories: [
scriptfuInclude,
],
link_with : libscriptfu,
install: true,
install_dir: gimpplugindir / 'plug-ins' / executable_name)
endif