diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-11-17 12:57:54 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-12-14 00:20:40 +0000 |
commit | d9188a7750c99ce9f3d9e0e2aea93f86491e0cb6 (patch) | |
tree | 7ea7486ae4ca8915bd8d69f901f96c7ec9466667 /exynos | |
parent | 9324e4f054fa4d7c213400545e8fa6b42392c5a5 (diff) |
meson: add override_dependency when possible
This allows consumers of libdrm as a subproject to use the simpler
`dependency('libdrm', fallback : 'libdrm')` syntax, as the libdrm build
files already tell meson that they override a dependency called
"libdrm".
Signed-off-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'exynos')
-rw-r--r-- | exynos/meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exynos/meson.build b/exynos/meson.build index 7d1edfea..bd55a500 100644 --- a/exynos/meson.build +++ b/exynos/meson.build @@ -37,6 +37,10 @@ ext_libdrm_exynos = declare_dependency( include_directories : [inc_drm, include_directories('.')], ) +if meson.version().version_compare('>= 0.54.0') + meson.override_dependency('libdrm_exynos', ext_libdrm_exynos) +endif + pkg.generate( name : 'libdrm_exynos', libraries : libdrm_exynos, |