summary refs log tree commit diff
path: root/meson.build
blob: 859892ef1d3f09c8e6931752c68117bae43e248a (plain) (blame)
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
project(
  'munchmate',
  ['vala', 'c'],
  license: 'GPL-3.0+',
  version: '0.0+dev',
)

app_id = 'im.gzr.MunchMate'
if get_option('buildtype') == 'debug'
  app_id += '.Devel'
endif

config = configuration_data({
  'APP_ID': '"@0@"'.format(app_id),
  'VERSION': '"@0@"'.format(meson.project_version()),
  'BUILD_TYPE': '"@0@"'.format(get_option('buildtype')),
})
configure_file(output: 'config.h', configuration: config)
config_h_dir = include_directories('.')

add_project_arguments(
  ['-w'],
  language: 'c'
)

glib_dep = dependency('glib-2.0')
gio_dep = dependency('gio-2.0', version: '>=2.40')
gtk_dep = dependency('gtk4')
adw_dep = dependency('libadwaita-1')
dex_dep = dependency('libdex-1')

gnome = import('gnome')

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

subdir('data')
subdir('src')