summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2024-11-03 21:07:34 +0100
committerHannes Schulze <haschu0103@outlook.de>2024-11-03 21:12:10 +0100
commite36217208802c001f1fbc758e5f103cbc4f339a2 (patch)
tree6b11d491a9bf110d1f89ce9ab8809adf72ca2a4b /meson.build
parent497f0388aee4b7ae0df92bb2b3617c524e5a5496 (diff)
add unit tests for math
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build26
1 files changed, 16 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index 457286b..f1cdb9d 100644
--- a/meson.build
+++ b/meson.build
@@ -10,16 +10,22 @@ json_dep = dependency('json-glib-1.0', version: '>=1.8')
nm_dep = dependency('libnm', version: '>=1.44')
gmp_dep = dependency('gmp', version: '>=6.3')
m_dep = meson.get_compiler('c').find_library('m', required : false)
-layershell_dep = dependency('gtk4-layer-shell', required: false)
-gvc_dep = dependency('gvc', required: false)
-if not layershell_dep.found()
- layershell_proj = subproject('gtk4-layer-shell')
- layershell_dep = layershell_proj.get_variable('gtk_layer_shell')
-endif
-if not gvc_dep.found()
- gvc_proj = subproject('gvc')
- gvc_dep = gvc_proj.get_variable('libgvc_dep')
-endif
+layershell_dep = dependency(
+ 'gtk4-layer-shell',
+ fallback: [ 'gtk4-layer-shell', 'gtk_layer_shell' ],
+ default_options: [ 'default_library=static' ],
+)
+gvc_dep = dependency(
+ 'gvc',
+ fallback: [ 'gvc', 'libgvc_dep' ],
+ default_options: [ 'default_library=static' ],
+)
+mutest_dep = dependency(
+ 'mutest',
+ fallback: [ 'mutest', 'mutest_dep' ],
+ default_options: [ 'static=true' ],
+ required: false,
+)
subdir('res')
subdir('src')