mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-03-12 18:59:15 +02:00
62 lines
1002 B
Meson
62 lines
1002 B
Meson
project(
|
|
'dulcepan',
|
|
'c',
|
|
version: '0.1.0',
|
|
license: 'GPL-3.0-only',
|
|
default_options: [
|
|
'c_std=c11',
|
|
'warning_level=3',
|
|
],
|
|
)
|
|
|
|
add_project_arguments(
|
|
[
|
|
'-D_POSIX_C_SOURCE=200809L',
|
|
],
|
|
language: 'c',
|
|
)
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
add_project_arguments(cc.get_supported_arguments([
|
|
'-Wconversion',
|
|
'-Wendif-labels',
|
|
'-Wimplicit-fallthrough=2',
|
|
'-Wlogical-op',
|
|
'-Wmissing-include-dirs',
|
|
'-Wmissing-prototypes',
|
|
'-Wold-style-definition',
|
|
'-Wpointer-arith',
|
|
'-Woverflow',
|
|
'-Wshadow',
|
|
'-Wstrict-aliasing=2',
|
|
'-Wstrict-prototypes',
|
|
'-Wundef',
|
|
|
|
'-Wno-unused-parameter',
|
|
]), language: 'c')
|
|
|
|
wayland_client = dependency('wayland-client')
|
|
wayland_protos = dependency('wayland-protocols')
|
|
|
|
cairo = dependency('cairo')
|
|
xkbcommon = dependency('xkbcommon')
|
|
|
|
subdir('protocols')
|
|
|
|
src = files(
|
|
'main.c',
|
|
)
|
|
|
|
executable(
|
|
meson.project_name(),
|
|
src,
|
|
dependencies: [
|
|
client_protos,
|
|
wayland_client,
|
|
cairo,
|
|
xkbcommon,
|
|
],
|
|
install: true,
|
|
)
|