summaryrefslogtreecommitdiff
path: root/meson.build
blob: 650960a00570bba3f7df12513f3572dcfee6b382 (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
project(
  'baobab', ['vala', 'c'],
  version: '45.alpha',
  license: 'GPL2+',
  meson_version: '>= 0.59.0',
)

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

glib = dependency('glib-2.0', version: '>=2.44')
gio = dependency('gio-2.0', version: '>=2.44')
gobject = dependency('gobject-2.0', version: '>=2.44')
gtk = dependency('gtk4', version: '>=4.4.0')
libhandy = dependency('libadwaita-1', version: '>=1.2.alpha')

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

conf = configuration_data()
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('localedir')))
configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')

gnome.post_install(
  glib_compile_schemas: true,
  gtk_update_icon_cache: true,
  update_desktop_database: true,
)

add_project_arguments(
  '--disable-since-check',
  language: 'vala'
)

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