tests: build setbacklight

Was missed in the Meson migration.

This is built only if DRM-backend is built, because it exercises a sub-feature
of the DRM-backend.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2019-04-05 12:45:46 +03:00 committed by Daniel Stone
parent 6bc50b12f8
commit 644eb64a5d
1 changed files with 14 additions and 0 deletions

View File

@ -382,3 +382,17 @@ foreach t : tests_weston_plugin
test(t.get(0), exe_weston, env: env_test_weston, args: args_t)
endif
endforeach
if get_option('backend-drm')
executable(
'setbacklight',
'setbacklight.c',
dependencies: [
dep_backlight,
dep_libdrm,
dependency('libudev')
],
include_directories: include_directories('..'),
install: false
)
endif