Files
playerctl/meson.build
2018-03-17 15:16:52 +01:00

26 lines
734 B
Meson

project('playerctl', 'c',
version: '0.5.0',
meson_version: '>=0.40.0')
gnome = import('gnome')
pkg = import('pkgconfig')
version_conf = configuration_data()
playerctl_version = meson.project_version()
version_array = playerctl_version.split('.')
version_conf.set('PLAYERCTL_VERSION', meson.project_version())
version_conf.set('PLAYERCTL_MAJOR_VERSION', version_array[0].to_int())
version_conf.set('PLAYERCTL_MINOR_VERSION', version_array[1].to_int())
version_conf.set('PLAYERCTL_MICRO_VERSION', version_array[2].to_int())
gobject_dep = dependency('gobject-2.0', version: '>=2.38')
gio_dep = dependency('gio-unix-2.0')
subdir('playerctl')
if get_option('gtk-doc')
gtkdoc = find_program('gtkdoc-scan')
subdir('doc')
endif