From 3417581bef6b164b3d605e83c93a2629b5c10659 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 18 Sep 2023 14:36:36 +0300 Subject: [PATCH 32/32] Meson: Install .svg flags when svgflags enabled See osdn #48658 Signed-off-by: Marko Lindqvist --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9ae2ac0d6c..eb16bea075 100644 --- a/meson.build +++ b/meson.build @@ -912,7 +912,8 @@ if crosser pub_conf_data.set('FREECIV_CROSSER', 1) endif -if get_option('svgflags') +svgflags = get_option('svgflags') +if svgflags pub_conf_data.set('FREECIV_SVG_FLAGS', 1) endif @@ -2798,6 +2799,10 @@ foreach flag : flags install_data(join_paths('data/flags', flag + '-large.png'), join_paths('data/flags', flag + '-shield-large.png'), install_dir : join_paths(get_option('datadir'), 'freeciv/flags')) + if svgflags + install_data(join_paths('data/flags', flag + '.svg'), + install_dir : join_paths(get_option('datadir'), 'freeciv/flags')) + endif endforeach install_data('data/override/flags-large.spec', -- 2.40.1