-core_conf.set('GETTEXT_PACKAGE', '"gst-plugins-base-1.0"')
-core_conf.set('PACKAGE', '"gst-plugins-base"')
-core_conf.set('VERSION', '"@0@"'.format(gst_version))
-core_conf.set('PACKAGE_VERSION', '"@0@"'.format(gst_version))
-core_conf.set('GST_PACKAGE_NAME', '"GStreamer Base Plug-ins"')
-core_conf.set('GST_PACKAGE_ORIGIN', '"Unknown package origin"')
-core_conf.set('GST_API_VERSION', '"@0@"'.format(api_version))
-core_conf.set('GST_INSTALL_PLUGINS_HELPER', '"/FIXME"')
-core_conf.set('GST_DATADIR', '"/FIXME"')
-core_conf.set('GST_LICENSE', '"LGPL"')
+core_conf.set_quoted('GETTEXT_PACKAGE', 'gst-plugins-base-1.0')
+core_conf.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
+core_conf.set_quoted('PACKAGE', 'gst-plugins-base')
+core_conf.set_quoted('VERSION', gst_version)
+core_conf.set_quoted('PACKAGE_VERSION', gst_version)
+core_conf.set_quoted('GST_API_VERSION', api_version)
+core_conf.set_quoted('GST_DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
+core_conf.set_quoted('GST_LICENSE', 'LGPL')
+
+install_plugins_helper = get_option('install_plugins_helper')
+if install_plugins_helper == ''
+ install_plugins_helper = join_paths(get_option('prefix'),
+ get_option('libexecdir'),
+ 'gst-install-plugins-helper')
+endif
+core_conf.set_quoted('GST_INSTALL_PLUGINS_HELPER', install_plugins_helper)
+
+warning_flags = [
+ '-Wmissing-declarations',
+ '-Wredundant-decls',
+ '-Wundef',
+ '-Wwrite-strings',
+ '-Wformat',
+ '-Wformat-nonliteral',
+ '-Wformat-security',
+ '-Winit-self',
+ '-Wmissing-include-dirs',
+ '-Waddress',
+ '-Wno-multichar',
+ '-Wvla',
+ '-Wpointer-arith',
+]
+
+warning_c_flags = [
+ '-Wmissing-prototypes',
+ '-Wdeclaration-after-statement',
+]
+
+warning_cxx_flags = [
+ '-Waggregate-return',
+]
+
+if have_cxx
+ cxx = meson.get_compiler('cpp')
+ foreach extra_arg : warning_cxx_flags
+ if cxx.has_argument (extra_arg)
+ add_project_arguments([extra_arg], language: 'cpp')
+ endif
+ endforeach
+endif
+
+foreach extra_arg : warning_flags
+ if cc.has_argument (extra_arg)
+ add_project_arguments([extra_arg], language: 'c')
+ endif
+ if have_cxx and cxx.has_argument (extra_arg)
+ add_project_arguments([extra_arg], language: 'cpp')
+ endif
+endforeach
+
+foreach extra_arg : warning_c_flags
+ if cc.has_argument (extra_arg)
+ add_project_arguments([extra_arg], language: 'c')
+ endif
+endforeach
+
+# GStreamer package name and origin url
+gst_package_name = get_option('package-name')
+if gst_package_name == ''
+ if gst_version_nano == 0
+ gst_package_name = 'GStreamer Base Plug-ins source release'
+ elif gst_version_nano == 1
+ gst_package_name = 'GStreamer Base Plug-ins git'
+ else
+ gst_package_name = 'GStreamer Base Plug-ins prerelease'
+ endif
+endif
+core_conf.set_quoted('GST_PACKAGE_NAME', gst_package_name)
+core_conf.set_quoted('GST_PACKAGE_ORIGIN', get_option('package-origin'))
+