meson.build 712 Bytes
Newer Older
1 2
project(
  'gnome-usage', ['vala', 'c'],
Felipe Borges's avatar
Felipe Borges committed
3
  version: '3.27.92',
4
  license: 'GPL3',
5 6
  meson_version: '>= 0.37.0'
)
Petr Štětka's avatar
Petr Štětka committed
7 8

cc = meson.get_compiler('c')
9
valac = meson.get_compiler('vala')
Petr Štětka's avatar
Petr Štětka committed
10

11 12 13 14
glib_dep = dependency('glib-2.0', version : '>=2.38')
gobject_dep = dependency('gobject-2.0')
gio_dep = dependency('gio-2.0')
gtk_dep = dependency('gtk+-3.0', version : '>=3.20.10')
Petr Štětka's avatar
Petr Štětka committed
15

16
gnome = import('gnome')
17
i18n = import('i18n')
Felipe Borges's avatar
Felipe Borges committed
18 19

po_dir = join_paths(meson.source_root(), 'po')
20
vapi_dir = join_paths (meson.source_root (), 'vapi')
Felipe Borges's avatar
Felipe Borges committed
21

Petr Štětka's avatar
Petr Štětka committed
22 23 24 25
subdir('data')
subdir('po')
subdir('external')
subdir('src')
26

27 28 29 30
meson.add_install_script(
  join_paths('build-aux', 'meson', 'postinstall.sh'),
  join_paths(get_option('prefix'), get_option('datadir'))
)