meson.build 1.65 KB
Newer Older
Marcus Lundblad's avatar
Marcus Lundblad committed
1
project('gnome-maps', 'c',
Marcus Lundblad's avatar
Marcus Lundblad committed
2
	version: '40.2',
Marcus Lundblad's avatar
Marcus Lundblad committed
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
	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)

28
glib = dependency('glib-2.0', version: '>= 2.66.0')
Marcus Lundblad's avatar
Marcus Lundblad committed
29
gio = dependency('gio-2.0', version: '>= 2.44.0')
Marcus Lundblad's avatar
Marcus Lundblad committed
30
gjs = dependency('gjs-1.0', version: '>= 1.66.0')
Marcus Lundblad's avatar
Marcus Lundblad committed
31
32
33
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')
34
handy = dependency('libhandy-1', version: '>= 0.84.0')
Marcus Lundblad's avatar
Marcus Lundblad committed
35
36
37
38
39
40
41

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'),
42
	dependency('rest-0.7', version: '>= 0.7.90')
Marcus Lundblad's avatar
Marcus Lundblad committed
43
44
45
46
47
48
49
50
51
52
53
54
55
]

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')
56
subdir('tests')
Marcus Lundblad's avatar
Marcus Lundblad committed
57
58
59
60
61

meson.add_install_script(
  'meson_post_install.py',
  datadir,
  bindir
Marcus Lundblad's avatar
Marcus Lundblad committed
62
)