mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Use #if instead of #ifdef
This commit is contained in:
parent
eda3bfeed5
commit
cad851805b
23 changed files with 85 additions and 85 deletions
|
|
@ -1,18 +1,26 @@
|
|||
threads = dependency('threads')
|
||||
|
||||
swayidle_deps = [
|
||||
client_protos,
|
||||
pixman,
|
||||
wayland_client,
|
||||
wayland_server,
|
||||
wlroots,
|
||||
]
|
||||
|
||||
if systemd.found()
|
||||
swayidle_deps += systemd
|
||||
endif
|
||||
if elogind.found()
|
||||
swayidle_deps += elogind
|
||||
endif
|
||||
|
||||
executable(
|
||||
'swayidle', [
|
||||
'main.c',
|
||||
],
|
||||
include_directories: [sway_inc],
|
||||
dependencies: [
|
||||
client_protos,
|
||||
pixman,
|
||||
wayland_client,
|
||||
wayland_server,
|
||||
wlroots,
|
||||
swayidle_deps,
|
||||
],
|
||||
dependencies: swayidle_deps,
|
||||
link_with: [lib_sway_common, lib_sway_client],
|
||||
install_rpath : rpathdir,
|
||||
install: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue