project('aerowm', 'c', version: '1.0.0', license: 'MIT', default_options: ['c_std=c11', 'warning_level=2', 'werror=false']) add_project_arguments( ['-DWLR_USE_UNSTABLE', '-Wno-unused-parameter'], language: 'c') cc = meson.get_compiler('c') wlroots = dependency('wlroots-0.18', required: false) if not wlroots.found() wlroots = dependency('wlroots', version: '>=0.18.0') endif wayland_server = dependency('wayland-server') xkbcommon = dependency('xkbcommon') pixman = dependency('pixman-1') cairo = dependency('cairo') pango = dependency('pango') pangocairo = dependency('pangocairo') glesv2 = dependency('glesv2', required: false) math = cc.find_library('m', required: false) # Generate the xdg-shell protocol header from wayland-protocols. wl_protocol_dir = dependency('wayland-protocols').get_variable('pkgdatadir') wl_scanner = find_program('wayland-scanner') xdg_shell_h = custom_target('xdg-shell-protocol.h', input: wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml', output: 'xdg-shell-protocol.h', command: [wl_scanner, 'server-header', '@INPUT@', '@OUTPUT@']) aerowm_deps = [wlroots, wayland_server, xkbcommon, pixman, cairo, pango, pangocairo, math] if glesv2.found() aerowm_deps += glesv2 endif executable('aerowm', ['src/main.c', 'src/blur.c', 'src/panel.c', 'src/image.c', xdg_shell_h], dependencies: aerowm_deps, install: true) install_data('data/aerowm.desktop', install_dir: get_option('datadir') / 'wayland-sessions')