waybox/meson.build

42 lines
1.1 KiB
Meson
Raw Normal View History

2018-06-19 10:26:54 -05:00
# SirCmpwn is a god. (from mcwayface and bspwc)
2018-02-21 13:19:27 -06:00
project(
'waybox',
'c',
version: '0.0.1',
license: 'MIT',
meson_version: '>=0.43.0',
default_options: [
'c_std=c11',
'warning_level=2',
'werror=true',
],
)
add_project_arguments('-Wno-unused-parameter', language: 'c')
2018-10-04 11:42:24 -05:00
add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c')
add_project_arguments('-DVERSION="' + meson.project_version() + '"', language: 'c')
2018-02-21 13:19:27 -06:00
cc = meson.get_compiler('c')
2018-02-21 13:19:27 -06:00
if cc.get_id() == 'clang'
add_project_arguments('-Wno-missing-field-initializers', language: 'c')
add_project_arguments('-Wno-missing-braces', language: 'c')
endif
# Hide deprecated API
2018-02-21 13:19:27 -06:00
add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c')
2018-06-19 10:26:54 -05:00
# Adding include directory
inc_dir = include_directories('include')
2018-02-21 13:19:27 -06:00
pixman = dependency('pixman-1')
2020-02-27 16:44:09 -05:00
wlroots = dependency('wlroots', version: '>=0.9.0')
2018-02-21 13:19:27 -06:00
wayland_server = dependency('wayland-server')
wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols', version: '>=1.12')
xkbcommon = dependency('xkbcommon')
subdir('protocol')
subdir('waybox')