mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01: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
1 changed files with 2 additions and 6 deletions
|
@ -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 a new issue