~sircmpwn/wio

df1c12f9829acdb73ff714cc2598138e4e03ca74 — Bill Doyle 2 years ago d304f66
Prefer wlroots subproject
1 files changed, 12 insertions(+), 1 deletions(-)

M meson.build
M meson.build => meson.build +12 -1
@@ 23,9 23,20 @@ add_project_arguments(

cc = meson.get_compiler('c')

# Prefer wlroots subproject if it is available.
wlroots_proj = subproject(
	'wlroots',
	default_options: ['rootston=false', 'examples=false'],
	required: false,
)
if wlroots_proj.found()
	wlroots = wlroots_proj.get_variable('wlroots')
else
	wlroots = dependency('wlroots')
endif

cairo = dependency('cairo')
math = cc.find_library('m')
wlroots = dependency('wlroots', fallback: ['wlroots', 'wlroots'])
wayland_server = dependency('wayland-server')
wayland_protos = dependency('wayland-protocols')
xkbcommon = dependency('xkbcommon')