Skip to content
Snippets Groups Projects
Commit 4fd81442 authored by Bruce Cowan's avatar Bruce Cowan
Browse files

Some meson changes

parent 8b7bda90
No related branches found
No related tags found
No related merge requests found
project('rugby', 'c',
default_options: [
'buildtype=debugoptimized',
'c_std=gnu11',
'warning_level=1'
])
add_global_arguments(['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_38',
'-DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_16',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38',
'-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_16'],
language: 'c')
project('rugby', 'c')
subdir('src')
subdir('data')
gnome = import('gnome')
res = gnome.compile_resources('gen-resources', '../data/rugby.gresource.xml', source_dir: '../data')
sources = files(
'rugby.c',
'rugby-application.c',
'rugby-cell-renderer-score.c',
'rugby-score-store.c',
'rugby-scoring.c'
)
gtk = dependency('gtk+-3.0', version : '>= 3.16')
sources += gnome.compile_resources('gen-resources',
'../data/rugby.gresource.xml',
source_dir: '../data')
src = ['rugby.c',
'rugby-application.c',
'rugby-cell-renderer-score.c',
'rugby-score-store.c',
'rugby-scoring.c',
res]
gtk = dependency('gtk+-3.0', version : '>= 3.16')
executable('rugby', src, dependencies : gtk)
executable('rugby',
sources,
dependencies: gtk,
install: true)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment