From d8ebed0ee08c574cce0a88c50a0350feba94f3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 2 May 2020 18:42:47 +0200 Subject: [PATCH] meson: only define FOOT_UNICODE_PRECOMPOSE if combining chars > 0 --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 4f9bdf27..f44f05c2 100644 --- a/meson.build +++ b/meson.build @@ -60,7 +60,8 @@ xkb = dependency('xkbcommon') add_project_arguments('-DFOOT_UNICODE_MAX_COMBINING_CHARS=@0@'.format( get_option('unicode-max-combining-chars')), language: 'c') add_project_arguments('-DFOOT_UNICODE_PRECOMPOSE=@0@'.format( - get_option('unicode-precompose')), language: 'c') + get_option('unicode-max-combining-chars') > 0 and get_option('unicode-precompose')), + language: 'c') tllist = dependency('tllist', version: '>=1.0.1', fallback: 'tllist') fcft = dependency('fcft', version: ['>=2.0.0', '<2.1.0'], fallback: 'fcft') @@ -163,7 +164,7 @@ subdir('doc') summary( { 'Unicode max combining chars': get_option('unicode-max-combining-chars'), - 'Unicode precompose': get_option('unicode-precompose'), + 'Unicode precompose': get_option('unicode-max-combining-chars') > 0 and get_option('unicode-precompose'), }, bool_yn: true )