xdg-desktop-portal-hyprland/meson.build

65 lines
1.3 KiB
Meson
Raw Normal View History

2018-12-12 22:29:57 +01:00
project(
'xdg-desktop-portal-wlr',
'c',
version: '0.0.0',
license: 'MIT',
2020-01-24 23:31:01 +01:00
meson_version: '>=0.46.0',
2018-12-12 22:29:57 +01:00
default_options: [
'c_std=c11',
'warning_level=2',
'werror=true',
2020-01-24 23:31:01 +01:00
'debug=true',
2018-12-12 22:29:57 +01:00
],
)
2020-03-13 17:53:50 +01:00
cc = meson.get_compiler('c')
add_project_arguments(cc.get_supported_arguments([
'-Wno-missing-braces',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
]), language: 'c')
2018-12-12 22:29:57 +01:00
2020-01-24 23:31:01 +01:00
inc = include_directories('include')
2018-12-12 22:29:57 +01:00
2020-01-24 23:31:01 +01:00
threads = dependency('threads')
rt = cc.find_library('rt')
pipewire = dependency('libpipewire-0.2')
spa = dependency('libspa-0.1')
2018-12-12 22:29:57 +01:00
wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
systemd = dependency('libsystemd')
2020-01-24 23:31:01 +01:00
subdir('protocols')
2018-12-12 22:29:57 +01:00
executable(
'xdg-desktop-portal-wlr',
files([
2020-01-24 23:31:01 +01:00
'src/core/main.c',
2020-02-20 20:59:46 +01:00
'src/core/logger.c',
2020-01-24 23:31:01 +01:00
'src/core/request.c',
'src/core/session.c',
'src/screenshot/screenshot.c',
'src/screencast/screencast.c',
'src/screencast/screencast_common.c',
'src/screencast/wlr_screencast.c',
'src/screencast/pipewire_screencast.c',
2018-12-12 22:29:57 +01:00
]),
dependencies: [
wayland_client,
2020-01-24 23:31:01 +01:00
wlr_protos,
2018-12-12 22:29:57 +01:00
systemd,
2020-01-24 23:31:01 +01:00
pipewire,
spa,
threads,
rt
2018-12-12 22:29:57 +01:00
],
2020-01-24 23:31:01 +01:00
include_directories: [inc],
2018-12-12 22:29:57 +01:00
install: true,
)
install_data(
'wlr.portal',
install_dir: join_paths(get_option('datadir'), 'xdg-desktop-portal', 'portals'),
)