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',
|
2023-11-25 18:38:15 -05:00
|
|
|
version: '0.2.3',
|
2018-02-21 13:19:27 -06:00
|
|
|
license: 'MIT',
|
2024-01-02 16:13:31 -05:00
|
|
|
meson_version: '>=0.59.0',
|
2018-02-21 13:19:27 -06:00
|
|
|
default_options: [
|
|
|
|
|
'c_std=c11',
|
|
|
|
|
'warning_level=2',
|
|
|
|
|
'werror=true',
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
2020-02-27 16:47:18 -05:00
|
|
|
add_project_arguments(
|
|
|
|
|
'-Wno-unused-parameter',
|
2022-02-20 19:45:53 -05:00
|
|
|
'-D_DEFAULT_SOURCE',
|
2022-02-18 22:24:20 -05:00
|
|
|
'-D_POSIX_C_SOURCE=200112L',
|
2024-02-07 00:46:35 -05:00
|
|
|
'-DWL_HIDE_DEPRECATED', # Hide the deprecated parts of the Wayland API
|
2020-02-27 16:47:18 -05:00
|
|
|
'-DWLR_USE_UNSTABLE',
|
2020-03-08 12:47:58 -04:00
|
|
|
'-DPACKAGE_NAME="' + meson.project_name() + '"',
|
|
|
|
|
'-DPACKAGE_VERSION="' + meson.project_version() + '"',
|
2020-02-27 16:47:18 -05:00
|
|
|
language: 'c')
|
2018-02-21 13:19:27 -06:00
|
|
|
|
|
|
|
|
cc = meson.get_compiler('c')
|
2018-06-15 13:16:15 -05:00
|
|
|
|
2018-06-19 10:26:54 -05:00
|
|
|
# Adding include directory
|
|
|
|
|
inc_dir = include_directories('include')
|
|
|
|
|
|
2022-12-08 16:16:05 -05:00
|
|
|
libevdev = dependency('libevdev')
|
2022-12-07 20:44:14 -05:00
|
|
|
libinput = dependency('libinput', version: '>=1.21.0')
|
2022-02-01 20:26:50 -05:00
|
|
|
libxml2 = dependency('libxml-2.0')
|
2023-11-22 10:06:39 -05:00
|
|
|
wlroots = dependency('wlroots', version: '>=0.17.0')
|
2020-03-10 21:00:56 -04:00
|
|
|
wayland_server = dependency('wayland-server', version: '>=1.15')
|
2023-02-07 13:47:56 -05:00
|
|
|
wayland_protos = dependency('wayland-protocols', version: '>=1.27')
|
|
|
|
|
xkbcommon = dependency('xkbcommon')
|
2018-06-15 13:16:15 -05:00
|
|
|
|
2022-02-18 18:10:30 -05:00
|
|
|
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')
|
2018-06-15 13:16:15 -05:00
|
|
|
subdir('protocol')
|
2018-06-27 15:41:51 -05:00
|
|
|
subdir('waybox')
|