| 1 |
project( |
| 2 |
'libgnome-games-support', ['vala', 'c'], |
| 3 |
version: '1.8.2', |
| 4 |
license: 'LGPLv3+', |
| 5 |
meson_version: '>= 0.50.0', |
| 6 |
) |
| 7 |
|
| 8 |
# Before making a release, the library_version string should be modified. |
| 9 |
# |
| 10 |
# * Bump the first component if binary compatibility has been broken; or |
| 11 |
# * Bump the second component if new APIs are added; or |
| 12 |
# * Bump the third component otherwise. |
| 13 |
# |
| 14 |
# When bumping the first component version, set the second and third components |
| 15 |
# to 0. When bumping the second version, set the third one to zero. |
| 16 |
# |
| 17 |
# A lot easier than libtool, right? |
| 18 |
library_version = '3.0.4' |
| 19 |
soversion = library_version.split('.')[0] |
| 20 |
|
| 21 |
# used to install help |
| 22 |
gnome = import('gnome') |
| 23 |
# used for internationalization |
| 24 |
i18n = import('i18n') |
| 25 |
|
| 26 |
cc = meson.get_compiler('c') |
| 27 |
valac = meson.get_compiler('vala') # TODO 0.39.6 min |
| 28 |
|
| 29 |
gee_dependency = dependency('gee-0.8', version: '>= 0.14.0') |
| 30 |
gio_dependency = dependency('gio-2.0', version: '>= 2.40.0') |
| 31 |
glib_dependency = dependency('glib-2.0', version: '>= 2.40.0') |
| 32 |
gtk_dependency = dependency('gtk+-3.0', version: '>= 3.19.2') |
| 33 |
|
| 34 |
localedir = join_paths(get_option('prefix'), get_option('localedir')) |
| 35 |
includedir = join_paths(get_option('prefix'), get_option('includedir')) |
| 36 |
|
| 37 |
conf = configuration_data() |
| 38 |
conf.set_quoted('VERSION', meson.project_version()) |
| 39 |
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) |
| 40 |
conf.set_quoted('LOCALEDIR', localedir) |
| 41 |
|
| 42 |
configure_file(output: 'config.h', configuration: conf) |
| 43 |
|
| 44 |
subdir('po') |
| 45 |
subdir('games') |
| 46 |
subdir('tests') |