mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-13 08:21:03 -04:00
Merge branch 'master' into master
This commit is contained in:
commit
5b0b1a2e64
22 changed files with 324 additions and 162 deletions
11
meson.build
11
meson.build
|
|
@ -1,5 +1,5 @@
|
|||
project('foot', 'c',
|
||||
version: '1.25.0',
|
||||
version: '1.26.1',
|
||||
license: 'MIT',
|
||||
meson_version: '>=0.59.0',
|
||||
default_options: [
|
||||
|
|
@ -12,6 +12,11 @@ is_debug_build = get_option('buildtype').startswith('debug')
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
# Newer clang versions warns when using __COUNTER__ without -std=c2y
|
||||
if cc.has_argument('-Wc2y-extensions')
|
||||
add_project_arguments('-Wno-c2y-extensions', language: 'c')
|
||||
endif
|
||||
|
||||
if cc.has_function('memfd_create',
|
||||
args: ['-D_GNU_SOURCE'],
|
||||
prefix: '#include <sys/mman.h>')
|
||||
|
|
@ -188,6 +193,10 @@ if (wayland_protocols.version().version_compare('>=1.43'))
|
|||
wl_proto_xml += [wayland_protocols_datadir / 'staging/xdg-toplevel-tag/xdg-toplevel-tag-v1.xml']
|
||||
add_project_arguments('-DHAVE_XDG_TOPLEVEL_TAG=1', language: 'c')
|
||||
endif
|
||||
if (wayland_protocols.version().version_compare('>=1.45'))
|
||||
wl_proto_xml += [wayland_protocols_datadir / 'staging/ext-background-effect/ext-background-effect-v1.xml']
|
||||
add_project_arguments('-DHAVE_EXT_BACKGROUND_EFFECT=1', language: 'c')
|
||||
endif
|
||||
|
||||
foreach prot : wl_proto_xml
|
||||
wl_proto_headers += custom_target(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue