From: Michal Szczecinski Date: Fri, 7 Aug 2020 06:47:15 +0000 (+0200) Subject: meson: added thorvg build option. X-Git-Tag: accepted/tizen/unified/20200824.134432~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F240746%2F2;p=platform%2Fupstream%2Fefl.git meson: added thorvg build option. Added thorvg build option controlled by param in meson_options.txt file. When meson is used HAVE_THORVG is defined and shall be used in efl_canvas_vg_* implementation to switch between ector and thorvg Change-Id: I52e82d3a7e99f1f12616e0ed7805072a7dc74425 --- diff --git a/meson_options.txt b/meson_options.txt index 6805b34..49eec4c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -250,6 +250,12 @@ option('hyphen', description : 'Hyphen text layout support in efl' ) +option('thorvg', + type : 'boolean', + value : false, + description : 'Thorvg support instead of ector in evas' +) + option('embedded-lz4', type : 'boolean', value : true, diff --git a/src/lib/evas/meson.build b/src/lib/evas/meson.build index 7a7319d..cc9715b 100644 --- a/src/lib/evas/meson.build +++ b/src/lib/evas/meson.build @@ -181,6 +181,13 @@ if (get_option('hyphen')) config_h.set_quoted('EVAS_DICTS_HYPHEN_DIR', get_option('dictionaries-hyphen-dir')) endif +if (get_option('thorvg')) + config_h.set('HAVE_THORVG', 1) + thorvg = dependency('thorvg') + evas_ext_deps += thorvg +endif + + subdir('include') subdir('common') subdir('canvas')