summaryrefslogtreecommitdiff
path: root/meson.build
blob: 549c831973be894e0f9ef7b0793662527c805ebd (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
project(
  'baobab', ['vala', 'c'],
  version: '3.25.90',
  license: 'GPL2+',
  meson_version: '>= 0.41.0',
)

gnome = import('gnome')
i18n = import('i18n')

glib = dependency('glib-2.0', version: '>=2.44')
gio = dependency('gio-2.0', version: '>=2.44')
gio_unix = dependency('gio-unix-2.0', version: '>=2.44')
gobject = dependency('gobject-2.0', version: '>=2.44')
gtk = dependency('gtk+-3.0', version: '>=3.20')

cc = meson.get_compiler('c')
math = cc.find_library('m', required: false)

conf = configuration_data()
conf.set_quoted('PACKAGE_NAME', meson.project_name())
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('GNOMELOCALEDIR', join_paths(get_option('prefix'), get_option('datadir'), '/locale'))
configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')

meson.add_install_script(join_paths('build-aux', 'post-install.py'))

subdir('data')
subdir('help')
subdir('po')
subdir('src')