-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
70 lines (61 loc) · 1.61 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
60
61
62
63
64
65
66
67
68
69
70
project(
'com.fyralabs.Aqui',
'vala', 'c',
version: '0.1.0',
meson_version: '>=0.57.0'
)
app_nickname = 'aqui'
gnome = import('gnome')
i18n = import('i18n')
add_global_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
'-w',
language:'c'
)
conf_data = configuration_data()
conf_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
conf_data.set_quoted('PKGDATADIR', get_option('prefix') / get_option('datadir'))
conf_data.set_quoted('PROJECT_NAME', meson.project_name())
config_header = configure_file(
input: 'src/config.vala.in',
output: 'config.vala',
configuration: conf_data
)
sources = files(
'src/Application.vala',
'src/MainWindow.vala',
'src/Spinner.vala',
'src/GeoClue.vala',
'src/Favorites.vala',
'src/LocationMarker.vala',
'src/LocationResult.vala',
'src/Wikipedia.vala',
'src/Utils.vala',
)
asresources = gnome.compile_resources(
'as-resources', 'data/aqui.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
executable(
meson.project_name (),
config_header,
sources,
asresources,
dependencies: [
dependency('gtk4'),
dependency('shumate-1.0'),
dependency('libhelium-1'),
dependency('libbismuth-1', fallback: [ 'libbismuth', 'libbismuth_dep' ], version: '>=1.0.0'),
dependency('geocode-glib-2.0'),
dependency('libgeoclue-2.0'),
dependency('libsoup-3.0'),
dependency('json-glib-1.0'),
],
install: true
)
subdir('data')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true
)