openssl: remove manual check for certificate expiration
[platform/upstream/glib-networking.git] / meson.build
index 8d01f52..c5cab77 100644 (file)
@@ -22,15 +22,31 @@ config_h = configuration_data()
 
 config_h.set_quoted('GETTEXT_PACKAGE', meson.project_name())
 
+# Update default CA file
+if get_option('default_ca_file') != ''
+  config_h.set_quoted('TIZEN_DEFAULT_CA_FILE', get_option('default_ca_file'))
+endif
+
+# TIZEN extension
+if get_option('tizen_ext')
+  config_h.set('TIZEN_EXT', get_option('tizen_ext'))
+endif
+
 # compiler flags
 common_flags = [
   '-DHAVE_CONFIG_H',
   '-DG_LOG_DOMAIN="GLib-Net"',
   '-DLOCALE_DIR="@0@"'.format(localedir),
   '-DG_DISABLE_DEPRECATED',
-  '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56'
+  '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_46'
 ]
 
+# TIZEN dlog
+if get_option('tizen_debug')
+  debug_dep = dependency('dlog')
+  config_h.set('TIZEN_DEBUG', get_option('tizen_debug'))
+endif
+
 add_project_arguments(common_flags, language: 'c')
 
 symbol_map = join_paths(meson.current_source_dir(), meson.project_name() + '.map')
@@ -43,7 +59,7 @@ if host_system.contains('linux')
 endif
 
 # *** Check GLib GIO        ***
-glib_dep = dependency('glib-2.0', version: '>= 2.55.1',
+glib_dep = dependency('glib-2.0', version: '>= 2.46.0',
   fallback: ['glib', 'libglib_dep'])
 gio_dep = dependency('gio-2.0',
   fallback: ['glib', 'libgio_dep'])
@@ -83,7 +99,7 @@ if openssl_option.disabled()
   openssl_dep = []
 else
   # XXX: https://github.com/mesonbuild/meson/issues/2945
-  openssl_dep = dependency('openssl', required: openssl_option.enabled() and cc.get_id() != 'msvc')
+  openssl_dep = dependency('openssl1.1', required: openssl_option.enabled() and cc.get_id() != 'msvc')
   if openssl_dep.found()
     backends += ['openssl']
   elif cc.get_id() == 'msvc' and not openssl_option.disabled()
@@ -194,4 +210,7 @@ output += '  gnutls support:      ' + backends.contains('gnutls').to_string() +
 output += '  openssl support:     ' + backends.contains('openssl').to_string() + '\n'
 output += '  libproxy support:    ' + libproxy_dep.found().to_string() + '\n'
 output += '  GNOME proxy support: ' + gsettings_desktop_schemas_dep.found().to_string() + '\n'
+output += '  TIZEN default CA file: ' + get_option('default_ca_file') + '\n'
+output += '  TIZEN extension:     ' + get_option('tizen_ext').to_string() + '\n'
+output += '  TIZEN debug:         ' + get_option('tizen_debug').to_string() + '\n'
 message(output)