wofi/meson.build

28 lines
813 B
Meson
Raw Normal View History

2019-12-20 21:29:11 -05:00
project('wofi', 'c', version : 'v1.0', default_options : ['buildtype=release', 'warning_level=2'])
cc = meson.get_compiler('c')
inc = include_directories('inc')
gtk = dependency('gtk+-3.0')
gio = dependency('gio-unix-2.0')
threads = dependency('threads')
wayland = dependency('wayland-client')
dl = cc.find_library('dl')
add_project_arguments('-D_GNU_SOURCE', '-DVERSION="' + meson.project_version() + '"', language : 'c')
2019-12-20 21:29:11 -05:00
add_project_link_arguments('-rdynamic', language : 'c')
executable('wofi',
'src/config.c',
'src/main.c',
'src/map.c',
'src/property_box.c',
'src/utils.c',
'src/wofi.c',
'modes/dmenu.c',
'modes/drun.c',
'modes/run.c',
'proto/wlr-layer-shell-unstable-v1-protocol.c',
'proto/xdg-shell-protocol.c',
include_directories : inc,
2019-12-21 01:01:56 -05:00
dependencies : [gtk, gio, threads, wayland, dl], install : true)