mirror of
https://github.com/emersion/kanshi
synced 2024-11-23 00:02:16 +01:00
51 lines
893 B
Meson
51 lines
893 B
Meson
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')
|
|
|
|
kanshi_inc = include_directories('include')
|
|
|
|
executable(
|
|
meson.project_name(),
|
|
files(
|
|
'main.c',
|
|
'parser.c',
|
|
),
|
|
include_directories: kanshi_inc,
|
|
dependencies: [wayland_client],
|
|
install: true,
|
|
)
|