-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
meson.build
59 lines (48 loc) · 1.42 KB
/
meson.build
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
project(
'flashcards',
version: '0.1.0',
meson_version: '>= 0.62.0',
license: 'GPL-3.0-or-later',
)
i18n = import('i18n')
python = import('python')
gnome = import('gnome')
project_id = 'io.github.fkinoshita.FlashCards'
project_name = 'FlashCards'
package_url = 'https://github.com/fkinoshita/FlashCards'
issue_url = 'https://github.com/fkinoshita/FlashCards/issues/new'
copyright = '© 2023 Felipe Kinoshita.'
contributors = '\n'.join([
'Felipe Kinoshita https://fkinoshita.gitlab.io',
])
designers = '\n'.join([
'Tobias Bernard https://tobiasbernard.com',
])
artists = '\n'.join([
'Tobias Bernard https://tobiasbernard.com',
])
dependency('gtk4', version: '>=4.9')
dependency('libadwaita-1', version: '>=1.2')
DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
# Profiles
application_id = project_id
if get_option('profile') == 'development'
profile = 'Devel'
application_id = '@0@.Devel'.format(application_id)
find_program('git')
rev_txt = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
version = meson.project_version() + '-' + rev_txt
else
profile = ''
version = meson.project_version()
endif
top_source_dir = meson.current_source_dir()
gettext_package = meson.project_name()
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)