From 2020a752fd2a0463b3047941776bf0d487c80828 Mon Sep 17 00:00:00 2001 From: Bruce Cowan <bruce@bcowan.eu> Date: Mon, 1 Jan 2018 13:01:55 +0000 Subject: [PATCH] Put resource generation into data meson --- data/meson.build | 5 +++++ meson.build | 2 +- src/meson.build | 4 +--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/data/meson.build b/data/meson.build index e69de29..aa97c82 100644 --- a/data/meson.build +++ b/data/meson.build @@ -0,0 +1,5 @@ +gnome = import('gnome') + +resources = gnome.compile_resources('gen-resources', + 'rugby.gresource.xml', + source_dir: 'data') diff --git a/meson.build b/meson.build index f939703..13df4ed 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ project('rugby', 'c') -subdir('src') subdir('data') +subdir('src') diff --git a/src/meson.build b/src/meson.build index f810291..a375dd7 100644 --- a/src/meson.build +++ b/src/meson.build @@ -9,9 +9,7 @@ sources = files( 'rugby-scoring.c' ) -sources += gnome.compile_resources('gen-resources', - '../data/rugby.gresource.xml', - source_dir: '../data') +sources += resources gtk = dependency('gtk+-3.0', version : '>= 3.16') -- GitLab