-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
38 lines (30 loc) · 1.14 KB
/
meson.build
File metadata and controls
38 lines (30 loc) · 1.14 KB
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
project(
'net.windower.Lumoria',
['c', 'vala'],
version: '0.1.11',
meson_version: '>= 1.0.0',
license: 'GPL-3.0-or-later',
)
i18n = import('i18n')
gnome = import('gnome')
valac = meson.get_compiler('vala')
app_id = meson.project_name()
src_dir = meson.project_source_root() / 'src'
config_h = configuration_data()
config_h.set_quoted('APP_NAME', meson.project_name().split('.')[2])
config_h.set_quoted('APP_ID', meson.project_name())
config_h.set_quoted('APP_VERSION', meson.project_version())
config_h.set_quoted('LOCALE_DIR', join_paths(get_option('prefix'), get_option('localedir')))
config_h.set_quoted('RESOURCE_BASE', join_paths('/', meson.project_name().replace('.', '/')))
configure_file(output: 'config.h', configuration: config_h)
config_dep = valac.find_library('config', dirs: src_dir)
config_inc = include_directories('.')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language: 'c')
install_data('LICENSE', install_dir: get_option('datadir') / 'licenses' / meson.project_name())
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
gtk_update_icon_cache: true,
update_desktop_database: true,
)