File: meson.build

package info (click to toggle)
wayback 0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 216 kB
  • sloc: ansic: 1,363; makefile: 6
file content (39 lines) | stat: -rw-r--r-- 1,403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
project('wayback', 'c',
  version: '0.3',
  license: 'MIT',
  meson_version: '>= 1.4.0',
  default_options: [
    'c_std=gnu23',
    'warning_level=3',
  ])

cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments(['-Wno-unused-parameter']), language: 'c')

add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c')

add_global_arguments('-DWAYBACK_COMPOSITOR_EXEC_PATH="@0@/wayback-compositor"'.format(get_option('prefix') /get_option('libexecdir')), language : 'c')
add_global_arguments('-DWAYBACK_VERSION="@0@"'.format(meson.project_version()), language : 'c')

wayland_server = dependency('wayland-server')
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
wayland_egl    = dependency('wayland-egl')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
xkbcommon      = dependency('xkbcommon')
xwayland       = dependency('xwayland', version: '>=24.1')
wlroots        = dependency('wlroots-0.19', version: '>=0.19', required: false)

if not wlroots.found()
  wlroots = dependency('wlroots-0.18', version: '>=0.18')
endif

xwayland_executable_path = xwayland.get_variable(pkgconfig: 'xwayland')
add_global_arguments('-DXWAYLAND_EXEC_PATH="@0@"'.format(xwayland_executable_path), language : 'c')

subdir('common')
subdir('protocol')
subdir('wayback-compositor')
subdir('wayback-session')
subdir('xwayback')
subdir('doc')