meson.build 1.35 KB
Newer Older
Ernestas Kulik's avatar
Ernestas Kulik committed
1 2 3 4 5 6
project('gnome-sudoku', ['c', 'cpp', 'vala'],
  default_options: [
    'cpp_std=c++11'
  ],
  license: 'GPL3+',
  meson_version: '>= 0.44.1',
Michael Catanzaro's avatar
Michael Catanzaro committed
7
  version: '3.37.2'
Ernestas Kulik's avatar
Ernestas Kulik committed
8
)
9
application_id = 'org.gnome.Sudoku'
Ernestas Kulik's avatar
Ernestas Kulik committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
add_project_arguments([
    '-include', 'config.h'
  ],
  language: 'c'
)

add_project_arguments([
    '--vapidir', join_paths(meson.current_source_dir(), 'lib')
  ],
  language: 'vala'
)

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

Arnaud B.'s avatar
Arnaud B. committed
25 26 27 28
datadir     = get_option('datadir')
localedir   = get_option('localedir')
prefix      = get_option('prefix')
bindir      = get_option('bindir')
Ernestas Kulik's avatar
Ernestas Kulik committed
29 30 31 32 33 34

glib_version = '2.40.0'

gee = dependency('gee-0.8')
gio = dependency('gio-2.0', version: '>= @0@'.format(glib_version))
glib = dependency('glib-2.0', version: '>= @0@'.format(glib_version))
Arnaud B.'s avatar
Arnaud B. committed
35
gtk = dependency('gtk+-3.0', version: '>= 3.24.0')
Ernestas Kulik's avatar
Ernestas Kulik committed
36 37 38 39 40 41 42 43
json_glib = dependency('json-glib-1.0')
qqwing = dependency('qqwing', version: '>= 1.3.4')
threads = dependency('threads')

config_include_dir = include_directories('.')

conf = configuration_data()

44
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
Ernestas Kulik's avatar
Ernestas Kulik committed
45 46 47 48 49 50 51 52 53 54 55 56
conf.set_quoted('LOCALEDIR', join_paths(prefix, localedir))
conf.set_quoted('VERSION', meson.project_version())

configure_file(output: 'config.h',
  configuration: conf
)

subdir('data')
subdir('help')
subdir('lib')
subdir('po')
subdir('src')
Alberto Fanjul's avatar
Alberto Fanjul committed
57

58
meson.add_install_script('build-aux/post_install.py')