summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-10-18 19:33:47 +0100
committerPhil Jones <philj56@gmail.com>2022-10-18 19:53:06 +0100
commit340692299ed834f962b83b1bc0eb6f49471ca556 (patch)
treef0a1c9160397b22a662e6399e085336de3396a73 /meson.build
parent5482f0be746a98bdd6b2c54183b54dd2ff2a0192 (diff)
Add beginnings of test framework.
Just contains a couple of very simple UTF-8 tests for now.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 97f8eae..5ec1c1f 100644
--- a/meson.build
+++ b/meson.build
@@ -91,8 +91,7 @@ add_project_arguments(
language: 'c'
)
-tofi_sources = files(
- 'src/main.c',
+common_sources = files(
'src/color.c',
'src/compgen.c',
'src/config.c',
@@ -175,9 +174,11 @@ foreach proto : wl_proto_xml
command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@'])
endforeach
+subdir('test')
+
executable(
'tofi',
- tofi_sources, wl_proto_src, wl_proto_headers,
+ files('src/main.c'), common_sources, wl_proto_src, wl_proto_headers,
dependencies: [librt, libm, freetype, harfbuzz, cairo, pangocairo, wayland_client, xkbcommon, glib, gio_unix],
install: true
)