meson: added thorvg build option. 46/240746/2
authorMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Fri, 7 Aug 2020 06:47:15 +0000 (08:47 +0200)
committerHermet Park <chuneon.park@samsung.com>
Thu, 20 Aug 2020 05:58:22 +0000 (14:58 +0900)
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

meson_options.txt
src/lib/evas/meson.build

index 6805b34..49eec4c 100644 (file)
@@ -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,
index 7a7319d..cc9715b 100644 (file)
@@ -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')