mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
60 lines
1.1 KiB
Meson
60 lines
1.1 KiB
Meson
project(
|
|
'labwc',
|
|
'c',
|
|
license: 'GPL-2',
|
|
default_options: [
|
|
'c_std=c11',
|
|
'warning_level=2',
|
|
'werror=true',
|
|
],
|
|
)
|
|
|
|
add_project_arguments(
|
|
[
|
|
'-DWLR_USE_UNSTABLE',
|
|
],
|
|
language: 'c',
|
|
)
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
add_project_arguments(cc.get_supported_arguments(
|
|
[
|
|
'-Wno-unused-parameter',
|
|
'-Wundef',
|
|
]),
|
|
language: 'c',
|
|
)
|
|
|
|
wlroots_proj = subproject(
|
|
'wlroots',
|
|
default_options: ['examples=false'],
|
|
required: false,
|
|
)
|
|
|
|
if wlroots_proj.found()
|
|
wlroots = wlroots_proj.get_variable('wlroots')
|
|
else
|
|
wlroots = dependency('wlroots', version: '>= 0.10.0')
|
|
endif
|
|
wayland_server = dependency('wayland-server')
|
|
wayland_protos = dependency('wayland-protocols')
|
|
xkbcommon = dependency('xkbcommon')
|
|
xml2 = dependency('libxml-2.0')
|
|
|
|
labwc_inc = include_directories('include')
|
|
|
|
subdir('protocols')
|
|
subdir('src')
|
|
|
|
labwc_deps = [
|
|
server_protos, wayland_server, wlroots, xkbcommon, xml2
|
|
]
|
|
|
|
executable(
|
|
meson.project_name(),
|
|
labwc_sources,
|
|
include_directories: [labwc_inc],
|
|
dependencies: labwc_deps,
|
|
install: true,
|
|
)
|