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
80
81
82
83
84
85
86
87
88
89
90
91
92
|
project('libgweather', 'c',
version: '3.90.0',
license: 'GPL-2.0-or-later',
meson_version: '>= 0.55.0',
default_options: [
'warning_level=2',
'buildtype=debugoptimized',
'c_std=gnu99',
],
)
libgweather_version = meson.project_version().split('.')
libgweather_api_version = '4.0'
libgweather_full_version = '@0@-@1@'.format(meson.project_name(), libgweather_api_version)
pkgconfig = import('pkgconfig')
gnome = import('gnome')
i18n = import('i18n')
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
datadir = prefix / get_option('datadir')
libdir = prefix / get_option('libdir')
includedir = prefix / get_option('includedir')
libexecdir = prefix / get_option('libexecdir')
sysconfdir = prefix / get_option('sysconfdir')
pkgdatadir = datadir / 'libgweather'
pkglibdir = libdir / 'libgweather'
glib_req_version = '>= 2.44.0'
libsoup_req_version = '>= 2.44.0'
libxml_req_version = '>= 2.6.0'
GETTEXT_PACKAGE = libgweather_full_version
LOCATIONS_GETTEXT_PACKAGE = libgweather_full_version + '-locations'
pylint = find_program('pylint-3', 'pylint3', 'pylint', required: false)
pylint_flags = [
'-d', 'C0111',
'-d', 'W0511',
'-d', 'F0401',
'-d', 'C0326',
]
gen_locations_variant = find_program('build-aux/meson/gen_locations_variant.py')
subdir('data')
subdir('libgweather')
subdir('schemas')
subdir('doc')
subdir('po')
subdir('po-locations')
meson.add_install_script('build-aux/meson/meson_post_install.py')
pkgconfig.generate(
filebase: 'gweather-' + libgweather_api_version,
name: 'GWeather',
description: 'GWeather shared library',
version: meson.project_version(),
libraries: lib_libgweather,
subdirs: libgweather_full_version,
requires_private: [
'gio-2.0',
'gdk-pixbuf-2.0',
'libsoup-2.4',
'libxml-2.0',
'geocode-glib-1.0',
],
)
summary({
'prefix': prefix,
'libdir': libdir,
'datadir': datadir,
'zone info': get_option('zoneinfo_dir'),
},
section: 'Directories',
)
summary({
'Debug': get_option('debug'),
'Optimization': get_option('optimization'),
'Introspection': build_gir,
'Generate VAPI': build_vapi,
'API reference': get_option('gtk_doc'),
},
section: 'Build',
bool_yn: true,
)
|