aboutsummaryrefslogtreecommitdiff
path: root/lib/meson-projects/meson.build
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-10-07 13:40:20 +0800
committercrupest <crupest@outlook.com>2023-10-07 13:40:20 +0800
commita1dbbdf5fc04ac091be91add80aafe09d48cfea9 (patch)
tree51c82febf9cfe1b6ead13c6c4e664ad17a7dea48 /lib/meson-projects/meson.build
parentfaa63afb8db43690fa633fe1673be9331d278e24 (diff)
downloadcru-a1dbbdf5fc04ac091be91add80aafe09d48cfea9.tar.gz
cru-a1dbbdf5fc04ac091be91add80aafe09d48cfea9.tar.bz2
cru-a1dbbdf5fc04ac091be91add80aafe09d48cfea9.zip
Try to add pango.
Diffstat (limited to 'lib/meson-projects/meson.build')
-rw-r--r--lib/meson-projects/meson.build13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/meson-projects/meson.build b/lib/meson-projects/meson.build
index 5b2b6a4d..c373f0ce 100644
--- a/lib/meson-projects/meson.build
+++ b/lib/meson-projects/meson.build
@@ -1,7 +1,12 @@
project('cru-deps', 'c', 'cpp')
-alias_target('all',
- dependency('cairo', fallback: ['cairo', 'cairo_dep'], required: get_option('cairo')),
- dependency('pango', fallback: ['pango', 'pango_deps'], required: get_option('pango'))
-)
+if get_option('cairo').enabled()
+ subproject('glib')
+ subproject('cairo')
+endif
+
+if get_option('pango').enabled()
+ subproject('glib')
+ subproject('pango')
+endif