+if all_loaders or get_option('loaders').contains('tvg') == true
+ config_h.set10('THORVG_TVG_LOADER_SUPPORT', true)
+endif
+
+if all_loaders or get_option('loaders').contains('png') == true
+ config_h.set10('THORVG_PNG_LOADER_SUPPORT', true)
+endif
+
+if all_loaders or get_option('loaders').contains('jpg') == true
+ config_h.set10('THORVG_JPG_LOADER_SUPPORT', true)
+endif
+
+if get_option('savers').contains('tvg') == true
+ config_h.set10('THORVG_TVG_SAVER_SUPPORT', true)
+endif
+
+simd_type = 'none'
+
+if get_option('vector') == true
+ if host_machine.cpu_family() == 'x86' or host_machine.cpu_family() == 'x86_64'
+ config_h.set10('THORVG_AVX_VECTOR_SUPPORT', true)
+ simd_type = 'avx'
+ elif host_machine.cpu_family() == 'arm'
+ config_h.set10('THORVG_NEON_VECTOR_SUPPORT', true)
+ simd_type = 'neon'
+ endif
+endif
+
+if get_option('bindings').contains('capi') == true
+ config_h.set10('THORVG_CAPI_BINDING_SUPPORT', true)
+endif
+
+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
+
+