1
0
mirror of https://codeberg.org/vyivel/dulcepan/ synced 2025-03-12 18:59:15 +02:00
dulcepan/meson.build
2024-06-19 18:49:12 +03:00

85 lines
1.5 KiB
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')
big_endian = target_machine.endian() == 'big'
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',
'-DDP_BIG_ENDIAN=@0@'.format(big_endian.to_int()),
]), language: 'c')
wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols')
pixman = dependency('pixman-1')
spng = dependency('spng')
xkbcommon = dependency(
'xkbcommon',
fallback: 'libxkbcommon',
default_options: [
'enable-tools=false',
'enable-x11=false',
'enable-docs=false',
'enable-xkbregistry=false',
],
)
sfdo_basedir = dependency(
'libsfdo-basedir',
version: '>=0.1.0',
fallback: 'libsfdo',
default_options: [
'default_library=static',
'examples=false',
],
)
subdir('protocols')
subdir('src')
executable(
meson.project_name(),
src,
dependencies: [
client_protos,
wayland_client,
pixman,
spng,
xkbcommon,
sfdo_basedir,
],
install: true,
)