summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-03-22 10:18:37 +0100
committermbkma <[email protected]>2026-03-22 22:08:28 +0100
commit4a14e878c1187d6cc1f76b87a24a6007314d996e (patch)
tree14e01a5357bd807b95d368da78202cb495658718 /tests/meson.build
parentf1fd658bda21506fac8966821fcdb4c2a154b590 (diff)
downloadpluma-meson.tar.bz2
pluma-meson.tar.xz
add meson supportmeson
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 00000000..e600ca36
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,27 @@
+test_targets = {
+ 'smart-converter': 'smart-converter.c',
+ 'document-input-stream': 'document-input-stream.c',
+ 'document-output-stream': 'document-output-stream.c',
+ 'document-loader': 'document-loader.c',
+ 'document-saver': 'document-saver.c',
+}
+
+test_env = environment()
+test_env.set('GSETTINGS_SCHEMA_DIR', gsettings_schema_builddir)
+
+foreach t, src : test_targets
+ test_exe = executable(
+ t,
+ sources: src,
+ include_directories: [root_inc, pluma_inc],
+ dependencies: pluma_deps,
+ link_with: libpluma,
+ c_args: pluma_cflags,
+ )
+ test(
+ t,
+ test_exe,
+ env: test_env,
+ depends: gsettings_schema_target,
+ )
+endforeach