waybox/meson.build

56 lines
1.4 KiB
Meson
Raw Normal View History

2018-02-21 13:19:27 -06:00
project(
2020-03-09 17:08:08 -04:00
'Waybox',
2018-02-21 13:19:27 -06:00
'c',
version: '0.2.3',
2018-02-21 13:19:27 -06:00
license: 'MIT',
2024-06-03 01:21:47 -04:00
meson_version: '>=0.60.0',
2018-02-21 13:19:27 -06:00
default_options: [
'c_std=c11',
'warning_level=2',
'werror=true',
],
)
add_project_arguments(
'-Wno-unused-parameter',
2022-02-20 19:45:53 -05:00
'-D_DEFAULT_SOURCE',
'-D_POSIX_C_SOURCE=200112L',
2024-02-07 00:46:35 -05:00
'-DWL_HIDE_DEPRECATED', # Hide the deprecated parts of the Wayland API
'-DWLR_USE_UNSTABLE',
2020-03-08 12:47:58 -04:00
'-DPACKAGE_NAME="' + meson.project_name() + '"',
'-DPACKAGE_VERSION="' + meson.project_version() + '"',
language: 'c')
2018-02-21 13:19:27 -06:00
cc = meson.get_compiler('c')
2018-06-19 10:26:54 -05:00
# Adding include directory
inc_dir = include_directories('include')
if get_option('wlroots-version') != ''
wlroots_version = get_option('wlroots-version')
else
wlroots_version = ['wlroots-0.19', 'wlroots-0.18', 'wlroots']
endif
libevdev = dependency('libevdev')
libinput = dependency('libinput', version: '>=1.21.0', required: false)
2022-02-01 20:26:50 -05:00
libxml2 = dependency('libxml-2.0')
2023-02-07 13:47:56 -05:00
wayland_protos = dependency('wayland-protocols', version: '>=1.27')
2024-04-21 14:16:29 -04:00
wayland_server = dependency('wayland-server', version: '>=1.15')
wlroots = dependency(wlroots_version, version: '>=0.17.0')
2023-02-07 13:47:56 -05:00
xkbcommon = dependency('xkbcommon')
if libinput.found()
add_project_arguments('-DHAS_LIBINPUT', language: 'c')
endif
msgfmt = find_program('msgfmt', required: false)
if msgfmt.found()
source_root = meson.current_source_dir()
subdir('po')
endif
2022-02-22 20:29:04 -05:00
subdir('data')
subdir('protocol')
subdir('waybox')