build: simplify HAS_LIBUUID definition
We can just use to_int() instead of having two if branches.
This commit is contained in:
parent
e9361e0492
commit
6721444114
|
@ -10,11 +10,7 @@ wlr_files += files(
|
||||||
|
|
||||||
|
|
||||||
if features.get('xdg-foreign')
|
if features.get('xdg-foreign')
|
||||||
if uuid.found()
|
add_project_arguments('-DHAS_LIBUUID=@0@'.format(uuid.found().to_int()), language: 'c')
|
||||||
wlr_deps += uuid
|
wlr_deps += uuid
|
||||||
add_project_arguments('-DHAS_LIBUUID=1', language: 'c')
|
|
||||||
else
|
|
||||||
add_project_arguments('-DHAS_LIBUUID=0', language: 'c')
|
|
||||||
endif
|
|
||||||
wlr_files += files('uuid.c')
|
wlr_files += files('uuid.c')
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue