summary refs log tree commit diff
path: root/tools/xdg-desktop-portal-spectrum/meson.build
blob: 9303629ec2127724311e61fe0a9e0e6d205bafee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2024 Alyssa Ross <hi@alyssa.is>

project('xdg-desktop-portal-spectrum', 'c',
  default_options : [ 'warning_level=3' ])

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

dbus = dependency('dbus-1')

executable('xdg-desktop-portal-spectrum', 'xdg-desktop-portal-spectrum.c',
  dependencies : dbus,
  install : true)

install_data('spectrum.portal',
  install_dir : get_option('datadir') / 'xdg-desktop-portal/portals')

conf_data = configuration_data()
conf_data.set('bindir', get_option('prefix') / get_option('bindir'))
configure_file(
  input : 'org.freedesktop.impl.portal.desktop.spectrum.service.in',
  output : 'org.freedesktop.impl.portal.desktop.spectrum.service',
  configuration : conf_data,
  install_dir : get_option('datadir') / 'dbus-1/services')