1
0
mirror of https://github.com/emersion/kanshi synced 2024-11-10 02:11:38 +01:00
kanshi/meson.build

51 lines
903 B
Meson
Raw Normal View History

2019-05-30 13:59:25 +02:00
project(
'kanshi',
'c',
version: '0.0.0',
license: 'MIT',
meson_version: '>=0.47.0',
default_options: [
'c_std=c99',
'warning_level=3',
'werror=true',
],
)
cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments([
'-Wundef',
'-Wlogical-op',
'-Wmissing-include-dirs',
'-Wold-style-definition',
'-Wpointer-arith',
'-Winit-self',
'-Wfloat-equal',
'-Wstrict-prototypes',
'-Wredundant-decls',
'-Wimplicit-fallthrough=2',
'-Wendif-labels',
'-Wstrict-aliasing=2',
'-Woverflow',
'-Wformat=2',
'-Wno-missing-braces',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
]), language: 'c')
wayland_client = dependency('wayland-client')
2019-05-30 22:47:56 +02:00
subdir('protocol')
2019-05-30 13:59:25 +02:00
executable(
meson.project_name(),
files(
'main.c',
'parser.c',
),
2019-05-30 22:47:56 +02:00
include_directories: include_directories('include'),
dependencies: [wayland_client, client_protos],
2019-05-30 13:59:25 +02:00
install: true,
)