backend/session: make optional

Some compositors are not interested in wlr_session, for instance
nested compositors.

Disabling wlr_session removes the udev dependency.
This commit is contained in:
Simon Ser 2022-11-23 16:04:43 +01:00 committed by Simon Zeni
parent 21254737bf
commit f0375eed24
10 changed files with 46 additions and 10 deletions

View file

@ -1,3 +1,7 @@
if not features['session']
subdir_done()
endif
hwdata = dependency('hwdata', required: false, native: true)
if hwdata.found()
hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir')