summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorHannes Schulze <43932053+hannesschulze@users.noreply.github.com>2024-11-04 12:58:21 +0100
committerGitHub <noreply@github.com>2024-11-04 12:58:21 +0100
commit40efcf60a5f39674b5137f11de7bcfe37fb121b5 (patch)
tree29e89bf90cd56d26f7432a52bf4bc90c51c632ce /meson.build
parentf82081215e1f29140ab9c70e897ac62e9b456919 (diff)
parent83d650b82e5209d2ca24cc1e6bf04e0644b3f615 (diff)
Merge pull request #4 from hannesschulze/3-calculator
Add a calculator to the launcher
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build27
1 files changed, 17 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index d92faa4..f1cdb9d 100644
--- a/meson.build
+++ b/meson.build
@@ -8,17 +8,24 @@ gio_unix_dep = dependency('gio-unix-2.0', version: '>=2.78')
gtk_dep = dependency('gtk4', version: '>=4.12')
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')