Gimp/plug-ins/script-fu/meson.build
bootchk 2f360ddb34 ScriptFu: #9755 Add test framework and tests for TS and PDB
Test framework and tests in Scheme, and portable.

Work in progress.  Expect commits for more tests.

Testing framework is stable, more or less.

Add more tests

Add tests layer and layerMask.

test Item methods

More tests, selection

Test memory, vector in TS.

More tests char functions

sharp expr tests
2023-08-25 21:39:29 +00:00

65 lines
1.6 KiB
Meson

# Build executable plugins that define several PDB procs.
# An executable is not versioned since installed private in /plug-ins
# Not define include_directories; no higher gimp source references scriptfu
# Not using c_args: -DSTANDALONE=0','-DUSE_INTERFACE=1','-DUSE_STRLWR=0',
# since those are compile time switches for tinyscheme, not present in this dir
subdir('libscriptfu')
subdir('scripts')
subdir('server')
subdir('interpreter')
subdir('console')
subdir('test')
executable_name = 'script-fu'
# script-fu.c registers registers many PDB procs in the PDB.
# Several source files implement the PDB procedures of type PLUGIN, of similar names.
# script-fu.c also implements PDB procedure of type EXTENSION "extension-script-fu"
plugin_sources = [
'script-fu-eval.c',
'script-fu-text-console.c',
'script-fu.c',
]
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
# Several components use Gtk
# libscriptfu is installed to standard place; no rpath necessary
executable(executable_name,
plugin_sources,
dependencies: [
libgimpui_dep,
math,
gi,
],
c_args: [
'-DG_LOG_DOMAIN="scriptfu"',
],
include_directories: [
libscriptfuInclude,
],
link_with : [libscriptfuconsole, libscriptfu ],
install: true,
install_dir: gimpplugindir / 'plug-ins' / executable_name,
)