Since !1171, ScriptFu .scm and .interp files aren't available to prevent errors caused by no instrospection support, but this binaries escaped.
49 lines
No EOL
1.1 KiB
Meson
49 lines
No EOL
1.1 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
|
|
|
|
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 |