diff options
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 6673240..1c4ea10 100644 --- a/meson.build +++ b/meson.build @@ -30,9 +30,15 @@ if system == 'linux' x11 = dependency('x11', required: get_option('x11')) xi = dependency('xi', required: get_option('x11')) x11_xkb = dependency('xkbcommon', required: get_option('x11')) - has_x11 = x11.found() and xi.found() and x11_xkb.found() + xext = dependency('xext', required: get_option('x11')) + xrandr = dependency('xrandr', required: false) + has_x11 = x11.found() and xi.found() and x11_xkb.found() and xext.found() if has_x11 - deps += [x11, xi, x11_xkb] + deps += [x11, xi, x11_xkb, xext] + if xrandr.found() + deps += [xrandr] + add_project_arguments('-DYASL_HAS_XRANDR=1', language: 'c') + endif endif threads = dependency('threads') m_dep = cc.find_library('m', required: false) |
