aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2020-06-30 17:02:50 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2020-06-30 17:02:50 +0200
commit71db2d439aec673c8aa9fcbf5550ddab4c49b2bd (patch)
treeaca7f7d0024a85be0d2500019287a1edc8cb5a39 /lib
parenta292793143e6a206798dd1a50a78397aa8c0fe86 (diff)
downloadlite-xl-71db2d439aec673c8aa9fcbf5550ddab4c49b2bd.tar.gz
lite-xl-71db2d439aec673c8aa9fcbf5550ddab4c49b2bd.zip
Add libagg as a subproject
No longer required to be installed, the subproject will be used if not found.
Diffstat (limited to 'lib')
-rw-r--r--lib/font_renderer/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/font_renderer/meson.build b/lib/font_renderer/meson.build
index e858f064..7724d584 100644
--- a/lib/font_renderer/meson.build
+++ b/lib/font_renderer/meson.build
@@ -1,6 +1,11 @@
-libagg_dep = dependency('libagg')
freetype_dep = dependency('freetype2')
+libagg_dep = dependency('libagg', required: false)
+if not libagg_dep.found()
+ libagg_subproject = subproject('libagg')
+ libagg_dep = libagg_subproject.get_variable('libagg_dep')
+endif
+
font_renderer_sources = [
'agg_font_freetype.cpp',
'font_renderer.cpp',