summaryrefslogtreecommitdiff
path: root/meson.build
blob: ec0d302b5d001d5527673d2be80371df034a74a3 (plain)
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('gnome-maps', 'c',
	version: '3.31.3',
	license: 'GPL2+'
)

app_id = 'org.gnome.Maps'
gnome = import('gnome')
i18n = import('i18n')

prefix = get_option('prefix')
name = meson.project_name()
version = meson.project_version()

bindir = join_paths(prefix, get_option('bindir'))
libdir = join_paths(prefix, get_option('libdir'))
datadir = join_paths(prefix, get_option('datadir'))
pkgdatadir = join_paths(datadir, name)
pkglibdir = join_paths(libdir, name)

maps_ns = 'Maps'
maps_libname = 'gnome-maps'
maps_gir_name = 'GnomeMaps'
maps_gir_version = '1.0'

desktop_file_validate = find_program('desktop-file-validate', required: false)
appstream_util = find_program('appstream-util', required: false)

gio = dependency('gio-2.0', version: '>= 2.44.0')
gjs = dependency('gjs-1.0', version: '>= 1.40.0')
girepository = dependency('gobject-introspection-1.0', version: '>= 0.10.1')
gtk3 = dependency('gtk+-3.0', version: '>= 3.22.0')
geoclue2 = dependency('geoclue-2.0', version: '>= 0.12.99')

libmaps_deps = [
	dependency('gee-0.8', version: '>= 0.16.0'),
	dependency('folks', version: '>= 0.10.0'),
	dependency('geocode-glib-1.0', version: '>= 3.15.2'),
	dependency('champlain-0.12', version: '>= 0.12.14'),
	dependency('libxml-2.0'),
	dependency('rest-0.7', version: '>= 0.7.90')
]

msgfmt = find_program('msgfmt')
po_dir = join_paths(meson.source_root(), 'po')

top_inc = include_directories('.')

cc = meson.get_compiler('c')

subdir('po')
subdir('src')
subdir('lib')
subdir('data')

meson.add_install_script(
  'meson_post_install.py',
  datadir,
  bindir
)