summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-06-01 20:38:12 +0800
committerLuke from DC <[email protected]>2023-06-01 19:26:53 +0000
commitaa2e7876d6c1518e2a2419755e9d618e9be61ec6 (patch)
treeac47aa394bf7f4e30b8c41b6f21f460b9a9c397e /test
parentbcbcc533539f7d27910f35e01f17240e8c72cdad (diff)
downloadlibmatekbd-aa2e7876d6c1518e2a2419755e9d618e9be61ec6.tar.bz2
libmatekbd-aa2e7876d6c1518e2a2419755e9d618e9be61ec6.tar.xz
Add meson compilation support
Diffstat (limited to 'test')
-rw-r--r--test/meson.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 0000000..f207073
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,17 @@
+test_names = [
+ 'matekbd-indicator-test',
+ 'matekbd-keyboard-drawing-test',
+ 'matekbd-status-test',
+]
+
+foreach test_name : test_names
+ test_exec = executable(
+ test_name,
+ test_name + '.c',
+ dependencies: libmatekbdui_dep,
+ c_args: [
+ '-DGNOMELOCALEDIR="@0@"'.format (get_option('prefix') / get_option('datadir') / 'locale'),
+ ],
+ build_by_default: true,
+ )
+endforeach