svg_loader: preventing invalid log msg
[platform/core/graphics/tizenvg.git] / meson.build
index 2cd27e9..68f65c8 100644 (file)
@@ -1,13 +1,14 @@
 project('thorvg',
         'cpp',
-        default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=gnu++14'],
-        version : '0.5.99',
+        default_options : ['buildtype=debugoptimized', 'b_sanitize=none', 'werror=false', 'optimization=s', 'cpp_std=c++14'],
+        version : '0.6.99',
         license : 'MIT')
 
 config_h = configuration_data()
 
-add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(meson.current_source_dir()),
-                      '-DTEST_DIR="@0@/test/images"'.format(meson.current_source_dir()),
+src_dir = '/'.join(meson.current_source_dir().split('\\'))
+add_project_arguments('-DEXAMPLE_DIR="@0@/src/examples/images"'.format(src_dir),
+                      '-DTEST_DIR="@0@/test/images"'.format(src_dir),
                       language : 'cpp')
 
 config_h.set_quoted('THORVG_VERSION_STRING', meson.project_version())
@@ -20,19 +21,25 @@ if get_option('engines').contains('gl') == true
     config_h.set10('THORVG_GL_RASTER_SUPPORT', true)
 endif
 
-if get_option('loaders').contains('svg') == true
+all_loaders = false
+
+if get_option('loaders').contains('all') == true
+    all_loaders = true
+endif
+
+if all_loaders or get_option('loaders').contains('svg') == true
     config_h.set10('THORVG_SVG_LOADER_SUPPORT', true)
 endif
 
-if get_option('loaders').contains('tvg') == true
+if all_loaders or get_option('loaders').contains('tvg') == true
     config_h.set10('THORVG_TVG_LOADER_SUPPORT', true)
 endif
 
-if get_option('loaders').contains('png') == true
-    config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
+if all_loaders or get_option('loaders').contains('png') == true
+   config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
 endif
 
-if get_option('loaders').contains('jpg') == true
+if all_loaders or get_option('loaders').contains('jpg') == true
     config_h.set10('THORVG_JPG_LOADER_SUPPORT', true)
 endif
 
@@ -60,6 +67,14 @@ if get_option('log') == true
     config_h.set10('THORVG_LOG_ENABLED', true)
 endif
 
+
+all_tools = false
+
+if get_option('tools').contains('all') == true
+    all_tools = true
+endif
+
+
 configure_file(
     output: 'config.h',
     configuration: config_h
@@ -102,17 +117,17 @@ Summary:
         simd_type,
         get_option('engines').contains('sw'),
         get_option('engines').contains('gl'),
-        get_option('loaders').contains('tvg'),
-        get_option('loaders').contains('svg'),
-        get_option('loaders').contains('png'),
-        get_option('loaders').contains('jpg'),
+        all_loaders or get_option('loaders').contains('tvg'),
+        all_loaders or get_option('loaders').contains('svg'),
+        all_loaders or get_option('loaders').contains('png'),
+        all_loaders or get_option('loaders').contains('jpg'),
         get_option('savers').contains('tvg'),
         get_option('bindings').contains('capi'),
         get_option('log'),
         get_option('tests'),
         get_option('examples'),
-        get_option('tools').contains('svg2tvg'),
-        get_option('tools').contains('svg2png'),
+        all_tools or get_option('tools').contains('svg2tvg'),
+        all_tools or get_option('tools').contains('svg2png'),
     )
 
 message(summary)