aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-02 16:42:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-02 16:42:47 +0000
commitd8ebed0ee08c574cce0a88c50a0350feba94f3c8 (patch)
tree69b94d05fe7caee0eecbd9b4e8687ed2b7456b50
parentmeson: generate unicode compose table (diff)
meson: only define FOOT_UNICODE_PRECOMPOSE if combining chars > 0
-rw-r--r--meson.build5
1 files 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
)