diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-27 19:11:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-27 19:11:23 +0200 |
commit | 5cd6219fb1c613e30f8b631a30b9433055e3d862 (patch) | |
tree | 4381c520c068055b92d2aaf30086a947be9771b3 /meson.build | |
parent | ec7986f24e1755bb06e6c23ad87c7fd130d10aae (diff) | |
download | fbida-5cd6219fb1c613e30f8b631a30b9433055e3d862.tar.gz |
meson: add cairo-gl detection
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 2d6a8d5..96c395c 100644 --- a/meson.build +++ b/meson.build @@ -13,6 +13,8 @@ freetype_dep = dependency('freetype2') fontconf_dep = dependency('fontconfig') pixman_dep = dependency('pixman-1') poppler_dep = dependency('poppler-glib') +cairo_dep = dependency('cairo') +cairo_gl_dep = dependency('cairo-gl') drm_dep = dependency('libdrm') gbm_dep = dependency('gbm') epoxy_dep = dependency('epoxy') @@ -55,7 +57,10 @@ jpeg_ver = jpeg_run.stdout().strip() trans_src = ''.join(['jpeg/', jpeg_ver, '/transupp.c']) trans_inc = include_directories(''.join(['jpeg/', jpeg_ver])) -# write configuration +# finish & write configuration +if cairo_gl_dep.found() + config.set('HAVE_CAIRO_GL', true) +endif configure_file(output : 'config.h', configuration : config) add_global_arguments(['-include', 'config.h'], language : 'c') |