diff options
author | Tadeo Kondrak <me@tadeo.ca> | 2021-02-23 11:47:38 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-23 20:27:38 +0100 |
commit | de471e67d3cb4ec788cbf060dff48ad262cd315f (patch) | |
tree | e3a971013e457df16f72eb616c3130f3bb99d5f4 | |
parent | shells: Update comment about size change on commit (diff) | |
download | sway-de471e67d3cb4ec788cbf060dff48ad262cd315f.tar.gz sway-de471e67d3cb4ec788cbf060dff48ad262cd315f.tar.zst sway-de471e67d3cb4ec788cbf060dff48ad262cd315f.zip |
build: Add dependency on libdrm
As of 66343839b146a54505b746784cd42a8efb844963, sway now uses a
libdrm header. Add this dependency to the build system so headers from
it can be used on systems where pkg-config is required to find them.
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | sway/meson.build | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 9177ca33..19cb5130 100644 --- a/meson.build +++ b/meson.build | |||
@@ -52,6 +52,8 @@ glesv2 = dependency('glesv2') | |||
52 | libevdev = dependency('libevdev') | 52 | libevdev = dependency('libevdev') |
53 | libinput = dependency('libinput', version: '>=1.6.0') | 53 | libinput = dependency('libinput', version: '>=1.6.0') |
54 | xcb = dependency('xcb', required: get_option('xwayland')) | 54 | xcb = dependency('xcb', required: get_option('xwayland')) |
55 | drm_full = dependency('libdrm') # only needed for drm_fourcc.h | ||
56 | drm = drm_full.partial_dependency(compile_args: true, includes: true) | ||
55 | bash_comp = dependency('bash-completion', required: false) | 57 | bash_comp = dependency('bash-completion', required: false) |
56 | fish_comp = dependency('fish', required: false) | 58 | fish_comp = dependency('fish', required: false) |
57 | math = cc.find_library('m') | 59 | math = cc.find_library('m') |
diff --git a/sway/meson.build b/sway/meson.build index 6e138101..f163ee90 100644 --- a/sway/meson.build +++ b/sway/meson.build | |||
@@ -204,6 +204,7 @@ sway_sources = files( | |||
204 | 204 | ||
205 | sway_deps = [ | 205 | sway_deps = [ |
206 | cairo, | 206 | cairo, |
207 | drm, | ||
207 | jsonc, | 208 | jsonc, |
208 | libevdev, | 209 | libevdev, |
209 | libinput, | 210 | libinput, |