Skip to content
Snippets Groups Projects
meson.build 691 B
Newer Older
Bruce Cowan's avatar
Bruce Cowan committed
# SPDX-FileCopyrightText: 2016-2020 Bruce Cowan <bruce@bcowan.me.uk>
Bruce Cowan's avatar
Bruce Cowan committed
# SPDX-License-Identifier: CC0-1.0
Bruce Cowan's avatar
Bruce Cowan committed
project('rugby', 'c',
    license:'GPL')
Bruce Cowan's avatar
Bruce Cowan committed

Bruce Cowan's avatar
Bruce Cowan committed
gnome = import('gnome')
Bruce Cowan's avatar
Bruce Cowan committed
gio_dep = dependency('gio-2.0', version: '>= 2.46')
gtk_dep = dependency('gtk+-3.0', version: '>= 3.16')
Bruce Cowan's avatar
Bruce Cowan committed
conf = configuration_data()
conf.set('TRY_POINTS', get_option('try_points'))
conf.set('UTRY_POINTS', get_option('utry_points'))
conf.set('KICK_POINTS', get_option('kick_points'))

git = find_program('git', required: false)
if git.found()
    VERSION = run_command('git', 'describe', '--always').stdout().strip()
else
    VERSION = 'unknown'
endif

conf.set_quoted('VERSION', VERSION)
Bruce Cowan's avatar
Bruce Cowan committed

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