mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
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 uuid.found()
|
||||
wlr_deps += uuid
|
||||
add_project_arguments('-DHAS_LIBUUID=1', language: 'c')
|
||||
else
|
||||
add_project_arguments('-DHAS_LIBUUID=0', language: 'c')
|
||||
endif
|
||||
add_project_arguments('-DHAS_LIBUUID=@0@'.format(uuid.found().to_int()), language: 'c')
|
||||
wlr_deps += uuid
|
||||
wlr_files += files('uuid.c')
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user