mirror of
https://codeberg.org/vyivel/dulcepan/
synced 2025-12-17 15:45:12 +02:00
Initial PoC commit
This commit is contained in:
61
meson.build
Normal file
61
meson.build
Normal file
@@ -0,0 +1,61 @@
|
||||
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,
|
||||
)
|
||||
Reference in New Issue
Block a user