waybox/meson.build

42 lines
1 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',
2021-04-06 17:03:02 -04:00
version: '0.1.0',
2018-02-21 13:19:27 -06:00
license: 'MIT',
2021-04-06 17:03:02 -04:00
meson_version: '>=0.52.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',
'-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')
2022-02-01 20:26:50 -05:00
libxml2 = dependency('libxml-2.0')
2022-02-17 10:33:15 -05:00
wlroots = dependency('wlroots', version: '>=0.16.0')
wayland_server = dependency('wayland-server', version: '>=1.15')
wayland_protos = dependency('wayland-protocols', version: '>=1.17')
xkbcommon = dependency('xkbcommon')
msgfmt = find_program('msgfmt', required: false)
if msgfmt.found()
source_root = meson.current_source_dir()
add_project_arguments('-DUSE_NLS=1', language: 'c')
subdir('po')
endif
subdir('protocol')
subdir('waybox')