Debian Codegraph @

meson.build

raw
1 # SPDX-FileCopyrightText: 2026 Dr. Tobias Quathamer <[email protected]>
2 #
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 project(
6 'isoquery',
7 'c',
8 version: '3.4.0',
9 license: 'GPL-3.0-or-later',
10 license_files: 'LICENSES/GPL-3.0-or-later.txt',
11 meson_version: '>= 1.10.0',
12 default_options: ['warning_level=2', 'c_std=gnu17'],
13 )
14
15 # Dependencies
16 glib_dep = dependency('glib-2.0')
17 json_dep = dependency('json-glib-1.0')
18
19 # Required programs
20 asciidoctor = find_program('asciidoctor', required: true)
21 po4a = find_program('po4a', required: true)
22
23 # Definition of required constants
24 add_project_arguments(
25 '-DGETTEXT_PACKAGE="' + meson.project_name() + '"',
26 '-DVERSION="' + meson.project_version() + '"',
27 '-DTESTDIR="' + meson.current_source_dir() + '/tests"',
28 '-DBUILDDIR="' + meson.current_build_dir() + '"',
29 '-D_GNU_SOURCE',
30 language: 'c',
31 )
32
33 # Main source
34 subdir('src')
35
36 # Tests
37 subdir('tests')
38
39 # Translations
40 subdir('po')
41
42 # Manpages
43 subdir('man')
44
45 # Install documentation
46 docdir = get_option('datadir') / 'doc' / meson.project_name()
47 install_data(
48 'AUTHORS.md',
49 'CHANGELOG.md',
50 'LICENSES/GPL-3.0-or-later.txt',
51 'README.md',
52 'TODO.md',
53 install_dir: docdir,
54 )