File: meson.build

package info (click to toggle)
iotas 0.12.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,484 kB
  • sloc: python: 14,674; xml: 725; javascript: 44; makefile: 2
file content (79 lines) | stat: -rw-r--r-- 2,093 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
project('iotas',
        version: '0.12.7',
        meson_version: '>= 0.59',
        license: 'GPL-3.0-or-later'
       )
i18n = import('i18n')
python = import('python')
gnome = import('gnome')

project_id = 'org.gnome.World.Iotas'
project_name = 'Iotas'
package_url = 'https://gitlab.gnome.org/World/iotas'
copyright = '© 2022-2025 Chris Heywood'
contributors = '\n'.join([
    'Chris Heywood',
                        ])
artists = '\n'.join([
                   ])

message('Looking for dependencies')
python_bin = python.find_installation('python3')
if not python_bin.found()
  error('No valid python3 binary found')
else
  message('Found python3 binary')
endif

if not python_bin.language_version().version_compare('>= 3.11')
  error('Python 3.11 or newer is required.')
endif


dependency('glib-2.0', version: '>= 2.76')
dependency('gio-2.0', version: '>= 2.76')
dependency('gobject-introspection-1.0', version: '>=1.66.0')
dependency('gtk4', version: '>=4.20')
dependency('libadwaita-1', version: '>=1.8')
dependency('gtksourceview-5', version: '>= 5.6')

python_dir = python_bin.get_install_dir()
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
LIBEXEC_DIR = join_paths(get_option('prefix'), get_option('libexecdir'))
bindir = join_paths(get_option('prefix'), get_option('bindir'))


application_id = project_id
if get_option('profile') == 'development'
  profile = 'Devel'
  application_id = '@0@.Devel'.format(application_id)
  vcs_tag = run_command(
    ['git', 'rev-parse', '--short', 'HEAD'],
    check: false
  ).stdout().strip()
  if vcs_tag == ''
    version_suffix = '-devel'
  else
    version_suffix = '-@0@'.format (vcs_tag)
  endif
else
  profile = ''
  version_suffix = ''
endif
iotas_version = meson.project_version()

top_source_dir = meson.current_source_dir()
gettext_package = meson.project_name()

subdir('data')
subdir('po')
subdir('iotas')
subdir('search-provider')
subdir('third-party')
subdir('tests')

gnome.post_install(
  gtk_update_icon_cache: true,
  glib_compile_schemas: true,
  update_desktop_database: true,
)