Skip to content
Snippets Groups Projects
Commit 608729e0 authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

Port to meson

parent 19ce30d0
No related branches found
No related tags found
No related merge requests found
*.o
rugby
rugby-resources.c
build
CFLAGS = -Wall `pkg-config --cflags gtk+-3.0`
CPPFLAGS = -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4
CPPFLAGS += -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4
LDLIBS = `pkg-config --libs gtk+-3.0`
all: rugby
rugby: rugby-application.o rugby-cell-renderer-score.o rugby-resources.o rugby-score-store.o rugby-scoring.o rugby.o
rugby-resources.c: rugby.gresource.xml $(shell glib-compile-resources --generate-dependencies rugby.gresource.xml)
glib-compile-resources --generate-source rugby.gresource.xml --target $@
clean:
$(RM) rugby *.o rugby-resources.c
File moved
File moved
File moved
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_10',
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_38',
'-DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_10'],
language: 'c')
subdir('src')
subdir('data')
gnome = import('gnome')
res = gnome.compile_resources('gen-resources', '../data/rugby.gresource.xml', source_dir: '../data')
gtk = dependency('gtk+-3.0', version : '>= 3.10')
src = ['rugby.c',
'rugby-application.c',
'rugby-cell-renderer-score.c',
'rugby-score-store.c',
'rugby-scoring.c',
res]
executable('rugby', src, dependencies : gtk)
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -4,7 +4,7 @@
* rugby_scoring_get_possibilities:
* @score: the score of a team
*
* Gets the possibile ways of scoring @score points, as a %GVariant of the
* Gets the possible ways of scoring @score points, as a %GVariant of the
* type "a(iii)", in the order "tries, utries, pens".
*
* Returns: (transfer-none): the possibilities, or %NULL in the case there are
......
File moved
File moved
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