File: meson.build

package info (click to toggle)
flatpak-xdg-utils 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 284 kB
  • sloc: ansic: 2,522; sh: 126; makefile: 13
file content (37 lines) | stat: -rw-r--r-- 1,008 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
project(
  'flatpak-xdg-utils', 'c',
  version: '1.0.4',
  license: 'LGPL-2.1+',
  default_options: [
    'buildtype=debugoptimized',
    'c_std=gnu99',
    'warning_level=2',
  ],
  meson_version: '>= 0.46.0',
)

bindir = join_paths(get_option('prefix'), get_option('bindir'))
installed_tests_metadir = join_paths(get_option('prefix'),
  get_option('datadir'),
  'installed-tests',
  meson.project_name())
installed_tests_execdir = join_paths(get_option('prefix'),
  get_option('libexecdir'),
  'installed-tests',
  meson.project_name())
installed_tests_enabled = get_option('installed_tests')

conf = configuration_data()
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('BINDIR', bindir)
conf.set('_GNU_SOURCE', 1)
config_h = configure_file(output: 'config.h', configuration: conf)

gio_unix = dependency('gio-unix-2.0')
threads = dependency('threads')

srcinc = include_directories('src')

subdir('src')
subdir('tests')